/* ============================================================
   Insolvenzhilfe Klein & Hauser GbR – Designsystem
   Mobile-First | 60-30-10-Farbregel | websichere Schriften
   ============================================================ */

:root {
  --bg-sage:        #F4F7F5;
  --bg-white:       #FFFFFF;
  --primary:        #CBDDCB;
  --primary-deep:   #3A5F43;
  --accent:         #000080;
  --anthracite:     #2B2F2D;
  --text:           #2E3835;
  --line:           #DDE7DF;
  --header-bg:      #3A5F43;
  --font-serif: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  --font-sans:  'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(58, 95, 67, 0.10);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-sage);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-deep); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--primary-deep); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--bg-white); color: var(--primary-deep); padding: .6em 1em; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 2.5rem 0; }
.content-box {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.dezent-divider { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.eyebrow {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary-deep); font-weight: 600; margin-bottom: .5rem;
}

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  min-height: 48px;
  line-height: 1.3;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .25s ease, color .25s ease;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: #00005c; color: #FFFFFF; }
.btn-outline { background: transparent; color: var(--primary-deep); border-color: var(--primary-deep); }
.btn-outline:hover { background: var(--primary); color: var(--primary-deep); }
.btn-soft { background: var(--primary); color: var(--primary-deep); }
.btn-soft:hover { background: #b9d0b9; }
.btn-row { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; }

/* ---------- Header & Navigation ---------- */
.site-header { background: var(--header-bg); color: #FFFFFF; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 10px; background: #fff; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-serif); color: #FFFFFF; font-size: 1.05rem; font-weight: 700; }
.brand-sub { color: var(--primary); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.header-phone a {
  color: #FFFFFF; text-decoration: none; font-weight: 700; display: flex;
  align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.12); font-size: .95rem;
  white-space: nowrap;
}
.header-phone a:hover { background: var(--accent); }

/* Mobile: Telefon-Button als eigene volle Zeile unter Logo/Menü,
   damit der Header nicht blockiert wird */
@media (max-width: 1023px) {
  .header-top { flex-wrap: wrap; }
  .header-phone { order: 3; width: 100%; }
  .header-phone a { justify-content: center; width: 100%; font-size: 1rem; }
}
.nav-toggle {
  background: none; border: 1px solid rgba(255,255,255,.4); color: #fff;
  font-size: 1rem; padding: .6rem .9rem; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
}
.site-nav { display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 1rem; }
.site-nav a, .site-nav a:visited {
  display: block; padding: .85rem .4rem; color: #FFFFFF; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.15); font-size: 1rem;
}
.site-nav a:hover { color: var(--primary); }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--primary) 0%, var(--bg-sage) 100%); padding: 2.5rem 0 2rem; text-align: center; }
.hero h1 { font-size: 1.85rem; margin-bottom: .4em; }
.hero .hero-sub { font-size: 1.05rem; max-width: 34rem; margin: 0 auto 1.25rem; }
.hero-badges { margin: 0 0 1.25rem; }
.hero-badge {
  display: inline-block; background: var(--bg-white); color: var(--primary-deep);
  border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; font-weight: 600;
  border: 1px solid var(--line); margin: .2rem;
}
.hero .btn-row { max-width: 22rem; margin: 0 auto; }
.hero-note { font-size: .9rem; color: var(--primary-deep); margin-top: 1rem; }

.page-hero { background: var(--primary); padding: 2.2rem 0; text-align: center; }
.page-hero h1 { margin-bottom: .2em; }
.page-hero p { max-width: 36rem; margin: 0 auto; color: var(--primary-deep); }

/* ---------- Karten / Grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.card { background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card-link { font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- Profile ---------- */
.profile { display: grid; gap: 1.25rem; }
.profile-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.profile-img img { width: 100%; object-fit: cover; aspect-ratio: 3 / 4; }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--primary-deep); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-list a { font-size: 1.05rem; text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.opening-hours { background: var(--primary); border-radius: var(--radius); padding: 1.25rem; }
.opening-hours h3 { margin-top: 0; }
.opening-hours table { width: 100%; border-collapse: collapse; }
.opening-hours td { padding: .35rem 0; border-bottom: 1px solid rgba(58,95,67,.15); }

/* ---------- Footer ---------- */
.site-footer { background: var(--anthracite); color: #D9DFDB; margin-top: 3rem; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; padding: 2.5rem 0 1.5rem; }
.footer-heading { color: #FFFFFF; font-family: var(--font-serif); margin-top: 0; font-size: 1.1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: .3rem 0; }
.footer-list a { color: #CBDDCB; }
.footer-claim { font-style: italic; color: #AFC5B2; margin: .5rem 0 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.25rem 0; font-size: .85rem; display: grid; gap: .5rem; }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--bg-white); border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(0,0,0,.15); padding: 1.1rem 1.25rem;
  max-height: 85vh; overflow-y: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: .3em; }
.cookie-banner p { font-size: .9rem; margin-bottom: .8em; }
.cookie-actions { display: grid; gap: .6rem; }
.cookie-actions .btn { text-align: center; }
.cookie-settings[hidden] { display: none; }
.cookie-cat { border: 1px solid var(--line); border-radius: 10px; padding: .8rem; margin: .6rem 0; }
.cookie-cat h3 { font-size: .95rem; margin: 0 0 .25em; }
.cookie-cat p { font-size: .85rem; margin: 0 0 .5em; }
.cookie-cat label { font-size: .9rem; display: flex; align-items: center; gap: .5rem; }

/* ---------- Dezente Animationen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ============================================================
   Tablet ≥ 768 px
   ============================================================ */
@media (min-width: 768px) {
  body { font-size: 1.125rem; }
  h1 { font-size: 2.1rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero .btn-row { flex-direction: row; justify-content: center; max-width: none; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 260px 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .cookie-banner { padding: 1.25rem 2rem; }
  .cookie-actions { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Desktop ≥ 1024 px
   ============================================================ */
@media (min-width: 1024px) {
  .section { padding: 3.5rem 0; }
  .hero h1 { font-size: 2.9rem; }
  .page-hero { text-align: left; }
  .page-hero .container > * { max-width: 46rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .profile { grid-template-columns: 300px 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
  .site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; padding: 0 0 .9rem; }
  .site-nav li { width: auto; }
  .site-nav a, .site-nav a:visited {
    border-bottom: 0; padding: .5rem .75rem; border-radius: 999px; font-size: .95rem;
  }
  .site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
  .site-nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: var(--primary); font-weight: 700; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .cookie-banner .cookie-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
}

/* ============================================================
   Illustrationen & Deko-Elemente (SVG)
   ============================================================ */
.section-tight { padding: 1.25rem 0; }
.svg-frame {
  background: var(--bg-white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.svg-frame svg { display: block; width: 100%; height: auto; }

.geo-icon { margin-bottom: .5rem; }

.wave-divider { padding: .5rem 0; }
.wave-divider svg { display: block; width: 100%; max-width: 800px; height: auto; margin: 0 auto; }

/* Schrittkette: auf Smartphones untereinander, ab Tablet nebeneinander */
.stepchain { display: grid; gap: 1rem; justify-items: center; align-items: start; margin: 2rem 0; }
.step { display: grid; justify-items: center; text-align: center; gap: .15rem; }
.step-dot {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--primary-deep); color: var(--primary-deep);
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700;
  background: var(--bg-white);
}
.step-dot--accent { border-color: var(--accent); color: var(--accent); }
.step-title { font-family: var(--font-serif); font-weight: 700; color: var(--primary-deep); margin-top: .35rem; }
.step-sub { font-size: .85rem; color: #6b756f; }
.step-line { display: none; }

@media (min-width: 768px) {
  .stepchain { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: .75rem; }
  .step-line {
    display: block; width: 48px; height: 3px; border-radius: 3px;
    background: var(--primary); margin-top: 1rem;
  }
}

/* Abstand zwischen Textblock und Schrittketten-Box */
.stepchain-box { margin-top: 2.5rem; }

