/* ==========================================================================
   Dr. Albert Reifferscheid Wirtschaftsberatung GmbH
   Stylesheet der statischen Website
   Keine externen Ressourcen (DSGVO): Systemschriften, lokale Assets.
   ========================================================================== */

/* --- Design-Tokens ------------------------------------------------------ */
:root {
  --ink:          #12161b;
  --ink-2:        #1b2129;
  --ink-3:        #39434e;
  --body:         #454f5a;
  --gold:         #b08d43;
  --gold-bright:  #d3b264;
  --gold-soft:    #f0e7d4;
  --paper:        #ffffff;
  --paper-warm:   #f8f6f2;
  --line:         #e4ded2;
  --line-dark:    rgba(211, 178, 100, .28);

  --font-display: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;

  --wrap:      1180px;
  --wrap-slim: 820px;
  --radius:    2px;
  --shadow:    0 1px 2px rgba(18,22,27,.04), 0 8px 28px rgba(18,22,27,.07);
  --shadow-lg: 0 2px 4px rgba(18,22,27,.05), 0 18px 50px rgba(18,22,27,.12);
  --ease:      cubic-bezier(.22,.61,.36,1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); line-height: 1.3; }
h4 { font-size: 1.075rem; line-height: 1.4; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

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

/* --- Hilfsklassen ------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap--slim { max-width: var(--wrap-slim); }

.section { padding-block: clamp(64px, 8vw, 118px); }
.section--warm  { background: var(--paper-warm); }
.section--dark  { background: var(--ink); color: rgba(255,255,255,.76); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--tight { padding-block: clamp(48px, 5vw, 76px); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section--dark .eyebrow { color: var(--gold-bright); }

.lead {
  font-size: clamp(1.075rem, 1rem + .4vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-3);
}
.section--dark .lead { color: rgba(255,255,255,.82); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }

.rule {
  width: 56px; height: 2px; border: 0;
  background: var(--gold);
  margin: 0 0 28px;
}
.section-head--center .rule { margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--primary:hover { background: #9a7b39; border-color: #9a7b39; color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* --- Kopfzeile ---------------------------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: .9rem; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* Opaker Hintergrund statt backdrop-filter: Ein Filter auf einem
   position:sticky-Element erzeugt in Chromium eine eigene Compositing-Ebene
   und lässt die Kopfzeile beim Scrollen an der Ausgangsposition hängen. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 92px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 62px; width: auto; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; position: relative;
  width: 20px; height: 1.5px; background: var(--ink);
  transition: background-color .2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.site-nav ul {
  display: flex; align-items: center; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  color: var(--ink-3); padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.site-nav .nav-cta {
  border: 1px solid var(--gold); color: var(--gold);
  padding: 10px 20px; border-radius: var(--radius);
  font-weight: 600; letter-spacing: .04em;
}
.site-nav .nav-cta:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.site-nav .nav-cta[aria-current="page"] { background: var(--gold); color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul {
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 24px 24px;
  }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 16px 0; border-bottom: 0; }
  .site-nav a[aria-current="page"] { color: var(--gold); }
  .site-nav .nav-cta {
    text-align: center; margin-top: 16px;
    border-bottom: 1px solid var(--gold);
  }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: min(78vh, 660px);
  padding-block: clamp(80px, 10vw, 130px);
  background: var(--ink);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .30;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(18,22,27,.94) 0%, rgba(18,22,27,.72) 55%, rgba(18,22,27,.5) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero__sub {
  font-size: clamp(1.075rem, 1rem + .5vw, 1.3rem);
  color: rgba(255,255,255,.82);
  max-width: 620px;
}
.hero .rule { background: var(--gold-bright); }

/* Fester Zeilenumbruch nur dort, wo die Zeile auch breit genug ist –
   auf schmalen Displays entstünde sonst eine Zeile mit zwei Wörtern. */
@media (max-width: 700px) {
  .br-wide { display: none; }
}

/* --- Text + Bild -------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* --- Karten ------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
/* Zwei Spalten, damit vier Karten als ausgewogenes 2×2-Raster stehen
   statt in einer Dreierreihe mit einzelner Karte darunter. */
.cards--two { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.card h3 { margin-bottom: .5em; }
.card p { font-size: 1rem; }
.card__tag {
  display: block; font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem;
}

/* Nummerierte Leistungsliste – zwei Spalten ergeben bei acht Punkten
   zwei gleich lange Spalten statt einer angebrochenen dritten. */
.numbered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.numbered li {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}
.numbered .num {
  font-family: var(--font-display);
  font-size: 1.05rem; color: var(--gold);
  min-width: 2.1em; padding-top: .1em;
  font-variant-numeric: tabular-nums;
}
.numbered .txt { color: var(--ink-3); font-size: 1.03rem; line-height: 1.6; }

/* Häkchenliste */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 36px; line-height: 1.6; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .48em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.section--dark .checks li::before { border-color: var(--gold-bright); }
.checks--two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 40px; }

/* Branchenkarten auf dunklem Grund */
.industry {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: rgba(255,255,255,.025);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.industry:hover { border-color: var(--gold-bright); background: rgba(255,255,255,.05); }
.industry h3 { font-size: 1.2rem; margin-bottom: .55em; }
.industry p { font-size: .98rem; color: rgba(255,255,255,.68); }

/* Aussage-Band */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2rem);
  line-height: 1.4; color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: clamp(20px, 3vw, 34px);
  max-width: 780px;
}
.section--dark .statement { color: #fff; border-left-color: var(--gold-bright); }
.statement small {
  display: block; margin-top: .8em;
  font-family: var(--font-body); font-size: 1.0625rem;
  line-height: 1.7; color: var(--body);
}
.section--dark .statement small { color: rgba(255,255,255,.72); }

/* --- CTA-Band ----------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding-block: clamp(56px, 6vw, 88px);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .btn-row { justify-content: center; }
.cta-band p { max-width: 620px; margin-inline: auto; }

/* --- Kontaktseite ------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-details { margin: 0; padding: 0; display: grid; gap: 26px; }
.contact-details .label {
  font-size: .75rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .35rem;
}
.contact-details .value { font-size: 1.0625rem; color: var(--ink); line-height: 1.6; }
.contact-details .value a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-details .value a:hover { border-bottom-color: var(--gold); }

.contact-aside {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
}

/* --- Formular ----------------------------------------------------------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; }
.field label {
  font-size: .875rem; font-weight: 600;
  color: var(--ink); letter-spacing: .01em;
}
.field .req { color: var(--gold); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 165px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,141,67,.14);
}
.field input::placeholder, .field textarea::placeholder { color: #8b949e; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #b23b3b;
  box-shadow: 0 0 0 3px rgba(178,59,59,.12);
}
.field__error { font-size: .85rem; color: #a83333; }
.field__error:empty { display: none; }

.consent { display: flex; gap: 13px; align-items: flex-start; }
.consent input[type="checkbox"] {
  width: 19px; height: 19px; margin: 3px 0 0;
  accent-color: var(--gold); flex-shrink: 0; cursor: pointer;
}
.consent label { font-size: .9375rem; font-weight: 400; line-height: 1.6; color: var(--body); }

.form__note { font-size: .875rem; color: #6f7982; }

/* Honeypot – für Menschen unsichtbar, für Bots ausfüllbar */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: .9875rem;
  border: 1px solid;
}
.form-status[hidden] { display: none; }
.form-status--ok    { background: #f2f7f0; border-color: #b9d3ad; color: #2f5c27; }
.form-status--error { background: #fdf3f3; border-color: #e2b4b4; color: #92302f; }
.form-status strong { display: block; margin-bottom: .25em; font-size: 1.05em; }

.btn[aria-busy="true"] { opacity: .65; pointer-events: none; }

/* --- Rechtstexte -------------------------------------------------------- */
.legal { max-width: var(--wrap-slim); }
.legal h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: 2.2em; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.15rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.3em; margin: 0 0 1.15em; }
.legal li { margin-bottom: .5em; }
.legal address { font-style: normal; line-height: 1.8; }
.legal .toc {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 2.5em;
}
.legal .toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.legal .toc a { font-size: .975rem; text-decoration: none; border-bottom: 1px solid transparent; }
.legal .toc a:hover { border-bottom-color: var(--gold); }

.page-head {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 84px);
}
.page-head h1 { margin-bottom: .3em; }
.page-head p { max-width: 620px; color: var(--ink-3); font-size: 1.1rem; }

/* --- Fußzeile ----------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding-block: clamp(52px, 6vw, 76px) 32px;
  font-size: .9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 780px) { .site-footer__grid { grid-template-columns: 1fr; gap: 36px; } }

.site-footer__logo {
  height: 62px; width: auto; margin-bottom: 20px;
  filter: brightness(0) invert(1); opacity: .92;
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 1.15rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer address { font-style: normal; line-height: 1.8; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  justify-content: space-between; align-items: center;
  padding-top: 26px;
  font-size: .875rem; color: rgba(255,255,255,.5);
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 22px; }
