/* WetterThor-Website: ein Himmel wie in der App, der sich nach der Uhrzeit des Besuchers richtet. */

:root {
  --sky-top: #2b66c9; --sky-mid: #4f86d8; --sky-bottom: #7fb0e6;
  --card: rgba(12, 26, 70, .46); --card-solid: rgba(12, 24, 62, .78);
  --line: rgba(255, 255, 255, .14);
  --fg: #fff; --muted: rgba(255, 255, 255, .74);
  --gold: #ffc94d; --teal: #5ed6d0; --rain: #6fb6ff;
  --cloud: rgba(255, 255, 255, .55);
  color-scheme: dark;
}
html[data-sky="dawn"], html[data-sky="dusk"] {
  --sky-top: #4c5cb8; --sky-mid: #ed8c8c; --sky-bottom: #ffb36b;
  --card: rgba(40, 30, 80, .48); --card-solid: rgba(38, 30, 74, .8);
  --cloud: rgba(255, 228, 214, .5);
}
html[data-sky="night"] {
  --sky-top: #050817; --sky-mid: #121a3d; --sky-bottom: #26305e;
  --card: rgba(20, 26, 56, .62); --card-solid: rgba(18, 23, 50, .86);
  --cloud: rgba(170, 182, 220, .16);
}
@media (prefers-color-scheme: dark) {
  html:not([data-sky]) { --sky-top: #050817; --sky-mid: #121a3d; --sky-bottom: #26305e; --card: rgba(20, 26, 56, .62); --card-solid: rgba(18, 23, 50, .86); --cloud: rgba(170, 182, 220, .16); }
}
html.raining {
  --sky-top: #3c4558; --sky-mid: #566074; --sky-bottom: #7a8496;
  --card: rgba(28, 34, 50, .6); --card-solid: rgba(26, 32, 46, .84);
  --cloud: rgba(225, 230, 240, .5);
}
html[data-sky="night"].raining { --sky-top: #090b14; --sky-mid: #1a1f30; --sky-bottom: #2d3346; --cloud: rgba(150, 160, 185, .2); }

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--fg); background: var(--sky-top);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 12px; }

/* ---------- Himmel ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bottom) 100%);
  transition: background 1.2s; }
/* Sonne und Mond stehen oben am Himmel und scrollen mit weg, damit sie nicht hinter dem Text blenden. */
.orbs { position: absolute; top: 0; left: 0; right: 0; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; }
.sun, .moon, .stars { position: absolute; transition: opacity 1.2s; opacity: 0; }
.sun { width: 110px; height: 110px; right: 9%; top: 7%; border-radius: 50%;
  background: radial-gradient(circle, #fffdf0 0 42%, rgba(255, 236, 170, .55) 52%, rgba(255, 220, 140, 0) 72%); }
html[data-sky="day"] .sun { opacity: 1; }
html[data-sky="dawn"] .sun, html[data-sky="dusk"] .sun { opacity: .9; top: 58%; right: 16%;
  background: radial-gradient(circle, #fff2d6 0 40%, rgba(255, 190, 120, .6) 52%, rgba(255, 160, 90, 0) 72%); }
.moon { width: 58px; height: 58px; right: 12%; top: 9%; border-radius: 50%;
  box-shadow: inset -15px 7px 0 0 #fff6dc; filter: drop-shadow(0 0 18px rgba(255, 244, 214, .45)); transform: rotate(-18deg); }
.stars { inset: 0 0 35% 0; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .8;
  animation: twinkle 4s ease-in-out infinite; }
html[data-sky="night"] .moon, html[data-sky="night"] .stars { opacity: 1; }
/* Auf breiten Bildschirmen stehen rechts die iPhones; Sonne und Mond rücken dann in die Lücke darüber. */
@media (min-width: 860px) { .moon { right: auto; left: 47%; top: 5%; } html[data-sky="day"] .sun { right: auto; left: 44%; top: 2%; } }
html.raining .sun, html.raining .moon, html.raining .stars { opacity: 0; }

.cloud { position: absolute; left: 0; width: 520px; height: 190px; opacity: 1;
  background:
    radial-gradient(ellipse 34% 42% at 30% 62%, var(--cloud), transparent 70%),
    radial-gradient(ellipse 30% 46% at 52% 44%, var(--cloud), transparent 70%),
    radial-gradient(ellipse 30% 36% at 72% 64%, var(--cloud), transparent 70%),
    radial-gradient(ellipse 50% 26% at 50% 74%, var(--cloud), transparent 72%);
  filter: blur(6px); animation: drift linear infinite; will-change: transform; }
.cloud:nth-child(2) { top: 4%;  animation-duration: 150s; animation-delay: -40s; transform: scale(1.2); }
.cloud:nth-child(3) { top: 24%; animation-duration: 210s; animation-delay: -150s; }
.cloud:nth-child(4) { top: 46%; animation-duration: 180s; animation-delay: -95s; }
.cloud:nth-child(5) { top: 70%; animation-duration: 240s; animation-delay: -20s; }

.rain { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
html.raining .rain { opacity: 1; }
.rain i { position: absolute; top: -20px; width: 1.6px; height: 18px; border-radius: 2px;
  background: linear-gradient(transparent, rgba(200, 222, 255, .75)); animation: fall linear infinite; }

@keyframes drift { from { transform: translateX(-560px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes fall { to { transform: translate(-30px, 110vh); } }
@keyframes twinkle { 50% { opacity: .25; } }

/* ---------- Grundgerüst ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 28px 16px 56px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 18px 20px;
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); }
.label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--muted);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.label svg { width: 16px; height: 16px; flex: none; }
.muted { color: var(--muted); }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 26px; margin: 52px 0 16px; letter-spacing: -.01em; }

/* ---------- Kopf ---------- */
.hero { display: grid; gap: 28px; align-items: center; padding-top: 12px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; } }
.brand { display: flex; align-items: center; gap: 16px; }
.brand h1 { font-size: clamp(40px, 8vw, 60px); margin: 0; letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0, 0, 0, .18); }
.thor { width: 108px; height: 108px; flex: none; cursor: pointer; overflow: visible;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .25)); animation: bob 2.9s ease-in-out infinite; }
.thor:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 20px; }
.tagline { font-size: clamp(22px, 4vw, 28px); font-weight: 600; line-height: 1.3; margin: 18px 0 8px; }
.lead { color: var(--muted); font-size: 18px; max-width: 34em; }

.thor .m, .thor .eyes-closed { display: none; }
.thor[data-expr="happy"] .m-happy, .thor[data-expr="grin"] .m-grin,
.thor[data-expr="worried"] .m-worried, .thor[data-expr="sleepy"] .m-sleepy { display: inline; }
.thor[data-expr="sleepy"] .eyes-open { display: none; }
.thor[data-expr="sleepy"] .eyes-closed { display: inline; }
.thor[data-expr="worried"] .eye ellipse { transform: scaleY(.82); transform-box: fill-box; transform-origin: center; }
.thor .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.3s infinite; }

@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes blink { 0%, 2.6%, 100% { transform: scaleY(1); } 1.3% { transform: scaleY(.1); } }

.bubble { display: flex; gap: 14px; align-items: center; margin-top: 22px; max-width: 520px; }
.bubble .who { font-size: 14px; color: var(--muted); margin: 0; }
.bubble .tip { margin: 2px 0 0; font-size: 18px; min-height: 1.5em; }
.bubble img { width: 46px; height: 46px; flex: none; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--fg); border: 1px solid var(--line);
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
button.pill { cursor: pointer; }
button.pill:hover { background: rgba(255, 255, 255, .22); }
.pill.soon { background: rgba(255, 201, 77, .18); border-color: rgba(255, 201, 77, .4); }

.phones { position: relative; height: 600px; max-width: 420px; width: 100%; margin: 0 auto; }
.phone { position: absolute; width: 230px; border-radius: 38px; border: 7px solid #0c0f1c;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: #0c0f1c; }
.phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.phone.front { left: 0; top: 0; z-index: 1; transform: rotate(-4deg); }
.phone.back { right: 0; top: 46px; transform: rotate(5deg); }
@media (max-width: 480px) { .phones { height: 440px; } .phone { width: 180px; } .moon { width: 40px; height: 40px; top: 1.5%; right: 5%; box-shadow: inset -10px 5px 0 0 #fff6dc; } .sun { width: 80px; height: 80px; top: 1%; right: 2%; } }

/* ---------- Funktionen ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid h3 { font-size: 19px; margin: 0 0 4px; }
.grid p { color: var(--muted); font-size: 16px; }
.demo { margin-top: 14px; }

.band { display: flex; align-items: flex-end; gap: 3px; height: 46px; padding-bottom: 6px; border-bottom: 2px dashed rgba(255, 255, 255, .25); }
.band i { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--rain); min-height: 2px; opacity: .9; }
.band i.dry { background: rgba(255, 255, 255, .25); }
.times { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }

.days { display: grid; grid-template-columns: auto 22px 30px 1fr 30px; gap: 8px 10px; align-items: center; font-size: 16px; }
.days .t { text-align: right; color: var(--muted); }
.days .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); position: relative; }
.days .bar b { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--teal); }
.days svg { width: 22px; height: 16px; }

.warn { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px;
  background: rgba(255, 150, 40, .18); border: 1px solid rgba(255, 170, 70, .45); font-size: 15px; }
.warn .dot { width: 10px; align-self: stretch; border-radius: 5px; background: #ff9a2e; flex: none; }
.warn + .warn { margin-top: 8px; background: rgba(120, 170, 255, .14); border-color: rgba(140, 180, 255, .35); }
.warn + .warn .dot { background: #7fb2ff; }

.duo { display: flex; gap: 18px; align-items: flex-end; }
.duo .fold { width: 54px; height: 92px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .6); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.duo .fold svg { width: 26px; height: 18px; }
.duo .open { display: flex; gap: 3px; }
.duo .open .fold { width: 54px; }
.duo .tent { width: 0; height: 0; border-left: 34px solid transparent; border-right: 34px solid transparent; border-bottom: 58px solid rgba(255, 255, 255, .55); }
.duo small { display: block; text-align: center; margin-top: 6px; font-size: 12px; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 10px 0 0; }
.checks li { display: flex; gap: 10px; margin: 6px 0; font-size: 16px; }
.checks li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23103a3a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* ---------- Fragen ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
details.card { padding: 0; }
details summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform .25s; }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details .answer { padding: 0 20px 16px; color: var(--muted); }
details .answer p:last-child { margin: 0; }

.two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); max-width: 760px; }

footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Rechtstext ---------- */
.legal-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; }
.legal-head img { width: 60px; height: 60px; }
.legal-head h1 { margin: 0; font-size: clamp(28px, 6vw, 36px); hyphens: auto; overflow-wrap: break-word; }
.prose { max-width: 760px; background: var(--card-solid); padding: 24px 26px; }
.prose h2 { font-size: 20px; margin: 30px 0 8px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .summary { background: rgba(255, 255, 255, .08); border-radius: 16px; padding: 14px 16px; }

@media (prefers-reduced-motion: reduce) {
  .cloud, .rain i, .stars i, .thor, .thor .eye { animation: none; }
  .cloud:nth-child(2) { transform: translateX(8vw) scale(1.2); }
  .cloud:nth-child(3) { transform: translateX(55vw); }
  .cloud:nth-child(4) { transform: translateX(20vw); }
  .cloud:nth-child(5) { transform: translateX(65vw); }
}

/* ---------- Pill zum Duo, Widgets ---------- */
a.pill { text-decoration: none; }
a.pill:hover { background: rgba(255, 255, 255, .22); }
.pill svg { width: 18px; height: 18px; }
.duo-pill { background: rgba(94, 214, 208, .18); border-color: rgba(94, 214, 208, .45); }

.widgets { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.widgets > div { background: rgba(255, 255, 255, .12); border: 1px solid var(--line); }
.w-small { width: 92px; height: 92px; border-radius: 20px; padding: 9px 11px; display: grid; align-content: space-between; position: relative; }
.w-small b { font-size: 28px; font-weight: 600; line-height: 1; }
.w-small svg { position: absolute; right: 10px; top: 30px; width: 24px; height: 16px; }
.widgets small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.w-round { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 1px; }
.w-round svg { width: 20px; height: 14px; }
.w-round b { font-size: 12px; }
.w-rect { width: 120px; height: 54px; border-radius: 14px; padding: 7px 10px; display: grid; align-content: space-between; }
.band.mini { height: 18px; padding: 0; border: 0; gap: 2px; }

/* ---------- iPhone Duo ---------- */
.duo-section h2 { display: flex; align-items: center; gap: 12px; }
.duo-section h2 svg { width: 28px; height: 28px; color: var(--teal); flex: none; }
.duo-section .intro { color: var(--muted); font-size: 18px; max-width: 40em; margin: -4px 0 18px; }
.postures { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.postures .card { display: flex; gap: 18px; align-items: center; padding: 16px 20px 16px 16px; }
.postures h3 { font-size: 19px; margin: 0 0 4px; }
.postures p { color: var(--muted); font-size: 16px; margin: 0; }
.shot-wrap { flex: none; width: 168px; height: 244px; display: flex; align-items: flex-end; justify-content: center; perspective: 520px; }
.shot { display: block; width: 168px; height: auto; aspect-ratio: 481 / 700; object-fit: cover; border-radius: 22px;
  border: 3px solid #1c2130; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 14px 30px rgba(0, 0, 0, .35); background: #111; }
/* Zelt: Das Scharnier ist oben, das Außendisplay steht quer und lehnt leicht nach hinten. */
.tent-wrap { align-items: center; }
.shot.tent { aspect-ratio: 700 / 481; border-radius: 18px; transform-origin: bottom; transform: rotateX(14deg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 0 34px rgba(255, 207, 135, .16), 0 22px 22px -8px rgba(0, 0, 0, .55); }
/* Tisch-Modus: dasselbe Bild, in der Mitte geknickt. Die untere Hälfte liegt flach nach hinten weg. */
.shot.folded { aspect-ratio: auto; border: 0; background: none; box-shadow: none; border-radius: 0; transform-style: preserve-3d; }
.shot.folded i { display: block; height: 117px; background: #111 url(img/duo-tisch.jpg) no-repeat; background-size: 100% 200%;
  border: 3px solid #1c2130; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.shot.folded i:first-child { background-position: top; border-bottom: 0; border-radius: 22px 22px 0 0; }
.shot.folded i:last-child { background-position: bottom; border-top: 1px solid #1c2130; border-radius: 0 0 22px 22px;
  transform-origin: top; transform: rotateX(58deg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 26px 30px rgba(0, 0, 0, .35); }
.duo-section .note { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
@media (max-width: 860px) { .postures { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .postures { gap: 10px; }
  .postures .card { gap: 14px; padding: 12px 14px 12px 12px; }
  .postures h3 { font-size: 17px; }
  .postures p { font-size: 15px; }
  .shot-wrap { width: 118px; height: 172px; }
  .shot { width: 118px; border-radius: 16px; }
  .shot.tent { border-radius: 12px; }
  .shot.folded i { height: 82px; }
  .shot.folded i:first-child { border-radius: 16px 16px 0 0; }
  .shot.folded i:last-child { border-radius: 0 0 16px 16px; }
}
