/* ==========================================================
   Wilfried Schäfer · Steuerberater
   schaefer-steuerberater.com — Relaunch 2026
   ========================================================== */

/* ---------- Schriften (lokal gehostet, kein CDN) ---------- */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token ---------- */

:root {
  --papier: #F7F8F5;
  --weiss: #FFFFFF;
  --tinte: #182826;
  --tinte-2: #465955;
  --tanne: #0C2231;
  --tanne-tief: #081824;
  --laub: #4E9C2F;
  --jade: #2E7D68;
  --fluss: #2266AC;
  --linie: rgba(12, 34, 49, 0.14);
  --faden: linear-gradient(90deg, var(--laub), var(--jade), var(--fluss));

  --serif: "Newsreader", "Sitka Text", Cambria, Georgia, serif;
  --grotesk: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;

  --container: 1140px;
  --radius: 18px;
}

/* ---------- Basis ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--grotesk);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 500; }
p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: rgba(46, 125, 104, 0.22); }

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--tanne);
  color: #fff;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- Typo-Bausteine ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--faden);
  border-radius: 2px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
h1 em {
  font-style: italic;
  color: var(--jade);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-lede {
  max-width: 34em;
  margin-top: 1rem;
  color: var(--tinte-2);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 245, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  border-bottom-color: var(--linie);
  box-shadow: 0 8px 30px rgba(12, 34, 49, 0.06);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
  color: var(--tanne);
}
.brand-ws {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: -0.06em;
  fill: currentColor;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-name strong {
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-name span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jade);
}

.nav ul {
  display: flex;
  gap: 1.9rem;
}
.nav a {
  position: relative;
  padding-block: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--tinte);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--faden);
  border-radius: 2px;
  transition: right 0.3s ease;
}
.nav a:hover::after,
.nav a.active::after { right: 0; }

.nav-tel { display: none; }

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

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--tanne);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.25s, transform 0.25s;
}
.btn:hover {
  background: var(--jade);
  transform: translateY(-1px);
}

.btn-header { padding: 0.7rem 1.35rem; }

.btn-primary {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ---------- Burger (mobil) ---------- */

.burger {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger-line {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--tinte);
  border-radius: 2px;
  transition: transform 0.3s, top 0.3s, background-color 0.3s;
}
.burger-line:nth-child(1) { top: 18px; }
.burger-line:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] .burger-line { background: #fff; }
.burger[aria-expanded="true"] .burger-line:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] .burger-line:nth-child(2) {
  top: 22px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vh, 9rem) clamp(4rem, 9vh, 7rem);
}

.hero-ring {
  position: absolute;
  top: 50%;
  right: max(-14vw, -210px);
  width: clamp(420px, 52vw, 680px);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-in {
  position: relative;
  max-width: 720px;
}

.hero-lede {
  max-width: 33em;
  margin-top: 1.6rem;
  font-size: 1.15rem;
  color: var(--tinte-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2.2rem;
  margin-top: 2.4rem;
}

.hero-tel {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.35;
}
.hero-tel-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinte-2);
}
.hero-tel-number {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  background-image: var(--faden);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: left bottom;
  transition: background-size 0.3s ease;
}
.hero-tel:hover .hero-tel-number { background-size: 100% 2px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 3.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinte-2);
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faden);
}

/* Hero-Einstieg (Animation) */

html.js .hero-item {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
html.js .hero-item:nth-child(1) { animation-delay: 0.05s; }
html.js .hero-item:nth-child(2) { animation-delay: 0.15s; }
html.js .hero-item:nth-child(3) { animation-delay: 0.28s; }
html.js .hero-item:nth-child(4) { animation-delay: 0.4s; }
html.js .hero-item:nth-child(5) { animation-delay: 0.52s; }

@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

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

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-white {
  background: var(--weiss);
  border-block: 1px solid var(--linie);
}

.section-dark {
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(34, 102, 172, 0.25), transparent 55%),
    radial-gradient(120% 140% at 0% 120%, rgba(78, 156, 47, 0.16), transparent 55%),
    var(--tanne);
  color: #fff;
}
.section-dark .eyebrow { color: #9CCDB9; }
.section-dark .section-lede { color: rgba(255, 255, 255, 0.72); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Leistungen: Kontenblatt ---------- */

.ledger {
  border-top: 1px solid var(--linie);
}

.ledger-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem 3rem;
  padding: 1.9rem 1rem;
  border-bottom: 1px solid var(--linie);
  transition: background-color 0.25s;
}
.ledger-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: calc(100% + 2px);
  width: 3px;
  background: var(--faden);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.25s;
}
.ledger-row:hover {
  background: var(--weiss);
}
.ledger-row:hover::before { opacity: 1; }

.ledger-row h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
}
.ledger-row p {
  color: var(--tinte-2);
  align-self: center;
}

/* ---------- Kanzlei ---------- */

.kanzlei-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 2.5rem 4.5rem;
  align-items: start;
}

.statement {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.kanzlei-copy {
  display: grid;
  gap: 1.2rem;
  padding-top: 3.1rem;
  color: var(--tinte-2);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.values li::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 1.3rem;
  background: var(--faden);
  border-radius: 2px;
}
.values h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.values p {
  font-size: 0.97rem;
  color: var(--tinte-2);
}

/* ---------- Fristen ---------- */

.fristen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.frist {
  padding: 1.7rem 1.6rem 1.8rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
}
.frist::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-bottom: 1.3rem;
  background: var(--faden);
  border-radius: 2px;
}

.frist-datum {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
}
.frist-datum span { opacity: 0.35; }

.frist-takt {
  margin-top: 0.15rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9CCDB9;
}

.frist-text {
  margin-top: 0.9rem;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.72);
}

.fristen-note {
  margin-top: 2.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 56em;
}

/* ---------- Kontakt ---------- */

.kontakt-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem 5rem;
  align-items: center;
}

.kontakt-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 2.2rem;
  justify-items: start;
}

.kontakt-tel {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  background-image: var(--faden);
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: left bottom;
  padding-bottom: 4px;
  transition: background-size 0.35s ease;
}
.kontakt-tel:hover { background-size: 100% 3px; }

.kontakt-mail {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--jade);
  text-decoration: none;
}
.kontakt-mail:hover { text-decoration: underline; }

.kontakt-card {
  padding: 2.2rem 2.3rem;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(12, 34, 49, 0.07);
}
.kontakt-card-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 0.9rem;
}
.kontakt-card-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.kontakt-card address {
  color: var(--tinte-2);
}
.kontakt-card-hours {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--linie);
  font-weight: 500;
}
.kontakt-route {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fluss);
  text-decoration: none;
}
.kontakt-route:hover { text-decoration: underline; }

/* ---------- Terminformular ---------- */

.termin-form {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(12, 34, 49, 0.07);
}

.form-head {
  max-width: 42em;
  margin-bottom: 1.7rem;
}
.form-head h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}
.form-head p {
  margin-top: 0.35rem;
  color: var(--tinte-2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feld {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0; /* Grid-Item darf unter die Inhaltsbreite schrumpfen */
}
.feld-voll { grid-column: 1 / -1; }

.feld > span {
  font-size: 0.85rem;
  font-weight: 600;
}
.feld em {
  font-style: normal;
  font-weight: 400;
  color: var(--tinte-2);
}

.feld input,
.feld textarea {
  font: inherit;
  color: var(--tinte);
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--papier);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feld input:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(46, 125, 104, 0.16);
}
.feld textarea {
  resize: vertical;
  min-height: 120px;
}

/* Honeypot: fuer Menschen unsichtbar, Bots fuellen es aus */
.feld-falle {
  position: absolute;
  left: -9999px;
  top: auto;
}

.einwilligung {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 46em;
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: var(--tinte-2);
  cursor: pointer;
}
.einwilligung input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.28rem;
  accent-color: var(--jade);
}
.einwilligung a { color: var(--jade); }

.form-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.form-fuss .btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-status {
  font-size: 0.95rem;
  color: var(--tinte-2);
}
.form-status.fehler {
  color: #B4232A;
  font-weight: 600;
}

.form-erfolg {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--serif);
  font-size: 1.3rem;
}
.form-erfolg::before {
  content: "";
  flex: none;
  width: 34px;
  height: 2px;
  background: var(--faden);
  border-radius: 2px;
}

/* ---------- Legal-Seiten (Impressum / Datenschutz) ---------- */

.legal {
  max-width: 720px;
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.legal h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}
.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.6rem;
  margin-bottom: 0.6rem;
}
.legal p { margin-bottom: 0.9rem; }
.legal a { color: var(--jade); }
.legal .platzhalter {
  display: block;
  padding: 0.9rem 1.1rem;
  margin-block: 0.6rem;
  background: rgba(78, 156, 47, 0.08);
  border-left: 3px solid var(--laub);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--tinte-2);
}

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

.footer {
  background: var(--tanne-tief);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
}

.footer a {
  color: inherit;
  text-decoration: none;
}
.footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand-mark-footer { color: #fff; width: 54px; height: 54px; }
.footer-brand strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.footer-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9CCDB9;
  margin-bottom: 0.7rem;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Scroll-Reveal ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .hero-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .ledger-row, .hero-tel-number, .kontakt-tel { transition: none; }
}

/* ---------- Responsiv ---------- */

@media (max-width: 960px) {
  .kanzlei-grid { grid-template-columns: 1fr; }
  .kanzlei-copy { padding-top: 0; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {

  .btn-header { display: none; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    background:
      radial-gradient(120% 140% at 85% -20%, rgba(34, 102, 172, 0.3), transparent 55%),
      var(--tanne);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s;
  }
  .nav.open {
    visibility: visible;
    opacity: 1;
  }

  .nav ul {
    flex-direction: column;
    gap: 1.4rem;
  }
  .nav a {
    font-family: var(--serif);
    font-size: 2rem;
    color: #fff;
  }
  .nav a::after { display: none; }

  .nav .nav-tel {
    display: block;
    font-family: var(--grotesk);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #9CCDB9;
  }
}

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .ledger-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-inline: 0.4rem;
  }
  .values { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-ring { opacity: 0.28; right: -45vw; width: 130vw; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .kontakt-tel { font-size: clamp(1.7rem, 8.5vw, 2.4rem); }
}
