/* =========================================================
   Kanzlei Walder & Kollegen – Stylesheet
   ========================================================= */

:root {
  --navy:        #1c2b3a;
  --navy-deep:   #14202c;
  --navy-soft:   #2a3e52;
  --gold:        #b08d57;
  --gold-light:  #c9a978;
  --cream:       #f7f4ee;
  --paper:       #ffffff;
  --ink:         #2b2b2b;
  --muted:       #6b7480;
  --line:        #e4ddd1;
  --max:         1140px;
  --radius:      10px;
  --shadow:      0 18px 40px rgba(20, 32, 44, 0.12);
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: 0.2px;
}

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

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--navy);
  color: var(--gold-light);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 8px;
  letter-spacing: 0.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: url("images/haus-seite.jpg") center 35% / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(20, 32, 44, 0.92) 0%, rgba(20, 32, 44, 0.74) 55%, rgba(20, 32, 44, 0.35) 100%);
}
.hero-content {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 24px;
  color: #fff;
  max-width: 760px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 1.22rem;
  line-height: 1.7;
  font-weight: 400;
  max-width: 600px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(10, 18, 26, 0.55);
  margin-bottom: 34px;
}
.hero-lead strong { font-weight: 600; color: var(--gold-light); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 6px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

/* ---------- Zitat-Band ---------- */
.quote-band {
  background: var(--navy-deep);
  color: var(--cream);
  text-align: center;
  padding: 64px 24px;
}
.quote-band blockquote {
  max-width: 820px;
  margin: 0 auto;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
}
.quote-band cite {
  display: block;
  margin-top: 22px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section-intro { color: var(--muted); font-size: 1.08rem; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 22px; }
.split-text p {
  margin-bottom: 18px;
  color: #44505c;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.media-caption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.facts {
  list-style: none;
  display: flex;
  gap: 36px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.facts li { display: flex; flex-direction: column; flex: 0 1 auto; max-width: 240px; }
.facts strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1.25;
}
.facts span { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.04); }

/* Bildergalerie (Stefan Walder) */
.gallery { position: relative; }
.gallery .gallery-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.5s var(--ease);
}
.gallery .gallery-slide.is-active { opacity: 1; }
.gallery-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 4px;
}
.gallery-dot {
  width: 26px; height: 26px; padding: 0;
  background: none; border: 0; cursor: pointer;
  display: grid; place-items: center;
}
.gallery-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(20, 32, 44, 0.35);
  transition: background 0.3s, transform 0.3s;
}
.gallery-dot.is-active::before { background: #fff; transform: scale(1.25); }
.gallery-dot:focus-visible { outline: 2px solid var(--gold); border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .gallery .gallery-slide { transition: none; } }
.team-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.team-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
}
.team-body h3 { font-size: 1.7rem; margin: 6px 0 4px; }
.team-spec { font-weight: 600; color: var(--navy); margin-bottom: 14px; font-size: 0.98rem; }
.team-text {
  color: #54606c;
  font-size: 0.96rem;
  margin-bottom: 20px;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.team-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.team-tags li {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--navy-soft);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
}

/* ---------- Rechtsgebiete ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.area {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.area:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.area h3 { font-size: 1.4rem; margin-bottom: 10px; }
.area p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Kontakt ---------- */
.section-dark { background: var(--navy); color: #eef1f4; }
.section-dark h2 { color: #fff; }
/* Im dunklen Bereich Textfarben überschreiben (sonst greift .split-text p) */
.section-dark .split-text p { color: rgba(255, 255, 255, 0.88); }
.section-dark .contact-name { color: #fff; }
.section-dark .contact-note { color: var(--gold-light); }
.contact-lead { color: rgba(255, 255, 255, 0.88); margin-bottom: 28px; }
.contact-card {
  background: var(--navy-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 30px;
  max-width: 420px;
}
.contact-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.contact-card address {
  font-style: normal;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}
.contact-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.contact-label {
  flex: 0 0 42px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  font-weight: 600;
}
.contact-list a { transition: color 0.2s var(--ease); }
.contact-list a:hover { color: var(--gold-light); }
.contact-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: var(--gold-light);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-name { color: #fff; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 0.9rem; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--gold-light); }
.footer-copy { width: 100%; text-align: center; font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 22px; }

/* ---------- Rechtstext-Seiten (Impressum / Datenschutz) ---------- */
.legal { padding: 64px 0 88px; background: var(--paper); }
.legal .container { max-width: 820px; }
.legal h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--gold);
}
.legal h2 {
  font-size: 1.7rem;
  margin: 40px 0 12px;
}
.legal h3 { font-size: 1.25rem; margin: 24px 0 8px; }
.legal p { margin-bottom: 14px; color: #3c4753; }
.legal ul { margin: 0 0 16px 22px; color: #3c4753; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--gold); text-decoration: underline; }
.legal a:hover { color: var(--navy); }
.legal .placeholder {
  background: #fff7e8;
  border: 1px dashed var(--gold);
  border-radius: 6px;
  padding: 2px 8px;
  color: #8a6d3b;
  font-weight: 600;
}
.legal .back-link { display: inline-block; margin-bottom: 30px; font-weight: 600; }
.legal .updated { margin-top: 36px; font-size: 0.88rem; color: var(--muted); }

/* ---------- Cookie-Hinweis ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(20px);
  width: min(680px, calc(100% - 32px));
  background: var(--navy);
  color: #eef1f4;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.cookie-banner.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cookie-text { flex: 1 1 340px; }
.cookie-text strong { display: block; margin-bottom: 4px; color: #fff; font-size: 1rem; }
.cookie-banner p { margin: 0; font-size: 0.9rem; line-height: 1.6; }
.cookie-banner a { color: var(--gold-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-banner .cookie-btn {
  background: var(--gold);
  color: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cookie-banner .cookie-btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.cookie-banner .cookie-btn-ghost {
  background: transparent;
  color: #eef1f4;
  border-color: rgba(255, 255, 255, 0.4);
}
.cookie-banner .cookie-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }

@media (max-width: 520px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .cookie-btn { flex: 1; }
}

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media { order: -1; }
  #kontakt .split-media { order: 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 68px 0; }
  .hero-content { padding: 70px 24px; }
  .areas-grid { grid-template-columns: 1fr; }
  .facts { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
