/* ceremaris Firmen-Homepage — K1 „Marineblau & Messing"
   Abgeleitet von landing/css/landing.css (2026-08), nur die Komponenten,
   die diese Site nutzt. Tokens kommen aus tokens.css (Kopie der K1-SSOT). */
@import url('tokens.css');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.65;
  /* Deutsche Komposita sind lang und brechen nicht von selbst (Erfahrung aus
     der Landing: „Auftragsverarbeitungsverträge" schob die Seite bei 320px
     über den Rand). Greift nur im Notfall, normaler Umbruch bleibt. */
  overflow-wrap: break-word;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--navy); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Typografie ── */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 420; text-wrap: balance; }
h1 { font-size: clamp(40px, 3rem + 2.5vw, 76px); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 24px; }
h2 { font-size: clamp(30px, 1.8rem + 1.2vw, 52px); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 20px; }
h3 { font-size: 22px; line-height: 1.3; }

/* Überschriften: kein break-word mitten im Wort (zerstört den Titel), stattdessen
   normale Umbruchregel plus deutsche Silbentrennung — alle Seiten tragen lang="de". */
h1, h2, h3 {
  overflow-wrap: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.mark { color: var(--brass); }             /* das eine Gold-Objekt je Blickachse */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--text-2); margin-bottom: 20px;
}
.section-dark .eyebrow { color: var(--brass-light); }
.lede { font-size: 19px; color: var(--text-2); line-height: 1.6; max-width: 640px; text-wrap: pretty; }

/* Sichtbarer Fokus überall (Quality-Floor) */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.section-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible {
  outline-color: var(--brass-light);
}

/* Anker landen nicht unter dem Sticky-Header */
section[id] { scroll-margin-top: 76px; }

/* ── Sektionen ── */
.section { padding: 96px 0; }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede { color: var(--on-dark-2); }

/* ── Buttons ── */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 16px; padding: 14px 28px; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #EDF2F8; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--navy); }
.section-dark .btn-ghost { color: var(--on-dark); border-color: rgba(230,237,243,0.35); }
.section-dark .btn-ghost:hover { border-color: var(--on-dark); }

/* ── Karten ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(16,42,67,0.05), 0 6px 18px rgba(16,42,67,0.06);
}

/* ── Header / Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16,42,67,0.97); border-bottom: 1px solid rgba(230,237,243,0.12);
}
.site-header .container { display: flex; align-items: center; gap: 28px; height: 64px; }

/* Logo-Schloss: Medivian-M (ausgelieferte Pfadgeometrie, K1-Navy) + Wordmark.
   „ceremaris" schreibt die Firma immer klein (Brand-Guide §8). */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { display: block; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-word { font-weight: 600; font-size: 19px; color: #fff; letter-spacing: -0.01em; }
.logo-sub {
  font-size: 10px; font-weight: 600; letter-spacing: 0.15em;
  color: var(--on-dark-2);
}

.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav a { color: var(--on-dark-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav .btn { padding: 9px 18px; font-size: 14px; }
/* .nav a (0,1,1) schlägt .btn-light (0,1,0) — ohne diese Regel kapert die
   Menüfarbe (--on-dark-2) die Knopfschrift (Befund aus der Landing, 07.08.2026). */
.nav a.btn-light { color: var(--navy); }

/* ── Footer ── */
.site-footer {
  background: var(--ink); color: var(--on-dark-2); padding: 48px 0; font-size: 14px;
  border-top: 1px solid rgba(230,237,243,0.12);
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-footer a { color: var(--on-dark-2); }
.site-footer .tagline { color: var(--on-dark); font-family: var(--font-display); }
.site-footer .legal { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .copyright { flex-basis: 100%; font-size: 13px; }

/* ── Reveal (scroll-getriggert, dezent) ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* No-JS: Reveal-Elemente sofort sichtbar */
.no-js .reveal { opacity: 1; transform: none; }

/* ── Hero ── */
.hero { padding: 120px 0 110px; }
.hero h1 { max-width: 18ch; margin-bottom: 28px; }
.hero .lede { margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* Eigene Telefon-Skala für den Titel (Begründung wie in der Landing: ein
   nicht umbrechbares Wort darf die Seite nicht über den Rand schieben). */
@media (max-width: 720px) {
  h1 { font-size: clamp(32px, 1.8rem + 2.6vw, 52px); }
  .hero { padding: 72px 0 64px; }
}

/* ── Baustein-Liste (Arbeitsweise) ── */
.bausteine {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px 48px;
  margin-top: 40px;
}
.baustein h3 { font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.baustein p { font-size: 16px; line-height: 1.6; color: var(--text-2); margin: 0; text-wrap: pretty; }
.section-dark .baustein h3 { color: #fff; }
.section-dark .baustein p { color: var(--on-dark-2); }

/* ── Kontakt ── */
.kontakt-card { padding: 32px; max-width: 640px; margin-top: 32px; }
.kontakt-card p { color: var(--text-2); }
.kontakt-card p + p { margin-top: 12px; }
.kontakt-card .mail { font-size: 19px; font-weight: 600; }

/* ── Rechtsseiten (Impressum / Datenschutz) ── */
.page-narrow { max-width: 760px; }
.page-narrow h1 {
  font-size: clamp(28px, 1.5rem + 1vw, 38px);   /* Dokument-Titel, nicht Marketing-Hero */
  margin-bottom: 8px;
}
.legal-card { padding: 40px 44px; margin-top: 24px; }
.legal-card h2 {
  font-size: 18px;
  font-weight: 550;
  margin: 32px 0 10px;
  padding-top: 26px;
  border-top: 1px solid var(--border);   /* Haarlinie trennt die Abschnitte */
}
.legal-card h2.first { margin-top: 0; padding-top: 0; border-top: none; }
.legal-card p, .legal-card li { color: var(--text-2); line-height: 1.65; }
.legal-card li { margin-bottom: 8px; }
.legal-card strong { color: var(--ink); }
.legal-toc { font-size: 15px; }
.legal-toc a { white-space: nowrap; }
.legal-stand { font-size: 14px; color: var(--text-2); margin-top: 8px; }

/* ── Mobile ── */
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }   /* Mobile: nur Logo + CTA (v1, kein Burger) */
  .logo-sub { display: none; }          /* Subtitle bricht die Zeile auf 320px */
  .legal-card { padding: 24px 20px; }
}
