/* =============================================================
   INSEL BUDDY — legal.css
   Rechtsseiten (Impressum, Datenschutz, AGB)
   Marken-Werte 1:1 aus der App (capacitor-app/src/css/app.css :root,
   logo.js). Single Source of Truth = die App.
   ============================================================= */

:root {
  --primary:       #1B4F72;   /* --color-primary  */
  --primary-dark:  #154060;   /* App-Header-Gradient-Endwert */
  --sand:          #D4A96A;   /* --color-sand     */
  --white:         #FDFAF5;   /* --color-white    */
  --text:          #1A1A2E;   /* --color-text     */
  --muted:         #6e6860;   /* --color-gray-500 */
  --hairline:      #e8e4dc;   /* --color-gray-200 */
  --font-display:  'Playfair Display', Georgia, serif;  /* Wortmarke "Insel" / Überschriften */
  --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --measure:       68ch;      /* lesbarer Legal-Satzspiegel */
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  font-size: 16px;
}

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* --- Wortmarke: "Insel" (Playfair) + "Buddy" (DM Sans light, Sand) --- */
.word { font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.word .i { font-family: var(--font-display); color: var(--primary); }
.word .b { font-family: var(--font-body); font-weight: 300; color: var(--sand); margin-left: 1px; }

/* ---------------------------------------------------------------
   NAV
--------------------------------------------------------------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 245, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 760px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { text-decoration: none; font-size: 1.25rem; }
.back {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: color 0.2s;
}
.back:hover { color: var(--primary); }

/* ---------------------------------------------------------------
   HERO — Markenblau-Gradient (App-Header) + Wellen-Abschluss
--------------------------------------------------------------- */
.legal-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 72px 0 96px;
}
.legal-hero .eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sand);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.legal-hero .eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--sand); display: inline-block;
}
.legal-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05;
  letter-spacing: -0.015em;
  hyphens: auto;
}
.legal-hero .stand {
  margin-top: 16px; font-size: 0.9rem; color: rgba(253, 250, 245, 0.7);
}
.hwave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 60px; display: block;
}

/* ---------------------------------------------------------------
   BODY / Legal-Text
--------------------------------------------------------------- */
main { padding: 48px 0 64px; }
main .wrap { max-width: calc(var(--measure) + 48px); }

main h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; line-height: 1.25; color: var(--primary);
  margin: 44px 0 14px; padding-top: 6px;
}
main h2:first-child { margin-top: 0; }
/* Sand-Akzent links an den Hauptabschnitten */
main h2 {
  padding-left: 16px; border-left: 3px solid var(--sand);
}
main h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 1.05rem; color: var(--text);
  margin: 26px 0 8px;
}
main p { margin: 0 0 14px; max-width: var(--measure); }
main p.strong-q { font-weight: 700; color: var(--text); margin-bottom: 6px; }

main a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
main a:hover { color: var(--primary-dark); }

/* Adress-/Verantwortliche-Stelle-Block */
.addr {
  background: #fff;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--sand);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 18px;
  line-height: 1.75;
}
.addr a { text-decoration: none; }
.addr a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
   FOOTER — dunkel, Markenblau
--------------------------------------------------------------- */
footer {
  background: var(--primary-dark);
  color: rgba(253, 250, 245, 0.75);
  padding: 40px 0;
}
footer .wrap { display: flex; flex-direction: column; gap: 16px; }
footer .word { font-size: 1.2rem; }
footer .word .i { color: var(--white); }   /* auf Dunkel: Insel weiß */
footer .flinks { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer .flinks a {
  color: rgba(253, 250, 245, 0.8); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
footer .flinks a:hover { color: var(--sand); }
footer .fcopy { font-size: 0.8rem; color: rgba(253, 250, 245, 0.5); }

/* ---------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------- */
@media (max-width: 600px) {
  .legal-hero { padding: 56px 0 80px; }
  main h2 { font-size: 1.3rem; }
  .nav-inner { padding: 12px 20px; }
}
