:root {
  --blue: #536a89;
  --blue-dark: #3f5472;
  --orange: #d68d00;
  --white: #fff;
  --ink: #1d2733;
  --red: #c4372f;
  --green: #1f8f86;
  --note: #fff176;
  --font: Helvetica, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.5; }
a { color: inherit; }

.hero { background: var(--blue); color: var(--white); padding: 0 24px 72px; display: flex; flex-direction: column; }
.topbar { width: 100%; }
.hero-inner { width: 100%; }
/* Trailer als Dropdown-Spalt zwischen Leiste und Intro: Linie -> klappt auf (ganzes Video, passend zum Bildschirm) -> klappt wieder zur Linie zu */
.slit { display: none; position: relative; width: calc(100% + 48px); margin: 0 -24px; border-top: 2px solid var(--orange); cursor: pointer; --full: min(calc(100vh - 120px), calc(100vw * 9 / 16)); outline-offset: 2px; }
.slit::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 28px; }
.slit-inner { position: relative; height: 0; overflow: hidden; background: #0b1730; transition: height .9s cubic-bezier(.77, 0, .18, 1); }
.slit video { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100vw; height: var(--full); object-fit: contain; display: block; }
.slit.loading { animation: slitPulse 1.4s ease-in-out infinite; }
.slit.closed:hover .slit-inner, .slit.closed:focus-visible .slit-inner { height: 22px; transition-duration: .4s; }
.slit.open .slit-inner { height: var(--full); }
.slit.open { cursor: default; }
.slit.open.playing { cursor: pointer; }
.slit.open ~ .hero-inner { padding-top: 40px; }
@keyframes slitPulse { 50% { opacity: .35; } }
@media (min-width: 900px) { .slit { display: block; } }
@media (prefers-reduced-motion: reduce) { .slit-inner { transition-duration: .01s; } .slit.loading { animation: none; } }
.topbar { max-width: 64rem; margin: 0 auto; padding: 18px 0; display: flex; align-items: center; gap: 22px; }
.topnav { display: flex; gap: 18px; margin-right: auto; font-size: .85rem; }
.topnav a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.topnav a:hover { color: var(--orange); }
.brand { text-decoration: none; color: var(--orange); font-weight: 700; letter-spacing: .2em; font-size: .95rem; }
.hero-inner { max-width: 64rem; margin: 0 auto; padding-top: clamp(24px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { max-width: 34rem; }
.eyebrow { margin: 0 0 18px; font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(255, 255, 255, .7); }
.hero h1 { margin: 0 0 24px; color: var(--orange); font-weight: 700; font-size: clamp(2.8rem, 8vw, 4.6rem); line-height: .98; letter-spacing: -0.035em; }
.lead { margin: 0 0 32px; color: rgba(255, 255, 255, .88); font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.6; }
.hero-mark { width: clamp(150px, 26vw, 270px); height: auto; flex: none; }
.btn { display: inline-block; background: var(--orange); color: var(--blue-dark); font-weight: 700; font-size: .95rem; text-decoration: none; padding: 11px 22px; border-radius: 999px; transition: background .15s; }
.btn:hover { background: var(--white); }

main { max-width: 44rem; margin: 0 auto; padding: 0 20px; }
.info { margin: 48px 0 8px; border-bottom: 1px solid #dde3ea; }
.panel { border-top: 1px solid #dde3ea; }
.panel summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; padding: 18px 2px; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; margin-right: 4px; }
.panel[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.panel summary:hover { color: var(--blue); }
.panel > :not(summary) { padding-left: 2px; padding-right: 2px; }
.panel ul, .panel ol { margin: 0 0 16px; padding-left: 1.3rem; color: #3b4857; }
.panel li { margin: 5px 0; }
.panel h3 { margin: 4px 0 6px; padding-left: 2px; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); }
.panel p { margin: 0 0 18px; color: #3b4857; }

.board { padding: 36px 0 24px; }
.board h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 6px; color: var(--blue); }
.board-lead { margin: 0 0 8px; max-width: 38rem; }
.question { margin-top: 36px; }
.question h3 { margin: 0 0 14px; padding: 14px 18px; background: var(--blue); color: var(--white); border-radius: 12px; font-size: clamp(1.1rem, 3vw, 1.4rem); line-height: 1.3; }
.question h3 span { color: var(--orange); margin-right: 8px; }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 16px; padding: 6px 4px 4px; align-items: start; }
.thread { display: flex; flex-direction: column; }
.note { position: relative; background: var(--note); min-height: 118px; padding: 38px 12px 38px; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); transform: rotate(var(--r, 0deg)); font-size: .95rem; overflow-wrap: anywhere; border-bottom-right-radius: 14px 6px; }
.note.mine { background: #ffe066; }
.thread .note + .note { margin-top: -36px; margin-left: 16px; background: #fff59d; }
.thread .note + .note + .note { margin-left: 30px; }
.thread .note + .note + .note + .note { margin-left: 40px; }
.thread .note + .note.mine { background: #ffe9a0; }
.note-head { position: absolute; left: 6px; right: 6px; top: 6px; display: flex; align-items: center; gap: 2px; }
.grow { flex: 1; }
.vote { font: inherit; font-size: .85rem; display: inline-flex; gap: 4px; align-items: center; border: 1.5px solid rgba(29, 39, 51, .35); background: rgba(255, 255, 255, .55); border-radius: 999px; padding: 1px 8px; cursor: pointer; color: var(--ink); }
.vote:hover { background: var(--white); }
.vote.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.icon { border: 0; background: none; cursor: pointer; font-size: .95rem; color: rgba(29, 39, 51, .6); padding: 2px 4px; line-height: 1; }
.icon:hover { color: var(--blue); }
.icon[aria-label="Delete"]:hover { color: var(--red); }
form.add { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
form.add input { flex: 1 1 260px; font: inherit; padding: 11px 14px; border: 2px solid var(--blue); border-radius: 10px; background: var(--white); color: var(--ink); }
form.add input:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
form.add button { font: inherit; font-weight: 700; padding: 11px 20px; border: 0; border-radius: 10px; background: var(--orange); color: var(--blue-dark); cursor: pointer; }
form.add button:hover { background: var(--blue); color: var(--white); }
form.add button:disabled { opacity: .5; cursor: default; }
.status { margin: 24px 0 0; padding: 12px 16px; border-radius: 10px; background: #fdecea; color: var(--red); }

footer { background: var(--blue); color: var(--white); text-align: center; padding: 24px 16px; margin-top: 40px; font-size: .9rem; }
footer a { color: var(--orange); }

@media (max-width: 420px) {
  .notes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.authbar { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: rgba(255, 255, 255, .85); }
.authbar button, dialog button { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 8px 16px; background: var(--orange); color: var(--blue-dark); cursor: pointer; }
.authbar button:hover, dialog button:hover { background: var(--white); }
.hint { font-size: .9rem; color: #4a5a6e; }
dialog { border: 0; border-radius: 14px; padding: 22px; width: min(92vw, 28rem); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); color: var(--ink); }
dialog::backdrop { background: rgba(29, 39, 51, .55); }
dialog h3 { margin: 0 0 12px; font-size: 1.15rem; color: var(--blue); }
dialog textarea, dialog input, dialog select { display: block; width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--blue); border-radius: 10px; margin: 0 0 10px; background: var(--white); color: var(--ink); }
dialog label { display: block; font-size: .85rem; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
dialog button.ghost { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
dialog button.google { width: 100%; background: var(--blue); color: var(--white); margin-bottom: 4px; }
dialog button:disabled { opacity: .5; }
.dlg-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.dlg-msg { color: var(--red); margin: 0 0 6px; font-size: .9rem; }
.dlg-note { margin: 4px 0 8px; font-size: .85rem; color: #4a5a6e; }
.authbar button { padding: 6px 14px; font-size: .85rem; background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, .5); }
.authbar button:hover { background: var(--white); color: var(--blue-dark); }
@media (max-width: 640px) {
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .hero-mark { width: 120px; }
}

.trailer { display: none; margin: 40px 0 8px; }
.trailer h2 { font-size: 1.4rem; margin: 0 0 12px; color: var(--blue); }
.trailer video { width: 100%; max-height: 70vh; border-radius: 14px; background: #0b1730; display: block; }
.wimmel { display: flex; align-items: center; gap: 16px; margin: 36px 0 8px; padding: 22px 24px; border-radius: 16px; background: #0b1730; color: var(--white); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.wimmel:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11, 23, 48, .3); }
.wimmel-text { display: grid; gap: 4px; }
.wimmel strong { font-size: 1.25rem; color: var(--orange); }
.wimmel-text span { color: rgba(255, 255, 255, .8); font-size: .95rem; line-height: 1.45; }
.wimmel-go { margin-left: auto; font-size: 1.8rem; color: var(--orange); }
@media (max-width: 899px) { .trailer { display: block; } }
@media (max-width: 640px) { .topbar { gap: 14px; } }

.weekly-block { margin: 36px 0 8px; }
.weekly { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: 2px solid var(--blue); border-radius: 16px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.weekly:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(63, 84, 114, .2); }
.weekly-text { display: grid; gap: 6px; }
.weekly-text small { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.weekly-text strong { font-size: 1.25rem; line-height: 1.3; color: var(--blue-dark); }
.weekly-text span { color: #3b4857; font-size: .95rem; line-height: 1.5; }
.weekly-go { margin-left: auto; font-size: 1.8rem; color: var(--orange); }
.weekly-all { display: inline-block; margin-top: 10px; font-size: .9rem; color: var(--blue-dark); }

/* Trailer-Steuerung (Pause, Ton, Schliessen) */
.slit-ctrl { position: absolute; left: 16px; bottom: 14px; z-index: 3; display: flex; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.slit.open .slit-ctrl { opacity: 1; pointer-events: auto; }
.slit-ctrl button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(11, 23, 48, .62); color: #fff; font-size: .8rem; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); }
.slit-ctrl button:hover { background: var(--orange); border-color: var(--orange); color: var(--blue-dark); }
.slit-ctrl button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
