/* Dr. Keller Transformation Consulting
   Stylesheet für index.html, impressum.html und datenschutz.html.

   Hinweis: Das Layout der Startseite stammt aus einem Design-Handoff und
   trägt seine Detailwerte als inline styles im HTML. Farben sind davon
   ausgenommen — sie stehen ausschliesslich hier unter :root und werden im
   HTML über var(--…) referenziert. Die Rechtsseiten arbeiten durchgehend
   mit Klassen. */

/* --- Schriften ---------------------------------------------------------
   Lokal gehostet statt von fonts.googleapis.com: kein render-blockierender
   Fremd-Request, keine IP-Übermittlung an Google (passt zum Datenschutz-
   text der Seite). Beide sind Variable Fonts — eine Datei je Subset deckt
   den ganzen Gewichtsbereich ab. Über unicode-range lädt der Browser
   latin-ext nur, wenn ein Zeichen daraus vorkommt. */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Farbwerte ----------------------------------------------------------
   Einzige Stelle, an der Farben definiert werden. HTML und CSS verweisen
   ausschliesslich über var(--…) hierher.

   Kontrast: Alle Textpaare erfüllen WCAG 2.1 AA (4.5:1 für Fliesstext).
   Zwei Werte des Entwurfs mussten dafür nachgezogen werden, beide sind in
   der Liste vermerkt. Das Marken-Magenta #D63384 bleibt unverändert — es
   trägt Flächen, Punkte und Balken, aber keinen Text auf dunklem Grund. */
:root {
  /* Marke */
  --brand: #D63384;          /* Flächen, Punkte, Balken, grafische Akzente */
  --brand-dark: #7A1A4B;     /* Hover auf hellem Grund          10.11:1 */
  --link: #B02A6C;           /* Textlinks auf hellem Grund       6.19:1 */
  --link-hover: #7A1A4B;

  /* Text auf dunklem Grund (Slate) */
  --on-dark: #E8E9ED;        /*                                 10.46:1 */
  --on-dark-soft: #AAB0BC;   /*                                  5.83:1 */
  --on-dark-label: #9AA1AF;  /*                                  4.89:1 */
  --on-dark-muted: #A0A8B6;  /* war #8A92A2 (4.06:1)             5.30:1 */
  --on-dark-accent: #F2A0C6; /* Magenta-Akzent auf Slate         6.42:1 */

  /* Text auf hellem Grund */
  --ink: #2C3340;            /*                                 10.46:1 */
  --ink-muted: #565E6E;      /*                                  6.52:1 */
  --ink-faint: #626976;      /* war #707888 (4.44:1)             5.52:1 */

  /* Flächen und Linien */
  --slate: #2C3340;          /* dunkler Grund: Kopf- und Fusszeile */
  --surface: #FFFFFF;
  --surface-alt: #E8E9ED;
  --rule: #D8DDE3;
  --hairline: #C3CAD3;       /* rein dekorative Trennpunkte und Linien */
}

/* --- Basis ------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
button { font: inherit; }
::selection { background: var(--brand); color: var(--surface); }

/* Fokusring: auf hellem Grund das Marken-Magenta (4.50:1, über der
   3:1-Schwelle für Bedienelemente), auf Slate die helle Variante — dort
   käme das Marken-Magenta nur auf 2.82:1. */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
header :focus-visible,
footer :focus-visible,
.dc-mobile-menu :focus-visible,
.legal-header :focus-visible,
.legal-footer :focus-visible { outline-color: var(--on-dark-accent); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* --- Navigation: breit vs. kompakt -------------------------------------
   Ersetzt die zustandsgesteuerten Zweige des Design-Handoffs.
   Breakpoint 1080px = Navigation klappt auf Burger-Menü um. */
.dc-nav-compact { display: none !important; }
.dc-mobile-menu { display: none !important; }
body.menu-open .dc-mobile-menu { display: flex !important; }

@media (max-width: 1079px) {
  .dc-nav-wide { display: none !important; }
  .dc-nav-compact { display: flex !important; }
  .dc-wordmark { font-size: 23px !important; }
}

@media (min-width: 1080px) {
  body.menu-open .dc-mobile-menu { display: none !important; }
}

/* --- Bilder -------------------------------------------------------------
   Das Porträt trägt width/height-Attribute, damit der Browser den Platz vor
   dem Laden reserviert. Diese Attribute wirken als CSS-Höhe und würden
   aspect-ratio aushebeln — height:auto gibt die Höhenberechnung an
   aspect-ratio zurück. */
img { height: auto; }

/* --- Inhaltsraster: einspaltig ab 860px --------------------------------- */
@media (max-width: 859px) {
  .dc-hero-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas: "title" "img" "text" !important;
  }
  .dc-hero-img { max-width: 340px !important; }
  .dc-about-grid { grid-template-columns: 1fr !important; }
  .dc-anlass-grid { grid-template-columns: 1fr !important; }
}

/* --- Fixierte Fusszeile ------------------------------------------------
   Auf schmalen Schirmen umbricht die Zeile sonst drei- bis vierfach und
   frisst rund ein Viertel der Bildschirmhöhe. Kompakte Fassung: Claim und
   Copyright entfallen, Wortmarke und Rechtslinks bleiben einzeilig. */
@media (max-width: 700px) {
  .dc-footer { padding-top: 9px !important; padding-bottom: 9px !important; }
  .dc-footer-row { flex-wrap: nowrap !important; gap: 16px !important; }
  .dc-footer-brand { font-size: 14px !important; }
  .dc-footer-claim,
  .dc-footer-copyright { display: none !important; }
  .dc-footer-links { gap: 18px !important; font-size: 11.5px !important; white-space: nowrap; }
}

/* --- Hover-Zustände (waren style-hover-Attribute im Handoff) ------------ */
/* hv1 und hv2 sitzen ausschliesslich auf Slate (Navigation, Fusszeile,
   Menütaste) — dort das helle Magenta. hv3 bis hv5 stehen auf hellem
   Grund und behalten das dunkle. */
.hv1:hover { color: var(--on-dark-accent) !important; }
.hv2:hover { border-color: var(--on-dark-accent) !important; }
.hv3:hover { color: var(--brand-dark) !important; }
.hv4:hover { color: var(--brand-dark) !important; border-color: var(--brand-dark) !important; }
.hv5:hover { background: var(--brand-dark) !important; color: var(--surface) !important; }

/* --- Rechtsseiten (Impressum, Datenschutz) ------------------------------
   Eigenständige Unterseiten. Anders als der One-Pager arbeiten sie mit
   Klassen statt inline styles — sie stammen nicht aus dem Design-Handoff. */
.legal {
  font-family: Inter, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

.legal-header {
  background: var(--slate);
  padding: 15px clamp(20px, 5vw, 96px) 17px;
}

.legal-header-inner {
  max-width: 1248px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-wordmark {
  font-family: Jost, 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -1.2px;
  line-height: 1;
  color: var(--on-dark);
  white-space: nowrap;
}

.legal-wordmark span {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 3px;
  vertical-align: 14px;
  border-radius: 50%;
  background: var(--brand);
}

.legal-back {
  font-size: 14px;
  letter-spacing: 0.2px;
  color: var(--on-dark-soft);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.legal-back:hover { color: var(--on-dark-accent); }

.legal-main {
  max-width: 68ch;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 6vw, 96px) clamp(96px, 10vw, 140px);
}

.legal-eyebrow {
  font-size: 10px;
  letter-spacing: 2.4px;
  color: var(--ink-faint);
  margin: 0 0 18px;
}

.legal h1 {
  font-family: Jost, 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.16;
  letter-spacing: -1.3px;
  margin: 0 0 32px;
  text-wrap: balance;
}

.legal h2 {
  font-family: Jost, 'Century Gothic', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin: 44px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.legal p,
.legal li,
.legal address {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-muted);
  font-style: normal;
  text-wrap: pretty;
}

.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal strong { font-weight: 600; color: var(--ink); }

/* Nur Textlinks im Inhalt einfärben — Wortmarke, Zurück-Link und Fusszeile
   behalten ihre eigenen Farben. #B02A6C statt #D63384: das Marken-Magenta
   erreicht auf Weiss nur 4.50:1 und fällt bei jedem dunkleren Grund unter AA. */
.legal-main a { color: var(--link); }
.legal-main a:hover { color: var(--link-hover); }

.legal-footer {
  background: var(--slate);
  padding: 22px clamp(20px, 5vw, 96px);
}

.legal-footer-inner {
  max-width: 1248px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 12px;
  color: var(--on-dark-muted);
}

.legal-footer-inner a { color: var(--on-dark-muted); }
.legal-footer-inner a:hover { color: var(--on-dark-accent); }

/* --- Bewegung reduzieren ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
