/* Shared styles for all relaunch pages (2026-10): fonts, tokens, header, buttons, accordion,
   contact with form, team, monument, footer. Design tokens (custom properties) live in tokens.css. Page layouts live in home.css / subpage.css,
   the dark theme in theme.css, the phone menu in menu.css. */
/* Geist and Geist Mono are variable fonts: one file each covers every weight. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Colours, fonts, easing and spacing come from tokens.css (tw-design), loaded before this file. */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Layout rules (display: grid/flex) must never win over the hidden attribute. */
[hidden] { display: none !important; }
html { background: var(--paper); overflow-x: clip; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0.32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }
/* Hidden until the intro animates them in; the 4 s failsafe shows them anyway if a script never ran
   (a CSS animation outranks GSAP's inline styles, so it only sets visibility, never opacity). */
.js [data-intro], .js [data-split] { visibility: hidden; animation: intro-failsafe 0s 4s forwards; }
@keyframes intro-failsafe { to { visibility: visible; } }
.skip { position: absolute; left: var(--pad); top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--ink); }
.skip:focus { top: 12px; }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; display: flex; align-items: center; gap: 36px; padding: 0 var(--pad);
  color: var(--night-text); --logo-inner: var(--blue); transition: background .4s var(--ease), color .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(10,16,29,0.82); backdrop-filter: blur(12px); border-bottom-color: rgba(191,224,255,0.14); }
.top.is-paper { background: rgba(242,239,231,0.86); backdrop-filter: blur(12px); color: var(--ink); --logo-inner: var(--deep); border-bottom-color: var(--rule); }
.top > a:first-child { display: block; padding: 9px 0; }
.top .logo { height: 26px; width: auto; display: block; }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 14px; }
.nav .on { box-shadow: inset 0 -1.5px 0 var(--accent); }
/* Language switch DE/EN: small, but with a 44 px tap area. */
.top > .lang { font-size: 12px; letter-spacing: 0.1em; padding: 14px 6px; margin: 0 -6px; opacity: 0.8; transition: opacity .3s; }
.top > .lang:hover, .top > .lang:focus-visible { opacity: 1; }
.roll { position: relative; display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25em; }
.roll span { display: block; transition: transform .45s var(--ease); }
.roll:hover span, .roll:focus-visible span { transform: translateY(-100%); }

/* Signpost button (CTA) */
@property --tip { syntax: "<length>"; inherits: false; initial-value: 16px; }
.sign { --tip: 16px; position: relative; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 calc(var(--tip) + 14px) 0 18px;
  background: var(--accent); color: var(--ink); font: 500 14px var(--sans); border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); transition: --tip .4s var(--ease), padding .4s var(--ease); }
.sign:hover, .sign:focus-visible { --tip: 24px; padding-right: calc(24px + 14px); }
.sign.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; clip-path: none; height: auto; padding: 14px 18px; display: grid; gap: 3px; text-align: left; transition: background .3s, color .3s; }
.sign.ghost:hover { background: rgba(191,224,255,0.1); padding: 14px 18px; }
.sign.ghost .k { font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; gap: 18px; }
.sign.ghost .k i { font-style: normal; color: var(--accent); }

/* Accordion (Belege, Beispiele, FAQ) */
.acc { list-style: none; border-top: 1px solid var(--rule); }
.acc li { border-bottom: 1px solid var(--rule); }
.acc button { width: 100%; display: flex; align-items: baseline; gap: 18px; padding: 20px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font: 500 23px var(--sans); letter-spacing: -0.02em; color: color-mix(in srgb, var(--ink) 50%, transparent); transition: color .3s; }
.acc li.on button, .acc button:hover { color: var(--ink); }
.acc button .mono { width: 28px; flex: none; color: var(--deep); }
.js .acc .body { height: 0; overflow: hidden; } /* without JS every entry stays open */
.acc .body p { padding: 0 0 22px 46px; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 52ch; }
.acc .body a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--deep); }

/* Disclosure (guarantee details, reference FAQ): native <details>, works without JS */
.details { margin-top: 26px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.details summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-family: var(--mono); }
.details[open] summary::after { content: "–"; }
.details ul { padding: 0 0 18px 18px; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.details ol { margin: 4px 0 20px; }
.details p { padding: 0 0 18px; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 60ch; }

/* Case cards (home Belege + /referenzen, generated): night card with the customer's terrain, result and name */
.fallkarten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fallkarte { display: grid; align-content: start; gap: 8px; padding-bottom: 26px; border-radius: 18px; overflow: hidden; background: var(--night); color: var(--night-text);
  border: 1px solid rgba(191,224,255,0.12); transition: transform .5s var(--ease), border-color .5s var(--ease); }
.fallkarte:hover, .fallkarte:focus-visible { transform: translateY(-6px); border-color: rgba(191,224,255,0.4); }
.fallkarte > :not(.fallkarte-map) { margin: 0 24px; }
.fallkarte-map { width: 100%; aspect-ratio: 400 / 230; display: block; margin-bottom: 8px; }
.fallkarte .mono { color: var(--blue); }
.fallkarte-val { font-weight: 500; font-size: clamp(40px, 4vw, 60px); line-height: 1; letter-spacing: -0.045em; }
.fallkarte-lbl { min-height: 2.8em; font-size: 15px; line-height: 1.4; color: var(--night-muted); }
.fallkarte b { margin-top: 10px; font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.fallkarte-more { font-size: 14px; color: var(--pale); }
.belege-mehr { margin-top: 26px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.belege-mehr b { color: var(--ink); font-weight: 500; }
.belege-mehr a { display: inline-block; margin-left: 10px; padding: 10px 0; color: var(--deep); font-weight: 500; }
@media (max-width: 900px) { .fallkarten { grid-template-columns: 1fr; } }

/* Contact: copy + form left, team right */
.contact { background: var(--night); color: var(--night-text); padding: 18vh var(--pad); display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.contact .mono { color: var(--blue); }
.contact h2 { margin: 12px 0 28px; font-weight: 500; font-size: clamp(34px, 4vw, 62px); letter-spacing: -0.035em; line-height: 1.02; max-width: 15ch; }
.contact-alt { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--night-muted); font-size: 15px; }
.contact-alt a { padding: 12px 0; margin: -12px 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(191,224,255,0.35); }
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 6px; font: 400 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-muted); }
.form input, .form textarea { width: 100%; padding: 13px 14px; background: rgba(191,224,255,0.06); border: 1px solid rgba(191,224,255,0.22); border-radius: 0;
  color: var(--night-text); font: 400 16px var(--sans); letter-spacing: 0; text-transform: none; outline: none; transition: border-color .3s, background .3s; }
.form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.form input:focus, .form textarea:focus { border-color: var(--accent); background: rgba(191,224,255,0.1); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .send { justify-self: start; margin-top: 6px; height: 48px; font-size: 15px; }
.form .send:disabled { opacity: 0.6; cursor: wait; }
.form-status { min-height: 1.4em; font-size: 14px; color: var(--night-muted); }
.form-status.err { color: #FFB4A8; }
.form-done { padding: 28px 0; display: grid; gap: 10px; }
.form-done h3 { font-weight: 500; font-size: 26px; letter-spacing: -0.02em; }
.form-done p { color: var(--night-muted); max-width: 40ch; line-height: 1.5; }
.form-done button { justify-self: start; margin-top: 8px; padding: 12px 0; background: none; border: 0; color: var(--pale); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.person .ph { position: relative; aspect-ratio: 4 / 5; background: #0d1527; overflow: hidden; outline: none; }
.person canvas, .person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person img { opacity: 0; transition: opacity .6s var(--ease); }
.person .ph:hover img, .person .ph:focus-visible img { opacity: 1; }
.person figcaption, .person figcaption a { margin-top: 12px; display: grid; gap: 4px; }
.person figcaption a { margin-top: 0; }
.person figcaption a:hover b { text-decoration: underline; }
.person b { font-weight: 500; }
.person figcaption .mono { color: var(--night-muted); font-size: 11px; }

/* Mountain monument above the footer */
.monument { background: transparent; padding: 6vh var(--pad) 0; border-top: 1px solid var(--rule); }
.monument svg { display: block; width: min(100%, 1100px); height: auto; margin: 0 auto; }

/* Footer */
.foot { background: var(--night); color: var(--night-text); padding: 48px var(--pad) 28px; border-top: 1px solid rgba(191,224,255,0.12); }
.wordmark { width: 100%; height: auto; display: block; overflow: visible; }
.foot-row { display: flex; gap: 24px; flex-wrap: wrap; color: var(--night-muted); margin-top: 22px; font-size: 12px; }
.foot-row > span, .foot-row address { margin-right: auto; font-style: normal; }
.foot-row + .foot-row { margin-top: 14px; }
@media (max-width: 600px) { .foot-row { gap: 12px 22px; } .foot-row > span, .foot-row address { flex-basis: 100%; } }
.foot-row a { display: inline-block; padding: 14px 6px; margin: -14px -6px; }

@media (max-width: 900px) {
  .js .nav { display: none; } /* the menu button replaces it; without JS the links stay in the header */
  .top .sign { margin-left: auto; }
  .top > .lang { margin-left: auto; }
  .top > .lang ~ .theme-toggle, .top > .lang + .sign { margin-left: 0; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
}
@media (prefers-reduced-motion: reduce) {
  .sign, .roll span { transition: none; }
}
