/* ============================================================
   Kalis Design System — geteiltes Stylesheet für
   Kalis Hard- & Software GmbH und Kalis Datenschutz
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* Farben */
  --navy: #0F2247;
  --navy-700: #1A3163;
  --navy-050: #E9ECF3;
  --red: #D0202F;
  --red-700: #A81823;
  --red-050: #FBEAEB;
  --ink: #1C2230;
  --slate: #5B6472;
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --line: #E3E5E9;
  --line-strong: #C9CCD3;

  /* Markenakzent — wird von kalis-datenschutz per Klasse leicht verschoben */
  --accent: var(--navy);
  --accent-700: var(--navy-700);

  /* Typografie */
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --fs-h1: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 1.35rem + 1.1vw, 2.3rem);
  --fs-h3: 1.375rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.8125rem;

  --line-height-tight: 1.2;
  --line-height-body: 1.65;

  --radius: 6px;
  --radius-lg: 10px;
  --container: 1180px;
  --space-section: clamp(3.5rem, 3rem + 2vw, 6rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--line-height-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

/* ---------- Fokus & Barrierefreiheit ---------- */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.15s ease;
  font-family: var(--font-body);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}
main { display: block; }
section { padding-block: var(--space-section); }
.section-tight { padding-block: clamp(2rem, 1.7rem + 1vw, 3rem); }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: 0.9em;
}
.lead {
  font-size: var(--fs-lead);
  color: var(--slate);
  max-width: 62ch;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,246,242,0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.brand-lockup { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-lockup:hover { color: inherit; }
.brand-lockup .mark { width: 34px; height: auto; flex-shrink: 0; }
.brand-lockup .word { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); line-height: 1; }
.brand-lockup .word small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.06em; color: var(--slate); margin-top: 0.3em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.main-nav a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
}
.main-nav a:hover { background: var(--navy-050); color: var(--navy); }
.main-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .main-nav {
    position: fixed; inset: 76px 0 0 0;
    background: var(--paper);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; padding: 1.5rem clamp(1.25rem,1rem+2vw,2.5rem); gap: 0.25rem; }
  .main-nav a { display: block; padding: 0.85rem 1rem; font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--navy-050); color: var(--navy); border-color: var(--navy); }
.btn-accent { background: var(--red); color: var(--white); }
.btn-accent:hover { background: var(--red-700); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 2.4rem + 3vw, 6.5rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 0.45em; }
.hero-mark { width: 100%; max-width: 440px; margin-inline: auto; }

/* ---------- Bänder-Motiv (Signatur-Element) ---------- */
.band-divider { display: flex; height: 10px; margin-block: 0; }
.band-divider span { flex: 1; }
.band-divider span:nth-child(1) { background: var(--navy); }
.band-divider span:nth-child(2) { background: var(--navy); opacity: 0.8; }
.band-divider span:nth-child(3) { background: var(--navy); opacity: 0.6; }
.band-divider span:nth-child(4) { background: var(--red); }
.band-divider span:nth-child(5) { background: var(--navy); opacity: 0.6; }
.band-divider span:nth-child(6) { background: var(--navy); opacity: 0.8; }

/* ---------- Karten ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.card .card-index { font-family: var(--font-mono); font-size: var(--fs-eyebrow); color: var(--red); font-weight: 500; letter-spacing: 0.06em; }
.card h3 { margin-top: 0.6rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0.9em 0 0; padding-left: 1.1em; }

/* ---------- Prozess-Schritte ---------- */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding-top: 2.6rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--red);
  display: block;
  position: absolute; top: 0; left: 0;
  border-top: 2px solid var(--navy);
  padding-top: 0.6rem;
  width: 100%;
}

/* ---------- Kontakt / Info-Listen ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 0.9rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.info-list li:last-child { border-bottom: none; }
.info-list dt { font-weight: 600; color: var(--navy); min-width: 8.5rem; flex-shrink: 0; }
.info-list dd { margin: 0; color: var(--ink); }
dl.info-list { display: block; }
dl.info-list > div { display: flex; gap: 0.9rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
dl.info-list > div:last-child { border-bottom: none; }

/* ---------- Formular ---------- */
.form-grid { display: grid; gap: 1.25rem; max-width: 640px; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.form-row .hint { font-size: 0.85rem; color: var(--slate); font-weight: 400; }
input, textarea, select {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
textarea { min-height: 140px; resize: vertical; }
.required-mark { color: var(--red); }
.form-note { font-size: 0.85rem; color: var(--slate); margin-top: 1rem; max-width: 60ch; }
.form-status { padding: 0.9rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.success { background: var(--navy-050); color: var(--navy); border: 1px solid var(--navy); }

/* ---------- Karte / Anfahrt ---------- */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 16/9;
  position: relative;
}
.map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center; padding: 2rem;
  background: var(--navy-050);
}
.map-placeholder p { margin: 0; max-width: 40ch; color: var(--slate); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C7CEDD; padding-block: clamp(2.5rem,2rem+2vw,3.5rem) 1.75rem; margin-top: var(--space-section); }
.site-footer a { color: #E7ECF7; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-grid h2 { color: var(--white); font-size: 1rem; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; margin-bottom: 1rem; }
.footer-brand .word { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.footer-brand p { color: #A9B3C9; max-width: 34ch; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #93A0BB;
}
.footer-bottom ul { list-style: none; display: flex; gap: 1.25rem; padding: 0; margin: 0; }

/* ---------- Sister-brand Teaser ---------- */
.sister-teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem clamp(1.5rem, 3vw, 2.5rem);
}
.sister-teaser .mark { width: 54px; flex-shrink: 0; }
.sister-teaser-text { flex: 1; min-width: 240px; }

/* ---------- Legal-Seiten ---------- */
.legal { max-width: 74ch; }
.legal h2 { margin-top: 2em; font-size: 1.3rem; }
.legal h3 { font-size: 1.05rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.legal th, .legal td { text-align: left; padding: 0.6em 0.8em; border: 1px solid var(--line); font-size: 0.95rem; }
.legal th { background: var(--navy-050); font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; }

/* ---------- Hinweis-Kasten (z.B. Interessenkonflikt) ---------- */
.callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--red-050);
  border: 1px solid #F0C4C8;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.callout .callout-icon { flex-shrink: 0; width: 24px; height: 24px; margin-top: 0.15rem; color: var(--red); }
.callout h3 { margin: 0 0 0.4em; font-size: 1.05rem; color: var(--navy); }
.callout p:last-child { margin-bottom: 0; }
.callout p { color: var(--ink); }

/* ---------- Visitenkarte (kompakte Markendarstellung) ---------- */
.business-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 1px 2px rgba(15,34,71,0.04), 0 8px 24px rgba(15,34,71,0.06);
  max-width: 220px;
}
.business-card img { width: 84px; height: auto; }
.business-card .bc-name { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--slate); text-align: center; }

body.brand-datenschutz .brand-lockup .mark { width: 26px; }
body.brand-datenschutz .brand-lockup .word { font-size: 1.05rem; }

/* ---------- Datenschutz-Markenvariante ---------- */
body.brand-datenschutz .band-divider span:nth-child(4) { background: var(--red); }
body.brand-datenschutz .card .card-index { color: var(--navy); }

