/* =========================================================
   Einfach mit Thomas – Startseite (Prototyp)
   Farben aus dem Logo (Sprechblase mit Play-Button):
   Navy        = Sprechblasen-Rand / "Einfach mit"
   Hauptfarbe  = Blau (Thomas)        – Buttons, Links
   Akzentfarbe = Gelb-Orange (Play)   – Highlights, Newsletter
   Schrift     = Nunito (rund, wie im Logo), lokal gehostet
   ========================================================= */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #011E40;          /* Überschriften, Footer */
  --primary: #1570E8;       /* Hauptfarbe: Buttons, Links */
  --primary-dark: #0E58BF;
  --primary-soft: #E8F1FE;
  --accent: #FEB537;        /* Akzentfarbe (Play-Button) */
  --accent-soft: #FFF5E1;

  --text: #1B2A3B;
  --muted: #506880;
  --line: #E1E7EF;
  --bg: #FFFFFF;
  --bg-alt: #F5F8FC;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(2, 30, 64, .05), 0 8px 24px rgba(2, 30, 64, .06);
  --shadow-hover: 0 2px 4px rgba(2, 30, 64, .06), 0 14px 32px rgba(2, 30, 64, .10);

  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --container: 1160px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 800; }
p  { margin: 0 0 1em; }

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

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

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

.eyebrow { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: .75em; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(21, 112, 232, .25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-soft:hover { background: #d6e6fd; color: var(--primary-dark); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #F5A21A; color: var(--navy); }
.btn-lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--primary); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon, .card:hover .link-arrow .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(2, 30, 64, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 60px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  display: block; padding: .5em .8em; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.main-nav ul a:hover, .main-nav ul a.active { color: var(--primary); background: var(--primary-soft); }
.nav-cta { padding: .65em 1.3em; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; border-radius: 10px; }
.nav-toggle .icon { width: 28px; height: 28px; }

/* ---------- Bild-Platzhalter ----------
   <img> liegt über dem Platzhalter. Fehlt die Bilddatei,
   wird <img> entfernt und der Platzhalter ist sichtbar. */
.img-slot { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--primary-soft); }
.img-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.img-slot__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 16px; text-align: center; color: var(--primary-dark); font-weight: 600; font-size: .95rem;
  border: 2px dashed #b5cff7; border-radius: inherit;
  background: repeating-linear-gradient(135deg, var(--primary-soft) 0 14px, #dde9fc 14px 28px);
}
.img-slot__ph b { font-size: .8rem; letter-spacing: .1em; background: var(--primary); color: #fff; padding: 2px 10px; border-radius: 999px; }
.img-slot__ph small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.ratio-4x5  { aspect-ratio: 4 / 5; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1  { aspect-ratio: 1 / 1; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 88px;
  background:
    radial-gradient(900px 480px at 85% 10%, var(--primary-soft), transparent 70%),
    radial-gradient(500px 300px at 5% 90%, var(--accent-soft), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { position: relative; z-index: 0; }
.hero .hl { color: var(--primary); position: relative; white-space: nowrap; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--text); max-width: 34em; }
.hero-sub { font-weight: 700; color: var(--navy); margin-bottom: 1.8em; }
.trust-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: .95rem; }
.trust-list li { display: flex; align-items: center; gap: .45em; }
.trust-list .icon { color: var(--primary); }

.hero-media { position: relative; }
.hero-photo { box-shadow: var(--shadow); border-radius: 28px; }
.hero-bubble {
  position: absolute; left: -36px; bottom: 32px; z-index: 2; max-width: 290px;
  display: flex; gap: 12px; align-items: center;
  background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-hover);
}
.hero-bubble img { width: 40px; height: 40px; border-radius: 50%; }
.hero-bubble p { margin: 0; font-size: .92rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-top { align-items: start; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 2px rgba(2, 30, 64, .03);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: #c6daf7; }

.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary);
}
.ico .icon { width: 24px; height: 24px; }

.problem .quote { color: var(--muted); font-style: italic; margin: 0; }

.statement { text-align: center; max-width: 680px; margin: 56px auto 0; }
.statement p { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; color: var(--navy); line-height: 1.4; }

.topic h3 { font-size: 1.1rem; }
.topic p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.topic-meta { font-size: .85rem; font-weight: 700; color: var(--primary); }

/* ---------- Schritte ---------- */
.steps { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 24px; }
.steps li { display: flex; gap: 18px; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); }
.step-no {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.steps li:last-child .step-no { background: var(--accent); color: var(--navy); }

/* ---------- Videos / Feature ---------- */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.feature-media { border-radius: 0; aspect-ratio: auto; min-height: 320px; min-width: 0; }
.feature-body { padding: 40px; }
.feature-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
.tag {
  display: inline-block; font-size: .8rem; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-soft); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
}
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.checklist li { display: flex; gap: .55em; align-items: flex-start; }
.checklist .icon { color: var(--primary); margin-top: .2em; }

.video-thumb { display: block; }
.video-thumb .img-slot__ph { justify-content: flex-start; padding-top: 14px; }
.play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--accent);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(2, 30, 64, .25);
  transition: transform .2s;
}
.play .icon { width: 34px; height: 34px; margin-left: 4px; }
.play.sm { width: 54px; height: 54px; }
.play.sm .icon { width: 24px; height: 24px; margin-left: 3px; }
a:hover .play, .video-card:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.duration {
  position: absolute; z-index: 2; right: 12px; bottom: 12px;
  background: rgba(2, 30, 64, .85); color: #fff; font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 6px;
}
.video-list { margin-top: 24px; }
.video-card { padding: 0; overflow: hidden; }
.video-card .img-slot { border-radius: 0; }
.video-body { padding: 20px 22px 24px; }
.video-body h3 { font-size: 1.08rem; margin-bottom: .8em; }

.fineprint { font-size: .88rem; color: var(--muted); margin: 18px 0 0; }

/* ---------- Werkzeuge ---------- */
.tool { display: flex; flex-direction: column; }
.tool-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.tool-head .ico { margin: 0; flex-shrink: 0; }
.tool-head h3 { margin-bottom: .15em; }
.tool-for { font-size: .88rem; color: var(--muted); margin: 0; }
.tool > p { color: var(--text); flex: 1; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.aff { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; cursor: help; }

/* ---------- Thomas sagt ---------- */
.thomas-says { background: var(--navy); color: #fff; padding: 56px 0; }
.thomas-says-inner { display: flex; align-items: center; gap: 28px; max-width: 900px; }
.thomas-says img { width: 64px; height: 64px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.thomas-says blockquote { margin: 0; }
.thomas-says blockquote p { font-size: clamp(1.15rem, 2.3vw, 1.45rem); font-weight: 600; line-height: 1.45; margin-bottom: .5em; }
.thomas-says cite { font-style: normal; color: var(--accent); font-weight: 700; }

/* ---------- Beratung ---------- */
.lead-sm { font-size: 1.15rem; }
.service-list { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.service-list li { display: flex; gap: .5em; align-items: flex-start; font-weight: 600; }
.service-list .icon { color: var(--primary); margin-top: .2em; }
.note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--accent-soft); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .95rem; margin-bottom: 28px;
}
.note .icon { color: #B97700; margin-top: .15em; }
.beratung-photo { margin-top: 8px; }

.form-card {
  background: var(--primary-soft); border: 1px solid #cfe0fb; border-top: 5px solid var(--primary);
  border-radius: 24px; padding: 36px;
  box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 20px);
}
.form-card h3 { font-size: 1.45rem; }
.form-card > p { color: var(--muted); }
.demo-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 16px; color: var(--navy); }
.demo-form input[type=text], .demo-form input[type=email], .demo-form select, .demo-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: .75em .9em;
  font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(21, 112, 232, .15); }
.demo-form textarea { resize: vertical; }
.demo-form .check { display: flex; gap: 10px; font-weight: 400; font-size: .85rem; color: var(--muted); }
.demo-form .check input { margin-top: .3em; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary); }
.form-msg { margin: 14px 0 0; font-weight: 600; color: #11743b; }
.form-msg:empty { display: none; }

/* ---------- Newsletter ---------- */
.newsletter {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.newsletter-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255, 255, 255, .88); margin: 0; }
.nl-fields { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; }
.newsletter input[type=text], .newsletter input[type=email] {
  width: 100%; padding: .85em 1em; font: inherit; border: 0; border-radius: 999px; color: var(--text);
}
.newsletter input:focus { outline: 3px solid var(--accent); }
.nl-legal { font-size: .8rem; margin-top: 12px !important; color: rgba(255, 255, 255, .75) !important; }
.nl-legal a { color: #fff; }
.newsletter .form-msg { color: #fff; background: rgba(255, 255, 255, .15); padding: 10px 14px; border-radius: 10px; }

/* ---------- Über Thomas ---------- */
.about > div { max-width: 760px; }
.about-text p { margin-bottom: .8em; }
.about-text .big { font-size: 1.3rem; font-weight: 800; color: var(--navy); border-left: 4px solid var(--accent); padding-left: 16px; margin: 1em 0; }
.signature { margin: 28px 0 32px; display: flex; align-items: center; gap: 20px; }
.signature img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 45% 20%; flex-shrink: 0;
  border: 4px solid #fff; box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}
.signature p { margin: 0; display: flex; flex-direction: column; }
.signature strong { font-size: 1.2rem; color: var(--navy); }
.signature span { color: var(--muted); font-size: .95rem; }

/* ---------- Rechtstexte ---------- */
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); margin-bottom: 1em; }
.legal h2 { font-size: 1.2rem; margin: 1.8em 0 .4em; }

/* ---------- Cookie-Hinweis ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 980px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--primary);
  border-radius: 18px; box-shadow: 0 20px 50px rgba(2, 30, 64, .22);
  padding: 20px 24px;
}
.consent[hidden] { display: none; }
.consent-inner { display: flex; align-items: center; gap: 24px; }
.consent-text { flex: 1; }
.consent-text p { margin: 0; font-size: .93rem; color: var(--text); }
.consent-text .consent-title { font-weight: 900; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions .btn { padding: .7em 1.3em; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0a2f5c; color: #fff; }
@media (max-width: 720px) {
  .consent { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .consent-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .consent-actions .btn { flex: 1; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 56px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.footer-brand strong { display: block; color: #fff; font-size: 1.15rem; }
.footer-brand span { font-size: .92rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-note { padding-top: 24px; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-note p { margin-bottom: .6em; max-width: 820px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav { gap: 16px; }
  .main-nav ul a { padding: .5em .55em; font-size: .94rem; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 50px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; padding: 16px 20px 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(2, 30, 64, .12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: .85em 1em; font-size: 1.05rem; }

  .hero { padding: 32px 0 64px; }
  .hero-grid, .split, .newsletter-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-bubble { left: 12px; right: 12px; bottom: 12px; max-width: none; }

  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 0; aspect-ratio: 16 / 9; }
  .form-card { position: static; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .feature-body { padding: 26px 22px; }
  .service-list { grid-template-columns: 1fr; }
  .nl-fields { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .thomas-says-inner { flex-direction: column; text-align: center; gap: 16px; }
  .form-card { padding: 24px 20px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
}
