/* ============================================================
   site.css — Bauplatz Karolingerweg
   Zentrales Stylesheet für alle Seiten
   ============================================================ */

:root {
  --bg: #fbfaf7;
  --bg-alt: #eef0f4;
  --ink: #1a2332;
  --ink-soft: #3a4658;
  --ink-muted: #7a8492;
  --line: #d9dde4;
  --navy: #0e2a47;
  --navy-dark: #091d33;
  --navy-light: #1e3a5f;
  --gold: #b8956a;
  --success: #2d8a4f;
  --warn: #c97a3a;
  --error: #b3424e;
  --serif: Georgia, "Times New Roman", Cambria, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 580px; margin: 0 auto; padding: 0 2rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fbfaf7;
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 2rem;
}
.brand {
  font-family: var(--serif); color: var(--navy);
  font-size: 1.24rem; letter-spacing: -.012em;
  display: inline-flex; align-items: baseline; gap: .42rem;
  transition: opacity .2s;
}
.brand:hover { opacity: .78; }
/* Strassenname traegt die Marke, der Ort bleibt ruhiger Zusatz - gibt der
   Kopfzeile eine Hierarchie statt einer gleichfoermigen Zeile. */
.brand-main { font-weight: 600; }
.brand-sub  { font-weight: 400; font-size: .92em; color: var(--ink-soft); }
.brand-sub::before { content: '·'; margin-right: .42rem; color: var(--gold); }
.brand-mark {
  display: inline-block; width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%;
  margin-right: .15rem; align-self: center;
  box-shadow: 0 0 0 3px rgba(184,149,106,.18);
}
.nav { display: flex; gap: 1.8rem; align-items: center; }
.nav a { font-size: .88rem; color: var(--ink-soft); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--navy); }

.btn {
  display: inline-block;
  padding: .7rem 1.5rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .88rem; font-weight: 500;
  letter-spacing: .01em;
  transition: all .2s;
  cursor: pointer; border: none;
  text-align: center;
}
.btn-primary, .btn-primary:link, .btn-primary:visited { background: var(--navy); color: #fff !important; }
.btn-primary:hover { background: var(--navy-dark); color: #fff !important; }
.btn-ghost, .btn-ghost:link, .btn-ghost:visited { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy) !important; }
.btn-block { display: block; width: 100%; }
.btn-large { padding: .9rem 2rem; font-size: 1rem; }

/* ===== HERO ===== */
.hero {
  position: relative; height: 75vh;
  min-height: 560px; max-height: 780px;
  overflow: hidden; background: #000;
}
.hero-image {
  position: absolute; inset: 0;
  background-image: url("../images/hero-grundstueck.jpeg");
  background-size: cover; background-position: center 45%;
  filter: saturate(1.3) contrast(1.08);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,42,71,0) 0%, rgba(14,42,71,0) 48%, rgba(14,42,71,.30) 72%, rgba(14,42,71,.62) 100%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding-bottom: 4rem;
  color: #fff;
}
.hero-panel {
  align-self: flex-start; max-width: 980px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  opacity: 1; margin-bottom: .35rem;
  display: flex; align-items: center; gap: .8rem;
  padding: .5rem .9rem; border-radius: 5px;
  background: rgba(14,42,71,.45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.05rem, 5.2vw, 3.4rem);
  line-height: 1.08; letter-spacing: -.015em;
  max-width: 820px; margin-bottom: .35rem;
  overflow-wrap: normal; word-break: normal; hyphens: manual;
  padding: .6rem 1.9rem; border-radius: 5px;
  width: fit-content;
  background: rgba(14,42,71,.45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  text-shadow: 0 2px 10px rgba(8,18,32,.7), 0 0 4px rgba(8,18,32,.8);
}
.hero-title em { font-style: italic; color: #d3b074; }
.hero-sub { font-size: 1.05rem; max-width: 600px; opacity: 1; padding: .65rem 1.1rem; border-radius: 5px; background: rgba(14,42,71,.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); text-shadow: 0 1px 6px rgba(8,18,32,.85), 0 0 3px rgba(8,18,32,.7); }
.hero-meta {
  position: absolute; right: 2rem; bottom: 2rem;
  font-size: .75rem; opacity: .65; letter-spacing: .06em;
}

/* ===== FACTS BAR ===== */
.facts-bar { background: var(--navy); color: #fff; padding: 1.8rem 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fact {
  padding: .3rem 0 .3rem 1.4rem;
  border-left: 1px solid rgba(255,255,255,.18);
}
.fact:first-child { border-left: none; padding-left: 0; }
.fact-label {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  opacity: .62; margin-bottom: .3rem;
}
.fact-value {
  font-family: var(--sans); font-size: 1.7rem; font-weight: 500;
  letter-spacing: -.005em; font-variant-numeric: tabular-nums;
}
.fact-value small { font-size: 1rem; opacity: .7; font-family: var(--sans); }
.fact-label, .fact-value { -webkit-hyphens: manual; -ms-hyphens: manual; hyphens: manual; overflow-wrap: normal; word-break: normal; }

/* ===== SECTIONS ===== */
section { padding: 6rem 0; }
.section-eyebrow {
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 1.2rem; font-weight: 500;
  display: flex; align-items: center; gap: .8rem;
}
.section-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.18; letter-spacing: -.012em;
  margin-bottom: 1.4rem; max-width: 780px;
}
.section-title em { font-style: italic; color: var(--navy); }
.section-lede {
  font-size: 1.1rem; line-height: 1.65;
  color: var(--ink-soft); max-width: 680px;
}

/* ===== INTRO ===== */
.intro { padding-top: 6.5rem; }
.intro-grid { display: grid; grid-template-columns: 1.55fr 1.4fr; gap: 4rem; align-items: start; }
.intro-text p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.intro-text p:first-of-type { font-size: 1.18rem; color: var(--ink); }
.intro-text strong { color: var(--ink); font-weight: 600; }

/* ===== ECKDATEN ===== */
.eckdaten { background: var(--bg-alt); }
.eckdaten-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 5rem; align-items: start; }
.eckdaten-image {
  aspect-ratio: 4/5;
  background-image: url("../images/eckdaten.jpeg");
  background-size: cover; background-position: center;
  position: sticky; top: 5rem;
}
.eckdaten-row {
  display: grid; grid-template-columns: 1fr 1.3fr;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.eckdaten-row:last-child { border-bottom: none; }
.eckdaten-key {
  font-size: .82rem; color: var(--ink-muted);
  letter-spacing: .04em; text-transform: uppercase;
}
.eckdaten-val {
  font-family: var(--sans); font-size: 1.25rem;
  font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums;
}
.eckdaten-val.big { font-size: 1.75rem; }
.eckdaten-val small {
  font-family: var(--sans); font-size: .88rem;
  color: var(--ink-muted); margin-left: .3rem;
}
.eckdaten-val a {
  color: var(--navy); border-bottom: 1px solid var(--navy);
  padding-bottom: 1px;
}
.eckdaten-val a:hover { color: var(--navy-light); border-bottom-color: var(--navy-light); }
.eckdaten-note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  background: rgba(184,149,106,.12);
  border-left: 3px solid var(--gold);
  font-size: .9rem; color: var(--ink-soft);
}
.eckdaten-note strong { color: var(--ink); font-weight: 600; }

/* ===== GALERIE ===== */
.galerie-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px; gap: 1rem; margin-top: 3rem;
}
.galerie-item { overflow: hidden; background: #000; position: relative; cursor: pointer; }
.galerie-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease, filter .4s ease;
}
.galerie-item:hover img { transform: scale(1.04); filter: brightness(1.05); }
.g1 { grid-column: span 4; grid-row: span 2; }
.g2 { grid-column: span 2; }
.g3 { grid-column: span 2; }
.g4 { grid-column: span 3; grid-row: span 2; }
.g5 { grid-column: span 3; }
.g6 { grid-column: span 3; }

/* ===== VERFAHREN ===== */
.verfahren { background: var(--ink); color: #fff; padding: 7rem 0; }
.verfahren .section-eyebrow { color: var(--gold); }
.verfahren .section-title, .verfahren .section-title em { color: #fff; }
.verfahren .section-lede { color: rgba(255,255,255,.72); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 4rem; }
.step { position: relative; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.18); }
.step-num {
  position: absolute; top: -.5rem; left: 0;
  background: var(--ink); padding-right: 1rem;
  font-family: var(--serif); font-size: 1.35rem;
  color: var(--gold);
}
.step-title {
  font-family: var(--serif); font-size: 1.35rem;
  font-weight: 400; margin-bottom: 1rem; color: #fff;
}
.step-text { font-size: .94rem; color: rgba(255,255,255,.68); line-height: 1.6; }

/* ===== CTA ===== */
.cta { background: var(--bg-alt); text-align: center; padding: 6rem 0; }
.cta .section-title { margin-left: auto; margin-right: auto; }
.cta .section-eyebrow { justify-content: center; }
.cta-buttons {
  margin-top: 2.2rem; display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
}
.cta-note { margin-top: 1.8rem; font-size: .84rem; color: var(--ink-muted); }

/* ===== KONTAKT ===== */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.kontakt-card {
  background: #fff; border: 1px solid var(--line);
  padding: 2.4rem; border-radius: 2px;
}
.kontakt-card h4 {
  font-family: var(--serif); font-size: 1.3rem;
  font-weight: 400; margin-bottom: 1.4rem; color: var(--navy);
}
.kontakt-note {
  background: rgba(184,149,106,.12);
  border-left: 3px solid var(--gold);
  padding: .85rem 1.1rem;
  margin: -.4rem 0 1.5rem;
  font-size: .86rem; color: var(--ink-soft); line-height: 1.55;
}
.kontakt-row {
  padding: .7rem 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 1rem;
}
.kontakt-row:last-child { border-bottom: none; }
.kontakt-row span:first-child {
  font-size: .78rem; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.kontakt-row span:last-child {
  font-family: var(--serif); font-size: 1.02rem; text-align: right;
}
.kontakt-row a {
  color: var(--navy); border-bottom: 1px solid var(--navy);
  padding-bottom: 1px; font-family: var(--sans); font-size: .98rem;
}
.kontakt-row a:hover { color: var(--navy-light); border-bottom-color: var(--navy-light); }
.kontakt-muted { color: var(--ink-muted); font-style: italic; font-size: .95rem !important; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.55);
  padding: 2.5rem 0; font-size: .85rem;
}
.site-footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.site-footer a {
  color: rgba(255,255,255,.72); margin-right: 1.4rem; transition: color .2s;
}
.site-footer a:hover { color: #fff; }

/* ===== STATUS BAR (floating) ===== */
.status-bar {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line);
  padding: .65rem 1.3rem; border-radius: 100px;
  box-shadow: 0 4px 24px rgba(14,42,71,.08);
  font-size: .85rem;
  display: flex; align-items: center; gap: .65rem;
  z-index: 40;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-dot.dot-active { background: #5fb96a; animation: pulse 2s infinite; }
.status-dot.dot-prep { background: var(--gold); animation: pulse 2.4s infinite; }
.status-dot.dot-ended { background: var(--ink-muted); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.8); }
}

/* ===== TOP BUTTON ===== */
.top-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  background: var(--navy); color: #fff;
  border: 2px solid rgba(255,255,255,.9); border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s ease; z-index: 45;
}
.top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.top-btn:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* ===== AUTH-SEITEN (login, register, password_reset) ===== */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 0;
}
.auth-card {
  background: #fff; border: 1px solid var(--line);
  padding: 3rem 2.5rem; border-radius: 2px;
  width: 100%; max-width: 480px;
}
.auth-card h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.8rem; color: var(--navy);
  margin-bottom: .5rem; letter-spacing: -.01em;
}
.auth-card .auth-sub {
  color: var(--ink-soft); margin-bottom: 2rem;
  font-size: .95rem;
}
.auth-card .auth-eyebrow {
  font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--navy);
  font-weight: 500; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .7rem;
}
.auth-card .auth-eyebrow::before {
  content: ""; width: 20px; height: 1px; background: var(--gold);
}
.auth-card .auth-footer {
  margin-top: 1.8rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-soft); text-align: center;
}
.auth-card .auth-footer a { color: var(--navy); border-bottom: 1px solid var(--navy); }
.auth-card .auth-footer a:hover { color: var(--navy-light); border-bottom-color: var(--navy-light); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-narrow { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; }
.form-label {
  display: block; font-size: .78rem;
  color: var(--ink-muted); margin-bottom: .4rem;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 500;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--sans); font-size: .98rem;
  background: #fff; color: var(--ink);
  transition: border-color .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--navy);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: .8rem; color: var(--ink-muted); margin-top: .3rem; }
.form-error {
  color: var(--error); font-size: .85rem; margin-top: .3rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.2rem; border-radius: 2px;
  margin-bottom: 1.5rem; font-size: .92rem;
  border-left: 3px solid;
}
.alert-success { background: rgba(45,138,79,.08); border-color: var(--success); color: #1e5f37; }
.alert-error   { background: rgba(179,66,78,.08); border-color: var(--error); color: #872f39; }
.alert-info    { background: rgba(14,42,71,.06); border-color: var(--navy); color: var(--navy); }
.alert-warn    { background: rgba(184,149,106,.14); border-color: var(--gold); color: #7a5b34; }

/* ===== DASHBOARD ===== */
.dashboard-page { padding: 3rem 0 5rem; }
.dashboard-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 3rem;
  flex-wrap: wrap; gap: 1rem;
}
.dashboard-greeting {
  font-family: var(--serif); font-size: 1.6rem;
  font-weight: 400; color: var(--navy);
}
.dashboard-greeting span { color: var(--ink-muted); font-size: 1rem; display: block; }
.dashboard-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 2rem;
}
.card {
  background: #fff; border: 1px solid var(--line);
  padding: 2rem; border-radius: 2px;
}
.card-eyebrow {
  font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--navy);
  font-weight: 500; margin-bottom: .8rem;
}
.card h3 {
  font-family: var(--serif); font-size: 1.3rem;
  font-weight: 400; color: var(--ink); margin-bottom: 1rem;
}
.bid-current {
  text-align: center; padding: 2rem 1rem;
  background: var(--bg-alt); border-radius: 2px; margin-bottom: 1.5rem;
}
.bid-current-label {
  font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: .5rem;
}
.bid-current-value {
  font-family: var(--sans); font-size: 2.4rem;
  font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums;
}

/* ===== TEXT PAGES (impressum, datenschutz) ===== */
.text-page {
  max-width: 720px; margin: 0 auto;
  padding: 5rem 2rem 6rem;
}
.text-page h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 2.2rem; color: var(--navy);
  margin-bottom: 2rem; letter-spacing: -.01em;
}
.text-page h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.4rem; color: var(--ink);
  margin: 2.5rem 0 1rem;
}
.text-page p { margin-bottom: 1rem; color: var(--ink-soft); }
.text-page a { color: var(--navy); border-bottom: 1px solid var(--navy); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .container { padding: 0 1.4rem; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: .5rem .3rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(251,250,247,.98); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line); padding: .4rem 1.4rem 1.1rem;
    box-shadow: 0 14px 28px rgba(14,42,71,.14);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: .7rem; text-align: center; }
  .hero { height: auto; min-height: auto; max-height: none; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .8rem; row-gap: 1.5rem; }
  .fact { border-left: none; padding-left: 0; min-width: 0; }
  /* Label groesser, dafuer engeres letter-spacing - sonst bricht
     AKTUELLES HOECHSTGEBOT in der halben Spalte um */
  .fact-label { font-size: .68rem; letter-spacing: .06em; line-height: 1.3; min-height: 2.6em; }
  /* 1.3rem ist die groesste Groesse, bei der DHH Doppelhaushaelfte und
     04.08.2026 18:00 Uhr in einer halben Spalte einzeilig bleiben */
  .fact-value { font-size: 1.3rem; }
  .fact-value small { font-size: .55em; margin-left: .08em; }
  .intro-grid, .eckdaten-grid, .kontakt-grid, .dashboard-grid {
    grid-template-columns: 1fr; gap: 2.5rem;
  }
  .eckdaten-image { position: static; aspect-ratio: 16/10; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g1, .g2, .g3, .g4, .g5, .g6 { grid-column: span 2; grid-row: span 1; }
  .g1 { grid-row: span 2; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  section { padding: 4rem 0; }
  .hero-content { justify-content: flex-end; padding-top: 2.2rem; padding-bottom: 2.4rem; }
  .status-bar { left: 1rem; right: auto; transform: none; }
  .top-btn { bottom: 5rem; }
  .form-row, .form-row-narrow { grid-template-columns: 1fr; }
  .auth-card { padding: 2.2rem 1.6rem; }
}
/* ============================================================
   APPEND: Lage-Sektion + Admin-Layout-Refactor
   ============================================================ */

/* ===== LAGE: Renningen & Umgebung ===== */
.lage {
  padding: 6rem 0;
  background: #fff;
}
.lage-intro {
  max-width: 760px;
  margin: 2.5rem 0 4rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.lage-intro p {
  margin-bottom: 1.1rem;
}
.lage-intro p:first-child {
  font-size: 1.18rem;
  color: var(--ink);
}
.lage-intro strong {
  color: var(--ink);
  font-weight: 600;
}
.lage-intro a {
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
}
.lage-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.lage-card {
  background: var(--bg-alt);
  padding: 2rem 1.8rem;
  border-radius: 2px;
  position: relative;
}
.lage-card-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1;
}
.lage-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -.005em;
}
.lage-card-body {
  font-size: .94rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.lage-card-body p { margin-bottom: .8rem; }
.lage-card-body p:last-child { margin-bottom: 0; }
.lage-card-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lage-card-body li {
  padding: .35rem 0 .35rem 1.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: .92rem;
}
.lage-card-body li:last-child { border-bottom: none; }
.lage-card-body li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.2;
}
.lage-card-body strong {
  color: var(--ink);
  font-weight: 600;
}
.lage-card-body a {
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
}

/* Navigation: Lage-Link einbinden falls noch nicht da */
.nav a[href="/#lage"] { color: var(--ink-soft); }

@media (max-width: 900px) {
  .lage { padding: 4rem 0; }
  .lage-cards { grid-template-columns: 1fr; gap: 1.5rem; }
  .lage-intro { font-size: 1rem; }
}

/* ============================================================
   ADMIN-LAYOUT-REFACTOR
   ============================================================ */

/* Admin-Top-Reihe: 3 Karten gleich hoch */
.admin-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.admin-top-row .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.admin-top-row .card-spacer {
  flex: 1;
}
.admin-top-row.card-danger {
  border-color: var(--error);
}
.admin-top-row .card h3 {
  margin-bottom: 1rem;
}

/* Volle-Breite Karte */
.admin-fullwidth {
  margin-top: 0;
}
.admin-fullwidth .card {
  padding: 2rem;
}

@media (max-width: 1100px) {
  .admin-top-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .admin-top-row { grid-template-columns: 1fr; }
}

/* Eckdaten-Übersicht-Karte (rechts oben Quick-View) */
.eckdaten-quick {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.eckdaten-quick .ek-row {
  display: flex;
  justify-content: space-between;
  padding: .35rem 0;
  border-bottom: 1px dashed var(--line);
}
.eckdaten-quick .ek-row:last-child {
  border-bottom: none;
}
.eckdaten-quick .ek-key {
  color: var(--ink-muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.eckdaten-quick .ek-val {
  font-family: var(--sans);
  color: var(--ink);
  font-size: .95rem; font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ============================================================
   ADMIN-CONFIG-SEITE: Fieldsets
   ============================================================ */
.config-page {
  padding: 3rem 0 5rem;
}
.config-form fieldset {
  border: none;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin: 0;
}
.config-form fieldset:first-of-type {
  border-top: none;
  padding-top: 0;
}
.config-form legend {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy);
  padding: 0 1rem 0 0;
  margin-bottom: .3rem;
  letter-spacing: -.005em;
}
.config-form .fieldset-hint {
  font-size: .9rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.config-form .form-group {
  margin-bottom: 1.3rem;
}
.config-form .form-label {
  font-weight: 500;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: .92rem;
  margin-bottom: .35rem;
}
.config-form .form-hint {
  font-size: .82rem;
  color: var(--ink-muted);
  margin-top: .35rem;
}
.config-form textarea {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .92rem;
  line-height: 1.6;
  min-height: 180px;
  resize: vertical;
}
.config-form textarea.lage-text {
  min-height: 240px;
}
.config-form .form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.config-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 800px) {
  .config-form .form-row-2,
  .config-form .form-row-3 { grid-template-columns: 1fr; }
}

.markdown-preview-link {
  display: inline-block;
  font-size: .8rem;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  margin-left: .8rem;
}
.markdown-preview-link:hover {
  color: var(--navy-light);
  border-bottom-color: var(--navy-light);
}

/* Sticky-Save-Bar am unteren Rand bei admin_config.php */
.config-save-bar {
  position: sticky;
  bottom: 0;
  background: rgba(251, 250, 247, .96);
  backdrop-filter: blur(6px);
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  z-index: 10;
}
.config-save-bar .save-status {
  font-size: .88rem;
  color: var(--ink-muted);
}

/* Nav-Erweiterung für Admin-Bereich */
.admin-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: .92rem;
}
.admin-nav a {
  color: var(--ink-soft);
  padding-bottom: .25rem;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.admin-nav a:hover {
  color: var(--navy);
}
.admin-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: 500;
}
/* ============================================================
   Append zu site.css — Disclaimer-Boxen für rechtliche Hinweise
   ============================================================ */

/* Verfahrens-Disclaimer (große Box am Ende der #verfahren-Sektion) */
.verfahren-disclaimer {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: #fbfaf7;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  font-family: var(--sans);
}
.verfahren-disclaimer h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.8rem;
  letter-spacing: 0.01em;
}
.verfahren-disclaimer p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}
.verfahren-disclaimer p:last-child {
  margin-bottom: 0;
}
.verfahren-disclaimer strong {
  color: var(--navy);
}

/* Form-Disclaimer (kleinere Box im Gebot-Formular) */
.form-disclaimer {
  margin: 1.25rem 0 1.5rem;
  padding: 0.9rem 1.1rem;
  background: rgba(184, 149, 106, 0.08);
  border-left: 2px solid var(--gold);
  border-radius: 2px;
}
.form-disclaimer p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
  font-family: var(--sans);
}
.form-disclaimer p:last-child {
  margin-bottom: 0;
}
.form-disclaimer strong {
  color: var(--navy);
  font-weight: 500;
}

/* Mobile */
@media (max-width: 720px) {
  .verfahren-disclaimer {
    padding: 1.25rem 1.25rem;
    margin-top: 2rem;
  }
  .verfahren-disclaimer h4 {
    font-size: 1rem;
  }
  .verfahren-disclaimer p {
    font-size: 0.85rem;
  }
}
/* ============================================================
   Append zu site.css — Disclaimer-Boxen für rechtliche Hinweise
   ============================================================ */

/* Verfahrens-Disclaimer (große Box am Ende der #verfahren-Sektion) */
.verfahren-disclaimer {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: #fbfaf7;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  font-family: var(--sans);
}
.verfahren-disclaimer h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.8rem;
  letter-spacing: 0.01em;
}
.verfahren-disclaimer p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}
.verfahren-disclaimer p:last-child {
  margin-bottom: 0;
}
.verfahren-disclaimer strong {
  color: var(--navy);
}

/* Form-Disclaimer (kleinere Box im Gebot-Formular) */
.form-disclaimer {
  margin: 1.25rem 0 1.5rem;
  padding: 0.9rem 1.1rem;
  background: rgba(184, 149, 106, 0.08);
  border-left: 2px solid var(--gold);
  border-radius: 2px;
}
.form-disclaimer p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
  font-family: var(--sans);
}
.form-disclaimer p:last-child {
  margin-bottom: 0;
}
.form-disclaimer strong {
  color: var(--navy);
  font-weight: 500;
}

/* Mobile */
@media (max-width: 720px) {
  .verfahren-disclaimer {
    padding: 1.25rem 1.25rem;
    margin-top: 2rem;
  }
  .verfahren-disclaimer h4 {
    font-size: 1rem;
  }
  .verfahren-disclaimer p {
    font-size: 0.85rem;
  }
}

/* ── Automatische Silbentrennung (Deutsch, via <html lang="de">) ── */
body {
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
/* Große Display-Überschriften, Logo, Buttons und Navigation NICHT trennen */
h1, h2, .hero-title, .section-title, .brand, .btn, .nav {
  -webkit-hyphens: manual;
  -ms-hyphens: manual;
  hyphens: manual;
}

/* Lange Dokument-Titel in den Eckdaten sauber umbrechen (statt Kollision mit dem Link) */
.eckdaten-key, .eckdaten-val { min-width: 0; }
.eckdaten-key {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Spaltenabstand Eckdaten: Schluessel und Wert/Link nicht aneinanderkleben */
.eckdaten-row { column-gap: 1.6rem; }

/* Links nicht silbentrennen (z. B. "registrieren" nicht als "regis-trieren") */
a { -webkit-hyphens: manual; -ms-hyphens: manual; hyphens: manual; }

/* Vorteile-Karten: 3 Spalten (5 Karten = 3+2), gleiche Hoehe, responsiv */
.vorteile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.vorteile-grid > div { display: flex; flex-direction: column; }
@media (max-width: 900px) { .vorteile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .vorteile-grid { grid-template-columns: 1fr; } }

/* Aktiver Nav-Punkt (Scrollspy) deutlicher */
.nav a.active { color: var(--navy); font-weight: 600; }
@media (min-width: 901px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

/* Hero: sekundaerer Button lesbar auf dem Foto (statt dunklem Text auf Bild) */
.hero .btn-ghost, .hero .btn-ghost:link, .hero .btn-ghost:visited {
  background: rgba(14,42,71,.5);
  color: #fff !important;
  border-color: rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  text-shadow: 0 1px 5px rgba(8,18,32,.8);
}
.hero .btn-ghost:hover { background: rgba(14,42,71,.72); border-color: #fff; color: #fff !important; }

/* Galerie-Lightbox */
.galerie-grid img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(10,18,30,.93); display: none; align-items: center; justify-content: center; z-index: 200; padding: 2rem; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 12px 44px rgba(0,0,0,.55); cursor: default; }
.lightbox-caption { position: absolute; bottom: 1.1rem; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; opacity: .9; padding: 0 1rem; }
.lightbox-close { position: absolute; top: .8rem; right: 1.3rem; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; background: none; border: none; }

/* Hero auf Mobil: wächst mit Inhalt statt oben abzuschneiden */
@media (max-width: 720px) {
  .hero-title { font-size: clamp(1.6rem, 6.2vw, 3rem); }
  .hero-sub { font-size: .98rem; }
}
/* Hero-Umbrueche nur ab Tablet */
@media (max-width: 600px) { .hero-br { display: none; } }

/* ===== Barrierefreiheit: sichtbare Tastatur-Fokus-Markierung =====
   Nur bei Tastatur-Fokus (:focus-visible), nicht bei Mausklick. Ueberschreibt
   das fruehere outline:none der Formularfelder. */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible,
.nav-toggle:focus-visible, .top-btn:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #1d6fe0;
  outline-offset: 2px;
  border-radius: 3px;
}

/* ===== Benachrichtigungen: Badge (Glocke) + Toast + Modal ===== */
.nav-konto { position: relative; }
.nav-toggle { position: relative; }
.notif-badge {
  position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px;
  background: #d92d20; color: #fff; border-radius: 9px;
  font: 700 .72rem/18px system-ui, sans-serif; text-align: center;
  box-shadow: 0 0 0 2px #fbfaf7; animation: notifpulse 1.5s ease-in-out infinite;
}
.notif-badge[hidden] { display: none; }
@keyframes notifpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }

.toast {
  background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(14,42,71,.22);
  border-left: 4px solid var(--navy); padding: .8rem 1rem;
  display: flex; align-items: center; gap: .6rem; font-size: .9rem;
  animation: toastin .25s ease;
}
.toast-warn { border-left-color: #d99e00; background: #fff8e6; }
.toast-ok   { border-left-color: #1a7f37; background: #eaf6ee; }
.toast-err  { border-left-color: #d92d20; background: #fdecea; }
.toast-alert{ border-left-color: #ea580c; background: #fdeae4; }
.toast > span { flex: 1; }
.toast button {
  border: none; background: var(--navy); color: #fff; border-radius: 6px;
  padding: .38rem .7rem; font-size: .82rem; cursor: pointer; white-space: nowrap;
}
.toast .toast-x { background: none; color: var(--ink-muted); font-size: 1.2rem; line-height: 1; padding: 0 .2rem; }
@keyframes toastin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.modal-overlay { position: fixed; inset: 0; background: rgba(10,18,30,.6); display: none; align-items: center; justify-content: center; z-index: 500; padding: 1.5rem; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 12px; max-width: 420px; width: 100%; padding: 2rem 1.8rem; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); border-top: 5px solid #ea580c; }

/* Dashboard-Datenzeile: 5 Blöcke in EINER Reihe (nur Desktop) */
@media (min-width: 901px) {
  .facts-grid-5 { grid-template-columns: repeat(5, 1fr); gap: .8rem; }
  .facts-grid-5 .fact { padding-left: 1rem; }
  .facts-grid-5 .fact-value { font-size: 1.4rem; }
  .facts-grid-5 .fact-value small { font-size: .85rem; }
  .facts-grid-5 .fact-label { font-size: .64rem; letter-spacing: .1em; }
}

/* ===== Verfahrensstatus-Panel (Dashboard) ===== */
.status-panel { background: var(--navy); color: #fff; border-radius: 12px; padding: 1.1rem 1.4rem; margin-bottom: 2rem; scroll-margin-top: 5.5rem; }
.status-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.sp-status { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .7rem; }
.sp-badge { font-weight: 700; font-size: .88rem; padding: .26rem .75rem; border-radius: 100px; white-space: nowrap; border: 2px solid transparent; }
.sp-badge-ok { background: rgba(26,127,55,.16); color: #a7f0c0; border-color: #4ade80; }
.sp-badge-err { background: rgba(230,90,50,.16); color: #ffc2b0; border-color: #ff7a59; }
.sp-badge-warn { background: rgba(217,158,0,.20); color: #ffd576; border-color: #eab308; }
.sp-badge-neutral { background: rgba(255,255,255,.12); color: #d8dee8; border-color: rgba(255,255,255,.3); }
.sp-note { font-size: .88rem; color: rgba(255,255,255,.82); }
.sp-cta { background: #fff; color: var(--navy); font-weight: 600; font-size: .82rem; padding: .32rem .75rem; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.status-panel-frist { font-size: .9rem; color: rgba(255,255,255,.85); }
.status-panel-frist strong { color: #fff; }
.status-panel-frist #countdown { color: #fff; font-weight: 600; white-space: nowrap; }
/* Vier Spalten: bei sieben Kennzahlen ergibt das 4 + 3 und damit zwei ruhige
   Reihen. Mit den frueheren fuenf Spalten stand die zweite Reihe mit nur zwei
   sehr breiten Zellen da (Treppeneffekt, 28.07.2026). */
.status-panel-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem .8rem; padding: 1rem 0; }
.status-panel-facts .fact { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.14); }
/* Trennlinie nur zwischen den Zellen einer Reihe - die erste jeder Reihe ohne. */
.status-panel-facts .fact:nth-child(4n+1) { padding-left: 0; border-left: none; }
.status-panel-facts .fact-label { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: .25rem; }
/* Feste Mindesthoehe und gemeinsame Grundlinie: sonst sind Zellen mit kuerzerem
   Text niedriger als die uebrigen und die Reihe wirkt stufig. */
.status-panel-facts .fact-value { font-family: var(--sans); font-size: 1.35rem; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.3; min-height: 1.85rem; display: flex; align-items: baseline; gap: .3rem; flex-wrap: wrap; }
.status-panel-facts .fact-value small { font-size: .8rem; opacity: .7; }
.status-panel-foot { padding-top: .85rem; border-top: 1px solid rgba(255,255,255,.14); }
.status-panel-foot a { color: rgba(255,255,255,.9); font-size: .88rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
@media (max-width: 900px) {
  .status-panel-facts { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  /* Im Zweispalter gilt die Reihenlogik von oben nicht mehr */
  .status-panel-facts .fact:nth-child(4n+1) { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.14); }
  .status-panel-facts .fact:nth-child(odd)  { padding-left: 0; border-left: none; }
  .status-panel-facts .fact { padding-left: 0; border-left: none; }
}

/* Nur auf schmalen Handys das Container-Padding kuerzen, damit die halbe
   Spalte breit genug bleibt. Ab Tablet buendig mit allen anderen
   Sections (.container = 1.4rem), sonst steht die Bar sichtbar weiter links */
@media (max-width: 600px) {
  .facts-bar .container { padding: 0 1rem; }
}
/* Tablet: ab 760px reicht die Breite fuer vier Spalten wie auf dem Desktop
   (4 x 165px + Gaps + Padding). Darunter bleibt es zweispaltig. */
@media (min-width: 760px) and (max-width: 900px) {
  .facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: .8rem; }
}
@media (max-width: 344px) { .fact-value { font-size: 1.15rem; } .fact-label { font-size: .62rem; } }
/* Ab 375px ist in der halben Spalte genug Reserve fuer eine groessere
   Einheit (m2, EUR, Doppelhaushaelfte, Uhrzeit) - darunter nicht */
@media (min-width: 375px) and (max-width: 900px) {
  .fact-value small { font-size: .63em; }
  .fact-label { font-size: .78rem; }
}
/* Ab 390px (iPhone 12-16) reicht die Reserve in der halben Spalte fuer
   eine deutlich groessere Einheit - gemessen mit ?debug=1 */
@media (min-width: 390px) and (max-width: 900px) {
  .fact-value small { font-size: .7em; }
  .fact-label { font-size: .76rem; }
}
