/* Uni Passau Companion landing page.
   Palette from Passau's rivers: Donau blue for ink, Inn jade for water and
   quiet accents, and the app's orange for the one thing to press. */
@font-face { font-family: 'AHN'; src: url('/fonts/ahn-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'AHN'; src: url('/fonts/ahn-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'AHN'; src: url('/fonts/ahn-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --paper: #F3F6F4;
  --surface: #FFFFFF;
  --ink: #15324A;
  --ink-2: #3F5869;
  --inn: #2E8C80;
  --inn-deep: #1D6A61;
  --inn-soft: #D3E9E2;
  --signal: #FD8900;
  --signal-deep: #A34F00;
  --line: #D3DDD8;
  --land: #EDF1EE;
  --radius: 14px;
  --wrap: 72rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);
  --step-hero: clamp(3.4rem, 1.6rem + 8.4vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.55 'AHN', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
a { color: var(--inn-deep); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 36em; }
.quiet { color: var(--ink-2); }
.small-print { font-size: var(--step--1); padding-block: 0 2rem; }

/* Buttons: orange is the only thing that asks for a press. */
.button { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0.7rem 1.4rem; border: 0; border-radius: 10px; background: var(--signal); color: var(--ink); font: 700 var(--step-0)/1.2 'AHN', sans-serif; text-decoration: none; cursor: pointer; box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.14); }
.button:hover { background: #FF9A1F; color: var(--ink); }
.button:active { transform: translateY(1px); box-shadow: none; }
.button.small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: var(--step--1); }
.button.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.button.ghost:hover { background: var(--ink); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.textlink { font-weight: 700; color: var(--ink); }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--inn-deep); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; text-align: left; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgb(243 246 244 / 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-bar { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { border-radius: 9px; background: #fff; }
.brand b { font-weight: 800; }
.top nav { display: flex; gap: 1.4rem; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--step--1); }
.top nav a:hover { color: var(--inn-deep); text-decoration: underline; }
.top-actions { display: flex; align-items: center; gap: 0.8rem; }
.lang { font-weight: 800; font-size: var(--step--1); color: var(--ink); text-decoration: none; padding: 0.4rem 0.55rem; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line); }
.lang:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Hero: the question, then the map that answers it. */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: end; padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero h1 { font-size: var(--step-hero); line-height: 0.9; letter-spacing: -0.045em; }
.hero-side { display: grid; gap: 1.25rem; padding-bottom: 0.6rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; }
.status { display: flex; align-items: center; gap: 0.55rem; font-size: var(--step--1); }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--inn); box-shadow: 0 0 0 4px var(--inn-soft); }

.map-band { position: relative; height: clamp(26rem, 46vw, 40rem); border-block: 1px solid var(--line); background: var(--land); overflow: hidden; }
.campus-map { width: 100%; height: 100%; }
.m-land { fill: var(--land); }
.m-green path { fill: #DCEADA; }
.m-pitch path { fill: #CBE1C6; }
.m-water path { fill: #8FC7BC; stroke: #74B6AA; stroke-width: 1.2; }
.m-roads path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.m-paths path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 3 4; }
.m-rail path { fill: none; stroke: #A2ADA8; stroke-width: 2.4; }
.m-buildings path { fill: #D7DED9; stroke: #C5CEC9; stroke-width: 0.7; }
.m-campus path { fill: var(--ink); transition: fill 0.25s; }
.m-campus path.is-hit { fill: var(--signal); }
.m-river { font: 800 italic 46px 'AHN', sans-serif; fill: #fff; opacity: 0.85; letter-spacing: 0.08em; }
.m-label rect { fill: #fff; stroke: var(--ink); stroke-width: 1.4; }
.m-label text { font: 800 11px 'AHN', sans-serif; text-anchor: middle; fill: var(--ink); }
.m-label.is-hit rect { fill: var(--ink); }
.m-label.is-hit text { fill: #fff; }
.m-pin { opacity: 0; transition: opacity 0.2s; }
.m-pin.is-on { opacity: 1; }
.m-pin-halo { fill: rgb(253 137 0 / 0.22); stroke: var(--signal); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.m-pin.is-on .m-pin-halo { animation: ping 1.6s ease-out 2; }
.m-pin-dot { display: none; }
.north { position: absolute; top: 1.25rem; right: max(1.25rem, calc((100% - var(--wrap)) / 2)); width: 2.75rem; height: 2.75rem; }
.north circle { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.north path { fill: var(--ink); }
.north .tail { fill: #A9B8B3; }
@keyframes ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

.finder { position: absolute; top: 1.25rem; left: max(1.25rem, calc((100% - var(--wrap)) / 2)); width: min(25rem, calc(100% - 2.5rem)); background: var(--surface); border-radius: var(--radius); padding: 1rem; box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgb(21 50 74 / 0.45); display: grid; gap: 0.7rem; }
.finder-field { display: flex; align-items: center; gap: 0.6rem; border-radius: 10px; padding: 0 0.85rem; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.finder-field:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.finder-field .i { width: 1.2rem; height: 1.2rem; flex: none; color: var(--ink-2); }
.finder input { width: 100%; min-height: 3rem; border: 0; background: transparent; font: 700 var(--step-0) 'AHN', sans-serif; color: var(--ink); outline: none; }
.finder input::placeholder { color: #6F8290; font-weight: 400; }
.finder-hint { font-size: var(--step--1); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { border: 0; border-radius: 999px; padding: 0.35rem 0.75rem; background: var(--inn-soft); color: var(--ink); font: 700 var(--step--1) 'AHN', sans-serif; cursor: pointer; }
.chip:hover { background: #BFDFD5; }
.finder-result:empty { display: none; }
.result { display: grid; gap: 0.35rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.result-kind { font-size: var(--step--1); color: var(--ink-2); }
.result-title { font-size: var(--step-1); font-weight: 800; line-height: 1.2; }
.result-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: var(--step--1); }
.result-meta .i { width: 1rem; height: 1rem; display: inline-block; vertical-align: -0.15rem; margin-right: 0.25rem; }
.result-app { font-size: var(--step--1); color: var(--inn-deep); font-weight: 700; }
.attribution { position: absolute; right: 0.6rem; bottom: 0.4rem; font-size: 0.72rem; color: var(--ink-2); background: rgb(255 255 255 / 0.75); padding: 0.1rem 0.4rem; border-radius: 4px; }

/* A day on campus: a real sequence, so it reads as a timeline. */
.day { padding-block: clamp(4rem, 9vw, 7.5rem); }
.day .lead { margin-top: 1rem; }
.moments { list-style: none; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; padding: 0; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.moment { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 3rem; align-items: start; position: relative; padding-left: 2.25rem; }
.moment::before { content: ''; position: absolute; left: 0.45rem; top: 0; bottom: calc(-1 * clamp(2.5rem, 5vw, 4rem)); width: 2px; background: var(--inn-soft); }
.moment:first-child::before { top: calc(2rem + var(--step-3) / 2); }
.moment:last-child::before { display: none; }
/* The dot sits beside the time, wherever the text lands in the row. */
.moment-text { position: relative; }
.moment-text::before { content: ''; position: absolute; left: -2.25rem; top: calc(2rem + var(--step-3) / 2 - 0.5rem); width: 1rem; height: 1rem; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--inn); }
.moment-text { display: grid; gap: 0.75rem; max-width: 34rem; padding-top: 2rem; }
.moment-time { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; color: var(--inn-deep); line-height: 1; }
.moment-text p { color: var(--ink-2); }
/* Real iPhone proportions: the capture is never cropped or squeezed. */
.phone { margin: 0; width: 100%; max-width: 15rem; justify-self: center; border-radius: 2.6rem; padding: 0.5rem; background: var(--ink); box-shadow: 0 30px 60px -34px rgb(21 50 74 / 0.75); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: 2.15rem; background: #fff; }

/* Mensa: the one dark band, like a menu board. */
.mensa { background: var(--ink); color: #fff; padding-block: clamp(4rem, 9vw, 7rem); }
.mensa .lead, .mensa .quiet { color: #C9D6DE; }
.mensa-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.mensa-intro { display: grid; gap: 1.1rem; position: sticky; top: 6rem; }
.menu { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); display: grid; gap: 1.1rem; }
.menu-head { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; justify-content: space-between; }
.menu-day { font-weight: 800; font-size: var(--step-1); }
.segs { display: inline-flex; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 3px; }
.seg { border: 0; background: transparent; border-radius: 8px; padding: 0.4rem 0.8rem; font: 700 var(--step--1) 'AHN', sans-serif; color: var(--ink); cursor: pointer; }
.seg[aria-pressed="true"] { background: var(--ink); color: #fff; }
.menu-body { display: grid; gap: 1.2rem; min-height: 12rem; }
.menu-group h3 { font-size: var(--step--1); color: var(--ink-2); font-weight: 700; margin-bottom: 0.35rem; letter-spacing: 0; }
.dish { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1rem; padding-block: 0.6rem; border-top: 1px solid var(--line); }
.dish-name { font-weight: 700; }
.dish-price { font-weight: 800; white-space: nowrap; }
.tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.tag { font-size: 0.78rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--inn-soft); color: var(--inn-deep); }
.menu-note { background: #FFF2E2; border-radius: 10px; padding: 0.7rem 0.9rem; font-size: var(--step--1); color: var(--signal-deep); font-weight: 700; }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: var(--step--1); }

/* Clubs and traits */
.clubs { padding-block: clamp(4rem, 9vw, 7rem); }
.clubs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.clubs-grid > div { display: grid; gap: 1.2rem; }
.points { margin: 0; display: grid; gap: 0; }
.points > div { padding-block: 1.1rem; border-top: 2px solid var(--ink); }
.points dt { font-weight: 800; font-size: var(--step-1); }
.points dd { margin: 0.3rem 0 0; color: var(--ink-2); }
.traits { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.trait-list { margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.trait-list > div { border-left: 3px solid var(--inn); padding-left: 1rem; }
.trait-list dt { font-weight: 800; font-size: var(--step-1); }
.trait-list dd { margin: 0.4rem 0 0; color: var(--ink-2); font-size: var(--step--1); line-height: 1.55; }

/* Sign-up */
.join { background: var(--inn-soft); padding-block: clamp(4rem, 9vw, 7rem); }
.join-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.join-grid > div { display: grid; gap: 1.1rem; }
.signup { background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.3rem; }
.field { display: grid; gap: 0.4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-weight: 800; padding: 0; margin-bottom: 0.2rem; }
.field input[type="email"], .field input[type="text"] { min-height: 3rem; border-radius: 10px; border: 1.5px solid #9DB0AB; padding: 0 0.9rem; font: 400 var(--step-0) 'AHN', sans-serif; color: var(--ink); background: #fff; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.hint { font-size: var(--step--1); color: var(--ink-2); }
.error { font-size: var(--step--1); color: #B3261E; font-weight: 700; }
.options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option span { display: inline-block; padding: 0.5rem 0.95rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #9DB0AB; font-weight: 700; font-size: var(--step--1); }
.option input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.option input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: var(--step--1); color: var(--ink-2); font-weight: 400; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-weight: 700; }
.form-status.ok { color: var(--inn-deep); }
.form-status.bad { color: #B3261E; }

/* FAQ */
.faq { padding-block: clamp(4rem, 9vw, 7rem); }
.faq h2 { margin-bottom: 1.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 800; font-size: var(--step-1); line-height: 1.3; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0.2rem; top: 0.95rem; font-size: 1.6rem; line-height: 1; color: var(--inn-deep); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 1.2rem; color: var(--ink-2); max-width: 40em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-top: 2.5rem; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 1.5rem; }
.foot-grid > div { display: grid; gap: 0.8rem; max-width: 28rem; font-size: var(--step--1); }
.foot nav { display: grid; gap: 0.5rem; font-size: var(--step--1); align-content: start; }

/* Archive note */
.archive-note { padding-block: 1.25rem; font-weight: 700; color: var(--signal-deep); }

/* Legal pages */
.legal { max-width: 46rem; padding-block: 3rem 5rem; }
.legal h1 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.legal h2 { font-size: var(--step-1); margin: 2rem 0 0.6rem; }
.legal p { margin-bottom: 0.8rem; color: var(--ink-2); }

/* Consent bar */
.consent { position: fixed; z-index: 40; left: 1rem; right: 1rem; bottom: 1rem; margin-inline: auto; max-width: 40rem; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; gap: 0.9rem; box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.5); font-size: var(--step--1); }
.consent a { color: #fff; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent .button.ghost { box-shadow: inset 0 0 0 2px #fff; color: #fff; }
.consent .button.ghost:hover { background: #fff; color: var(--ink); }

@media (max-width: 960px) {
  .top nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero-head, .mensa-grid, .clubs-grid, .join-grid { grid-template-columns: 1fr; }
  .mensa-intro { position: static; }
  .trait-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moment { grid-template-columns: minmax(0, 1fr) 12.5rem; gap: 1.75rem; }
  .north { top: auto; bottom: 2rem; }
}
@media (max-width: 640px) {
  .brand span { display: none; }
  .map-band { height: auto; display: flex; flex-direction: column; }
  .campus-map { height: 22rem; }
  .finder { position: static; width: auto; margin: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); order: -1; }
  .attribution { position: static; align-self: flex-end; margin: 0.3rem 0.6rem; }
  .moment { grid-template-columns: 1fr; }
  .phone { max-width: min(15rem, 78%); justify-self: start; }
  .trait-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
