/* Wind Nomads – Farben und Schriften gemäss design/BRAND.md */
:root {
  --salt: #F7F2E8;
  --sand: #E8D5B0;
  --sand-light: #EFE6D4;
  --sand-line: #D9C7A3;
  --sand-dark: #B4A27F;
  --paper: #FFFDF8;
  --ink: #17262B;
  --ink-soft: #2B3B40;
  --deep-water: #0E4652;
  --lagoon: #1A8C8A;
  --shallows: #9FD8D2;
  --palm: #2F5D45;
  --kite: #EE5A2F;
  --kite-text: #B23A15;
  --logo-sand: #E3C096;

  --f-display: 'Archivo', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --f-hand: 'Reenie Beanie', cursive;

  /* Papier-Struktur (Logbuch-Look), dezent */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .15 0 0 0 0 .17 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  background: var(--salt) var(--paper-grain);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.5;
}
a { color: var(--deep-water); }
a:hover { color: var(--ink); }
img { display: block; }
p { margin: 0; }

.container { max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-family: var(--f-mono); font-size: 13px; color: var(--deep-water); text-transform: uppercase; letter-spacing: .04em; }
.hand { font-family: var(--f-hand); line-height: 1; font-size: 26px; color: var(--kite-text); transform: rotate(-2deg); }
.h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; font-weight: 850; font-stretch: 115%; }
.placeholder-tag { font-family: var(--f-mono); font-size: 12px; background: var(--salt); color: var(--ink); padding: 4px 8px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.block { padding-top: 88px; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }

/* Buttons */
.btn-dark {
  background: var(--ink); color: var(--salt); text-decoration: none; font-weight: 700;
  padding: 12px 20px; border-radius: 4px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.btn-dark:hover { color: var(--salt); background: var(--deep-water); }
.btn-kite {
  align-self: flex-start; background: var(--kite); color: var(--ink); text-decoration: none; font-weight: 800;
  font-size: 18px; padding: 0 30px; min-height: 52px; border-radius: 4px; display: inline-flex; align-items: center;
}
.btn-kite:hover { color: var(--ink); background: #F26B43; }
.btn-ghost {
  font: 700 15px var(--f-display); min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 4px;
  background: transparent; color: var(--ink); cursor: pointer; align-self: flex-end;
}
:is(button, a, input, select, .map):focus-visible { outline: 3px solid var(--kite); outline-offset: 2px; }


/* Header: klebt oben; Logo beim Öffnen 140 px, beim Scrollen 80 px (Mindestgrösse) */
.site-header { position: sticky; top: 0; z-index: 1100; background: var(--salt) var(--paper-grain); transition: box-shadow .25s; }
.site-header.is-compact { box-shadow: 0 1px 0 var(--sand-line); }
.header-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding-block: 16px; transition: padding .25s; }
.is-compact .header-inner { padding-block: 8px; }
.brand { display: block; }
.brand img { width: 140px; height: 140px; transition: width .25s, height .25s; }
.is-compact .brand img { width: 80px; height: 80px; }
.nav-admin { font-weight: 800; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; font-size: 16px; flex: 1; justify-content: center; }
.site-nav a { text-decoration: none; color: var(--ink); padding-block: 10px; }
.site-nav a:hover { color: var(--deep-water); text-decoration: underline; }

/* Hero – vollflächiges Action-Foto (Platzhalter) */
.hero {
  position: relative; min-height: min(78svh, 760px); display: flex; align-items: flex-end;
  background: var(--deep-water) var(--paper-grain); color: var(--salt);
  /* Foto später: background-image: url(assets/hero.jpg); background-size: cover; */
}
.hero > .placeholder-tag { position: absolute; top: 18px; right: 18px; left: 18px; width: fit-content; margin-left: auto; }
.hero-inner { width: 100%; padding-block: 64px 72px; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { margin: 0; max-width: 11ch; font-size: clamp(44px, 8vw, 104px); line-height: .92; font-weight: 850; font-stretch: 120%; text-transform: uppercase; }
.hero-sub { font-size: clamp(18px, 2vw, 22px); max-width: 34ch; }
.eyebrow--light { color: var(--shallows); }

/* Kategorie-Stempel */
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 48px; }
.stamp-badge {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px; border: 0; background: none;
  font: 800 17px var(--f-display); font-stretch: 112%; color: var(--ink); text-decoration: none; cursor: pointer;
}
.badge {
  width: 104px; height: 104px; border-radius: 50%; background: var(--ink); display: grid; place-items: center;
  box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 7px var(--logo-sand); transition: transform .2s;
}
.badge svg { width: 46px; height: 46px; fill: none; stroke: var(--logo-sand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stamp-badge:hover .badge { transform: rotate(-6deg); }
.stamp-badge:hover { color: var(--deep-water); }

/* Karte */
.map-section { padding-top: 72px; display: flex; flex-direction: column; gap: 20px; }
.layers { display: flex; flex-wrap: wrap; gap: 10px; }
.layer {
  display: inline-flex; align-items: center; gap: 10px; font: 700 15px var(--f-display); min-height: 44px; padding: 0 18px 0 12px;
  border-radius: 22px; cursor: pointer; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
}
.layer[aria-pressed="true"] { background: var(--ink); color: var(--salt); }
.layer[aria-pressed="false"] .dot { opacity: .45; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--salt); }
.layer[aria-pressed="false"] .dot { border-color: var(--ink); }
.dot--spot { background: var(--kite); }
.dot--house { background: var(--sand); }
.dot--school { background: var(--deep-water); }
.dot--rental { background: var(--palm); }

.filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end;
  background: var(--paper); border: 1px solid var(--sand-line); border-radius: 6px; padding: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }
.field output { text-transform: none; color: var(--deep-water); }
.field select {
  font: 16px var(--f-display); padding: 0 10px; min-height: 44px; border: 1px solid var(--sand-dark); border-radius: 4px;
  background: var(--paper); color: var(--ink);
}
.field input[type="range"] { accent-color: var(--ink); min-height: 44px; width: 100%; }
.map-count { font-family: var(--f-mono); font-size: 14px; color: var(--deep-water); }
.map { height: min(70vh, 620px); min-height: 420px; border-radius: 8px; border: 2px solid var(--ink); background: var(--shallows); z-index: 0; }
.map .leaflet-tile-pane { filter: sepia(.35) saturate(.7) contrast(.95); }
.map.is-sat .leaflet-tile-pane { filter: none; }
.map-type { display: flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.map-type button { font: 700 14px var(--f-display); min-height: 36px; padding: 0 12px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
.map-type button[aria-pressed="true"] { background: var(--ink); color: var(--salt); }
.pp-stamp { position: absolute; top: 2px; right: 14px; width: 58px; transform: rotate(-8deg); }
.pp-stamp ~ .pp-type, .pp-stamp ~ .pp-pending, .pp-stamp ~ h3 { padding-right: 76px; }
.map-hint { font-size: 14px; color: var(--ink-soft); max-width: 72ch; }

/* Marker */
.mk-wrap { background: none; border: 0; }
.mk {
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--salt);
  box-shadow: 0 1px 3px rgba(23, 38, 43, .45);
}
.mk svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk--spot { gap: 3px; height: 26px; padding: 0 8px 0 5px; border-radius: 13px; background: var(--kite); color: var(--ink); font: 600 13px var(--f-mono); }
.mk--spot .arrow { width: 14px; height: 14px; stroke-width: 2.6; }
.mk--house { width: 30px; height: 30px; border-radius: 6px; background: var(--ink); color: var(--logo-sand); }
.mk--school { width: 30px; height: 30px; border-radius: 50%; background: var(--deep-water); color: var(--salt); }
.mk--rental { width: 30px; height: 30px; border-radius: 50%; background: var(--palm); color: var(--salt); }
.leaflet-container path.radius { fill: var(--shallows); fill-opacity: .25; stroke: var(--deep-water); stroke-width: 2; stroke-dasharray: 6 6; }

/* Popups */
.map .leaflet-popup-content-wrapper { background: var(--paper); color: var(--ink); border-radius: 6px; border: 2px solid var(--ink); box-shadow: none; }
.map .leaflet-popup-tip { background: var(--ink); }
.map .leaflet-popup-content { margin: 14px 16px; font: 15px/1.4 var(--f-display); }
.pp { display: flex; flex-direction: column; gap: 6px; min-width: 200px; position: relative; }
.pp h3 { margin: 0; font-size: 19px; font-weight: 850; font-stretch: 110%; line-height: 1.15; }
.pp p { margin: 0; }
.pp-type, .pp-sport { font: 12px var(--f-mono); text-transform: uppercase; color: var(--deep-water); }
.pp-wind { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); }
.pp-near { font-weight: 700; color: var(--deep-water); }
.pp ul { margin: 0; padding-left: 18px; font-size: 14px; }
.arrow { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Sonnen-Bewertung */
.suns { display: inline-flex; gap: 2px; align-items: center; }
.suns svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.suns .on { color: var(--kite-text); }
.suns .off { color: var(--sand-line); }

/* Monatsbalken */
.season { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; height: 64px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; height: 100%; }
.bar i { display: block; border-radius: 2px 2px 0 0; background: var(--sand); min-height: 2px; flex: none; max-height: calc(100% - 17px); }
.bar i[data-l="2"] { background: var(--shallows); }
.bar i[data-l="3"] { background: var(--lagoon); }
.bar i[data-l="4"] { background: var(--deep-water); }
.bar b { font: 500 10px/14px var(--f-mono); text-align: center; color: var(--ink-soft); }
.pp .season { height: 56px; }

/* Top-Spots */
.spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.spot { background: var(--paper); border: 1px solid var(--sand-line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.spot-img { height: 190px; position: relative; background: var(--shallows); }
.spot:nth-child(2) .spot-img { background: var(--lagoon); }
.spot:nth-child(3) .spot-img { background: var(--deep-water); }
.spot-img .placeholder-tag { position: absolute; left: 12px; bottom: 10px; font-size: 11px; padding: 3px 6px; }
.spot-img .spot-stamp { position: absolute; right: 14px; bottom: 12px; width: 88px; height: 88px; transform: rotate(-8deg); }
.spot-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.spot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.spot h3 { margin: 0 0 4px; font-size: 24px; font-weight: 850; font-stretch: 112%; line-height: 1.1; }
.coords { font-family: var(--f-mono); font-size: 12px; color: var(--deep-water); }
.wind-badge { display: flex; align-items: center; gap: 4px; font: 500 18px var(--f-mono); white-space: nowrap; }
.spot-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--ink-soft); }

/* Spot-Stempel (stamp.js + assets/stamp.svg) */
.spot-stamp { display: block; --st-disc: #202932; --st-tan: #E3C096; }
.st-name { fill: var(--st-tan); font-family: var(--f-display); font-weight: 800; font-stretch: 112%; letter-spacing: .1em; }
.spot-stamp--open { --st-disc: transparent; --st-tan: var(--sand-dark); opacity: .55; }

/* Kite Houses & Schools */
.duo { padding-top: 88px; display: flex; flex-wrap: wrap; gap: 24px; }
.panel { flex: 1 1 360px; border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.panel h2 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 850; font-stretch: 115%; }
.panel a { font-weight: 700; margin-top: auto; padding-top: 8px; }
.panel--sand { background: var(--sand) var(--paper-grain); }
.panel--deep { background: var(--deep-water); color: var(--salt); }
.panel--deep .eyebrow { color: var(--shallows); }
.panel--deep a, .panel--deep a:hover { color: var(--salt); }

/* Trip-Reports */
.reports { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.report { background: var(--paper); border: 1px solid var(--sand-line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.report-img { height: 170px; position: relative; background: var(--sand); }
.report-img .placeholder-tag { position: absolute; left: 12px; bottom: 10px; font-size: 11px; padding: 3px 6px; }
.report-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.report h3 { margin: 0; font-size: 21px; font-weight: 850; font-stretch: 110%; line-height: 1.15; }
.byline { margin-top: auto; font: 12px var(--f-mono); color: var(--deep-water); text-transform: uppercase; }
.more { font-weight: 700; align-self: flex-start; }

/* Crew & Logbuch */
.crew { padding-top: 88px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.crew-text { display: flex; flex-direction: column; gap: 14px; }
.chat { background: var(--paper); border: 1px solid var(--sand-line); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.chat strong { font-weight: 800; }
.bubble { padding: 12px 14px; border-radius: 4px; font-size: 15px; background: var(--sand-light); max-width: 85%; }
.bubble--me { background: var(--shallows); align-self: flex-end; }
.logbook {
  background: var(--sand) var(--paper-grain); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 18px;
  align-items: flex-start;
}
.logbook-stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; }
.logbook-stamps .spot-stamp { width: 100%; height: auto; }
.logbook-stamps .spot-stamp:nth-child(odd) { transform: rotate(-7deg); }
.logbook-stamps .spot-stamp:nth-child(even) { transform: rotate(5deg); }

/* Abschluss mit Claim */
.closing { padding-block: 120px 96px; text-align: center; }
.closing p { font-size: clamp(40px, 9vw, 120px); line-height: .9; font-weight: 850; font-stretch: 120%; text-transform: uppercase; }

/* Footer */
.site-footer { background: var(--ink); color: var(--salt); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer > .container:first-child { padding-block: 40px 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--sand); padding-block: 10px; }
.attribution { font: 12px var(--f-mono); color: var(--sand-dark); padding-bottom: 24px; }

/* ---------- Unterseiten (Erfassen, Perfect Vibe) ---------- */
.sub-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.sub-header a:not(.brand) { font-weight: 700; padding-block: 10px; }
.sub-main { padding-block: 24px 96px; display: flex; flex-direction: column; gap: 18px; max-width: 860px; }
.lead { font-size: 19px; max-width: 60ch; }
.h3 { margin: 0; font-size: 24px; font-weight: 850; font-stretch: 112%; line-height: 1.15; }
.hint { font-size: 14px; color: var(--ink-soft); }
.opt { text-transform: none; color: var(--ink-soft); }
.field .hint { text-transform: none; font-family: var(--f-display); }
.field input[type="text"], .field input[type="number"], .field input[type="search"], .field input[type="email"], .field input[type="password"], .field textarea, .loc-search input {
  font: 16px var(--f-display); padding: 10px 12px; min-height: 44px; border: 1px solid var(--sand-dark); border-radius: 4px;
  background: var(--paper); color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; }
:is(input, textarea):focus-visible { outline: 3px solid var(--kite); outline-offset: 1px; }

.add-form, .vibe-form { display: flex; flex-direction: column; gap: 22px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 22px; font-weight: 700; cursor: pointer; background: var(--paper); }
.seg input:checked + span { background: var(--ink); color: var(--salt); }
.seg input:focus-visible + span { outline: 3px solid var(--kite); outline-offset: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 20px; border: 0; padding: 0; margin: 0; align-items: center; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.checks legend { margin-bottom: 4px; }
.checks--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.checks input { width: 20px; height: 20px; accent-color: var(--ink); }
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }

.loc, .rental { display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--sand-line); border-radius: 6px; padding: 20px; }
.loc-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.loc-search { display: flex; gap: 8px; flex: 1 1 320px; }
.loc-search .btn-ghost { align-self: stretch; }
.loc-results { list-style: none; margin: 0; padding: 0; border: 1px solid var(--sand-line); border-radius: 4px; background: var(--paper); }
.loc-results li + li { border-top: 1px solid var(--sand-line); }
.loc-results button { width: 100%; text-align: left; font: 15px var(--f-display); padding: 10px 12px; min-height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.loc-results button:hover { background: var(--sand-light); }
.loc-results .hint { padding: 10px 12px; }
.loc-map-wrap { position: relative; }
.loc-map { height: min(60vh, 480px); min-height: 340px; }
.loc-map .leaflet-tile-pane { filter: none; }
.loc-layer { position: absolute; top: 10px; right: 10px; z-index: 500; display: flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.loc-layer button { font: 700 14px var(--f-display); min-height: 36px; padding: 0 12px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
.loc-layer button[aria-pressed="true"] { background: var(--ink); color: var(--salt); }
.loc-pin { display: block; width: 28px; height: 40px; }
.loc-pin::before { content: ''; position: absolute; left: 2px; top: 0; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid var(--salt); box-shadow: 0 1px 4px rgba(23,38,43,.6); }
.loc-pin--main::before { background: var(--kite); }
.loc-pin--park::before { background: var(--deep-water); }
.loc-pin::after { position: absolute; left: 0; top: 4px; width: 28px; text-align: center; font: 700 11px var(--f-mono); color: var(--ink); }
.loc-pin--park::after { content: 'P'; color: var(--salt); }
.loc-status { font: 14px var(--f-mono); color: var(--deep-water); }
.loc-status[data-ok="no"] { color: var(--kite-text); }
.loc-dupes { background: var(--sand-light); border-left: 4px solid var(--kite); padding: 12px 14px; font-size: 15px; }
.loc-dupes ul { margin: 6px 0; padding-left: 18px; }
.payload { background: var(--ink); color: var(--shallows); font: 13px/1.5 var(--f-mono); padding: 16px; border-radius: 6px; overflow: auto; max-height: 420px; }

.vibe-factor { border: 1px solid var(--sand-line); border-radius: 6px; padding: 16px 20px 18px; margin: 0; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.vibe-factor legend { font-weight: 800; font-size: 19px; padding: 0 6px; }
.vibe-factor legend label { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; min-height: 40px; }
.vibe-factor legend input { width: 22px; height: 22px; accent-color: var(--ink); }
.vibe-factor.off .range2, .vibe-factor.off .hint { opacity: .4; }
.range2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.range2 label { display: flex; flex-direction: column; gap: 4px; font: 13px var(--f-mono); text-transform: uppercase; }
.range2 output { font-weight: 500; color: var(--deep-water); }
.range2 input { accent-color: var(--ink); min-height: 40px; width: 100%; }
.vibe-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.vibe-actions .btn-ghost, .vibe-actions .btn-kite { align-self: auto; }
.btn-dark { border: 0; font-family: var(--f-display); font-size: 16px; cursor: pointer; }
button.btn-kite { border: 0; cursor: pointer; font-family: var(--f-display); }
.saved { font: 14px var(--f-mono); color: var(--deep-water); }
a.btn-ghost { display: inline-flex; align-items: center; text-decoration: none; align-self: auto; }

/* Live-Daten + Vibe im Spot-Popup */
.pp-live { border-top: 1px solid var(--sand-line); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pp-live .lv-row { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--f-mono); font-size: 13px; }
.pp-live .lv-now { display: flex; align-items: center; gap: 6px; font: 600 15px var(--f-mono); }
.pp-live .lv-src { font: 11px var(--f-mono); color: var(--ink-soft); }
.vibe { display: flex; align-items: center; gap: 10px; background: var(--sand-light); border-radius: 4px; padding: 8px 10px; }
.vibe b { font: 800 22px var(--f-display); font-stretch: 112%; min-width: 4.2ch; flex: none; }
.vibe small { display: block; font: 11px var(--f-mono); text-transform: uppercase; color: var(--deep-water); }
.vibe a { font-weight: 700; font-size: 13px; margin-left: auto; }
.vibe--locked { background: var(--paper); border: 1px dashed var(--sand-dark); }
.warn { color: var(--kite-text); font-weight: 700; }
.mk--pending { opacity: .75; outline: 2px dashed var(--ink); outline-offset: 2px; }
.pp-pending { font: 12px var(--f-mono); text-transform: uppercase; color: var(--kite-text); }
.nav-add { font-weight: 800; }
.vibe-month { display: flex; align-items: center; gap: 8px; font: 12px var(--f-mono); text-transform: uppercase; color: var(--deep-water); }
.vibe-month select { font: 14px var(--f-display); min-height: 36px; padding: 0 6px; border: 1px solid var(--sand-dark); border-radius: 4px; background: var(--paper); color: var(--ink); flex: 1; }
.empty { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; background: var(--paper); border: 1px dashed var(--sand-dark); border-radius: 6px; padding: 24px; grid-column: 1 / -1; }
.empty p { flex: 1 1 280px; font-size: 18px; }
.compass { display: grid; grid-template-columns: repeat(8, auto); justify-content: start; gap: 4px 14px; }
@media (max-width: 640px) { .compass { grid-template-columns: repeat(4, auto); } }

@media (max-width: 640px) {
  .range2, .row2 { grid-template-columns: 1fr; }
  .loc, .rental { padding: 14px; }
}

@media (max-width: 860px) {
  .crew { grid-template-columns: 1fr; }
  .site-nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .site-nav { gap: 4px 16px; font-size: 15px; }
  .brand img { width: 112px; height: 112px; }
  .is-compact .brand img { width: 80px; height: 80px; }
  .hero { min-height: 82svh; }
  .hero-inner { padding-block: 72px 40px; }
  .btn-kite { align-self: stretch; justify-content: center; }
  .stamps { grid-template-columns: repeat(2, 1fr); padding-top: 32px; }
  .badge { width: 88px; height: 88px; }
  .badge svg { width: 40px; height: 40px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .btn-ghost { grid-column: 1 / -1; align-self: stretch; }
  .map { min-height: 440px; }
  .panel { padding: 24px; }
  .logbook { padding: 20px; }
  .closing { padding-block: 80px 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge, .brand img, .header-inner, .site-header { transition: none; }
}

/* Admin: Prüfung neuer Einträge */
.adm-nav { display: flex; gap: 20px; font-weight: 700; }
.adm-switch { background: var(--paper); border: 1px solid var(--sand-line); border-radius: 6px; padding: 10px 14px; font-weight: 700; }
.adm-list { display: flex; flex-direction: column; gap: 18px; }
.adm-card { background: var(--paper); border: 1px solid var(--sand-line); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.adm-card .h3 small { font: 13px var(--f-mono); color: var(--deep-water); text-transform: uppercase; }
.adm-card ul { margin: 0; padding-left: 20px; }
.adm-head { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-verdict, .adm-tag { font: 600 12px var(--f-mono); text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: var(--sand-light); }
.adm-verdict--implement { background: var(--shallows); }
.adm-verdict--reject { background: var(--kite-text); color: var(--salt); }

/* Nachrichten im Konto */
.inbox { display: flex; flex-direction: column; gap: 10px; }
.note { background: var(--paper); border: 1px solid var(--sand-line); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.note--new { border-left: 4px solid var(--kite); }
.has-news { position: relative; }
.has-news::after { content: ''; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--kite); border: 2px solid var(--salt); }

/* ---------- Konto: Onboarding + Reiter ---------- */
.acc { gap: 22px; }
.stepper { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.stepper li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 22px; background: var(--paper);
  border: 1px solid var(--sand-line); font-weight: 700; color: var(--ink-soft); }
.stepper li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-light); font: 600 13px var(--f-mono); }
.stepper li[aria-current] { border-color: var(--ink); color: var(--ink); }
.stepper li[aria-current] span { background: var(--ink); color: var(--salt); }
.stepper li.is-done span { background: var(--lagoon); color: var(--salt); }
.stepper li.is-done span::before { content: '✓'; }
.stepper li.is-done span { font-size: 0; }
.stepper li.is-done span::before { font-size: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--sand-line); margin-top: 8px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-soft); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--kite); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--kite); color: var(--ink); font: 600 12px var(--f-mono); margin-left: 4px; }
.acc-step form, .acc-step > .h3 { background: var(--paper); border: 1px solid var(--sand-line); border-radius: 8px; padding: 22px; }
.acc-step .vibe-factor { background: var(--salt); }
.step-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding-top: 6px; }
.step-actions .btn-kite { align-self: auto; }
.btn-kite.is-saved, .btn-dark.is-saved { background: var(--lagoon); color: var(--salt); }
.link-quiet { background: none; border: 0; padding: 8px 0; font: 14px var(--f-display); color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.link-quiet:hover { color: var(--ink); }
.reset-line { text-align: right; margin-top: -6px; }
.acc-foot { border-top: 1px solid var(--sand-line); padding-top: 12px; }
.done-card { background: var(--paper); border: 1px solid var(--sand-line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.done-card .badge { width: 72px; height: 72px; }
.done-card .badge svg { width: 34px; height: 34px; color: var(--kite); stroke: var(--logo-sand); }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; width: 100%; }
.next { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 2px solid var(--ink); border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--salt); }
.next:hover { background: var(--sand-light); color: var(--ink); }
.next strong { font-size: 19px; font-weight: 850; font-stretch: 110%; }
.next span { font-size: 15px; color: var(--ink-soft); }

/* Bestätigung (Toast) */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 3000; max-width: min(92vw, 520px);
  background: var(--ink); color: var(--salt); padding: 14px 20px; border-radius: 8px; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 24px rgba(23, 38, 43, .35); opacity: 0; transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="ok"] { border-left: 6px solid var(--shallows); }
.toast[data-kind="error"] { border-left: 6px solid var(--kite); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---------- Erfassen v2 ---------- */
.add-form .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--salt);
  font: 600 14px var(--f-mono); margin-right: 6px; vertical-align: 3px; }
.loc-tools { align-items: stretch; }
.loc-search { flex: 1 1 360px; }
.loc-results button { display: flex; flex-direction: column; gap: 2px; }
.loc-results button span { font: 12px var(--f-mono); color: var(--deep-water); }
.loc-pois { position: absolute; left: 10px; bottom: 26px; z-index: 500; display: flex; flex-wrap: wrap; gap: 6px; }
.loc-pois label { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px;
  padding: 4px 10px; font: 700 13px var(--f-display); cursor: pointer; }
.loc-pois input { accent-color: var(--ink); }
.poi { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--salt); font: 700 11px var(--f-display);
  box-shadow: 0 1px 3px rgba(23, 38, 43, .5); }
.poi--food { background: var(--paper); }
.poi--park { background: var(--deep-water); color: var(--salt); }
.name-sugg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--sand-light); border-radius: 6px; padding: 10px 12px; font-weight: 700; }
.chip { font: 600 15px var(--f-display); border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 18px; padding: 6px 12px; cursor: pointer; }
.chip:hover { background: var(--ink); color: var(--salt); }
.field input[type="date"] { font: 16px var(--f-display); padding: 8px 10px; min-height: 44px; border: 1px solid var(--sand-dark); border-radius: 4px; background: var(--paper); color: var(--ink); }
.drop { position: relative; display: block; border: 2px dashed var(--sand-dark); border-radius: 8px; padding: 22px; text-align: center; cursor: pointer; background: var(--salt); }
.drop:hover, .drop:focus-within { border-color: var(--ink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.media-prev { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.media-prev figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--sand-light); }
.media-prev img, .media-prev video { width: 100%; height: 100%; object-fit: cover; }
.media-prev button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--ink); color: var(--salt); font-size: 18px; cursor: pointer; }
.rate-box { display: flex; flex-direction: column; gap: 14px; }
.sun-rate { border: 0; padding: 0; margin: 0; }
.sun-row { display: flex; gap: 6px; }
.sun-row label { position: relative; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; font-size: 26px; filter: grayscale(1); opacity: .45; }
.sun-row label.on { filter: none; opacity: 1; }
.sun-row input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sun-row svg { width: 36px; height: 36px; fill: none; stroke: var(--kite-text); stroke-width: 1.8; stroke-linecap: round; color: var(--kite-text); }
.sun-row input:focus-visible + span { outline: 3px solid var(--kite); outline-offset: 2px; border-radius: 50%; }
.submit-bar { position: sticky; bottom: 0; background: var(--salt) var(--paper-grain); padding: 14px 0; border-top: 1px solid var(--sand-line);
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; z-index: 10; }
.btn-big { min-height: 56px; font-size: 19px; padding: 0 34px; }
@media (max-width: 640px) {
  .loc-pois { left: 6px; right: 6px; bottom: 22px; }
  .loc-pois label { font-size: 12px; padding: 3px 8px; }
  .btn-big { width: 100%; justify-content: center; }
}
.h3 .opt { font: 400 14px var(--f-mono); text-transform: none; color: var(--ink-soft); }

/* ---------- Herkunftsland + Sportart, Nachfrage-Fenster ---------- */
.rider { display: flex; flex-direction: column; gap: 14px; }
.rider-other { flex: 1 1 220px; font: 16px var(--f-display); padding: 8px 10px; min-height: 44px; border: 1px solid var(--sand-dark); border-radius: 4px; background: var(--paper); color: var(--ink); }
.rider-dlg { border: 0; border-radius: 10px; padding: 0; width: min(94vw, 520px); background: var(--paper); color: var(--ink); box-shadow: 0 12px 48px rgba(23, 38, 43, .4); }
.rider-dlg::backdrop { background: rgba(23, 38, 43, .55); }
.rider-dlg form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.flag { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(23, 38, 43, .2); object-fit: cover; }
.flag--big { width: 30px; height: 30px; vertical-align: 2px; }
.checks--col { flex-direction: column; align-items: flex-start; }

/* ---------- Konto: Profilbild, eigene Orte, Uploads ---------- */
.acc-panel { background: var(--paper); border: 1px solid var(--sand-line); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.avatar-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--sand-light); display: grid; place-items: center; font-size: 30px; overflow: hidden; flex: none; border: 2px solid var(--ink); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--big { width: 110px; height: 110px; font-size: 44px; }
.avatar-up { position: relative; cursor: pointer; }
.avatar-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.my-spots { display: flex; flex-direction: column; gap: 10px; }
.my-spot { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--sand-line); border-radius: 8px; background: var(--salt); }
.my-spot.is-fav { border-color: var(--kite); background: var(--paper); }
.my-spot .spot-stamp { width: 64px; height: 64px; }
.my-spot > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fav-star { width: 48px; height: 48px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--sand-dark); }
.fav-star[aria-pressed="true"] { color: var(--kite); }
.fav-star:focus-visible { outline: 3px solid var(--kite); border-radius: 50%; }

/* ---------- Fotos/Videos: Raster + Grossansicht ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.media-grid--small { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 4px; margin: 8px 0; }
.media-thumb { position: relative; padding: 0; border: 0; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--sand-light); cursor: zoom-in; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.media-play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--salt); font-size: 26px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.media-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font: 11px var(--f-mono); color: var(--salt); text-align: left;
  background: linear-gradient(transparent, rgba(23, 38, 43, .8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-grid--small .media-label { display: none; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 18, 20, .92); }
.lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; grid-template-rows: 1fr auto; align-items: center; }
.lb-body { grid-column: 2; display: grid; place-items: center; height: calc(100vh - 70px); }
.lb-body img, .lb-body video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb-cap { grid-column: 1 / -1; text-align: center; color: var(--salt); font: 14px var(--f-mono); margin: 8px 0 16px; }
.lightbox button { background: none; border: 0; color: var(--salt); font-size: 40px; cursor: pointer; width: 56px; height: 56px; }
.lb-close { position: fixed; top: 8px; right: 8px; }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
.pp-media { max-width: 260px; }

/* ---------- Öffentliches Profil ---------- */
.prof { gap: 20px; }
.prof-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.prof-head .h2 { margin: 4px 0; }
.prof-meta { margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prof-list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.prof-stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.prof-stamps .spot-stamp { width: 100%; height: auto; }
.prof-stamps a:nth-child(odd) .spot-stamp { transform: rotate(-6deg); }
.prof-stamps a:nth-child(even) .spot-stamp { transform: rotate(4deg); }

/* ---------- Admin-Zentrale: Reiter + Dashboard ---------- */
.adm-tabs { margin: 0 0 6px; }
.dash { gap: 18px; }
.seg--small span { min-height: 36px; padding: 0 12px; font-size: 14px; border-width: 1.5px; }
.dash-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.dash-todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.todo { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--sand-line); background: var(--paper); color: var(--ink); text-decoration: none; }
.todo strong { font-size: 26px; font-weight: 850; }
.todo--on { border-left: 5px solid var(--kite); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--sand-line); border-radius: 8px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.kpi strong { font-size: 30px; font-weight: 850; font-stretch: 110%; line-height: 1.1; }
.kpi-label { font: 600 12px var(--f-mono); text-transform: uppercase; color: var(--ink-soft); }
.kpi-delta { font-size: 13px; color: var(--ink-soft); }
.kpi-delta.up { color: var(--palm); font-weight: 700; }
.kpi[aria-pressed="true"] { border: 2px solid var(--ink); padding: 11px 13px; box-shadow: inset 0 -4px 0 var(--kite); }
.kpi:hover:not(.kpi--static) { border-color: var(--ink); }
.kpi--static { cursor: default; background: var(--sand-light); }
.kpi-spark { width: 100%; height: 28px; margin-top: 4px; }
.kpi-spark polyline { fill: none; stroke: var(--lagoon); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dash-card { background: var(--paper); border: 1px solid var(--sand-line); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dash-card-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.dash-card .h3 { margin: 0; }
.dash-sub { margin-top: 10px !important; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.ch-grid { stroke: var(--sand-line); stroke-width: 1; }
.ch-ax { font: 11px var(--f-mono); fill: var(--ink-soft); }
.ch-line { fill: none; stroke: var(--deep-water); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-area { fill: var(--shallows); opacity: .35; }
.ch-bar { fill: var(--deep-water); }
.ch-cross { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.ch-dot { fill: var(--deep-water); stroke: var(--paper); stroke-width: 2; }
.ch-hit { fill: transparent; cursor: crosshair; }
.dash-tip { position: fixed; z-index: 3000; pointer-events: none; background: var(--ink); color: var(--salt); padding: 8px 12px; border-radius: 6px;
  font-size: 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 4px 16px rgba(23, 38, 43, .35); }
.dash-table summary { cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.dash-tbl { border-collapse: collapse; font: 13px var(--f-mono); margin-top: 8px; }
.dash-tbl th, .dash-tbl td { padding: 3px 14px 3px 0; text-align: right; border-bottom: 1px solid var(--sand-light); }
.dash-tbl th:first-child, .dash-tbl td:first-child { text-align: left; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(110px, 40%) 1fr 44px; gap: 10px; align-items: center; font-size: 15px; }
.hb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 12px; background: var(--sand-light); border-radius: 0 4px 4px 0; }
.hb-fill { display: block; height: 100%; min-width: 2px; background: var(--lagoon); border-radius: 0 4px 4px 0; }
.hb-n { font: 600 13px var(--f-mono); text-align: right; }
.dash-rank { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.dash-rank li { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; }
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .hbars li { grid-template-columns: minmax(90px, 42%) 1fr 36px; font-size: 14px; }
  .my-spot { grid-template-columns: 52px 1fr auto; }
  .my-spot .spot-stamp { width: 52px; height: 52px; }
}

/* ---------- Rechtstexte ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 28px 0 6px; }
.legal h3 { font-size: 18px; margin: 18px 0 4px; }
.legal p, .legal li { font-size: 16px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal th, .legal td { border-bottom: 1px solid var(--sand-line); padding: 6px 8px 6px 0; text-align: left; vertical-align: top; }
.legal .note-box { background: var(--sand-light); border-radius: 6px; padding: 12px 16px; }
.sub-main.dash { max-width: 1180px; }
