/* praxissmart.de — Produktionsstand (aus Variante V2, 01.08.2026)
   Markenklammer: dieselben Farben und Schriften wie LinkedIn-Banner und
   Social-Media-Slides (slide_renderer.py) — Navy, Bernstein, Creme,
   Inter für Fließtext und Headlines, Lora für Claim und Zitat. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap;
  src: url("assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap;
  src: url("assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap;
  src: url("assets/fonts/inter-800.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 500; font-display: swap;
  src: url("assets/fonts/lora-500.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap;
  src: url("assets/fonts/lora-600.woff2") format("woff2"); }

:root {
  /* Kontrastgeprüft (WCAG 2.1). Die Werte stehen im Kontrastprüfer von
     checks.sh und werden bei jedem Lauf nachgerechnet — nicht raten.
     --accent      auf Weiß 3,19:1 → NUR Flächen, Linien, Rahmen, Logo.
     --accent      auf Navy  4,55:1 → als Text nur auf dunklem Grund erlaubt.
     --accent-dark auf Weiß 5,02:1 → Text und Buttons auf hellem Grund.
     --accent-deep auf Weiß 7,09:1 → Hover (dunkler, nie heller).
     --text        auf Weiß 14,5:1 · --muted auf Creme 5,00:1 */
  --navy: #16283e;        /* Markenfarbe dunkel — wie LinkedIn-Banner */
  --text: #16283e;
  --muted: #5f6b76;
  --muted-on-dark: #a8b4c2;   /* auf Navy 7,09:1 */
  --accent: #d97706;          /* warmes Bernstein */
  --accent-dark: #b45309;
  --accent-deep: #92400e;
  --bg: #ffffff;
  --creme: #f7f5f0;           /* Markenfarbe hell */
  --line: rgb(22 40 62 / 0.10);
  --radius: 18px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Lora", Georgia, serif;
}

/* Grundgerüst */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 0.75rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }

/* Sichtbarer Fokus — Tastaturbedienung darf nie unsichtbar sein */
:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  color: #fff;
}

/* Sticky-Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  height: 1.1em;
  width: auto;
  vertical-align: -0.18em;
  margin-right: 0.4rem;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav nav a:hover { color: var(--accent-deep); }

.nav .nav-cta {
  color: #fff;
  background: var(--accent-dark);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.nav .nav-cta:hover {
  background: var(--accent-deep);
  color: #fff;
}

/* Abschnitts-Rhythmus: Creme — Weiß — Creme — Navy.
   Die Flächen trennen, nicht die Schlagschatten. */
main { margin: 0; padding: 0; }

main > section {
  padding: 3.5rem 1.5rem;
}

/* Eine einzige Innenbreite fuer alles. Sobald einzelne Elemente eigene
   max-width-Werte bekommen, laufen die linken Kanten auseinander — genau
   das sah im ersten Durchgang unruhig aus. */
main > section > * {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

#hero, #saeulen { background: var(--creme); }
#rolle { background: var(--bg); }

main > section > h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  margin-bottom: 1.5rem;
  display: block;
}

main > section > h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: 0.6rem;
  background: var(--accent);
  border-radius: 2px;
}

/* Hero — Logo als Marke, nicht als Bild im Rahmen */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 3.5rem 1.5rem 4rem;
}

/* Portraet rund. Die Quelle hat 594 px — deshalb wird es bewusst nicht
   groesser als 220 px angezeigt (440 px auf Retina), sonst wird es weich. */
#hero .hero-media {
  width: 100%;
  max-width: 220px;
}

#hero .portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--accent);
  box-shadow: 0 10px 28px rgb(22 40 62 / .18);
}

#hero .hero-mark {
  width: 100%;
  height: auto;
}

#hero .hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 42rem;
}

.kicker {
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

#hero h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

#hero .claim {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  color: var(--text);
  margin-bottom: 1rem;
}

#hero .subline {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

/* Button */
.button {
  display: inline-block;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.button:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
}

/* Rolle */
#rolle p {
  font-size: 1.1rem;
}

.signature {
  margin: 2.5rem auto 0;
  padding: 1.5rem 0 0;
  border: none;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  font-weight: 600;
  font-style: italic;
  color: var(--accent-dark);
  text-align: center;
}

/* Säulen / Karten */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
  box-shadow: 0 6px 20px rgb(22 40 62 / .08);
  padding: 1.75rem;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

/* Kontakt — Navy-Zäsur zum Abschluss */
#kontakt {
  background: var(--navy);
  color: #fff;
  padding-bottom: 4rem;
}

#kontakt h2 { color: #fff; }
#kontakt p { color: var(--muted-on-dark); }
#kontakt .kontakt-links { margin-top: 1.75rem; }

#kontakt .button {
  background: var(--accent);   /* auf Navy 4,55:1 — hier zulässig */
  color: var(--navy);
  font-weight: 800;
}

#kontakt .button:hover {
  background: #f0a03a;
  color: var(--navy);
}

.social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 2rem auto 0;
  padding: 0;
}

.social a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.social a:hover { color: var(--accent); }

/* Footer */
footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--accent-deep); }

/* Schmale Geraete: Der Markenname weicht dem Logo, sonst bricht die
   Kopfzeile zweizeilig um. Fuer Screenreader bleibt er lesbar. */
@media (max-width: 559px) {
  .nav { padding: 0.75rem 1rem; }
  .nav nav { gap: 0.9rem; }
  .nav nav a { font-size: 0.9rem; }
  .nav .nav-cta { padding: 0.45rem 0.8rem; }
  .brand-mark { margin-right: 0; }
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Breakpoints */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  main > section { padding: 4.5rem 2rem; }
  #hero { padding: 4.5rem 2rem 5rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* Bewegung nur, wenn sie gewünscht ist */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .button:hover { transform: none; }
}
