/* ==========================================================================
   trust&fortune impact B.V. — Design System
   Statische Website, keine externen Abhängigkeiten (DSGVO-freundlich)
   ========================================================================== */

:root {
  --magenta: #e2187d;
  --magenta-dark: #b01262;
  --plum: #6b1b4d;
  --plum-deep: #47123a;
  --ink: #211d24;
  --muted: #6e6672;
  --paper: #fdfbfc;
  --surface: #ffffff;
  --rose-tint: #fdeef5;
  --border: #f0e2ea;
  --gradient: linear-gradient(135deg, #e2187d 0%, #8e1a5e 60%, #47123a 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(71, 18, 58, 0.08);
  --shadow-lg: 0 12px 48px rgba(71, 18, 58, 0.14);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--magenta-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--magenta); }

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); max-width: 46ch; }

.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  background: var(--rose-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.1rem;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.brand img { width: 44px; height: 44px; }
.brand .brand-formula { display: block; font-size: 1.05rem; }
.brand .brand-sub { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; }
.brand em { font-style: normal; color: var(--magenta); }

.main-nav { display: flex; align-items: center; gap: 0.4rem; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--rose-tint); color: var(--magenta-dark); }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Sprachwahl */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: "▾"; font-size: 0.7rem; color: var(--muted); }
.lang-switch ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 11rem;
}
.lang-switch li a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}
.lang-switch li a:hover { background: var(--rose-tint); }
.lang-switch li a[aria-current="true"] { color: var(--magenta); }

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1.25rem 1.2rem;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 1rem; border-radius: var(--radius-sm); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: clamp(5rem, 12vw, 9rem) 0;
  overflow: hidden;
  background-size: cover;
  background-position: center right;
  background-color: var(--plum-deep);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(95deg,
    rgba(28, 20, 28, 0.72) 0%,
    rgba(28, 20, 28, 0.50) 38%,
    rgba(28, 20, 28, 0.16) 62%,
    rgba(28, 20, 28, 0) 100%);
}
.hero .eyebrow { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); color: #fff; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: #ff9ecb; }
.hero .lead { color: rgba(255,255,255,0.88); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 2rem; padding: 0; list-style: none; }
.hero-tags li {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 6px 20px rgba(226, 24, 125, 0.35); }
.btn-primary:hover { background: var(--magenta-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--plum-deep); color: #fff; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Page-Hero (Unterseiten) */
.page-hero {
  background: var(--gradient);
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 60ch; }

/* --------------------------------------------------------------------------
   Sektionen & Karten
   -------------------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--rose-tint); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card img.card-icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 1.1rem; }
.card h3 { color: var(--plum); }
.card p { color: var(--muted); margin-bottom: 0; }

/* Abwechselnde Bild-Text-Reihen */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
}
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}
.split-media figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.7rem;
}
.media-stack { display: grid; gap: 1.2rem; }
.split-body .step-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Impact-Zahlen */
.impact-band {
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.impact-band .num { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; }
.impact-band p { margin: 0.5rem 0 0; color: rgba(255,255,255,0.88); }

/* Kontakt-Karten */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-card .ico {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rose-tint);
  color: var(--magenta);
  margin-bottom: 0.9rem;
}
.contact-card h3 { margin-bottom: 0.3rem; }
.contact-card a { font-weight: 600; word-break: break-word; }
.contact-card p { margin: 0; color: var(--muted); }

/* Netzwerk / Partner */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.partner-strip img { max-height: 72px; width: auto; }

/* Prosa (Rechtstexte, Über uns) */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose.legal { padding-left: 3.3rem; }
.prose.legal p.hang, .prose.legal h2.hang { position: relative; }
.prose.legal .hang-num { position: absolute; left: -3.3rem; top: 0; }
@media (max-width: 600px) {
  .prose.legal { padding-left: 2.6rem; }
  .prose.legal .hang-num { left: -2.6rem; }
}
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1.2rem 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; }
.prose th { background: var(--rose-tint); }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--magenta); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-brand img { width: 48px; height: 48px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
