/* ==========================================================================
   Krefft Küchenmaschinen – Landingpage „Website wird überarbeitet"
   Ein CSS für alle Seiten (index, impressum, datenschutz).
   Schrift: Montserrat (Google Fonts v31, variable), lokal ausgeliefert.
   ========================================================================== */

/* --- Schrift (lokal, nur woff2) ------------------------------------------ */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-v31-latin-ext-variable.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-v31-latin-variable.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;
}

/* --- Farben / Grundwerte -------------------------------------------------- */
:root {
  --navy: #01346d;        /* Krefft-Blau aus dem Logo-Balken */
  --navy-dark: #022652;
  --accent: #4179b6;      /* helleres Balkenblau – nur dekorativ */
  --accent-light: #a9c8ef;/* Eyebrow auf Navy: 7,2:1 */
  --text: #1b1f27;
  --muted: #555b66;       /* auf Weiß: 7:1 */
  --line: #dfe4ec;
  --bg-soft: #f3f5f8;
  --white: #ffffff;
  --focus: #4179b6;
  --radius: 10px;
  --container: 1100px;
  --gutter: 24px;
}

/* --- Reset / Basis -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { display: block; flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--navy-dark); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.15rem; margin-top: 1.8em; }
h4 { font-size: 1rem; margin-top: 1.5em; color: var(--text); }
p, ul, ol, address, dl { margin: 0 0 1.1em; }
address { font-style: normal; }
strong { font-weight: 700; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Barrierefreiheit ----------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; outline: 3px solid var(--white); outline-offset: -5px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
.hero :focus-visible,
.site-footer--dark :focus-visible { outline-color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand { display: inline-block; line-height: 0; }
.brand img { width: 172px; height: 64px; }

.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 0.25rem 1.5rem;
  flex-wrap: wrap;
}
.site-nav a {
  display: inline-block;
  padding: 0.4rem 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* --- Hero (Hinweis) ------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* dezente Balken-Grafik in Anlehnung an das Logo-Icon */
  content: "";
  position: absolute;
  right: -4rem; top: -2rem;
  width: 22rem; height: 22rem;
  background:
    linear-gradient(90deg, transparent 0 33%, rgba(255,255,255,0.06) 33% 46%, transparent 46% 66%, rgba(255,255,255,0.06) 66% 79%, transparent 79%);
  transform: skewX(-18deg);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); margin-bottom: 0.5em; max-width: 22ch; }
.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  max-width: 46ch;
  margin-bottom: 1rem;
}
.lead--en {
  font-size: 1rem;
  color: var(--accent-light);
  margin-top: 1.5rem;
}
.hero a { color: var(--white); }

/* --- Inhaltsbereich Startseite -------------------------------------------- */
.info {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.info p { max-width: 70ch; }
.info p:last-child { margin-bottom: 0; }

/* --- Rechtsseiten --------------------------------------------------------- */
.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.page-head .container { max-width: 860px; }
.page-head h1 { margin: 0; }
.page-head .eyebrow { color: var(--muted); margin-bottom: 0.75rem; }
.legal {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}
.legal .container { max-width: 860px; }
.legal p, .legal li, .legal address, .legal dd { max-width: 75ch; }
.legal h2 { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
.legal .small { font-size: 0.9rem; color: var(--muted); }
.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-weight: 600;
}
.back-link::before { content: "\2190\00a0"; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: #40464f; /* 8,5:1 auf #f3f5f8 */
  font-size: 0.9rem;
  padding: 2rem 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer p { margin: 0; }
.footer-notice { max-width: 62ch; }
.footer-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.footer-nav a { font-weight: 600; }
.footer-meta { flex-basis: 100%; }

/* --- Mobil ---------------------------------------------------------------- */
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .brand img { width: 150px; height: 56px; }
  .hero::after { display: none; }
}

/* --- Bewegung reduzieren -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* --- Druck ---------------------------------------------------------------- */
@media print {
  .skip-link, .site-nav, .footer-nav, .back-link { display: none; }
  .hero { background: none; color: #000; padding: 1rem 0; }
  .hero h1, .eyebrow, .lead--en { color: #000; }
  a { color: #000; text-decoration: none; }
}
