/* ==========================================================
   Nöring Steuerberatung – Stylesheet
   Farben und Schriften zentral hier ändern (:root)
   ========================================================== */
@import url("fonts.css");

:root {
  --gruen-dunkel: #123f3c;
  --gruen: #174a47;
  --gruen-hell: #2c6a65;
  --flaeche: #f3f6f5;
  --flaeche-2: #e7eeec;
  --linie: #d5dfdc;
  --text: #1f2a29;
  --text-leise: #5b6866;
  --weiss: #ffffff;
  --akzent: #b89a5e;

  --schrift-titel: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --schrift-text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --breite: 1160px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-underline-offset: 3px; }
a:hover { color: var(--gruen-hell); }

h1, h2, h3, h4 {
  font-family: var(--schrift-titel);
  font-weight: 500;
  color: var(--gruen-dunkel);
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.85rem, 4.2vw, 3.1rem); overflow-wrap: break-word; hyphens: auto; }
.hero .container > *, .zweispaltig > * { min-width: 0; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; hyphens: auto; overflow-wrap: break-word; }
p { margin: 0 0 1em; }

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

.ueberzeile {
  font-family: var(--schrift-titel);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--akzent);
  margin-bottom: .9em;
  display: block;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}
.kopf .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav li { position: relative; }
.nav a, .nav .nav-gruppe > button {
  display: block;
  padding: 10px 14px;
  font-family: var(--schrift-titel);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav .nav-gruppe > button:hover, .nav a[aria-current="page"] { color: var(--gruen-hell); }
.nav .nav-gruppe > button::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav .untermenue {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(18,63,60,.10);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.nav .nav-gruppe:hover .untermenue,
.nav .nav-gruppe:focus-within .untermenue { opacity: 1; visibility: visible; transform: none; }
.nav .untermenue a { padding: 9px 18px; font-size: .9rem; }
.nav .untermenue a:hover { background: var(--flaeche); }
.nav a.knopf { color: var(--weiss); background: var(--gruen); border-radius: var(--radius); margin-left: 10px; padding: 11px 20px; }
.nav a.knopf:hover { color: var(--weiss); background: var(--gruen-dunkel); }

.menue-knopf { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menue-knopf span { display: block; width: 24px; height: 2px; background: var(--gruen-dunkel); margin: 5px 0; transition: .2s; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-block;
  background: var(--gruen);
  color: var(--weiss);
  font-family: var(--schrift-titel);
  font-weight: 500;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--gruen);
  transition: background .15s ease;
  cursor: pointer;
}
.knopf:hover { background: var(--gruen-dunkel); color: var(--weiss); }
.knopf.hell { background: transparent; color: var(--gruen); }
.knopf.hell:hover { background: var(--flaeche); color: var(--gruen-dunkel); }
.knopf.auf-dunkel { background: var(--weiss); color: var(--gruen-dunkel); border-color: var(--weiss); }
.knopf.auf-dunkel:hover { background: var(--flaeche); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 96px 0; }
.abschnitt.flaeche { background: var(--flaeche); }
.abschnitt.dunkel { background: var(--gruen-dunkel); color: #dce7e5; }
.abschnitt.dunkel h2, .abschnitt.dunkel h3 { color: var(--weiss); }
.abschnitt-kopf { max-width: 720px; margin-bottom: 48px; }
.abschnitt-kopf p { color: var(--text-leise); font-size: 1.15rem; }
.dunkel .abschnitt-kopf p { color: #b9cdca; }

/* ---------- Startseite: Hero ---------- */
.hero { background: var(--flaeche); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; min-height: 600px; }
.hero-text { padding: 80px 0; }
.hero h1 { margin-bottom: .4em; }
.hero .leitsatz { font-family: var(--schrift-titel); font-size: 1.15rem; color: var(--gruen-hell); letter-spacing: .02em; margin-bottom: 1.4em; }
.hero p.einleitung { font-size: 1.2rem; color: var(--text-leise); max-width: 540px; margin-bottom: 2em; }
.hero-bild { align-self: stretch; position: relative; }
.hero-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Zwei Spalten ---------- */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.zweispaltig.mitte { align-items: center; }

/* ---------- Karten ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.karten.zwei { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .15s, transform .15s;
}
.karte:hover { border-color: var(--gruen-hell); }
.karte .nr { font-family: var(--schrift-titel); font-size: .85rem; color: var(--akzent); font-weight: 600; letter-spacing: .1em; display: block; margin-bottom: 18px; }
.karte p { color: var(--text-leise); margin: 0; font-size: 1.05rem; }
.karte ul { margin: 0; padding-left: 1.1em; color: var(--text-leise); font-size: 1.02rem; }
.karte ul li { margin-bottom: .35em; }
.karte ul li::marker { color: var(--gruen-hell); }

/* ---------- Werte (Persönlich / Vorausschauend / Digital) ---------- */
.werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.wert { border-top: 2px solid var(--gruen); padding-top: 24px; }
.wert p { color: var(--text-leise); margin: 0; }
.dunkel .wert { border-color: var(--akzent); }
.dunkel .wert p { color: #b9cdca; }

/* ---------- Kennzahlen im Hero ---------- */
.fakten { list-style: none; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: 16px 40px; }
.fakten li { color: var(--text-leise); font-size: .98rem; line-height: 1.3; }
.fakten strong { display: block; font-family: var(--schrift-titel); font-weight: 500; font-size: 1.5rem; color: var(--gruen-dunkel); }

/* Karte als Link */
a.karte.link { display: block; text-decoration: none; color: inherit; position: relative; }
a.karte.link::after { content: "→"; position: absolute; right: 26px; top: 28px; color: var(--akzent); font-size: 1.2rem; transition: transform .15s; }
a.karte.link:hover { border-color: var(--gruen-hell); box-shadow: 0 10px 28px rgba(18,63,60,.08); }
a.karte.link:hover::after { transform: translateX(4px); }

.einspaltig { grid-template-columns: 1fr !important; }
p.gross { font-size: 1.22rem; line-height: 1.7; color: #33403e; }

/* ---------- Ablauf in Schritten ---------- */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: schritt; }
.schritte li { counter-increment: schritt; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; position: relative; }
.flaeche .schritte li { background: var(--weiss); }
.schritte li::before { content: counter(schritt); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gruen); color: var(--weiss); font-family: var(--schrift-titel); font-weight: 600; margin-bottom: 18px; }
.schritte p { color: var(--text-leise); margin: 0; font-size: 1.03rem; }

/* ---------- Häufige Fragen ---------- */
.fragen details { border-bottom: 1px solid var(--linie); padding: 4px 0; }
.fragen details:first-child { border-top: 1px solid var(--linie); }
.fragen summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-family: var(--schrift-titel); font-weight: 500; color: var(--gruen-dunkel); position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--gruen-hell); transition: transform .2s; }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details p { color: var(--text-leise); padding-bottom: 12px; }

.knopf-reihe.mittig { justify-content: center; }
.knopf.rand-hell { background: transparent; color: var(--weiss); border-color: rgba(255,255,255,.5); }
.knopf.rand-hell:hover { background: rgba(255,255,255,.1); color: var(--weiss); }

/* ---------- Seitenkopf Unterseiten ---------- */
.seitenkopf { background: var(--flaeche); padding: 80px 0 64px; border-bottom: 1px solid var(--linie); }
.seitenkopf p { font-size: 1.2rem; color: var(--text-leise); max-width: 720px; margin: 0; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.person img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; width: 100%; border-radius: var(--radius); background: var(--flaeche-2); }
.person h3 { margin: 16px 0 2px; font-size: 1.05rem; }
.person p { color: var(--text-leise); margin: 0; font-size: 1rem; }

/* ---------- Kontakt ---------- */
.kontakt-daten dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0 0 32px; }
.kontakt-daten dt { color: var(--text-leise); }
.kontakt-daten dd { margin: 0; }
.oeffnungszeiten { border-top: 1px solid var(--linie); padding-top: 24px; }
.formular { background: var(--flaeche); padding: 40px; border-radius: var(--radius); }
.formular label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.formular input, .formular textarea, .formular select {
  width: 100%; padding: 12px 14px; margin-bottom: 18px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
}
.formular input:focus, .formular textarea:focus { outline: 2px solid var(--gruen-hell); outline-offset: 0; border-color: transparent; }
.formular textarea { min-height: 150px; resize: vertical; }
.formular .hinweis { font-size: .9rem; color: var(--text-leise); }
.formular .einwilligung { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.formular .einwilligung input { width: auto; margin: 5px 0 0; }
.formular .honig { position: absolute; left: -9999px; }
.meldung { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; display: none; }
.meldung.ok { background: #e3f1ec; color: #1d5a43; }
.meldung.fehler { background: #f8e8e6; color: #8a2f25; }
.meldung.sichtbar { display: block; }

/* ---------- Downloads / Vorlagen ---------- */
.dateiliste { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--linie); }
.dateiliste li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linie); }
.dateiliste a { font-family: var(--schrift-titel); font-size: .88rem; font-weight: 500; white-space: nowrap; }
.einbettung { width: 100%; border: 0; min-height: 900px; }

/* ---------- Rechtstexte ---------- */
.rechtstext h2 { font-size: 1.3rem; margin-top: 2em; }
.rechtstext h3 { margin-top: 1.5em; }
.rechtstext p, .rechtstext li { color: #384543; }

/* ---------- Abschluss-Aufruf ---------- */
.aufruf { text-align: center; }
.aufruf .container { max-width: 760px; }
.aufruf p { font-size: 1.15rem; margin-bottom: 2em; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--gruen-dunkel); color: #b9cdca; padding: 72px 0 32px; font-size: 1rem; }
.fuss a { color: #dce7e5; text-decoration: none; }
.fuss a:hover { color: var(--weiss); text-decoration: underline; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.fuss h4 { color: var(--weiss); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.2em; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .5em; }
.fuss-marke { font-family: var(--schrift-titel); color: var(--weiss); font-size: 1.4rem; font-weight: 500; letter-spacing: .02em; margin-bottom: .2em; }
.fuss-unten { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .9rem; }
.fuss-unten ul { display: flex; gap: 24px; }

.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.whatsapp svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Handy & Tablet ---------- */
@media (max-width: 1020px) {
  .menue-knopf { display: block; }
  .nav {
    position: fixed; inset: 84px 0 0 0; background: var(--weiss);
    flex-direction: column; align-items: stretch; padding: 16px 24px 40px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .nav.offen { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--linie); }
  .nav a, .nav .nav-gruppe > button { padding: 16px 0; font-size: 1.05rem; width: 100%; text-align: left; }
  .nav .nav-gruppe > button::after { display: none; }
  .nav .untermenue { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 16px; min-width: 0; }
  .nav .untermenue a { padding: 10px 0; }
  .nav a.knopf { margin: 24px 0 0; text-align: center; padding: 14px; }
  body.menue-offen { overflow: hidden; }

  .hero .container { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 0; }
  .hero-text { padding: 56px 24px 48px; }
  .hero-bild { height: 380px; order: -1; }
  .zweispaltig { grid-template-columns: 1fr; gap: 40px; }
  .werte { grid-template-columns: 1fr; gap: 32px; }
  .schritte { grid-template-columns: 1fr; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1.06rem; }
  .container { padding: 0 16px; }
  .kopf .container { height: 72px; }
  .nav { inset: 72px 0 0 0; }
  .logo img { height: 38px; }
  .abschnitt { padding: 64px 0; }
  .seitenkopf { padding: 56px 0 44px; }
  .hero-text { padding: 44px 16px 40px; }
  .hero-bild { height: 300px; }
  .formular { padding: 24px 18px; }
  .fuss-raster { grid-template-columns: 1fr; gap: 32px; }
  .kontakt-daten dl { grid-template-columns: 1fr; gap: 0; }
  .kontakt-daten dd { margin-bottom: 10px; }
  .dateiliste li { flex-direction: column; align-items: flex-start; gap: 4px; }
}
