/* ==========================================================================
   Steuerberater Lothar Schäfer – statische Website
   Masterlayout: FireShot-Captures 427–434 (Desktop 1440 px)
   Fließtext: Desktop 15 px · Mobil 17 px
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2");
}

:root {
  --teal: #00b1a5;
  --teal-dark: #00978c;
  --grau: #eceaeb;
  --text: #333333;
  --text-hell: #7a7a7a;
  --weiss: #ffffff;
  --fliesstext: 15px;
  --container: 740px;
  --font: Verdana, "DejaVu Sans", Geneva, Tahoma, sans-serif;
  --font-roboto: "Roboto", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 48px; /* Platz für die fixierte Kontaktleiste */
  background: var(--grau);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fliesstext);
  line-height: 1.55;
  letter-spacing: .01em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover, a:focus-visible { color: var(--teal-dark); text-decoration: underline; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; line-height: 1.2; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

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

.svg-icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header { background: var(--weiss); height: 150px; position: relative; z-index: 20; }
.site-header .container { position: relative; height: 100%; }
.logo { position: absolute; left: 0; top: 13px; width: 298px; }
.logo img { width: 298px; height: auto; }

.main-nav { position: absolute; left: 0; right: 0; top: 96px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.main-nav a {
  display: block; padding: 7px 13px 6px; font-size: 12px; line-height: 20px;
  color: #333; letter-spacing: .02em; border-bottom: 2px solid transparent;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--teal); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }

.nav-toggle {
  display: none; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 4px; background: var(--teal); color: #fff;
  font-size: 22px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: inline-block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 331px; overflow: hidden; background: #3b3b3b;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero picture, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero picture img { object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hero--hell::after { background: rgba(0, 0, 0, .38); }
.hero h1 {
  position: relative; z-index: 1; color: #fff;
  font-family: var(--font-roboto); font-weight: 500; font-size: 48px; line-height: 1.2;
  padding: 0 20px; margin-top: -2px;
}

.hero-farbe { background: var(--teal); height: 105px; display: flex; align-items: center; justify-content: center; }
.hero-farbe h1 { color: #fff; font-size: 40px; font-family: var(--font); }

/* ---------- Sektionen ---------- */
.sektion { padding: 54px 0 38px; }
.sektion--grau { background: var(--grau); }
.sektion--weiss { background: var(--weiss); }
.sektion--pfeil { position: relative; }
.sektion--pfeil::before {
  /* Shape-Divider: graues Dreieck, das in die weiße Sektion zeigt */
  content: ""; position: absolute; left: 50%; top: -1px; transform: translateX(-50%);
  border-left: 31px solid transparent; border-right: 31px solid transparent;
  border-top: 20px solid var(--grau);
}

.titel { color: var(--teal); font-size: 28px; line-height: 1.15; margin-bottom: 18px; }
.titel--m { font-size: 24px; }
.titel--s { font-size: 22px; }
.zentriert { text-align: center; }
.unterzeile { color: var(--text-hell); font-size: 17px; margin: 6px 0 10px; }
.unterzeile:first-child { margin-top: 0; }

/* Startseite Intro */
.intro-start { padding: 54px 0 32px; }
.intro-start .titel { margin-bottom: 19px; }
.intro-start p { margin-bottom: .55em; }

/* Häkchen-Listen */
.check-liste { list-style: none; margin: 0; padding: 0; }
.check-liste li { display: flex; align-items: center; gap: 9px; min-height: 26px; margin-bottom: 7px; line-height: 1.45; }
.check-liste .svg-icon { color: var(--teal); font-size: 20px; }
.check-liste a { color: inherit; }
.check-liste a:hover, .check-liste a:focus-visible { color: var(--teal); }

.check-raster { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: 36px; }
.check-raster--breit { grid-template-columns: 1fr 1fr; column-gap: 30px; padding: 0 8px; }
.check-raster--breit .check-liste li { min-height: 40px; margin-bottom: 7px; }

.check-liste--solid li { min-height: 0; margin-bottom: 2px; gap: 8px; }
.check-liste--solid .svg-icon { font-size: 15px; }

.sektion--leistungen { padding: 31px 0 52px; }
.sektion--leistungen .titel { margin-bottom: 20px; }

/* Startseite: "So entgeht Ihnen kein Cent" */
.sektion--cent { padding: 42px 0 30px; }
.sektion--cent .titel { margin-bottom: 16px; }
.beispiele-titel { padding: 50px 0 20px; }

/* Karten "Wen ich berate" */
.karten-reihe { padding: 45px 27px 47px; }
.karten-reihe + .karten-reihe { margin-top: 26px; }
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 27px; }
.karte {
  position: relative; display: block; overflow: hidden; aspect-ratio: 445 / 185; color: #fff;
  text-decoration: none;
}
.karte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.karte:hover img, .karte:focus-visible img { transform: scale(1.08); }
.karte:hover, .karte:focus-visible { text-decoration: none; color: #fff; }
.karte__inhalt {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 18px;
}
.karte__stern { color: var(--teal); font-size: 34px; width: 1.125em; margin-bottom: 12px; }
.karte__titel { font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 0 1px rgba(0,0,0,.4); }

/* Info-Boxen */
.info-boxen { padding: 52px 0 53px; }
.info-boxen .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.info-box {
  position: relative; background: var(--teal); color: #fff; text-align: center;
  font-family: var(--font-roboto); font-size: 13px; line-height: 1.3; padding: 24px 10px 22px; min-height: 110px;
}
.info-box__icon {
  position: absolute; left: 50%; top: -17px; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 0 0 0 #fff;
}
.info-box__titel { display: inline-block; font-size: 16px; color: #fff; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 10px; }
.info-box a { color: #fff; }
.info-box a:hover { color: #fff; }

.anfahrt { display: block; max-width: 1263px; margin: 0 auto; background: #fff; }
.anfahrt img { width: 100%; height: 331px; object-fit: cover; object-position: 50% 50%; }
.anfahrt-wrap { background: #fff; padding: 0 0 2px; }

/* ---------- Kontakt ---------- */
.kontakt { padding: 19px 0 20px; }
.kontakt .container { display: grid; grid-template-columns: 364px 363px; column-gap: 13px; align-items: start; }
.kontakt .titel--s { margin: 0 0 12px; }
.kontakt-daten { margin-bottom: 30px; }
.kontakt-daten p { margin-bottom: .7em; }

.karten-kachel { position: relative; display: block; height: 297px; overflow: hidden; color: inherit; }
.karten-kachel img { width: 100%; height: 100%; object-fit: cover; object-position: 49% 52%; }
.karten-kachel__label {
  position: absolute; left: 8px; top: 6px; width: 165px; background: #fff; padding: 9px 9px 8px; font-size: 9px;
  line-height: 1.35; box-shadow: 0 1px 4px rgba(0,0,0,.25); color: #555; font-family: Arial, sans-serif;
}
.karten-kachel__label strong { display: block; font-weight: 400; color: #222; font-size: 10px; margin-bottom: 2px; }
.karten-kachel__btn {
  display: inline-block; margin-top: 8px; background: #1a73e8; color: #fff; border-radius: 12px; padding: 3px 9px; font-size: 10px;
}
.karten-kachel:hover { text-decoration: none; }
.karten-kachel:hover .karten-kachel__btn { background: #1558b0; }
.kartenhinweis { font-size: 11px; color: var(--text-hell); margin-top: 6px; line-height: 1.4; }

.formular label, .formular .label { display: block; font-size: 13px; margin: 0 0 4px; }
.formular .pflicht::after { content: " *"; color: #e2401c; padding-left: .2em; }
.formular .feld { margin-bottom: 9px; }
.formular input[type=text], .formular input[type=email], .formular input[type=tel], .formular select, .formular textarea {
  width: 100%; height: 29px; border: 1px solid #c8c8c8; border-radius: 0; background: #fff; color: #333;
  font: inherit; font-size: 14px; padding: 3px 9px;
}
.formular select { appearance: none; -webkit-appearance: none; padding-right: 26px;
  background-image: linear-gradient(45deg, transparent 50%, #333 50%), linear-gradient(135deg, #333 50%, transparent 50%);
  background-position: calc(100% - 13px) 12px, calc(100% - 9px) 12px; background-size: 4px 4px; background-repeat: no-repeat; }
.formular textarea { height: 76px; resize: vertical; }
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; }
.einwilligung { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.85; letter-spacing: .02em; }
.einwilligung input { margin: 6px 0 0; flex: none; }
.formular .senden {
  width: 100%; height: 27px; border: 0; background: var(--teal); color: #fff; font: inherit; font-size: 12px; cursor: pointer; margin-top: 6px;
}
.formular .senden:hover { background: var(--teal-dark); }
.formular .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-meldung { display: none; margin-top: 10px; padding: 10px 12px; font-size: 14px; border-left: 4px solid var(--teal); background: #fff; }
.formular-meldung.ist-sichtbar { display: block; }
.formular-meldung.ist-fehler { border-left-color: #e2401c; }

/* ---------- Rechtstexte ---------- */
.rechtstext { background: #fff; padding: 52px 0 18px; }
.rechtstext .titel { margin-bottom: 14px; }
.rechtstext h3 { font-size: 22px; color: #333; margin: 6px 0 12px; }
.rechtstext p strong { font-weight: 400; }
.rechtstext ul { margin: 0 0 .9em; padding-left: 26px; }
.rechtstext li { margin: 0; }
.rechtstext a { word-break: break-word; }
.bildquellen p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal); color: #fff; font-size: 12px; letter-spacing: .03em; }
.site-footer .container { max-width: 754px; display: flex; justify-content: space-between; align-items: center; min-height: 37px; gap: 10px 20px; flex-wrap: wrap; padding: 8px 0; }
.site-footer nav { display: flex; gap: 27px; margin-right: 14px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }

.kontaktleiste {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 12px; background: var(--teal); color: #fff;
  border-radius: 10px 10px 0 0; padding: 0 24px 0 13px; height: 44px; font-size: 12px; letter-spacing: .03em;
  box-shadow: 0 -1px 6px rgba(0,0,0,.08);
}
.kontaktleiste a { display: flex; align-items: center; gap: 8px; color: #fff; white-space: nowrap; }
.kontaktleiste a:hover { color: #fff; }
.kontaktleiste .svg-icon { font-size: 19px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .container { padding-left: 24px; padding-right: 24px; max-width: calc(var(--container) + 48px); }
  .site-footer .container { max-width: calc(754px + 48px); }
}

@media (max-width: 860px) {
  .karten { grid-template-columns: repeat(2, 1fr); }
  .kontakt .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --fliesstext: 17px; }
  body { line-height: 1.6; }

  .site-header { height: 92px; }
  .logo { top: 50%; transform: translateY(-50%); left: 20px; width: 210px; }
  .logo img { width: 210px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; top: 92px; background: #fff; box-shadow: 0 8px 14px rgba(0,0,0,.12); border-top: 1px solid var(--grau);
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { font-size: 17px; padding: 14px 24px; border-bottom: 1px solid var(--grau); border-left: 4px solid transparent; }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--grau); border-left-color: var(--teal); }

  .hero { height: 220px; }
  .hero h1 { font-size: 32px; }
  .hero-farbe { height: 90px; }
  .hero-farbe h1 { font-size: 30px; }

  .titel { font-size: 25px; }
  .titel--m { font-size: 23px; }
  .titel--s { font-size: 22px; }
  .unterzeile { font-size: 19px; }

  .container { padding-left: 20px; padding-right: 20px; }
  .sektion { padding: 40px 0 34px; }
  .intro-start { padding: 40px 0 30px; }

  .check-raster, .check-raster--breit { grid-template-columns: 1fr; justify-content: start; padding: 0; }
  .sektion--cent .check-raster { margin-left: 0; justify-content: center; grid-template-columns: auto; }
  .check-liste .svg-icon { font-size: 22px; }
  .check-raster--breit .check-liste li { min-height: 0; margin-bottom: 12px; }
  .check-liste li { align-items: flex-start; }
  .check-liste li .svg-icon { margin-top: 3px; }

  .beispiele-titel { padding: 36px 0 18px; }
  .karten-reihe { padding: 20px 20px; }
  .karten-reihe + .karten-reihe { margin-top: 0; padding-top: 0; }
  .karten { grid-template-columns: 1fr; gap: 20px; }
  .karte__titel { font-size: 19px; }

  .info-boxen { padding: 44px 0 30px; }
  .info-boxen .container { grid-template-columns: 1fr; gap: 36px; }
  .info-box { font-size: 17px; padding: 28px 12px 24px; }
  .info-box__titel { font-size: 19px; }
  .anfahrt img { height: 240px; object-position: 50% 50%; }

  .kontakt { padding: 34px 0 30px; }
  .kontakt .container { grid-template-columns: 1fr; row-gap: 26px; }
  .kontakt .karten-spalte { order: 2; }
  .formular label, .formular .label { font-size: 15px; }
  .formular input[type=text], .formular input[type=email], .formular input[type=tel], .formular select, .formular textarea { height: 44px; font-size: 17px; }
  .formular select { background-position: calc(100% - 15px) 20px, calc(100% - 11px) 20px; }
  .formular textarea { height: 130px; }
  .einwilligung { font-size: 15px; line-height: 1.55; }
  .einwilligung input { width: 20px; height: 20px; margin-top: 2px; }
  .formular .senden { height: 46px; font-size: 17px; }

  .rechtstext { padding: 38px 0 20px; }
  .rechtstext h3 { font-size: 21px; }

  .site-footer { font-size: 14px; text-align: center; }
  .site-footer .container { justify-content: center; flex-direction: column; padding: 16px 20px; }
  .site-footer nav { margin: 0; }
  body { padding-bottom: 56px; }
  .kontaktleiste { height: 52px; font-size: 16px; gap: 20px; padding: 0 22px; border-radius: 12px 12px 0 0; }
  .kontaktleiste .svg-icon { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .kontaktleiste, .nav-toggle, .main-nav { display: none !important; }
  body { background: #fff; padding: 0; }
  .hero { height: auto; padding: 20px 0; background: none; }
  .hero::after, .hero picture { display: none; }
  .hero h1 { color: #000; }
}
