/* moinki — Basis-Tokens & geteilte Komponenten
   Palette „Kreideküste" — siehe docs/DESIGN.md */

@font-face {
  font-family: 'Young Serif';
  src: url('../fonts/young-serif-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Wix Madefor Text';
  src: url('../fonts/wix-madefor-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Wix Madefor Text';
  src: url('../fonts/wix-madefor-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Wix Madefor Text';
  src: url('../fonts/wix-madefor-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fragment Mono';
  src: url('../fonts/fragment-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --kreide: #F7F9F8;
  --ostsee: #10394E;
  --ostsee-tief: #0B2A3A;
  --bodden: #3E6E86;
  --gischt: #E3EDEC;
  --gischt-tief: #D3E2E0;
  --sanddorn: #E97B25;
  --sanddorn-tief: #C96417;
  --tinte: #16303B;
  --tinte-soft: #40575F;
  --weiss: #FFFFFF;

  --display: 'Young Serif', Georgia, serif;
  --body: 'Wix Madefor Text', system-ui, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, monospace;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-s: 0.9375rem;    /* 15 */
  --fs-base: 1.125rem;  /* 18 */
  --fs-m: 1.3125rem;    /* 21 */
  --fs-l: 1.625rem;     /* 26 */
  --fs-xl: 2.125rem;    /* 34 */
  --fs-display: clamp(2.375rem, 1.4rem + 3.6vw, 4rem);
  --fs-hero: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);

  --w-content: 1160px;
  --w-text: 720px;
  --radius: 14px;
  --radius-s: 8px;
  --schatten: 0 10px 34px rgba(16, 57, 78, 0.13);
  --schatten-s: 0 4px 14px rgba(16, 57, 78, 0.10);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--kreide);
  color: var(--tinte);
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 0.6em; color: var(--ostsee); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-display); }
h3 { font-size: var(--fs-l); line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--bodden); text-underline-offset: 3px; }
a:hover { color: var(--ostsee); }
:focus-visible { outline: 3px solid var(--sanddorn); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sanddorn); color: var(--weiss); }

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

/* Eyebrow / Mono-Labels */
.kicker {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bodden); margin: 0 0 1.1em; display: block;
}
.kicker::before { content: ''; display: inline-block; width: 26px; height: 2px; background: var(--sanddorn); vertical-align: middle; margin-right: 10px; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 700; font-size: var(--fs-base);
  padding: 17px 30px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; text-align: center; line-height: 1.25;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s;
}
.btn-sanddorn { background: var(--sanddorn); color: var(--weiss); box-shadow: 0 6px 20px rgba(233, 123, 37, 0.35); }
.btn-sanddorn:hover { background: var(--sanddorn-tief); color: var(--weiss); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(233, 123, 37, 0.4); }
.btn-ostsee { background: var(--ostsee); color: var(--weiss); }
.btn-ostsee:hover { background: var(--ostsee-tief); color: var(--weiss); transform: translateY(-2px); }
.btn-hint { font-family: var(--mono); font-size: var(--fs-xs); color: var(--tinte-soft); margin-top: 12px; }

/* Laubsäge-Zierleiste (Bäderarchitektur-Fretwork) als Sektions-Trenner */
.fretwork {
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='26' viewBox='0 0 72 26'%3E%3Cpath d='M0 0h72v7c-8 0-10 9-18 9s-10-9-18-9-10 9-18 9S10 7 0 7Z' fill='%23FFFFFF'/%3E%3Ccircle cx='36' cy='20' r='2.6' fill='%23FFFFFF'/%3E%3Ccircle cx='0' cy='20' r='2.6' fill='%23FFFFFF'/%3E%3Ccircle cx='72' cy='20' r='2.6' fill='%23FFFFFF'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 72px 26px;
}
.fretwork-dunkel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='26' viewBox='0 0 72 26'%3E%3Cpath d='M0 0h72v7c-8 0-10 9-18 9s-10-9-18-9-10 9-18 9S10 7 0 7Z' fill='%2310394E'/%3E%3Ccircle cx='36' cy='20' r='2.6' fill='%2310394E'/%3E%3Ccircle cx='0' cy='20' r='2.6' fill='%2310394E'/%3E%3Ccircle cx='72' cy='20' r='2.6' fill='%2310394E'/%3E%3C/svg%3E");
}

/* KI-Kennzeichnung (EU AI Act) */
.bildbox { position: relative; }
.ki-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em;
  color: var(--weiss); background: rgba(11, 42, 58, 0.72);
  padding: 4px 9px; border-radius: 6px; pointer-events: none;
}

/* Header */
.kopf {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 249, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gischt-tief);
}
.kopf-innen { display: flex; align-items: center; gap: 28px; max-width: var(--w-content); margin: 0 auto; padding: 14px 24px; }
.marke { text-decoration: none; line-height: 1.05; }
.marke b { font-family: var(--display); font-weight: 400; font-size: 1.55rem; color: var(--ostsee); letter-spacing: 0; }
.marke b i { color: var(--sanddorn); font-style: normal; }
.marke small { display: block; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--tinte-soft); margin-top: 2px; }
.kopf-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.kopf-nav a:not(.btn) { font-size: var(--fs-s); font-weight: 500; color: var(--tinte); text-decoration: none; }
.kopf-nav a:not(.btn):hover { color: var(--bodden); }
.kopf-nav .nav-kurs { color: var(--sanddorn-tief); }
.kopf-nav .btn { padding: 11px 22px; font-size: var(--fs-s); }
.kopf-burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.kopf-burger span { display: block; width: 26px; height: 3px; background: var(--ostsee); border-radius: 2px; margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }

@media (max-width: 900px) {
  .kopf-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--kreide); border-bottom: 1px solid var(--gischt-tief);
    padding: 12px 24px 20px;
  }
  .kopf-nav a:not(.btn) { padding: 10px 0; font-size: var(--fs-base); }
  .kopf-nav .btn { margin-top: 10px; }
  .kopf-offen .kopf-nav { display: flex; }
  .kopf-burger { display: block; }
  .kopf-offen .kopf-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .kopf-offen .kopf-burger span:nth-child(2) { opacity: 0; }
  .kopf-offen .kopf-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Footer */
.fuss { background: var(--ostsee-tief); color: #B9CDD6; padding: 56px 0 40px; font-size: var(--fs-s); }
.fuss .marke b { color: var(--kreide); }
.fuss .marke small { color: #7FA0AE; }
.fuss-grid { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; align-items: flex-start; }
.fuss a { color: #B9CDD6; }
.fuss a:hover { color: var(--weiss); }
.fuss-links { display: flex; gap: 22px; flex-wrap: wrap; }
.fuss-ki { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(185, 205, 214, 0.2); font-family: var(--mono); font-size: 0.72rem; color: #7FA0AE; line-height: 1.7; }

/* Formulare */
.feld { margin-bottom: 18px; }
.feld label { display: block; font-weight: 500; font-size: var(--fs-s); margin-bottom: 7px; color: var(--ostsee); }
.feld input[type="text"], .feld input[type="tel"], .feld input[type="email"], .feld input[type="url"], .feld select, .feld textarea {
  width: 100%; font-family: var(--body); font-size: var(--fs-base); color: var(--tinte);
  padding: 14px 16px; border: 1.5px solid var(--gischt-tief); border-radius: var(--radius-s);
  background: var(--weiss); transition: border-color 0.15s;
}
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--bodden); outline: none; }
.feld .hint { font-family: var(--mono); font-size: var(--fs-xs); color: var(--tinte-soft); margin-top: 6px; }
.einwilligung { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-s); color: var(--tinte-soft); margin: 22px 0; }
.einwilligung input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--sanddorn); flex: none; }
.form-fehler { color: #B03A2E; font-size: var(--fs-s); font-weight: 500; margin: 10px 0 0; display: none; }

/* Reveal-Grundzustand: NUR per JS gesetzt (ohne JS alles sichtbar) */
.js [data-reveal] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
