/* Steuerberater Frank Bohrmann – statisches Stylesheet
   Keine externen Ressourcen. Schriften lokal (SIL OFL 1.1, siehe /fonts). */

@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-VariableFont.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farbpalette angelehnt an die bisherige Website */
  --base: #ebebef;
  --base-2: #dce0e6;
  --contrast: #1c2930;
  --contrast-2: #37505d;
  --contrast-3: #96a5b2;
  --white: #ffffff;
  --accent: #37505d;
  --radius: 10px;
  --maxw: 72rem;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Modernisierung: weiche Schatten und einheitliche Übergänge */
  --shadow-sm: 0 1px 2px rgb(28 41 48 / .06), 0 2px 6px rgb(28 41 48 / .05);
  --shadow-md: 0 2px 4px rgb(28 41 48 / .06), 0 10px 24px rgb(28 41 48 / .09);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .25s;
  accent-color: var(--accent);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--contrast);
  background: var(--base);
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--contrast);
}
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); font-weight: 600; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 600; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin: 1.75rem 0 .5rem; }
/* Ausgewogene Zeilenumbrüche (wird von älteren Browsern einfach ignoriert) */
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

p, ul, ol, dl, address { margin: 0 0 1rem; }
address { font-style: normal; }

a {
  color: var(--contrast-2); text-decoration-thickness: 1px; text-underline-offset: .18em;
  transition: color var(--dur) var(--ease), text-underline-offset var(--dur) var(--ease);
}
a:hover { color: var(--contrast); text-decoration-thickness: 2px; }
a:focus-visible, .skip-link:focus { outline: 3px solid var(--contrast); outline-offset: 3px; border-radius: 3px; }

::selection { background: #c9d3da; color: var(--contrast); }
::selection { background: color-mix(in srgb, var(--contrast-2) 28%, var(--white)); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--contrast); color: var(--white);
  padding: .6rem 1rem; z-index: 10; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 48rem; }

/* Kopfbereich */
.site-header {
  background: var(--white); border-bottom: 1px solid var(--base-2);
  position: sticky; top: 0; z-index: 20; /* Kopfzeile bleibt beim Scrollen oben */
  box-shadow: 0 1px 0 rgb(28 41 48 / .02), 0 4px 16px rgb(28 41 48 / .04);
}
/* Milchglas-Effekt nur, wo unterstützt – sonst bleibt der Hintergrund weiß */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgb(255 255 255 / .86);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
    backdrop-filter: saturate(1.6) blur(12px);
  }
}
/* Sprungziele (z. B. #ueber-mich) nicht unter der Kopfzeile verstecken */
html { scroll-padding-top: 9rem; }
@media (min-width: 48rem) { html { scroll-padding-top: 6rem; } }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 2rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand { text-decoration: none; color: var(--contrast); line-height: 1.1; display: inline-block; }
.brand:hover { color: var(--contrast); }
.brand-small {
  display: block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--contrast-2); font-weight: 500;
}
.brand-name { display: block; font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.site-nav a {
  text-decoration: none; font-weight: 500; color: var(--contrast); padding: .35rem 0;
  border-bottom: 2px solid transparent; position: relative;
}
.site-nav a:hover { border-bottom-color: var(--contrast-3); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--contrast-2); }
/* Feiner, animierter Unterstrich (ersetzt die Rahmenlinie, gleiche Position) */
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  border-radius: 2px; background: var(--contrast-2);
  transform: scaleX(0); transform-origin: left center;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: transparent; }
.site-nav a:hover::after { transform: scaleX(1); background: var(--contrast-3); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--contrast-2); }

/* Hero */
.hero { background: var(--white); padding: 3rem 0 3.5rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.eyebrow {
  font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: var(--contrast-2); margin-bottom: .75rem;
}
.lead { font-size: 1.25rem; color: var(--contrast-2); }
.hero figure { margin: 0; }
.hero img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow-md); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .75rem 1.25rem; border-radius: 999px; text-decoration: none;
  font-weight: 500; border: 2px solid var(--contrast); line-height: 1.2;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { box-shadow: var(--shadow-md); }
.btn:focus-visible { border-radius: 999px; }
.btn-primary { background: var(--contrast); color: var(--white); }
.btn-primary:hover { background: var(--contrast-2); border-color: var(--contrast-2); color: var(--white); }
.btn-secondary { background: transparent; color: var(--contrast); }
.btn-secondary:hover { background: var(--base); color: var(--contrast); }
.btn:active { box-shadow: var(--shadow-sm); }

/* Abschnitte */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--base-2); }
.section > .wrap > h2:first-child, .section h2.first { margin-top: 0; }

.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.25rem; border: 1px solid var(--base-2);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: #cfd5dc; }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .card:hover { border-color: color-mix(in srgb, var(--contrast-3) 45%, var(--base-2)); }
}
.card h3 { margin-top: 0; }

.two-col { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .two-col { grid-template-columns: 1fr 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { margin: 0 0 .6rem; }
.label { display: block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--contrast-2); font-weight: 500; }
.contact-list a { font-size: 1.2rem; }

.notice {
  background: var(--white); border-left: 5px solid var(--contrast-2); box-shadow: var(--shadow-sm);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
.notice p:last-child { margin-bottom: 0; }

/* Rechtstexte */
.legal h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.1rem; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: .15rem 1.5rem; }
@media (min-width: 40rem) { .legal dl { grid-template-columns: 14rem 1fr; } }
.legal dt { font-weight: 600; }
.legal dd { margin: 0 0 .6rem; }
.legal ul { padding-left: 1.25rem; }
.small { font-size: .95rem; color: var(--contrast-2); }

/* Sichtbare Platzhalter – vor Veröffentlichung ersetzen */
.ph {
  background: #fff3b0; color: #3d2f00; border: 1px dashed #8a6d00;
  padding: 0 .25em; border-radius: 3px; font-weight: 600;
}

/* Fußbereich */
.site-footer { background: var(--contrast); color: #e6eaee; padding: 2.5rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: var(--white); }
.site-footer a:focus-visible { outline-color: var(--white); }
.site-footer a:hover { color: var(--base-2); }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { color: var(--white); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--contrast-2); padding-top: 1rem; font-size: .9rem; color: #c9d2d9; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .site-nav a::after { transition: transform .3s var(--ease), background-color .3s var(--ease); }
  a:hover { text-underline-offset: .24em; }
}
/* Dezentes Anheben nur bei Maus/Trackpad und ohne Bewegungsreduktion */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .card:hover { transform: translateY(-3px); }
}
/* Sanftes Einblenden beim Scrollen – nur in Browsern mit Scroll-Animationen */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes einblenden {
      from { opacity: .5; translate: 0 1rem; }
      to { opacity: 1; translate: 0 0; }
    }
    .card, .section-alt .wrap, .contact-list, .notice {
      animation: einblenden linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

@media print {
  .site-nav, .skip-link, .btn-row { display: none; }
  .site-header {
    position: static; background: #fff; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .card, .notice, .hero img, .btn { box-shadow: none; transform: none; transition: none; }
  .card, .section-alt .wrap, .contact-list, .notice { animation: none; opacity: 1; translate: none; }
  body { background: #fff; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a { color: #000; }
}
