/* ============================================================
   Anwalts- und Mediationskanzlei Galda – Corporate Design
   Grün:  #0f5c24   |   Gelb: #fffad8 / #d9d4b8
   ============================================================ */

:root {
  --green: #0f5c24;
  --green-dark: #0a4319;
  --green-deep: #08351a;
  --cream: #fffad8;
  --cream-soft: #fdf9e8;
  --sand: #d9d4b8;
  --sand-light: #eceadb;
  --paper: #fdfdfa;
  --ink: #24301f;
  --muted: #5d6b58;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(15, 92, 36, 0.08);
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration-color: var(--sand); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); text-decoration-color: var(--green); }

h1, h2, h3, .brand-text strong {
  font-family: var(--font-display);
  color: var(--green-dark);
  line-height: 1.25;
  font-weight: 700;
}

h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p, ul, ol, dl { margin-bottom: 1rem; }
main ul, main ol { padding-left: 1.4rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 800px; }
.muted { color: var(--muted); font-size: 0.95rem; }
.mt { margin-top: 2.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.5rem;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 250, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--green);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; min-width: 0; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 1.05rem; }
.brand-text span { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  width: 22px; height: 2px;
  background: var(--green);
  transition: transform 0.2s;
}

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; margin: 0; }
.site-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  border-radius: 6px;
}
.site-nav a:hover { background: var(--cream); color: var(--green-dark); }
.site-nav a[aria-current="page"] { color: var(--green); font-weight: 600; }

.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: 0.7em; color: var(--muted); }
.has-sub .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub { display: flex; }
.sub li { width: 100%; }
.sub a { width: 100%; }

.nav-cta a {
  background: var(--green);
  color: #fff !important;
  font-weight: 600;
  margin-left: 0.5rem;
}
.nav-cta a:hover { background: var(--green-dark); }

/* ---------------- Buttons ---------------- */

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.15s, transform 0.15s;
}
.button:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }

.button-yellow { background: var(--cream); color: var(--green-dark); border: 1px solid var(--sand); }
.button-yellow:hover { background: #fff6bd; color: var(--green-deep); }

.button-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.button-outline:hover { background: var(--green); color: #fff; }

.button-ghost { background: rgba(255, 250, 216, 0.15); color: var(--cream); border: 1.5px solid var(--cream); }
.button-ghost:hover { background: var(--cream); color: var(--green-deep); }

/* ---------------- Hero (Startseite) ---------------- */

.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(115deg, var(--green-deep), var(--green) 75%, #1b7a35);
  border-bottom: 4px solid var(--sand);
}
.hero-content { position: relative; padding-top: 4rem; padding-bottom: 4rem; max-width: 1120px; width: 100%; }
.hero-content .eyebrow { color: var(--cream); }
.hero-content h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  max-width: 24ch;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.hero-content .lead { color: var(--cream); font-size: 1.15rem; max-width: 55ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------------- Seiten-Hero (Unterseiten) ---------------- */

.page-hero {
  background: linear-gradient(115deg, var(--green-deep), var(--green) 75%, #1b7a35);
  padding: 3rem 0 2.75rem;
  border-bottom: 4px solid var(--sand);
}
.page-hero .eyebrow { color: var(--cream); opacity: 0.9; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-wrap: balance; }
.page-hero .lead { color: var(--cream); margin: 0.75rem 0 0; max-width: 65ch; }

/* ---------------- Sektionen ---------------- */

.section { padding: 3.5rem 0; }
.section-cream {
  background: linear-gradient(180deg, var(--cream-soft), var(--cream) 130%);
  border-top: 1px solid var(--sand-light);
  border-bottom: 1px solid var(--sand-light);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.grid-asym { grid-template-columns: 3fr 2fr; }

/* ---------------- Karten ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.cards-compact { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards-2 { grid-template-columns: 1fr 1fr; }

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--sand);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(15, 92, 36, 0.15);
}
.card p { margin-bottom: 0.5rem; font-size: 0.97rem; }
.card-more { color: var(--green); font-weight: 600; font-size: 0.9rem; }
.card-more::after { content: " →"; }

.note-card {
  background: var(--cream-soft);
  border: 1px solid var(--sand);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.1rem;
  margin-bottom: 1.25rem;
}
.note-card h3 { margin-bottom: 0.6rem; }
.note-card p:last-child, .note-card ul:last-child { margin-bottom: 0; }

.announcement { margin: 1.5rem auto 0; }
.announcement p { margin-bottom: 0.5rem; }
.announcement p:last-child { margin-bottom: 0; }

.announcement .box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--sand);
  border-left: 4px solid var(--green);
  background: var(--paper);
  padding: 0.85rem 1.1rem;
  margin: 0.5rem 0;
}
.announcement .box:first-child { margin-top: 0; }
.announcement .box:last-child { margin-bottom: 0; }
.announcement .box::before {
  flex: none;
  font-size: 1.15rem;
  line-height: 1.65;
}
.announcement .box-content p:last-child { margin-bottom: 0; }

.announcement .box-info { border-left-color: var(--green); background: var(--cream-soft); }
.announcement .box-success { border-left-color: #2f7d43; background: #eef7ec; }
.announcement .box-warn { border-left-color: #b8860b; background: #fff8e6; }
.announcement .box-error { border-left-color: #b3261e; background: #fdecea; }

.announcement .box-info::before { content: "ℹ️"; }
.announcement .box-success::before { content: "✅"; }
.announcement .box-warn::before { content: "⚠️"; }
.announcement .box-error::before { content: "⛔"; }

.contact-block { font-size: 1.05rem; margin-bottom: 1.5rem; }

/* ---------------- Listen ---------------- */

.check-list { list-style: none; padding-left: 0 !important; }
.check-list li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------------- Lebenslauf-Timeline ---------------- */

.timeline { margin-top: 1.5rem; border-left: 3px solid var(--sand); }
.timeline > div {
  position: relative;
  padding: 0 0 1.4rem 1.75rem;
}
.timeline > div::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0.45rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--cream);
}
.timeline dt { font-weight: 700; color: var(--green-dark); font-family: var(--font-display); }
.timeline dd { margin: 0.15rem 0 0; }

/* ---------------- Verfahrensordnung (Akkordeon) ---------------- */

details.vo {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
details.vo summary {
  cursor: pointer;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--green-dark);
  list-style: none;
  position: relative;
}
details.vo summary::-webkit-details-marker { display: none; }
details.vo summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  color: var(--green);
  font-size: 1.3rem;
  line-height: 1;
}
details.vo[open] summary::after { content: "–"; }
details.vo[open] summary { background: var(--cream-soft); border-bottom: 1px solid var(--sand-light); }
details.vo > *:not(summary) { margin-left: 1.2rem; margin-right: 1.2rem; }
details.vo > p:first-of-type, details.vo > div:first-of-type { margin-top: 1rem; }
details.vo > *:last-child { margin-bottom: 1.1rem; }
details.vo ol, details.vo ul { padding-left: 1.4rem; }
details.vo li { margin-bottom: 0.4rem; }

/* ---------------- Tabellen ---------------- */

.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--sand-light); }
thead th { background: var(--green); color: var(--cream); font-weight: 600; }
tbody tr:nth-child(even) { background: var(--cream-soft); }

/* ---------------- Iframes: Buchung, DVB, Karte ---------------- */

.booking-frame, .dvb-frame, .map-frame {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.booking-frame iframe {
  width: 100%;
  height: min(190vw, 900px);
  border: none;
  display: block;
}
.dvb-frame iframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}
.map-frame .map-canvas {
  width: 100%;
  height: 380px;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--green-deep);
  color: var(--cream);
  margin-top: 2rem;
  border-top: 4px solid var(--sand);
}
.site-footer h2 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: #fff; }
.site-footer .button-yellow { color: var(--green-dark); }
.site-footer .button-yellow:hover { color: var(--green-deep); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
  font-size: 0.95rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 250, 216, 0.25);
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.8;
}
.footer-bottom p { margin: 0; }

/* ---------------- Responsive ---------------- */

.wide-only { display: inline; }

@media (max-width: 900px) {
  .grid-2, .grid-asym, .cards, .cards-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .wide-only { display: none; }

  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 3px solid var(--green);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1rem; gap: 0; }
  .site-nav a { padding: 0.7rem 0.5rem; font-size: 1.05rem; }
  .has-sub .sub {
    display: flex; position: static; border: none; box-shadow: none;
    background: var(--cream-soft); border-radius: 8px; margin: 0 0 0.4rem;
  }
  .sub a { font-size: 0.95rem; padding-left: 1.4rem; }
  .has-sub > a::after { content: ""; }
  .nav-cta a { margin: 0.6rem 0 0; text-align: center; border-radius: 8px; }

  .hero { min-height: 420px; }
  .section { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
  .brand-text span { display: none; }
  .brand-text strong { font-size: 0.95rem; }
}
