/* Our Perfect Class Weekend — professional, no build tools, Termux-safe. */
:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --fg: #23201a;
  --muted: #6f675a;
  --accent: #1d4ed8;
  --accent-dark: #0f2a6b;
  --accent2: #f59e0b;
  --accent2-soft: #fef3c7;
  --card: #ffffff;
  --line: #e3e9f7;
  --radius: 16px;
  --maxw: 980px;
  --shadow: 0 10px 30px rgba(15, 42, 107, 0.12);
  --shadow-hover: 0 18px 44px rgba(15, 42, 107, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(900px 320px at 10% -60px, #f0e7d3 0%, transparent 60%),
    radial-gradient(800px 300px at 95% 0%, #f3ddae 0%, transparent 55%),
    var(--bg);
  color: var(--fg);
  line-height: 1.65;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent-dark); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 42, 107, 0.12); }
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0.7rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { font-weight: 800; letter-spacing: 0.2px; color: var(--fg); text-decoration: none; display: flex; align-items: center; gap: 0.55rem; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 0 0 4px #f3e5c8; animation: pulse 2.6s ease-in-out infinite; }
.brand-sub { font-size: 0.75rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: 0.1rem 0.5rem; border-radius: 999px; background: #fff; }
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-link { position: relative; text-decoration: none; color: var(--muted); font-weight: 600; padding: 0.5rem 0.75rem; border-radius: 10px; transition: color 0.2s, background 0.2s; }
.nav-link::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.3rem; height: 2px; border-radius: 2px; background: var(--accent2); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.nav-link:hover { color: var(--fg); background: #f6efe0; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--accent-dark); }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 0.4rem 0.7rem; font-size: 1.1rem; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1rem 3.5rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #201b13 0%, #3a3125 55%, #57482f 100%);
  color: #fff; border-radius: 24px; padding: 2.5rem 1.6rem; margin-top: 1rem;
  box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.35; animation: float 7s ease-in-out infinite; }
.hero::before { width: 220px; height: 220px; background: #f59e0b; right: -60px; top: -60px; }
.hero::after { width: 160px; height: 160px; background: #ffe9c4; left: -50px; bottom: -60px; animation-delay: -3s; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; color: #fde68a; margin: 0 0 0.6rem; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin: 0 0 0.8rem; animation: rise 0.7s ease both; }
.accent { color: #fde68a; }
.hero-sub { max-width: 620px; color: #f3e9d4; font-size: 1.08rem; margin: 0 0 1.4rem; animation: rise 0.7s 0.1s ease both; }
.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; animation: rise 0.7s 0.2s ease both; }
.hero-simple { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 68vh; padding: 3.5rem 1.6rem 4.5rem; background: none; box-shadow: none; border-radius: 0; color: var(--fg); position: relative; overflow: visible; }
.hero-simple::before, .hero-simple::after { display: none; }
.hero-simple .kicker { color: #b45309; }
.hero-simple .accent { color: #c77408; }
.hero-simple .hero-sub { color: var(--fg); }
.hero-simple .hero-sub { margin-left: auto; margin-right: auto; }
.hero-simple .hero-cta { justify-content: center; }
.credit { display: inline-block; margin: 0 0 1.5rem; padding: 0.45rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--fg); font-size: 0.95rem; box-shadow: var(--shadow); animation: rise 0.7s 0.15s ease both; }
.credit strong { color: #b45309; }
.scroll-hint { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0; color: var(--muted); text-decoration: none; opacity: 0.92; }
.scroll-hint span { font-size: 1.9rem; line-height: 1; animation: bob 1.8s ease-in-out infinite; }
.scroll-hint small { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
#stundenplan { scroll-margin-top: 84px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 0.7rem 1.2rem; border-radius: 12px; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s; }
.btn-primary { background: var(--accent2); color: #1a1a1a; box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245, 158, 11, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.22); }
.section .btn-ghost { background: #fff; color: var(--accent-dark); border-color: var(--line); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin: 1.6rem 0 0; padding: 0; animation: rise 0.7s 0.3s ease both; }
.stat { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 14px; padding: 0.7rem; text-align: center; }
.stat dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: #dbe7ff; }
.stat dd { margin: 0; font-size: 1.6rem; font-weight: 800; }

/* Sections */
.section { margin-top: 2.5rem; }
.pagehead { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem 1.5rem; box-shadow: var(--shadow); margin-top: 1rem; animation: rise 0.6s ease both; }
.section-head h2, .pagehead h1 { margin: 0.2rem 0 0.5rem; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 800; color: var(--accent); margin: 0; }
.lead { color: var(--muted); margin: 0.3rem 0 0; }
.day-block { --day: var(--accent); background: linear-gradient(180deg, #fff 0%, #fdfaf3 100%); border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem 1.1rem 1.4rem; margin-top: 2rem; box-shadow: var(--shadow); }
.day-block.day-friday { --day: #1d4ed8; --day-soft: #e3ecff; }
.day-block.day-saturday { --day: #c77408; --day-soft: #fef3c7; }
.day-block.day-sunday { --day: #15803d; --day-soft: #dcfce7; }
.day { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 0.4rem; font-size: 1.35rem; scroll-margin-top: 90px; }
.day-pill { background: var(--day, var(--accent-dark)); color: #fff; font-size: 0.85rem; padding: 0.35rem 1rem; border-radius: 999px; box-shadow: 0 4px 12px color-mix(in srgb, var(--day, var(--accent-dark)) 40%, transparent); white-space: nowrap; }
.day-text small { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 500; }

/* Timeline */
.timeline { list-style: none; margin: 1.2rem 0 0; padding: 0 0 0 0.4rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent2)); opacity: 0.5; }
.tl-item { position: relative; padding: 0 0 1rem 2.6rem; }
.tl-dot { position: absolute; left: 4px; top: 1.4rem; width: 23px; height: 23px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--line); animation: pop 0.5s ease both; }
.tl-dot.f { background: #1d4ed8; } .tl-dot.s { background: #f59e0b; } .tl-dot.u { background: #16a34a; }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tl-time { display: inline-block; font-size: 0.8rem; font-weight: 800; color: var(--accent-dark); background: #e8effe; padding: 0.2rem 0.6rem; border-radius: 999px; margin: 0 0 0.4rem; }
.tl-card h3 { margin: 0.2rem 0 0.3rem; }
.tl-card p { margin: 0.3rem 0; color: #334155; }
.more { font-weight: 700; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }
.tag { display: inline-block; font-size: 0.78rem; background: var(--accent2-soft); border: 1px dashed #d9a214; padding: 0.15rem 0.6rem; border-radius: 999px; }

/* Full schedule timeline (schedule page) */
.timeline-full { margin-top: 1rem; padding-bottom: 0.4rem; }
.timeline-full::before { left: 27px; width: 4px; background: linear-gradient(180deg, var(--day) 0%, color-mix(in srgb, var(--day) 25%, #fff) 100%); opacity: 1; box-shadow: 0 0 12px color-mix(in srgb, var(--day) 35%, transparent); }
.timeline-full .tl-item { padding-left: 4.4rem; padding-bottom: 1.1rem; }
.timeline-full .reveal { transition-delay: var(--d, 0s); }
.timeline-full .tl-dot { left: 0; top: 0.9rem; width: 58px; height: 58px; border: 3px solid var(--day); background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: scale(0.6); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.timeline-full .tl-item.visible .tl-dot { animation: pop 0.55s var(--d, 0s) cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.timeline-full .tl-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--day) 45%, transparent); opacity: 0; }
.timeline-full .tl-item:hover .tl-dot { transform: scale(1.08) rotate(-4deg); box-shadow: var(--shadow-hover); }
.timeline-full .tl-item:hover .tl-dot::after { animation: ring 1.1s ease-out; }
.timeline-full .tl-dot.f, .timeline-full .tl-dot.s, .timeline-full .tl-dot.u { background: #fff; }
.tl-ico { font-size: 1.5rem; line-height: 1; transform: translateY(-1px); }
.timeline-full .tl-card { position: relative; overflow: hidden; border-radius: 18px; padding: 1.05rem 1.25rem 1.1rem; }
.timeline-full .tl-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 5px; background: linear-gradient(180deg, var(--day), color-mix(in srgb, var(--day) 40%, var(--accent2))); }
.timeline-full .tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--day) 35%, var(--line)); }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-bottom: 0.15rem; }
.timeline-full .tl-time { margin: 0; font-size: 0.85rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; color: #fff; background: var(--day); padding: 0.28rem 0.8rem; box-shadow: 0 4px 10px color-mix(in srgb, var(--day) 35%, transparent); }
.tl-kind { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--day); background: var(--day-soft, #eef3ff); border: 1px solid color-mix(in srgb, var(--day) 30%, #fff); padding: 0.22rem 0.7rem; border-radius: 999px; }
.tl-place { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.tl-place::before { content: "📍 "; }
.timeline-full .tl-card h3 { font-size: 1.2rem; margin: 0.35rem 0 0.25rem; }

/* Expandable event cards: hover/focus/tap reveals animated picture below */
.tl-card.expandable { cursor: pointer; }
.tl-card.expandable:focus { outline: 2px solid var(--accent2); outline-offset: 2px; }
.expand-hint { display: inline-block; margin-top: 0.5rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; transition: color 0.25s ease; }
.expand-hint::after { content: " ⌄"; display: inline-block; transition: transform 0.35s ease; }
.tl-card.expandable:hover .expand-hint, .tl-card.expandable:focus-within .expand-hint, .tl-card.expandable.open .expand-hint { color: var(--day, var(--accent)); }
.tl-card.expandable:hover .expand-hint::after, .tl-card.expandable:focus-within .expand-hint::after, .tl-card.expandable.open .expand-hint::after { transform: rotate(180deg); }
.tl-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.4s ease, margin 0.55s ease; margin-top: 0; }
.tl-more-inner { overflow: hidden; min-height: 0; }
.tl-card.expandable:hover .tl-more, .tl-card.expandable:focus-within .tl-more, .tl-card.expandable.open .tl-more { grid-template-rows: 1fr; opacity: 1; margin-top: 0.8rem; }
.tl-img { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; border-radius: 12px; background: var(--day-soft, #f6f0e2); transform: scale(1.07) translateY(14px); transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.tl-card.expandable:hover .tl-img, .tl-card.expandable:focus-within .tl-img, .tl-card.expandable.open .tl-img { transform: scale(1) translateY(0); }

/* Soft page transitions for scroll-through navigation */
body.page-enter .pagehead { animation: pageIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
body.page-leave-down main#main { animation: pageOutDown 0.42s ease both; }
body.page-leave-up main#main { animation: pageOutUp 0.42s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pageOutDown { to { opacity: 0; transform: translateY(-46px); } }
@keyframes pageOutUp { to { opacity: 0; transform: translateY(46px); } }

/* Cards & grids */
.grid { display: grid; gap: 1rem; margin-top: 1.2rem; }
.loc-grid { grid-template-columns: 1fr; }
.trio, .duo, .vocab-grid, .split { grid-template-columns: 1fr; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); transition: transform 0.22s ease, box-shadow 0.22s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card h2, .card h3 { margin-top: 0; }
.card-imgwrap { position: relative; overflow: hidden; border-radius: 12px; margin: -0.4rem -0.4rem 0.8rem; }
.card-img { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; background: #dbe7ff; transition: transform 0.4s ease; }
.card:hover .card-img { transform: scale(1.04); }
.pill { position: absolute; left: 0.7rem; bottom: 0.7rem; background: rgba(15, 42, 107, 0.88); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; }
.place { color: var(--accent); font-weight: 700; margin: 0.1rem 0 0.4rem; }

/* Map */
.map-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1rem; margin-top: 1.2rem; box-shadow: var(--shadow); }
.map-bg { fill: #f6f0e2; stroke: var(--line); }
.map-river { stroke: #7aa5ff; stroke-width: 10; opacity: 0.5; stroke-linecap: round; }
.map-river-label { fill: #5b6b8c; font-size: 14px; font-style: italic; font-family: sans-serif; }
.route-line { stroke: var(--accent); stroke-width: 5; stroke-dasharray: 14 10; stroke-linecap: round; animation: dash 2.8s linear infinite; }
.map-node { animation: pop 0.6s var(--d, 0s) ease both; }
.node-dot { stroke: #fff; stroke-width: 4; }
.node-dot.n1 { fill: #1d4ed8; } .node-dot.n2 { fill: #f59e0b; } .node-dot.n3 { fill: #7c3aed; } .node-dot.n4 { fill: #16a34a; }
.node-num { fill: #fff; font: 800 16px sans-serif; }
.node-label { fill: var(--fg); font: 800 15px sans-serif; }
.node-sub { fill: var(--muted); font: 12px sans-serif; }
.map-legend { display: grid; gap: 0.3rem; margin: 0.8rem 0 0; padding-left: 1.2rem; color: #334155; }

/* Roster table */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.roster { width: 100%; border-collapse: collapse; min-width: 520px; }
.roster th, .roster td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.roster thead th { background: var(--accent-dark); color: #fff; }
.roster tbody tr { transition: background 0.2s; }
.roster tbody tr:hover { background: #f1f5ff; }

/* Vocab & speakers */
.vocab { position: relative; overflow: hidden; }
.vocab .num { position: absolute; right: 0.8rem; top: 0.4rem; font-size: 2.6rem; font-weight: 800; color: #e8effe; }
.vocab h2 { color: var(--accent-dark); font-size: 1.15rem; margin-bottom: 0.3rem; }
.speaker .who { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #7c2d12; background: var(--accent2-soft); border: 1px solid #f2c14e; padding: 0.25rem 0.7rem; border-radius: 999px; margin: 0 0 0.6rem; }

.center { text-align: center; margin-top: 1.2rem; }
.muted { color: var(--muted); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 1.6rem 1rem; text-align: center; }
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 2rem; }
.site-footer a { color: var(--accent); }

/* Reveal on scroll — ultra soft & staggered */
.reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity 0.95s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.95s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.95s ease; transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; filter: none; }
.timeline-soft .tl-card { border-radius: 18px; padding: 1.1rem 1.3rem; }
.timeline-soft .tl-item { padding-bottom: 1.2rem; }

/* Animations */
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: 0.6; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px #f3e5c8; } 50% { box-shadow: 0 0 0 8px #f3e5c8; } }
@keyframes dash { to { stroke-dashoffset: -96; } }
@keyframes ring { 0% { opacity: 0.8; transform: scale(0.82); } 100% { opacity: 0; transform: scale(1.28); } }

@media (min-width: 640px) {
  .loc-grid { grid-template-columns: 1fr 1fr; }
  .trio { grid-template-columns: repeat(3, 1fr); }
  .duo, .vocab-grid, .split { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3rem 2.2rem; }
}
@media (min-width: 900px) {
  .vocab-grid { grid-template-columns: repeat(4, 1fr); }
  .vocab-grid .card:nth-child(n+5) { grid-column: span 1; }
  .day-block { padding: 1.6rem 1.8rem 1.8rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0.6rem 1rem 1rem; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; animation: rise 0.25s ease both; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .timeline-full .tl-dot { opacity: 1; transform: none; }
}
