/* ============================================================
   RE ASSTRA — Design Book Stylesheet
   Gemeinsame Styles fuer Startseite, Impressum, Datenschutz.
   Farben & Typografie nach RE-Asstra Design Book 2026.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --tiefsee:    #081428;
  --ultramarin: #2B57E4;   /* LOGO ONLY — Zeichen & Wortmarke */
  --coral:      #FC766A;   /* Living Coral — Hauptakzent, immer Detail nie Fläche */
  --kirschrot:  #D8254A;   /* Signalwerte, Negativzahlen */
  --kreide:     #E8E8E0;
  --papier:     #FBFCFE;
  --tiefsee-80: #1A3050;
  --tiefsee-60: #2C4A6E;
  --text-mid:   #41506A;
  --text-soft:  #8499B5;
  --border:     #DCE5F2;
  --border-warm:#D6D6CC;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--papier); color: var(--tiefsee);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 64px; }

/* ══ NAV — konstanter Rahmen ══ */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--papier); border-bottom: 2px solid var(--coral); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 64px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.nav-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.30em; text-transform: uppercase; color: var(--coral); display: flex; align-items: center; gap: 32px; }
.nav-menu { display: flex; gap: 26px; }
.nav-menu a { color: var(--text-soft); text-decoration: none; transition: color 0.18s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--coral); }
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-logo svg { width: 26px; height: auto; display: block; }
.nav-wordmark { font-family: 'Syncopate', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.40em; color: var(--ultramarin); white-space: nowrap; }

/* ══ HERO — Tiefsee ══ */
.hero { background: var(--tiefsee); margin-top: 70px; min-height: calc(100vh - 70px); display: flex; flex-direction: column; justify-content: center; padding: 100px 0 90px; position: relative; overflow: hidden; }
.hero-watermark { position: absolute; right: -60px; bottom: -40px; width: 460px; height: auto; opacity: 0.045; pointer-events: none; }
.hero-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--coral); display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.hero-eyebrow::before { content: ''; display: block; width: 38px; height: 2px; background: var(--coral); }
.hero-headline { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.06; letter-spacing: -0.02em; color: var(--kreide); max-width: 900px; margin-bottom: 34px; position: relative; z-index: 2; }
.hero-headline em { font-style: normal; color: var(--coral); }
.hero-lead { font-family: 'IBM Plex Sans', sans-serif; font-weight: 300; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.5; color: var(--kreide); max-width: 720px; margin-bottom: 28px; position: relative; z-index: 2; }
.hero-sub { font-size: 16px; line-height: 1.74; color: var(--text-soft); max-width: 600px; margin-bottom: 48px; position: relative; z-index: 2; }
.hero-actions { display: flex; align-items: center; gap: 28px; position: relative; z-index: 2; }
.btn-primary { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--papier); background: var(--coral); padding: 14px 28px; border-radius: 6px; text-decoration: none; transition: opacity 0.18s; white-space: nowrap; }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft); text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color 0.18s; }
.btn-ghost:hover { color: var(--kreide); }
.btn-ghost svg { width: 13px; height: 13px; }

/* ══ SECTION SYSTEM — Papier-Basis ══ */
.section { padding: 96px 0; background: var(--papier); }
.sec-head { margin-bottom: 56px; }
.sec-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.30em; text-transform: uppercase; color: var(--coral); margin-bottom: 16px; }
.sec-title { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: clamp(26px, 3vw, 42px); letter-spacing: -0.015em; line-height: 1.12; color: var(--tiefsee); max-width: 820px; }
.sec-title em { font-style: normal; color: var(--coral); }

/* ── Vier Teaser ── */
.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-warm); border: 1px solid var(--border-warm); border-radius: 14px; overflow: hidden; }
.teaser { background: var(--papier); padding: 44px 40px; transition: background 0.18s; position: relative; }
.teaser:hover { background: var(--kreide); }
.teaser-marker { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.teaser-marker::before { content: ''; width: 22px; height: 2px; background: var(--border-warm); transition: background 0.18s, width 0.18s; }
.teaser:hover .teaser-marker { color: var(--coral); }
.teaser:hover .teaser-marker::before { background: var(--coral); width: 32px; }
.teaser-title { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--tiefsee); margin-bottom: 14px; }
.teaser-body { font-size: 15.5px; line-height: 1.7; color: var(--text-mid); }

/* ── 15 Jahre Banner — Tiefsee ── */
.erfahrung { background: var(--tiefsee); padding: 80px 0; position: relative; overflow: hidden; }
.erfahrung-watermark { position: absolute; left: -40px; top: 50%; transform: translateY(-50%); width: 340px; opacity: 0.05; pointer-events: none; }
.erfahrung-inner { position: relative; z-index: 2; display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; }
.erfahrung-num { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: clamp(48px, 7vw, 88px); color: var(--coral); line-height: 1; letter-spacing: -0.01em; }
.erfahrung-text { font-family: 'IBM Plex Sans', sans-serif; font-weight: 300; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; color: var(--kreide); max-width: 560px; }

/* ── Partner ── */
.partner-intro { max-width: 660px; margin-bottom: 48px; }
.partner-intro p { font-size: 15.5px; line-height: 1.74; color: var(--text-mid); }
.partner-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { background: var(--kreide); border-radius: 12px; padding: 36px 28px; display: flex; flex-direction: column; gap: 12px; min-height: 150px; border: 1px solid transparent; }
a.pcard { text-decoration: none; transition: border-color 0.18s, transform 0.18s; }
a.pcard:hover { border-color: var(--coral); transform: translateY(-3px); }
.pcard-marker { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--coral); display: flex; align-items: center; justify-content: space-between; }
.pcard-marker .ext { color: var(--text-soft); font-size: 13px; transition: color 0.18s; }
a.pcard:hover .pcard-marker .ext { color: var(--coral); }
.pcard-name { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--tiefsee); margin-top: auto; }
.pcard-role { font-size: 13px; line-height: 1.55; color: var(--text-mid); }

/* ══ CTA — Tiefsee ══ */
.cta { background: var(--tiefsee); padding: 96px 0; position: relative; overflow: hidden; }
.cta-watermark { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 380px; opacity: 0.05; pointer-events: none; }
.cta-inner { display: grid; grid-template-columns: 0.85fr 1fr; gap: 64px; align-items: start; position: relative; z-index: 2; }
.cta-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.30em; text-transform: uppercase; color: var(--coral); margin-bottom: 18px; }
.cta-headline { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.015em; line-height: 1.12; color: var(--kreide); margin-bottom: 16px; }
.cta-headline em { font-style: normal; color: var(--coral); }
.cta-sub { font-size: 15px; line-height: 1.7; color: var(--text-soft); max-width: 480px; }
.cta-contact { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-top: 36px; }
.cta-address { font-family: 'IBM Plex Mono', monospace; font-size: 12px; line-height: 1.7; color: var(--text-soft); letter-spacing: 0.04em; }
.cta-email { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text-soft); text-decoration: none; transition: color 0.18s; letter-spacing: 0.03em; }
.cta-email:hover { color: var(--kreide); }

/* ── Kontaktformular ── */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.20em; text-transform: uppercase; color: var(--text-soft); }
.field label .req { color: var(--coral); }
.field input, .field textarea {
  font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; color: var(--tiefsee);
  background: var(--papier); border: 1px solid var(--border); border-radius: 8px;
  padding: 13px 15px; transition: border-color 0.18s, box-shadow 0.18s; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-soft); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(252,118,106,0.18); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-consent { display: flex; align-items: flex-start; gap: 12px; }
.form-consent input { margin-top: 3px; accent-color: var(--coral); width: 16px; height: 16px; flex-shrink: 0; }
.form-consent label { font-size: 12.5px; line-height: 1.6; color: var(--text-soft); }
.form-consent a { color: var(--coral); text-decoration: none; }
.form-consent a:hover { text-decoration: underline; }
/* Honeypot — fuer Menschen und Screenreader unsichtbar, nur Bots fuellen es aus */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Statusmeldung nach Absenden */
.form-status { display: none; font-size: 14px; line-height: 1.6; padding: 14px 18px; border-radius: 8px; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(31,138,91,0.14); border: 1px solid #1F8A5B; color: #8FE3BD; }
.form-status.is-error { background: rgba(216,37,74,0.14); border: 1px solid var(--kirschrot); color: #F2A6B6; }
.form-submit:disabled { opacity: 0.55; cursor: default; }
.form-submit {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--papier); background: var(--coral); border: none; border-radius: 6px;
  padding: 15px 30px; cursor: pointer; transition: opacity 0.18s; align-self: flex-start;
}
.form-submit:hover { opacity: 0.9; }
.form-note { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.06em; color: var(--tiefsee-60); margin-top: 4px; }

/* ══ FOOTER — konstanter Rahmen ══ */
footer { background: var(--papier); border-top: 2px solid var(--coral); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 28px 64px; display: flex; align-items: center; justify-content: space-between; }
.footer-firm { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mid); display: flex; align-items: center; gap: 12px; }
.footer-firm::before { content: ''; width: 4px; height: 14px; background: var(--coral); border-radius: 1px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); text-decoration: none; transition: color 0.18s; }
.footer-links a:hover { color: var(--tiefsee); }

/* ══ RESPONSIVE ══ */
@media (max-width: 920px) {
  .container, .nav-inner, .footer-inner { padding-left: 28px; padding-right: 28px; }
  .nav-eyebrow { display: none; }
  .teaser-grid, .partner-row { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-contact { align-items: flex-start; }
  .cta-address { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .erfahrung-inner { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============================================================
   CONTENT / LEGAL PAGES (Impressum, Datenschutz)
   ============================================================ */
.page-head {
  margin-top: 70px; background: var(--papier);
  padding: 84px 0 56px; border-bottom: 1px solid var(--border-warm);
  position: relative; overflow: hidden;
}
.page-head-watermark { position: absolute; right: -50px; bottom: -70px; width: 320px; opacity: 0.04; pointer-events: none; }
.page-head .breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.page-head .breadcrumb a { color: var(--text-soft); text-decoration: none; transition: color 0.18s; }
.page-head .breadcrumb a:hover { color: var(--coral); }
.page-head .breadcrumb span { color: var(--coral); }
.page-head-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.30em; text-transform: uppercase; color: var(--coral); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.page-head-eyebrow::before { content: ''; display: block; width: 32px; height: 2px; background: var(--coral); }
.page-head-title { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: clamp(30px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: var(--tiefsee); }

.legal { padding: 72px 0 96px; background: var(--papier); }
.legal-inner { max-width: 760px; }
/* Platzhalter-Hinweis — entfernen, sobald Inhalt eingefuegt wird */
.legal-placeholder { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; color: var(--text-soft); border: 1px dashed var(--border-warm); border-radius: 10px; padding: 28px 32px; background: var(--kreide); }
/* Typo-Regeln fuer eingefuegten Inhalt */
.legal-content h2 { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--tiefsee); margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 16px; color: var(--tiefsee); margin: 28px 0 10px; }
.legal-content p { font-size: 15.5px; line-height: 1.74; color: var(--text-mid); margin-bottom: 16px; }
.legal-content a { color: var(--coral); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content ul { margin: 0 0 16px 20px; }
.legal-content li { font-size: 15.5px; line-height: 1.7; color: var(--text-mid); margin-bottom: 8px; }
.legal-content strong { color: var(--tiefsee); font-weight: 600; }

@media (max-width: 920px) {
  .legal-inner { max-width: 100%; }
}
