:root {
  --bg: #07090d;
  --bg-soft: #0d1218;
  --surface: #121821;
  --surface-2: #181f2a;
  --line: rgba(212, 175, 55, .18);
  --gold: #d4af37;
  --gold-soft: #f0d789;
  --teal: #3d9a8a;
  --teal-dim: #2a6f64;
  --text: #e8eaed;
  --muted: #9aa3b2;
  --danger: #e35d6a;
  --ok: #3dcf9a;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --radius: 18px;
  --header-h: 72px;
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img, canvas { max-width: 100%; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: #111; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 9, 13, .86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--text); }
.brand-word {
  font-family: var(--display);
  letter-spacing: .28em;
  font-size: .95rem;
  font-weight: 700;
}
.brand-logo, .footer-logo {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
}
.protected-media.brand-logo, .protected-media.footer-logo { width: 44px; height: 44px; }
.main-nav { display: flex; gap: .4rem; align-items: center; }
.nav-link {
  color: var(--muted);
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .95rem;
}
.nav-link:hover, .nav-link.is-active { color: var(--bg); background: var(--gold); }
.lang-switch {
  display: inline-flex; align-items: center; gap: .15rem; margin-left: .35rem;
  padding: .15rem; border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch a {
  color: var(--muted); font-size: .78rem; letter-spacing: .06em; font-weight: 700;
  padding: .28rem .55rem; border-radius: 999px;
}
.lang-switch a.is-active, .lang-switch a:hover { color: var(--bg); background: var(--gold); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: transparent; border-radius: 12px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 6px 8px; background: var(--gold); }

/* Hero */
.hero {
  position: relative; min-height: min(86vh, 760px);
  display: grid; align-items: end; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media .protected-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,13,.25) 0%, rgba(7,9,13,.55) 42%, rgba(7,9,13,.96) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 5rem 0 3.5rem; }
.eyebrow {
  display: inline-block; color: var(--gold); letter-spacing: .22em;
  text-transform: uppercase; font-size: .72rem; margin-bottom: .8rem;
}
.hero h1, .page-hero h1, .section h1, h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.08; margin: 0 0 1rem; font-weight: 600;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 999px; padding: .85rem 1.35rem; cursor: pointer;
  font-weight: 600; letter-spacing: .02em;
}
.btn-primary { background: var(--gold); color: #111; }
.btn-primary:hover { background: var(--gold-soft); color: #111; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-teal { background: var(--teal); color: #06110f; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(227,93,106,.4); }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem .85rem; font-size: .86rem; }

.section { padding: 4.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section h2 {
  font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 .6rem;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step-card, .icon-card, .admin-card, .legal-content, .contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.step-num {
  color: var(--gold); font-family: var(--display); font-size: 1.6rem; margin: 0 0 .5rem;
}
.icon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.icon-card { text-align: center; padding: 1rem .6rem; }
.icon-card .obj-icon { width: 36px; height: 36px; color: var(--gold); margin-bottom: .45rem; }
.icon-card span { display: block; color: var(--muted); font-size: .82rem; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.split-media .protected-media { width: 100%; min-height: 280px; border-radius: var(--radius); overflow: hidden; }

.page-hero {
  padding: 3.2rem 0 1rem;
  background:
    radial-gradient(circle at 80% 0%, rgba(212,175,55,.16), transparent 36%),
    radial-gradient(circle at 10% 80%, rgba(61,154,138,.12), transparent 40%);
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .35rem; color: var(--gold-soft); font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--bg); border: 1px solid #2a3340; border-radius: 12px;
  padding: .75rem .9rem; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--gold);
}
.form-hint { color: var(--muted); font-size: .85rem; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.alert {
  border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; scroll-margin-top: 90px;
}
.alert-success { background: rgba(61,207,154,.12); border: 1px solid rgba(61,207,154,.4); }
.alert-error { background: rgba(227,93,106,.12); border: 1px solid rgba(227,93,106,.4); }
.alert-info { background: rgba(61,154,138,.12); border: 1px solid rgba(61,154,138,.35); }

.find-wrap { max-width: 640px; margin: 0 auto; padding: 2rem 0 4rem; }
.find-icon {
  width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center;
  background: rgba(212,175,55,.1); color: var(--gold); margin-bottom: 1rem;
}
.find-icon .obj-icon { width: 42px; height: 42px; }
.geo-btn {
  width: 100%;
  min-height: 48px;
  margin: .15rem 0 .5rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.geo-btn[disabled] { opacity: .7; }
#geo-status { min-height: 2.4em; }
#geo-status.is-error { color: var(--danger); }
#geo-status.is-ok { color: var(--ok); }

.admin-login { min-height: 70vh; display: grid; place-items: center; padding: 2rem 1rem; }
.admin-login .admin-card { width: min(420px, 100%); }
.admin-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; flex-wrap: wrap; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.admin-nav a {
  padding: .4rem .8rem; border-radius: 999px; color: var(--muted); border: 1px solid transparent;
}
.admin-nav a.is-active, .admin-nav a:hover { border-color: var(--line); color: var(--gold); }
.object-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.object-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.object-card-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.object-card h2 { font-size: 1.15rem; margin: 0; }
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.icon-option { display: block; }
.icon-option input { position: absolute; opacity: 0; pointer-events: none; }
.icon-option span {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  border: 1px solid #2a3340; border-radius: 12px; padding: .7rem .4rem; color: var(--muted); cursor: pointer;
}
.icon-option input:checked + span, .icon-option:hover span { border-color: var(--gold); color: var(--gold); }
.status-pill {
  display: inline-block; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.status-aktiv { color: var(--ok); border-color: rgba(61,207,154,.4); }
.status-verloren { color: #f0a35b; border-color: rgba(240,163,91,.45); }
.status-scanned { color: var(--gold); border-color: rgba(212,175,55,.45); }
.status-notified { color: #8ab4ff; border-color: rgba(138,180,255,.4); }
.print-sheet { background: #fff; color: #111; padding: 2rem; border-radius: 16px; max-width: 420px; margin: 0 auto; text-align: center; }
.print-sheet svg { width: 100%; height: auto; }
.print-strip-qr svg text, .print-sheet svg text { font-family: Arial, Helvetica, sans-serif; }
.print-actions { text-align: center; margin: 1.2rem 0; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.print-preview-title { text-align: center; font-size: 1.05rem; margin: 1.6rem 0 .8rem; color: var(--muted); font-weight: 600; }
.print-strip {
  display: flex; align-items: center; gap: .85rem;
  background: #fff; color: #111; padding: .55rem .7rem;
  border-radius: 10px; max-width: 920px; margin: 0 auto 1.5rem;
  min-height: 96px;
}
.print-strip-qr { width: 92px; flex-shrink: 0; }
.print-strip-qr svg { width: 92px; height: 92px; display: block; }
.print-strip-text { flex: 1; text-align: left; font-size: .88rem; line-height: 1.35; }
.print-strip-brand { letter-spacing: .28em; font-weight: 700; margin: 0 0 .15rem; color: #b8962e; }
.print-strip-name { margin: 0 0 .25rem; font-weight: 700; }
.print-strip-sub { margin: .2rem 0 0; font-size: .78rem; color: #555; }
@media print {
  .site-header, .site-footer, .float-actions, .cookie-banner, .print-actions, .admin-header, .print-preview-title, .form-hint { display: none !important; }
  body { background: #fff; }
  .print-sheet { box-shadow: none; width: 90mm; margin: 0 auto 12mm; page-break-inside: avoid; }
  .print-strip {
    width: 180mm; height: 28mm; max-width: none; margin: 0 auto;
    padding: 2mm 3mm; box-sizing: border-box; page-break-inside: avoid;
    border: 1px dashed #bbb;
  }
  .print-strip-qr, .print-strip-qr svg { width: 24mm; height: 24mm; }
  .print-strip-text { font-size: 9pt; }
}

.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 1.4rem; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr .7fr .8fr; gap: 1.6rem; }
.footer-logo-wrap { display: flex; align-items: center; gap: .6rem; color: var(--text); font-family: var(--display); letter-spacing: .2em; }
.footer-links, .footer-contact-links { list-style: none; padding: 0; margin: 0; }
.footer-links a, .footer-contact-link { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #1b2230; color: var(--muted); font-size: .85rem;
}
.copyright-admin-link { color: inherit; text-decoration: none; border-bottom: 0; }
.copyright-link { color: var(--gold-soft); }
.visitor-count { opacity: .45; font-variant-numeric: tabular-nums; }

.float-actions {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  display: flex; flex-direction: column; gap: .65rem; align-items: flex-end;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow); position: relative;
}
.float-phone { background: var(--gold); color: #111; }
.float-whatsapp { background: #25d366; }
.phone-pulse {
  position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold);
  animation: pulse 1.8s ease-out infinite;
}
.float-phone-label {
  position: absolute; right: 64px; white-space: nowrap; background: var(--surface);
  color: var(--text); padding: .35rem .7rem; border-radius: 999px; font-size: .8rem;
  border: 1px solid var(--line); opacity: 0; transform: translateX(8px); transition: .2s;
}
.float-phone:hover .float-phone-label { opacity: 1; transform: none; }
@keyframes pulse {
  0% { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.25); opacity: 0; }
}

.cookie-banner {
  position: fixed; left: 0; right: 0; top: 0; z-index: 80;
  background: rgba(7,9,13,.94); border-bottom: 1px solid var(--line);
  transform: translateY(-120%); transition: transform .25s ease;
}
.cookie-banner.is-visible { transform: none; }
.cookie-inner { width: min(900px, calc(100% - 2rem)); margin: 0 auto; padding: 1rem 0 1.1rem; }
.cookie-actions { display: flex; gap: .6rem; margin-top: .8rem; }
.cookie-blocker {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 70; display: none;
}
.cookie-blocker.is-visible { display: block; }
html.cookie-consent-pending, body.cookie-consent-pending { overflow: hidden; }

.protected-media {
  position: relative; display: block; overflow: hidden; background: #0b0f14;
  min-height: 44px;
}
.split > .protected-media {
  min-height: 280px; aspect-ratio: 16 / 10; border-radius: var(--radius);
}
.protected-media .protected-canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.protected-media[data-fit="contain"] .protected-canvas { object-fit: contain; }
.protected-overlay { position: absolute; inset: 0; background: transparent; }
.obf-rev { unicode-bidi: bidi-override; direction: rtl; }
.obf-mail-at::before { content: "@"; }
.obf-mail { user-select: none; -webkit-user-select: none; }

.object-meta-link { color: var(--gold-soft); border-bottom: 1px dotted rgba(240, 215, 137, .45); }
.object-meta-link:hover { color: var(--gold); }
#scans, #fundmeldungen { scroll-margin-top: 96px; }
#scans:target, #fundmeldungen:target { box-shadow: 0 0 0 1px var(--gold); }
.log-count {
  display: inline-block; margin-left: .35rem; font-size: .8rem; color: var(--muted); font-weight: 600;
}
.log-list { display: grid; gap: 0; }
.log-item {
  border-top: 1px solid var(--line); padding: 1rem 0; color: var(--text);
}
.log-item:first-child { border-top: 0; padding-top: 0; }
.log-item p { margin: .2rem 0; }
.log-time { color: var(--gold-soft); font-weight: 600; margin: 0 0 .35rem !important; }
.object-jump { display: flex; flex-wrap: wrap; gap: .4rem; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #0d1218; flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .steps, .icon-grid, .split, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 72vh; }
  .float-phone-label { display: none; }
}
