/* brawone.ch – Seitenstile (ausgelagert aus index.php, damit der Browser sie zwischenspeichert) */
  /* Schriften liegen auf dem eigenen Server: keine Verbindung zu Google (Datenschutz) */
  @font-face {
    font-family: "Inter";
    src: url("fonts/Inter-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "JetBrains Mono";
    src: url("fonts/JetBrainsMono-latin.woff2") format("woff2");
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
  }

  /* Layout: einspaltig, dunkel, Kapitel 01–04 mit Haarlinien getrennt, ein Akzent in Gold */
  :root {
    --bg: #0b0b0a;
    --surface: #131312;
    --line: #262522;
    --fg: #f1efea;
    --muted: #a9a59c;
    --faint: #8a867d;
    --gold: #f2a900;
    --ring: #22211d;
    --ring-gold: rgba(242, 169, 0, 0.14);
    --gold-hover: #ffc53d;
    --on-gold: #0b0b0a;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --wrap: 1200px;
    color-scheme: dark;

    /* Logo-Farben aus brawone-logo.css auf dunkel stellen */
    --bw-ink: var(--fg);
    --bw-icon-bg: var(--fg);
    --bw-icon-fg: var(--bg);
    --bw-gold: var(--gold);
  }

  html { scroll-behavior: smooth; scroll-padding-top: 88px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  body::before {
    content: ""; position: fixed; inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg);
  }
  /* Feine Petrol-Linie am oberen und unteren Seitenrand (wie bei tomstown.ch) */
  html::before, html::after {
    content: ""; position: fixed; left: 0; right: 0; height: 2px; z-index: 100;
    background: #0f4c55; pointer-events: none;
  }
  html::before { top: env(safe-area-inset-top, 0px); }
  html::after { bottom: env(safe-area-inset-bottom, 0px); }

  a { color: var(--gold); }
  a:hover { color: var(--gold-hover); }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

  .wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
  @media (max-width: 480px) {
    .wrap {
      padding-left: max(16px, env(safe-area-inset-left, 0px));
      padding-right: max(16px, env(safe-area-inset-right, 0px));
    }
  }

  .mono { font-family: var(--font-mono); }
  .num { font-family: var(--font-mono); font-size: 14px; color: var(--gold); font-variant-numeric: tabular-nums; }

  /* ---------- Kopfzeile ---------- */
  .site-header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  /* Kopfzeile: links Logo, Mitte Ort • Uhrzeit, rechts Navigation */
  .site-header .wrap {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "logo where nav";
    align-items: center; gap: 12px 32px; padding-block: 16px;
  }
  .site-header .bw-logo { grid-area: logo; justify-self: start; }
  .site-header .wetter-wrap { grid-area: where; justify-self: start; position: relative; display: flex; justify-content: center; min-width: 0; }
  .site-header #where { white-space: nowrap; }
  .site-header .nav { grid-area: nav; justify-self: end; }
  @media (max-width: 900px) {
    .site-header .wrap { grid-template-columns: 1fr auto; grid-template-areas: "logo where" "nav nav"; }
    .site-header .wetter-wrap { justify-self: end; }
    .site-header .nav { justify-self: start; }
  }
  .site-header .bw-logo { font-size: 22px; text-decoration: none; }
  .nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--font-mono); font-size: 14px; }
  .nav a { color: var(--muted); text-decoration: none; display: inline-flex; gap: 8px; padding-block: 6px; }
  .nav a:hover { color: var(--fg); }
  .nav a span { color: var(--gold); }

  /* ---------- Einstieg ---------- */
  .hero .wrap { display: flex; flex-direction: column; gap: 44px; padding-block: 112px 88px; }
  .eyebrow { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
  .hero h1 { margin: 0; font-size: clamp(52px, 11.5vw, 172px); }
  .lead { margin: 0; max-width: 34ch; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; text-wrap: balance; }
  .lead strong { font-weight: 800; }
  .actions { display: flex; flex-wrap: wrap; gap: 14px; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px;
    border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
  }
  .btn-gold { background: var(--gold); color: var(--on-gold); border: 0; }
  .btn-gold:hover { background: var(--gold-hover); color: var(--on-gold); }
  .btn-line { border: 1px solid var(--line); color: var(--fg); background: transparent; }
  .btn-line:hover { border-color: var(--faint); color: var(--fg); }


  /* ---------- Kapitel ---------- */
  .chapter { border-top: 1px solid var(--line); }
  .chapter > .wrap { display: flex; flex-direction: column; gap: 48px; padding-block: 104px; }
  .chapter-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; }
  /* Ring mit Goldpunkt vor jeder Kapitelnummer: das Logo-Motiv im Kleinen */
  .chapter-head .num { display: inline-flex; align-items: center; gap: 10px; }
  /* Nur der Ring, ohne Nummer: mittig zur Überschrift */
  .chapter-head .num:empty { align-self: flex-start; gap: 0; margin-top: calc(clamp(36px, 5.2vw, 66px) * 0.52 - 6px); }
  .chapter-head:has(.num:empty) { flex-wrap: nowrap; }
  .chapter-head h2 { min-width: 0; }
  @media (max-width: 600px) { .chapter-head { column-gap: 14px; } }
  .chapter-head .num::before {
    content: ""; width: 15px; height: 15px; box-sizing: border-box; border-radius: 50%;
    border: 3px solid var(--fg);
    background: radial-gradient(circle closest-side, var(--gold) 46%, transparent 52%);
  }
  .chapter h2 { margin: 0; font-size: clamp(36px, 5.2vw, 66px); line-height: 1.04; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
  .chapter h2 strong { font-weight: 800; }
  .muted { color: var(--muted); }


  /* 01 Angebot */
  .offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .offer { background: var(--bg); padding: 36px 32px 40px; display: flex; flex-direction: column; gap: 14px; }
  .offer svg { width: 34px; height: 34px; stroke: var(--gold); }
  .offer h3 { margin: 0; font-size: 22px; font-weight: 800; }
  .offer p { margin: 0; color: var(--muted); }

  /* 02 Kreativität */
  .projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 32px; }
  .project { display: flex; flex-direction: column; gap: 16px; color: var(--fg); text-decoration: none; }
  .project:hover { color: var(--fg); }
  .shot {
    aspect-ratio: 4 / 3; max-width: 100%; border-radius: 14px; overflow: hidden;
    background: repeating-linear-gradient(135deg, var(--surface) 0 14px, #181816 14px 28px);
    display: grid; place-items: center; color: var(--faint); font-family: var(--font-mono); font-size: 13px;
    border: 1px solid var(--line); transition: border-color .2s;
    position: relative;
  }
  /* Goldpunkt erscheint beim Darüberfahren */
  .shot::after {
    content: ""; position: absolute; top: 18px; right: 18px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--gold);
    transform: scale(0); transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1); }
  .project:hover .shot img { transform: scale(1.03); }
  @media (prefers-reduced-motion: reduce) { .shot img { transition: none; } }
  .project:hover .shot { border-color: var(--faint); }
  .project:hover .shot::after, .project:focus-visible .shot::after { transform: scale(1); }
  @media (prefers-reduced-motion: reduce) { .shot::after { transition: none; } }
  /* Vorher/Nachher bei Kundenprojekten: das alte Bild liegt oben und ist bis --vn sichtbar.
     Maus: folgt dem Zeiger (JS). Touch: schiebt sich langsam hin und her. */
  .vn { --vn: 50%; }
  .vn .vn-vorher { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--vn)) 0 0); z-index: 1; }
  .vn .vn-linie { position: absolute; top: 0; bottom: 0; left: var(--vn); width: 2px; margin-left: -1px; background: var(--gold); z-index: 2; pointer-events: none; }
  .vn .vn-l { position: absolute; bottom: 10px; z-index: 3; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; background: rgba(11, 11, 10, .72); color: var(--fg); pointer-events: none; }
  .vn .vn-l-v { left: 10px; }
  .vn .vn-l-n { right: 10px; }
  .project:hover .vn img { transform: none; }
  @property --vn { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
  @media (hover: none) { .vn { animation: vn-wipp 7s ease-in-out infinite alternate; } }
  @keyframes vn-wipp { from { --vn: 18%; } to { --vn: 82%; } }
  @media (prefers-reduced-motion: reduce) { .vn { animation: none; } }

  /* Kundenstimme */
  .project-stimme { margin: 18px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--gold); }
  .project-stimme p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--fg); font-style: italic; }
  .project-stimme footer { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--faint); }

  /* «Gerade auf dem Tisch» im Startbereich */
  .jetzt { margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16px; color: var(--muted); }
  .jetzt-l { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
  .jetzt-l::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: jetzt-puls 2.4s ease-in-out infinite; }
  @keyframes jetzt-puls { 50% { opacity: .35; } }
  @media (prefers-reduced-motion: reduce) { .jetzt-l::before { animation: none; } }
  .project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .project-meta strong { font-size: 20px; }
  .project-meta span { color: var(--faint); font-size: 15px; }
  .project-meta .pdot { font-style: normal; color: var(--gold); font-weight: 400; }
  .project-meta { flex-wrap: wrap; }
  /* Unterkapitel Kundenprojekte: eigene Zeile, Karten gleich breit wie oben. */
  /* Einleitungssatz unter einer Kapitelueberschrift (Referenzen, Spielereien, Verkauf) */
  .chapter-lead { margin: -28px 0 0; font-size: 18px; }
  .sub-head { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); margin-bottom: 28px; }
  .sub-head h3 { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 400; }
  .sub-head h3 strong { font-weight: 800; }
  .sub-head p { margin: 8px 0 0; }
  .projects--kunden { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  /* Spielereien: vier Spalten, kleiner; Tablet zwei, Handy zwei kleine */
  .projects--spiel { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
  .projects--spiel .project-meta { flex-direction: column; align-items: flex-start; gap: 3px; }
  .projects--spiel .project-meta strong { font-size: 17px; }
  .projects--spiel .project-meta span { font-size: 13px; }
  @media (max-width: 900px) { .projects--spiel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 420px) { .projects--spiel { gap: 24px 14px; } .projects--spiel .project-meta strong { font-size: 15px; } }
  /* Kunstverkauf: einspaltig, bis zu drei Bilder nebeneinander, alle
   * fuehren auf dieselbe Seite. Name und Angaben darunter. */
  .projects--verkauf { grid-template-columns: minmax(0, 1fr); }
  .shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  @media (max-width: 640px) { .shots { gap: 10px; } .shots .shot { border-radius: 10px; } .shots .shot::after { top: 10px; right: 10px; width: 10px; height: 10px; } }
  .projects--verkauf .project-meta { justify-content: flex-start; gap: 6px 18px; }
  @media (min-width: 900px) {
    .projects--verkauf .project-meta strong { font-size: 26px; }
    .projects--verkauf .project-art li { font-size: 17px; }
  }

  /* 03 Über: Abschnitt in Petrol für Rhythmus.
     Text Warmweiss (8,4:1), Nebentext Petrol-Grau (6,5:1), Goldpunkte bleiben Gold (4,8:1). */
  .chapter.accent {
    --bg: #0f4c55; --surface: #0c4048; --line: #1b6670;
    --fg: #f1efea; --muted: #c4d8d8; --faint: #a9c6c7;
    background: var(--bg); color: var(--fg); color-scheme: dark; border-top-color: var(--bg);
  }
  .chapter.accent .num { color: var(--gold); }
  .chapter.accent + .chapter { border-top-color: var(--bg); }

  /* Kunstverkauf: dunkel wie der Rest (Gold sparsam), Gold nur als Akzent:
     im fetten Teil der Ueberschrift und als feiner Rahmen beim Darueberfahren. */
  .chapter.verkauf .chapter-head h2 strong { color: var(--gold); }
  .chapter.verkauf .project:hover .shot, .chapter.verkauf .project:focus-visible .shot { border-color: var(--gold); }
  .about { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
  .about-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
  .about-text p { margin: 0; max-width: 60ch; }
  .about-text .big { font-size: 21px; }
  .ring-art { flex: 1 1 240px; display: flex; justify-content: center; }
  .ring-art div {
    width: min(280px, 70vw); aspect-ratio: 1; max-width: 100%; box-sizing: border-box; border-radius: 50%;
    border: calc(min(280px, 70vw) * 0.157) solid var(--fg);
    background: radial-gradient(circle closest-side, var(--gold) 44%, transparent 45.5%);
  }

  /* 04 Kontakt */
  .contact { display: flex; flex-wrap: wrap; gap: 56px; }
  .contact-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
  .contact-info p { margin: 0; }
  .contact-lines { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 15px; }
  .contact-lines .addr { color: var(--fg); user-select: all; }
  .contact-lines .tel { color: var(--fg); }
  .contact-lines .sep { color: var(--faint); margin: 0 6px; }
  .contact-lines .wa { color: var(--muted); text-decoration: none; }
  .contact-lines .wa:hover, .contact-lines .tel:hover { color: var(--gold); }
  /* Kleines Comic-Bild unter den Kontaktangaben, leicht schraeg wie ein
     hingelegtes Foto. Stil wie die Projektbilder. */
  .contact-shot { margin: 18px 0 0 6px; width: 100%; max-width: 230px; border-radius: 10px;
    transform: rotate(-2.5deg);
    box-shadow: 0 18px 40px -22px rgba(0,0,0,.85);
    transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1), border-color .2s; }
  .contact-shot img { opacity: .72; filter: saturate(.75); transition: opacity .35s ease, filter .35s ease, transform .5s cubic-bezier(0.22, 1, 0.36, 1); }
  .contact-shot::after { top: 10px; right: 10px; width: 10px; height: 10px; }
  .contact-shot:hover { border-color: var(--faint); transform: rotate(0deg) scale(1.03); }
  .contact-shot:hover::after { transform: scale(1); }
  .contact-shot:hover img { opacity: 1; filter: none; }
  @media (prefers-reduced-motion: reduce) { .contact-shot, .contact-shot img { transition: none; } }
  form { flex: 2 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  @media (max-width: 560px) { form { grid-template-columns: minmax(0, 1fr); } }
  /* Name, E-Mail und Telefon in einer Zeile, sobald genug Platz ist; dazwischen Name ueber die volle Breite */
  @media (min-width: 900px) { form { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 899px) { .field.f-name { grid-column: 1 / -1; } }
  .field { display: flex; flex-direction: column; gap: 8px; }
  .field.full, .form-end { grid-column: 1 / -1; }
  label { font-size: 14px; color: var(--muted); }
  input, select, textarea {
    font: inherit; color: var(--fg); background: var(--surface);
    border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; min-height: 52px; box-sizing: border-box; width: 100%;
  }
  textarea { padding-block: 14px; min-height: 150px; resize: vertical; }
  /* Betreff als Pills: echte Radios, eine Zeile, gleich breit wie die Felder. */
  .field-label { font-size: 14px; color: var(--muted); }
  .field .frei { font-size: 12px; color: var(--faint); margin-left: 6px; font-weight: 400; }
  .pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pill { flex: 1 1 auto; display: flex; position: relative; }
  .pill input { position: absolute; inset: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; opacity: 0; pointer-events: none; }
  .pill span {
    flex: 1; text-align: center; white-space: nowrap; cursor: pointer;
    font-size: 15px; color: var(--muted); padding: 12px 18px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    transition: color .2s, border-color .2s, background .2s;
  }
  .pill:hover span { color: var(--fg); border-color: var(--gold); }
  .pill input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
  .pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
  input:hover, select:hover, textarea:hover { border-color: #3a3833; }
  .form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
  .form-note { margin: 0; font-size: 15px; color: var(--muted); }
  /* Rueckmeldung nach dem Senden: Erfolg in Petrol-Tuerkis, Fehler in Gold-Orange (Signaturfarben). */
  .form-note.ok, .form-note.err {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 12px; line-height: 1.45;
  }
  .form-note.ok { color: #f1efea; background: #0f4c55; border: 1px solid #1b6670; }
  .form-note.err { color: var(--gold); background: rgba(242, 169, 0, 0.1); border: 1px solid rgba(242, 169, 0, 0.55); }
  .form-note.ok::before, .form-note.err::before {
    flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    font: 700 13px/1 var(--font-sans); color: #0b0b0a;
  }
  .form-note.ok::before { content: "✓"; background: #7fd0c8; }
  .form-note.err::before { content: "!"; background: var(--gold); }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .ts-slot:empty { display: none; }
  .ts-slot { min-height: 65px; }
  form button[disabled] { opacity: .6; cursor: progress; }

  /* ---------- Fusszeile ---------- */
  .site-footer { border-top: 1px solid var(--line); }
  .site-footer .wrap { padding-block: 40px; font-size: 14px; color: var(--faint); }
  /* Fusszeile in drei Spalten: links © Jahr + BRAWONE, Mitte Impressum & Datenschutz, rechts feat. TOMS • TOWN (Handy: untereinander) */
  .foot-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 24px; }
  .foot-grid > :first-child { justify-self: start; display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .foot-grid > :nth-child(2) { justify-self: center; }
  .foot-grid > :last-child { justify-self: end; }
  @media (max-width: 640px) {
    .foot-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .foot-grid > * { justify-self: center !important; }
    .foot-grid > :first-child { justify-content: center; }
  }

  .site-footer .bw-logo { font-size: 16px; }
  /* Mitte der Fusszeile: © • Impressum & Datenschutz */
  .foot-mid { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
  .foot-mid .sep { color: var(--gold); }

  .site-footer a { color: var(--muted); }
  .site-footer a:hover { color: var(--fg); }
  /* Toms Town als eigenes Projekt im Footer, Mitte neben Impressum (tomstown-mark): Mond in Ruhe grau, beim Darüberfahren in Gold */
  .foot-projekt { display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; }
  .foot-projekt-label { color: var(--muted); }
  /* Schmal: Projekt auf eigener Zeile, der Trennpunkt faellt weg */
  .foot-grid > .foot-links { gap: .6em; }
  .foot-links .foot-copy { color: var(--faint); }
  /* Der «Nach oben»-Knopf sitzt unten rechts: am Seitenende Platz lassen, damit er die rechte Spalte nicht verdeckt */
  .site-footer .wrap { padding-bottom: 92px; }
  .site-footer .tt-mark { --ttm-ink: var(--muted); --ttm-ink-hover: var(--fg); --ttm-mond-rest: #5a5852; --ttm-accent: var(--gold); --ttm-bg: var(--bg); font-size: 16px; } /* gleich gross wie BRAWONE links */

  /* ---------- 3 · Ringe im Hintergrund ---------- */
  .rings { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
  .rings span {
    position: absolute; border-radius: 50%; border-style: solid; border-color: var(--ring); box-sizing: border-box;
    animation: drift 28s ease-in-out infinite alternate;
  }
  .rings span:nth-child(1) { width: 70vmax; height: 70vmax; border-width: 9vmax; left: -28vmax; top: -30vmax; }
  .rings span:nth-child(2) { width: 46vmax; height: 46vmax; border-width: 6vmax; right: -20vmax; bottom: -22vmax; animation-duration: 34s; animation-direction: alternate-reverse; }
  .rings span:nth-child(3) { width: 18vmax; height: 18vmax; border-width: 2.4vmax; right: 12vw; top: 8vh; animation-name: float; animation-duration: 18s; border-color: var(--ring-gold); }
  @keyframes drift {
    from { transform: translate(0, 0) rotate(0deg); }
    to   { transform: translate(12vmax, 8vmax) rotate(40deg); }
  }
  @keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-8vw, 14vh) scale(1.15); }
    100% { transform: translate(-18vw, 4vh) scale(0.9); }
  }

  /* Inhalt liegt über den Ringen */
  .site-header { z-index: 20; }
  main, .site-footer { position: relative; z-index: 1; }

  /* ---------- 1 · Der Goldpunkt folgt der Maus ----------
     Der Punkt wird mit fester Grösse gezeichnet und um --dx/--dy verschoben. */
  h1.eye.bw-animate.bw-logo--caps .bw-o {
    background: radial-gradient(circle calc(0.12em * var(--bw-k)) at calc(50% + var(--dx, 0px)) calc(50% + var(--dy, 0px)),
      var(--bw-gold) 92%, transparent 100%);
  }


  @media (prefers-reduced-motion: reduce) {
    .rings span, .status::before { animation: none; }
  }


  /* ---------- Impressum & Datenschutz (aufklappbar unter der Fusszeile) ---------- */
  .legal-toggle {
    font: inherit; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px;
  }
  .legal-toggle:hover { color: var(--fg); }
  .legal-toggle .chev { display: inline-block; transition: transform .25s; text-decoration: none; }
  .legal-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .legal {
    position: relative; z-index: 1;
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(0.22, 1, 0.36, 1);
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .legal.open { grid-template-rows: 1fr; }
  .legal > div { overflow: hidden; }
  .legal:not(.open) { border-top-color: transparent; }
  .legal .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 64px; padding-block: 56px 64px; }
  .legal section { min-width: 0; scroll-margin-top: 96px; }
  @media (max-width: 600px) { html { scroll-padding-top: 140px; } .legal section { scroll-margin-top: 140px; } }
  .legal h2 { margin: 0 0 18px; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
  .legal h3 { margin: 26px 0 6px; font-size: 16px; font-weight: 700; }
  .legal p, .legal li { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
  .legal ul { margin: 0 0 10px; padding-left: 20px; }
  .legal address { font-style: normal; color: var(--fg); font-size: 15px; line-height: 1.6; }
  .legal .stand { margin-top: 26px; font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
  @media (prefers-reduced-motion: reduce) { .legal, .legal-toggle .chev { transition: none; } }


  /* ---------- Variante 2 + 3: schlankes Menü, wandernder Goldpunkt, Kontakt-Button ---------- */
  .nav2 { position: relative; align-items: center; flex-wrap: nowrap; white-space: nowrap; gap: 6px 26px; font-family: var(--font-mono); font-size: 14px; }
  .nav2 a { color: var(--muted); padding-block: 8px; transition: color .2s; }
  .nav2 a:hover, .nav2 a[aria-current="true"] { color: var(--fg); }
  .nav2 .nav-cta {
    display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; margin-left: 4px;
    border-radius: 999px; background: var(--gold); color: var(--bg); font-weight: 500;
    transition: background-color .15s, box-shadow .25s;
  }
  .nav2 .nav-cta:hover { background: var(--gold-hover); color: var(--bg); }
  /* Vollbild-Menue: Unterpunkte unter «Entstanden aus Freude» */
  .menu-unter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: -6px 0 0; padding: 0 4px clamp(14px, 2.2vw, 22px) calc(15px + clamp(16px, 3vw, 40px) + 4px); font-family: var(--font-mono); font-size: clamp(14px, 1.6vw, 17px); }
  .menu-unter i { font-style: normal; color: var(--gold); }
  .menu-list .menu-unter a { display: inline; padding: 4px 0; color: var(--muted); }
  .menu-list .menu-unter a:hover, .menu-list .menu-unter a:focus-visible { color: var(--gold); }
  .nav2 .nav-cta[aria-current="true"] { color: var(--bg); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
  .nav-dot {
    position: absolute; left: 0; bottom: -4px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
    opacity: 0; transform: translateX(var(--dot-x, 0px)) scale(.4);
    transition: transform .45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .25s;
    pointer-events: none;
  }
  .nav-dot.on { opacity: 1; transform: translateX(var(--dot-x, 0px)) scale(1); }
  @media (max-width: 900px) { .nav2 { gap: 4px 22px; } }
  @media (prefers-reduced-motion: reduce) { .nav-dot { transition: opacity .2s; } }

  /* ---------- Tablet und Handy: Ring-Button + Vollbild-Menü ---------- */
  .menu-ring {
    position: relative; z-index: 60; width: 44px; height: 44px; border-radius: 50%;
    border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center;
  }
  .mr-ring {
    width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%; border: 4px solid var(--fg);
    background: radial-gradient(circle closest-side, var(--gold) 46%, transparent 52%);
    transition: transform .45s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .2s;
  }
  .menu-ring:hover .mr-ring { transform: scale(1.12); }
  .menu-ring::before, .menu-ring::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 3px; border-radius: 2px;
    background: var(--gold); transform: translate(-50%, -50%) rotate(45deg) scaleX(0); transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1) .05s;
  }
  .menu-ring::after { transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); }
  .menu-open .mr-ring, .menu-open .menu-ring:hover .mr-ring { transform: scale(0) rotate(90deg); }
  .menu-open .menu-ring::before { transform: translate(-50%, -50%) rotate(45deg) scaleX(1); }
  .menu-open .menu-ring::after { transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }

  .menu {
    position: fixed; inset: 0; z-index: 55; background: var(--bg);
    clip-path: circle(0px at var(--mx, 95%) var(--my, 40px));
    transition: clip-path .6s cubic-bezier(0.65, 0, 0.35, 1);
    display: flex; overflow-y: auto;
  }
  .menu[hidden] { display: none; }
  .menu.is-open { clip-path: circle(150vmax at var(--mx, 95%) var(--my, 40px)); }
  .menu-inner {
    margin: auto; width: 100%; max-width: 1200px; box-sizing: border-box;
    padding: calc(110px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(48px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
    display: flex; flex-direction: column; gap: 56px;
  }
  .menu-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .menu-list li { border-bottom: 1px solid var(--line); }
  .menu-list a {
    display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: clamp(14px, 2.2vw, 26px) 4px;
    color: var(--fg); text-decoration: none;
  }
  .m-label strong { font-weight: 800; }
  /* Ring mit Goldpunkt wie vor den Kapitelüberschriften */
  .m-ring {
    flex: none; align-self: center; width: 15px; height: 15px; box-sizing: border-box; border-radius: 50%;
    border: 3px solid var(--fg);
    background: radial-gradient(circle closest-side, var(--gold) 46%, transparent 52%);
  }
  .m-label {
    font-size: clamp(30px, 7.4vw, 80px); line-height: 1.08; font-weight: 400; letter-spacing: -0.02em; min-width: 0;
    transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), color .2s;
  }
  .menu-list a:hover .m-label, .menu-list a:focus-visible .m-label { transform: translateX(14px); color: var(--gold); }
  /* Einträge gleiten nacheinander herein */
  .menu-list li { opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .5s cubic-bezier(0.22, 1, 0.36, 1); }
  .menu.is-open .menu-list li { opacity: 1; transform: none; }
  .menu.is-open .menu-list li:nth-child(1) { transition-delay: .18s; }
  .menu.is-open .menu-list li:nth-child(2) { transition-delay: .24s; }
  .menu.is-open .menu-list li:nth-child(3) { transition-delay: .30s; }
  .menu.is-open .menu-list li:nth-child(4) { transition-delay: .36s; }
  .menu.is-open .menu-list li:nth-child(5) { transition-delay: .42s; }
  .menu.is-open .menu-list li:nth-child(6) { transition-delay: .48s; }
  .menu.is-open .menu-list li:nth-child(7) { transition-delay: .54s; }
  .menu-foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
    font-family: var(--font-mono); font-size: 15px;
  }
  .menu-foot a { color: var(--fg); }
  .menu-foot .tick { color: var(--gold); margin: 0 .35em; animation: tick 2s steps(1, end) infinite; }
  html.menu-locked { overflow: hidden; }
  .menu-open .site-header { z-index: 70; border-bottom-color: transparent; }
  @media (prefers-reduced-motion: reduce) {
    .menu { transition: opacity .2s; clip-path: none; opacity: 0; }
    .menu.is-open { opacity: 1; clip-path: none; }
    .menu-list li { transition: none; opacity: 1; transform: none; }
    .mr-ring, .menu-ring::before, .menu-ring::after, .m-label { transition: none; }
  }

  /* Umschaltung: ab 1000 px schlankes Menü, darunter Ring + Vollbild-Menü */
  .menu-ring { display: none; }
  @media (max-width: 999px) {
    .site-header .wrap { grid-template-columns: auto 1fr auto; grid-template-areas: "logo where btn"; }
    .site-header .wetter-wrap { justify-self: center; }
    .nav2 { display: none !important; }
    .menu-ring { display: grid; grid-area: btn; justify-self: end; }
  }

  /* Tempo der Logo-Animation (1 = normal, höher = langsamer) */
  /* Ort • Uhrzeit: der Punkt in Gold, 1 s sichtbar, 1 s weg */
  #where .tick { color: var(--gold); display: inline-block; margin: 0 .35em; animation: tick 2s steps(1, end) infinite; }
  @keyframes tick { 0% { opacity: 1; } 50% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { #where .tick { animation: none; } }
  /* Offenes Menue zeigt Ort und Zeit unten, darum im Header ausblenden */
  .site-header #where { transition: opacity .25s ease, visibility .25s; }
  .menu-open .site-header #where { opacity: 0; visibility: hidden; }
  @media (prefers-reduced-motion: reduce) { .site-header #where { transition: none; } }
  .bw-animate { --bw-speed: 1.5; }
  /* ---------- Nach oben: Logo-Ring füllt sich mit dem Scroll-Fortschritt ---------- */
  .to-top {
    position: fixed; z-index: 40; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    background: none; cursor: pointer; color: var(--fg);
    opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
    transition: opacity .3s, visibility .3s, transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
  }
  .to-top.show { opacity: 1; visibility: visible; transform: none; }
  .to-top svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .to-top .tt-bg { fill: transparent; }
  .to-top .tt-track { fill: none; stroke: var(--line); stroke-width: 6; }
  .to-top .tt-ring { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: butt; transform: rotate(-90deg); transform-origin: 26px 26px; }
  .to-top .tt-dot { fill: var(--gold); transform-origin: 26px 26px; transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), fill .2s; }
  .to-top:hover .tt-dot, .to-top:focus-visible .tt-dot { transform: scale(1.25); fill: var(--gold-hover); }
  .to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  .menu-open .to-top { opacity: 0; visibility: hidden; }
  /* Nach oben URL links unten */
  .to-top-url {
    position: fixed;
    z-index: 40;
    left: max(14px, env(safe-area-inset-left, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    padding: 9px 14px 9px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .4s ease, visibility .4s ease, transform .4s ease, color .2s, border-color .2s, background .2s;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .to-top-url-arrow {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    transition: transform .25s cubic-bezier(0.25, 0.8, 0.25, 1), color .2s;
  }
  .to-top-url.show { opacity: .8; visibility: visible; transform: none; }
  .to-top-url.hide { opacity: 0 !important; visibility: hidden !important; transform: translateY(6px); pointer-events: none; }
  .to-top-url:hover,
  .to-top-url:focus-visible {
    color: var(--fg);
    opacity: 1;
    border-color: color-mix(in srgb, var(--line) 90%, transparent);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px) saturate(1.08);
    -webkit-backdrop-filter: blur(8px) saturate(1.08);
  }

  .to-top-url-arrow{
    color: inherit;
}

  .to-top-url:hover .to-top-url-arrow,
  .to-top-url:focus-visible .to-top-url-arrow {
    transform: translateY(-2px);
    color: var(--gold);
  }
  .to-top-url:focus-visible { outline: none; }
  .menu-open .to-top-url { opacity: 0; visibility: hidden; pointer-events: none; }

  /* Footer Logo als Link zum Seitenanfang */
  .foot-top-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }
  .foot-top-link .bw-logo {
    transition: color .25s ease;
  }
  .foot-top-link:hover .bw-logo,
  .foot-top-link:focus-visible .bw-logo {
    color: var(--gold-hover);
  }
  .foot-top-link:hover .bw-logo .bw-o::after,
  .foot-top-link:focus-visible .bw-logo .bw-o::after {
    transform: scale(1.25);
    background: var(--gold-hover);
  }
  .foot-top-link:focus-visible {
    outline: none;
  }
  .foot-top-link:focus-visible .bw-logo {
    filter: none;
  }
  @media (prefers-reduced-motion: reduce) { .to-top, .to-top .tt-dot, .to-top-url, .foot-top-link .bw-logo { transition: none; } }
  /* «Gwatt • Uhrzeit • Wetter» als Gruppe in der Mitte der Kopfzeile */
  .site-header #where { position: relative; display: inline-flex; align-items: center; }

  /* Kundenprojekte: Art der Arbeit unter der Karte, Aufruf zum Kontakt */
  .project-art { margin: -6px 0 0; }
  .project-art-titel { display: block; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
  .project-art ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
  .project-art li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.45; color: var(--muted); }
  .project-art li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
  .kunden-cta { margin: 40px 0 0; font-size: 18px; color: var(--muted); }
  .kunden-cta a { color: var(--gold); text-decoration: none; font-weight: 700; white-space: nowrap; }
  .kunden-cta a:hover { color: var(--gold-hover); }
  .kunden-cta a span { display: inline-block; transition: transform .2s ease; }
  .kunden-cta a:hover span { transform: translateX(4px); }

  /* Kundenprojekte am Desktop quer: Bild links (so breit wie eine Karte
   * oben), Name und Leistungen rechts daneben. Der Aufruf darunter steht
   * auf der Textspalte. */
  @media (min-width: 900px) {
    .projects--kunden { grid-template-columns: minmax(0, 1fr); }
    .projects--kunden .project {
      display: grid; grid-template-columns: calc((100% - 64px) / 3) minmax(0, 1fr);
      grid-template-rows: auto auto 1fr; column-gap: 32px; row-gap: 0; align-content: start;
    }
    .projects--kunden .shot { grid-column: 1; grid-row: 1 / span 3; }
    .projects--kunden .project-meta { grid-column: 2; align-self: start; justify-content: flex-start; gap: 6px 18px; padding-top: 4px; }
    .projects--kunden .project-meta strong { font-size: 26px; }
    .projects--kunden .project-art { grid-column: 2; margin: 18px 0 0; }
    .projects--kunden .project-art li { font-size: 17px; }
    .projects--kunden .project-stimme { grid-column: 2; align-self: start; margin-top: 22px; }
    /* Aufruf unten in der Textspalte, auf Hoehe der Bild-Unterkante */
    .projects--kunden { position: relative; }
    .projects--kunden .kunden-cta { margin: 28px 0 0 calc((100% - 64px) / 3 + 32px); }
  }
  @media (min-width: 1180px) {
    .projects--kunden .kunden-cta { position: absolute; bottom: 0; left: calc((100% - 64px) / 3 + 32px); margin: 0; }
  }


/* Kopfzeile Desktop: Ort, Uhr und See links beim Logo, damit das Menue
 * rechts (mit Referenzen, Spass, Verkauf) immer Platz hat. */
@media (min-width: 1000px) {
  /* Ort, Uhr und See mittig zwischen Logo und Menue: gleicher Abstand zu beiden */
  .site-header .wrap { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 28px; }
  .site-header .bw-logo { justify-self: start; }
  .site-header .wetter-wrap { justify-self: center; }
  .site-header .nav2 { justify-self: end; }
}
@media (min-width: 1000px) and (max-width: 1179px) {
  .nav2 { gap: 4px 18px; }
}

/* Familienleiste ganz oben: leise, scrollt mit der Seite weg */
.familie { position: relative; z-index: 21; background: #070706; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
.familie ul { list-style: none; margin: 0; padding: 0 4px; display: flex; justify-content: safe center; gap: 24px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.familie ul::-webkit-scrollbar { display: none; }
.familie a { display: inline-flex; align-items: center; gap: 7px; padding-block: 7px; color: var(--faint); text-decoration: none; transition: color .2s; }
.familie a:hover, .familie a:focus-visible { color: var(--fg); }
.familie a[aria-current="page"] { color: var(--fg); }
.menu-open .familie { visibility: hidden; }
.familie-trenn { flex: none; width: 1px; align-self: stretch; margin: 7px 0; background: var(--line); }
@media (max-width: 600px) { .familie ul { gap: 18px; padding: 0 18px; } .familie { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .familie a { transition: none; } }


.familie{--fb-bg:#070706;--fb-accent:#f2a900}

/* Familienleiste: Wort vor der zweiten Gruppe */
.familie-label { display: flex; align-items: center; flex: none; font-size: .9em; color: var(--faint); opacity: .7; pointer-events: none; }

/* Tooltip der Familienleiste: dunkle Karte, Domain in Gold, Pfeil nach oben */
.bw-tip { position: fixed; z-index: 90; max-width: 280px; padding: 9px 13px 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.45); font-family: var(--font-mono); font-size: 12px; line-height: 1.45;
  color: var(--fg); pointer-events: none; opacity: 0; transform: translateY(-4px); transition: opacity .18s, transform .18s; }
.bw-tip.an { opacity: 1; transform: none; }
.bw-tip::before { content: ""; position: absolute; top: -6px; left: calc(var(--pfeil, 50%) - 6px); width: 10px; height: 10px;
  background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.bw-tip-dom { display: flex; align-items: center; gap: 7px; color: var(--gold); }
.bw-tip-dom::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.bw-tip-txt { display: block; margin-top: 3px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .bw-tip { transition: none; } }

/* Gwatt-Uhr öffnet das Wetter-Popup (kein externer Link mehr) */
#where { text-decoration: none; cursor: pointer; border: 0; padding: 0; background: none; text-align: inherit; }
#where:hover, #where:focus-visible { color: var(--fg); }
/* Kontakt-Pill dezenter: umrandet, gold gefuellt erst beim Darueberfahren */
.nav2 .nav-cta { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.nav2 .nav-cta:hover, .nav2 .nav-cta:focus-visible { background: var(--gold); color: var(--bg); }
.nav2 .nav-cta[aria-current="true"] { background: var(--gold); color: var(--bg); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
/* Kopfzeile schrumpft beim Scrollen */
.site-header .wrap { transition: padding-block .3s ease; }
.site-header.is-klein .wrap { padding-block: 8px; }
@media (prefers-reduced-motion: reduce) { .site-header .wrap { transition: none; } }

/* Websites-Kachel: Link zu den Kundenprojekten */
.offer-link { margin-top: auto; padding-top: 6px; color: var(--gold); text-decoration: none; font-size: 15px; align-self: flex-start; border-bottom: 1px solid transparent; transition: border-color .2s; }
.offer-link:hover, .offer-link:focus-visible { border-bottom-color: currentColor; }
/* Kurzbeschreibung unter Spielereien */
.project-info { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
/* Ablauf in drei Schritten */
.ablauf { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line, rgba(255,255,255,.08)); border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 18px; overflow: hidden; }
.ablauf li { background: var(--bg); padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 6px; }
.ablauf-nr { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.ablauf-titel { margin: 80px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.ablauf strong { font-size: 18px; }
.ablauf li > span:last-child { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .ablauf { grid-template-columns: 1fr; } }
.form-hinweis { margin: 0; font-size: 14px; color: var(--faint); flex-basis: 100%; }
@media (max-width: 520px) { .pill span { white-space: normal; font-size: 14px; padding: 11px 10px; line-height: 1.25; display: grid; place-items: center; } }
@media (max-width: 300px) { .pills { grid-template-columns: 1fr; } }
/* Nur ein Logo aufs Mal: Kopfzeilen-Logo erscheint, wenn das grosse Logo weg ist */
/* Solange das grosse Logo sichtbar ist, steht links ein kurzer Claim statt des Logos.
   Beim Wegscrollen gleiten die Wörter nacheinander nach oben weg, dann baut sich
   das Logo mit seiner eigenen Animation auf (schneller als im Hero). */
.site-header > .wrap > .bw-logo { position: relative; --bw-speed: .65; }
.site-header > .wrap > .bw-logo > :not(.kopf-claim) { transition: opacity .2s ease; }
.site-header.hero-logo > .wrap > .bw-logo > :not(.kopf-claim) { opacity: 0; visibility: hidden; }
.kopf-claim { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; flex-wrap: nowrap; width: max-content; align-items: baseline; gap: 0 .6em;
  font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: none; color: var(--faint); white-space: nowrap; }
.kopf-claim > * { display: inline-block; font-style: normal; opacity: 0; transform: translateY(-9px); filter: blur(3px);
  transition: opacity .28s ease, transform .38s cubic-bezier(.22, 1, .36, 1), filter .28s ease; }
.kopf-claim > i { color: var(--gold); }
.site-header.hero-logo .kopf-claim > * { opacity: 1; transform: none; filter: none; }
.site-header.hero-logo .kopf-claim > :nth-child(2) { transition-delay: .06s; }
.site-header.hero-logo .kopf-claim > :nth-child(3) { transition-delay: .12s; }
.site-header.hero-logo .kopf-claim > :nth-child(4) { transition-delay: .18s; }
.site-header.hero-logo .kopf-claim > :nth-child(5) { transition-delay: .24s; }
.kopf-claim > :nth-child(1) { transition-delay: 0s; }
.kopf-claim > :nth-child(2) { transition-delay: .03s; }
.kopf-claim > :nth-child(3) { transition-delay: .06s; }
.kopf-claim > :nth-child(4) { transition-delay: .09s; }
.kopf-claim > :nth-child(5) { transition-delay: .12s; }
@media (max-width: 560px) { .kopf-claim { font-size: 11px; letter-spacing: .04em; gap: 0 .5em; width: 13.5em; flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) {
  .site-header > .wrap > .bw-logo > :not(.kopf-claim), .kopf-claim > * { transition: none; transform: none; filter: none; }
}
.site-header:not(.hero-logo) .kopf-claim { pointer-events: none; }

/* ---------- Kopfzeile: Wetter als Text statt Segelschiff ----------
   «GWATT • 06:38 • 4° bewölkt». Vorschau: ?wetter=regen */
.wetter-kurz { display: none; }
.wk-punkt { color: var(--gold); margin: 0 .55em; }
@media (min-width: 1000px) {
  .site-header .wetter-kurz:not([hidden]) { display: inline; }
}
.menu .wetter-kurz:not([hidden]) { display: inline; }

/* ---------- Wetter-Popup: Gwatt oben, Niesen und Stockhorn darunter ---------- */
.wetter-details {
  position: absolute; z-index: 10002; top: calc(100% + .65rem); left: 50%;
  width: min(22rem, calc(100vw - 2rem)); padding: 1.15rem 1.25rem 1.1rem; box-sizing: border-box;
  transform: translate(-50%, -.35rem); opacity: 0; visibility: hidden; pointer-events: none;
  border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); color: var(--fg);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .45);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  letter-spacing: normal; text-transform: none; text-align: left; white-space: normal;
}
.wetter-details.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.wetter-details-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wetter-ort { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.wetter-details-kopf button { border: 0; padding: 0 .15rem; background: transparent; color: var(--faint); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.wetter-details-kopf button:hover { color: var(--fg); }
.wetter-aktuell { display: flex; align-items: baseline; gap: .9rem; margin-top: .75rem; }
.wetter-aktuell strong { font-size: 2.25rem; line-height: 1; font-weight: 600; }
.wetter-aktuell span { font-size: .95rem; color: var(--muted); }
.wetter-messwerte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem .9rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.wetter-messwert { display: flex; flex-direction: column; align-items: flex-start; gap: .12rem; min-width: 0; }
.wetter-messwert[hidden] { display: none !important; }
.wetter-messwert span { color: var(--faint); font-size: .68rem; letter-spacing: .035em; }
.wetter-messwert strong { font-size: .92rem; line-height: 1.3; font-weight: 600; }
.wetter-messwert small { color: var(--faint); font-size: .68rem; }
.wetter-mond, .wetter-sonne { display: flex; align-items: center; gap: .5rem; margin: 1.2rem 0 0; color: var(--muted); font-size: .72rem; letter-spacing: .02em; }
.wetter-sonne { margin-top: .4rem; }
.wetter-sonne[hidden] { display: none !important; }
.wetter-mond-icon, .wetter-sonne-icon { display: inline-flex; flex: none; width: 1rem; height: 1rem; color: var(--gold); }
.wetter-mond-icon svg, .wetter-sonne-icon svg { display: block; width: 100%; height: 100%; }
.wetter-mond b, .wetter-sonne b { color: var(--fg); font-weight: 600; }
.wetter-berge { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.wetter-berge[hidden] { display: none !important; }
.wetter-berge-titel { margin: 0 0 .45rem; color: var(--faint); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.wetter-berg { padding: .55rem 0; }
.wetter-berg + .wetter-berg { border-top: 1px solid var(--line); }
.wetter-berg-kopf { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; }
.wetter-berg-name { font-size: .92rem; font-weight: 600; color: var(--fg); }
.wetter-berg-hoehe { font-size: .68rem; color: var(--faint); }
.wetter-berg-wetter { margin-left: auto; font-size: .82rem; color: var(--fg); }
.wetter-berg-werte { display: flex; flex-wrap: wrap; gap: .15rem .9rem; margin-top: .2rem; color: var(--muted); font-size: .72rem; }
.wetter-hinweis { margin: .9rem 0 0; color: var(--faint); font-size: .7rem; line-height: 1.5; }
.wetter-hinweis a { color: inherit; }
.menu-open .wetter-details { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 999px) {
  /* Auf schmalen Displays am Seitenrand ausrichten statt am Button, damit
     das Popup immer ganz im Bild bleibt. */
  .site-header .wetter-wrap { position: static; }
  .wetter-details { left: 50%; right: auto; transform: translate(-50%, -.35rem); }
  .wetter-details.is-open { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .wetter-details, .wetter-details.is-open { transition: none; }
}

/* Seite sichtbar machen, sobald dieses CSS da ist (siehe html.ld in index.php) */
html.ld body { visibility: visible; }
