/* =========================================================================
   Susann Beck – Steuerberaterin · Draft
   Palette & Typo aus dem Marken-Manual abgeleitet. Kein externer Webfont
   (DSGVO), keine JS-Bibliothek. Nur System-Schriften + Vanilla.
   ========================================================================= */

:root {
  /* Basisfarbe = Blau (vormals Bordeaux). Rot ist jetzt der Akzent. */
  --blue:      #1c6f94;   /* Primär / Basis */
  --blue-800:  #155a79;   /* dunkler, für Hover */
  --red:       #701932;   /* Akzent (vormals Blau/Teal) */
  --gold:      #f59c00;
  --gold-soft: #f7b23b;

  --ink:      #1e2a30;
  --ink-soft: #4c5860;
  --paper:    #f4f1ec;
  --paper-2:  #faf8f4;
  --white:    #ffffff;
  --line:     #e5dfd4;

  --font-display: "Cambria", "Georgia", "Times New Roman", serif;
  --font-body: "Calibri", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(30, 42, 48, .35);
  --shadow-soft: 0 10px 30px -18px rgba(30, 42, 48, .3);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; color: var(--ink); }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--blue); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius); z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Shared bits ---------- */
.eyebrow, .section-label, .mini-label {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0;
}
.mini-label { color: var(--ink-soft); letter-spacing: .16em; margin-bottom: .6rem; }

/* Logo-Motiv: kleines Quadrat (Punkt-Spine aus dem Logo) */
.dot-mark {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--gold);
  margin-right: .6em;
  transform: translateY(-1px);
}
.dot-mark--gold { background: var(--gold); }

.rule {
  display: block;
  width: 64px; height: 3px;
  background: var(--gold);
  margin: 1.1rem 0 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .82rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-800); }
.btn-secondary { background: transparent; color: var(--ink); border-color: rgba(30,42,48,.28); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -20px rgba(30,42,48,.5);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.brand img { height: 44px; width: auto; }

.main-nav .nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.4rem);
}
.nav-link {
  font-family: var(--font-ui);
  font-size: .96rem; font-weight: 500;
  color: var(--ink); padding: .5rem .2rem;
  position: relative;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: .1rem;
  height: 2px; background: var(--gold);
  transition: right .25s var(--ease);
}
.nav-link:hover, .nav-link.is-active { text-decoration: none; color: var(--blue); }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }

.nav-cta {
  font-family: var(--font-ui); font-weight: 600; font-size: .92rem;
  color: var(--blue); background: transparent;
  border: 1.5px solid rgba(28, 111, 148, .38);
  padding: .5rem 1.05rem; border-radius: var(--radius);
  margin-left: .4rem;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.nav-cta:hover { background: var(--blue); color: #fff; border-color: var(--blue); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 42px;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer;
  padding: 0; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s var(--ease); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); background:
  linear-gradient(180deg, var(--paper-2) 0%, var(--white) 70%); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(1rem, 3vw, 2.5rem);
}
.hero-content .eyebrow { display: flex; align-items: center; margin-bottom: 1.4rem; }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  letter-spacing: -.015em;
  margin-bottom: 1.3rem;
  max-width: 15ch;
}
.hero-name {
  font-family: var(--font-ui);
  font-weight: 600; font-size: .95rem;
  letter-spacing: .04em; color: var(--blue);
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-media { position: relative; }
.hero-figure {
  border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  max-width: 470px; margin-inline: auto;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  /* Sättigung etwas reduziert, damit sich das Orange harmonischer einfügt */
  filter: saturate(0.8); }

/* Vertrauensleiste */
.trust {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 1.6rem clamp(1.2rem, 3vw, 2.2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.trust-item { display: flex; flex-direction: column; }
.trust-num { font-family: var(--font-display); font-size: 1.55rem; color: var(--blue); font-weight: 600; line-height: 1.1; }
.trust-label { font-family: var(--font-ui); font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em; }
.trust-badge { justify-self: end; }
.trust-badge a { display: inline-block; }
.trust-badge a:hover { text-decoration: none; }
.trust-badge img { height: 74px; width: auto; }

/* ---------- Sections generic ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-label { display: inline-flex; align-items: center; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.85rem, 3.6vw, 2.85rem); letter-spacing: -.01em; }
.section-intro { margin: 1.5rem 0 0; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Über mich ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-text p { margin: 0 0 1.15rem; }
.about-text .signoff { margin-top: 1.6rem; font-size: 1.15rem; color: var(--ink); }
.about-text .signoff span { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--blue); }

.about-figure { margin: 0 0 1.8rem; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 3 / 2; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Hinweis auf das Experten-Netzwerk */
.network { padding: 1.3rem 1.5rem; background: var(--paper); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; }
.network > p:last-child { margin: 0; color: var(--ink-soft); }

/* ---------- Leistungen ---------- */
.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }
.service-card {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-accent { display: block; width: 14px; height: 14px; background: var(--gold); margin-bottom: 1.1rem; }
.service-title { font-size: 1.32rem; margin-bottom: .7rem; }
.service-text { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Digitalisierung (Bordeaux-Band) ---------- */
.digital { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.digital::after {
  content: ""; position: absolute; top: -30%; right: -6%; width: 380px; height: 380px;
  border: 2px dashed rgba(255,255,255,.14); border-radius: 50%;
  pointer-events: none;
}
.section-label--light { color: var(--gold-soft); }
.section-title--light { color: #fff; }
.digital-head { display: grid; grid-template-columns: 1.6fr .6fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.digital-intro { max-width: 60ch; }
.digital-lead { color: rgba(255,255,255,.9); margin: 1.5rem 0 1.2rem; font-size: 1.1rem; }
.digital-quote { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: #fff; border-left: 3px solid var(--gold); padding-left: 1.1rem; margin: 0; }
.digital-badge { justify-self: center; background: #fff; padding: 1rem; border-radius: 8px; box-shadow: var(--shadow); }
.digital-badge img { width: 140px; height: auto; }

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.5rem); }
.tool-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.tool-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.tool-name { color: #fff; font-size: 1.1rem; margin-bottom: .6rem; padding-left: 1rem; position: relative; }
.tool-name::before { content: ""; position: absolute; left: 0; top: .4em; width: 8px; height: 8px; background: var(--gold); }
.tool-link { color: #fff; text-decoration: none; transition: color .2s var(--ease); }
.tool-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tool-link:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; border-radius: 3px; }
.tool-icon { width: .8em; height: .8em; margin-left: .4rem; vertical-align: -.06em; color: var(--gold-soft); transition: color .2s var(--ease); }
.tool-link:hover .tool-icon { color: #fff; }
.tool-name .nowrap { white-space: nowrap; }
.tool-text { margin: 0; color: rgba(255,255,255,.82); font-size: .98rem; }

/* ---------- Kontakt ---------- */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }

.contact-info { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.6rem, 3vw, 2.4rem); }
.contact-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); margin: 0 0 1.4rem; }
.contact-name span { display: block; font-family: var(--font-ui); font-size: .9rem; letter-spacing: .04em; color: var(--ink-soft); font-weight: 600; }
.info-row { display: grid; grid-template-columns: 90px 1fr; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.info-label { font-family: var(--font-ui); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); padding-top: .15rem; }
.info-value { color: var(--ink); }
.maplink { display: inline-block; margin-top: 1.4rem; font-family: var(--font-ui); font-weight: 600; font-size: .92rem; color: var(--blue); }
.maplink:hover { color: var(--blue); }
.maplink-icon { color: var(--gold); }

/* Formular */
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-soft); }
.form-row { margin-bottom: 1.1rem; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; font-family: var(--font-ui); font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.contact-form label .opt { color: var(--ink-soft); font-weight: 400; }
.contact-form input, .contact-form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2); transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.contact-form textarea { resize: vertical; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-weight: 400 !important; font-size: .9rem !important; color: var(--ink-soft) !important; margin: .3rem 0 1.3rem; }
.checkbox input { width: auto; margin-top: .25rem; }
.form-status { margin: 1rem 0 0; font-family: var(--font-ui); font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-status.is-ok { color: #1f7a4d; }
.form-status.is-err { color: var(--red); }
.form-note { margin: 1rem 0 0; font-size: .84rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { height: 46px; background: #fff; padding: 8px 12px; border-radius: 6px; margin-bottom: 1rem; }
.footer-brand p { margin: 0; max-width: 34ch; font-size: .95rem; color: rgba(255,255,255,.7); }
.site-footer .mini-label { color: rgba(255,255,255,.55); }
.footer-nav ul, .footer-legal ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li, .footer-legal li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-contact p { margin: 0; font-size: .95rem; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.4rem; }
.footer-bottom p { margin: 0; font-family: var(--font-ui); font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(2.5rem, 5vw, 4rem); }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .4rem; }
.legal .lead { color: var(--ink-soft); margin: 0 0 2.5rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.legal h3 { font-family: var(--font-ui); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin: 1.6rem 0 .4rem; }
.legal p { margin: 0 0 1rem; }
.legal address { font-style: normal; margin: 0 0 1rem; line-height: 1.8; }
.legal-highlight { font-weight: 700; color: var(--ink); }
.notice {
  background: #fff8ec; border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: 6px; padding: 1rem 1.2rem; margin: 0 0 2rem;
  font-size: .92rem; color: #6b4e12;
}
.notice strong { color: var(--blue); }
.back-link { display: inline-block; margin-top: 2.5rem; font-family: var(--font-ui); font-weight: 600; }

/* ---------- Reveal-Animation (nur mit JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* Hero Load-Stagger */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-content [data-reveal].is-visible { transition-delay: calc(var(--i, 0) * 90ms); }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 520px; }
  .hero h1 { max-width: 20ch; }
  .about-grid { grid-template-columns: 1fr; }
  .digital-head { grid-template-columns: 1fr; }
  .digital-badge { justify-self: start; }
  .contact-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 74px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { max-height: 80vh; }
  .main-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.2rem; }
  .nav-list li { border-top: 1px solid var(--line); }
  .nav-list li:first-child { border-top: 0; }
  .nav-link { display: block; padding: .9rem .2rem; }
  .nav-link::after { display: none; }
  .nav-cta { display: block; text-align: center; margin: .8rem 0 0; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 620px) {
  .service-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust-badge { grid-column: 1 / -1; justify-self: start; }
  .form-row--split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: .1rem; }
}
