/* JUNGÜBERNEHMER – Stylesheet
   Schrift: Poppins (selbst gehostet, keine Verbindung zu Google).
   Farben: Orange #d4422a, Tinte #222222, Papier #fffff7.
   Kontrast-Hinweis: Orange und Tinte erreichen nur ca. 3,5:1. Deshalb steht auf Orange
   ausschließlich große Schrift (ab 24 px bzw. fett ab 19 px). Kleiner Text steht auf Papier oder Tinte. */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-700.woff") format("woff"); }

:root {
  --orange: #d4422a;
  --ink: #222222;
  --paper: #fffff7;
  --paper-dim: rgba(255, 255, 247, 0.74);
  --line: rgba(34, 34, 34, 0.2);
  --line-light: rgba(255, 255, 247, 0.22);
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --focus: #222222;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

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

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
main { display: block; }

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header, .site-footer, .section--ink, .page-hero { --focus: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 0.7em 1.1em; background: var(--paper);
  color: var(--ink); font-weight: 700; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.9em 1.6em; border: 2px solid transparent;
  border-radius: 999px; font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--line { border-color: var(--paper); color: var(--paper); }
.btn--line:hover { background: var(--paper); color: var(--ink); }
.btn--small { padding: 0.6em 1.1em; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); }
.site-header .wrap { position: relative; display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: block; line-height: 0; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.98rem; font-weight: 500; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 247, 0.12); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; padding: 0.55em 1.1em; border: 2px solid var(--paper); border-radius: 999px; background: none;
  color: var(--paper); font: 700 0.95rem/1.2 var(--font); cursor: pointer; }

/* ---------- Start: Hero ---------- */
.hero { background: var(--orange); color: var(--ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; padding-block: clamp(48px, 8vw, 112px); }
.hero h1 { font-size: 1rem; line-height: 1; }
.hero__a { display: block; font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.hero__b { display: block; margin-top: 0.18em; color: var(--paper); font-size: clamp(2.7rem, 7.2vw, 5.8rem);
  letter-spacing: -0.045em; line-height: 0.96; font-weight: 700; }
.hero__lead { max-width: 28em; margin: clamp(22px, 3vw, 34px) 0 clamp(26px, 3.4vw, 38px); font-size: 1.5rem; font-weight: 500; line-height: 1.4; }

/* Foto in U-Form mit zwei Punkten: das Ü aus dem Logo */
.u { --d: clamp(30px, 4.4vw, 50px); position: relative; justify-self: end; width: min(100%, 430px); padding-top: calc(var(--d) + clamp(14px, 2vw, 24px)); }
.u::before, .u::after { content: ""; position: absolute; top: 0; width: var(--d); height: var(--d); border-radius: 50%; background: var(--ink); }
.u::before { left: calc(30% - var(--d) / 2); }
.u::after { left: calc(70% - var(--d) / 2); }
.u picture, .u img { display: block; width: 100%; }
.u img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 8%; border-radius: 0 0 999px 999px; background: #c9ccd0; }

/* Einmaliger Einstieg: Augen fallen, Foto fährt hoch */
@media (prefers-reduced-motion: no-preference) {
  .u::before, .u::after { animation: drop 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
  .u::after { animation-delay: 0.12s; }
  .u img { animation: rise 0.9s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}
@keyframes drop { from { transform: translateY(-260%); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--orange { background: var(--orange); color: var(--ink); }
.section--line { border-top: 1px solid var(--line); }
.section__head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { margin: 1em 0 0; font-size: 1.15rem; }
.lead { max-width: 36em; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; line-height: 1.5; }

/* Leistungs-Zeilen */
.rows { list-style: none; border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(12px, 3vw, 40px); padding: clamp(22px, 3vw, 34px) clamp(8px, 1.5vw, 20px); border-top: 1px solid var(--line);
  text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.row::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); transition: transform 0.25s; }
.row__title { font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; }
.row__text { margin: 0; max-width: 34em; }
a.row:hover, a.row:focus-visible { background: var(--ink); color: var(--paper); --focus: var(--paper); }
a.row:hover::before, a.row:focus-visible::before { transform: scale(1.7); }
.section--ink .rows, .section--ink .row { border-color: var(--line-light); }

/* Zwei Spalten: Unternehmen und Personen */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.split > div + div { padding-left: clamp(28px, 5vw, 72px); border-left: 1px solid var(--line); }
.split h3 { margin-bottom: 0.6em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; }
.split p { margin: 0; }

/* Manifest */
.manifest h2 { max-width: 14em; font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.manifest__text { max-width: 36em; margin: clamp(22px, 3vw, 34px) 0 0; font-size: 1.2rem; color: var(--paper-dim); }
.statements { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 80px);
  padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line-light); }
.statements h3 { margin-bottom: 0.5em; }
.statements p { margin: 0; color: var(--paper-dim); }

/* Ablauf (echte Reihenfolge, deshalb nummeriert) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); display: block; margin-bottom: 14px; font-size: 4rem; font-weight: 700; line-height: 1; color: var(--orange); }
.steps h3 { margin-bottom: 0.4em; }
.steps p { margin: 0; }

/* Schluss-Aufruf */
.cta h2 { max-width: 13em; font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; }
.cta h2 span { display: block; }
.cta__b { color: var(--paper); }
.cta .actions { margin-top: clamp(26px, 4vw, 44px); }

/* ---------- Unterseiten ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper);
  padding-block: clamp(36px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 13em; font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.page-hero .lead { margin: clamp(18px, 2.4vw, 28px) 0 clamp(24px, 3vw, 36px); }
.page-hero__mark { position: absolute; right: clamp(-40px, 3vw, 64px); bottom: -14%; z-index: 0; height: 118%; width: auto; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; list-style: none; font-size: 0.92rem; color: var(--paper-dim); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.crumbs a:hover { color: var(--paper); }
.crumbs [aria-current] { color: var(--paper); }

.two-col { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.two-col__head { position: sticky; top: 112px; }
.two-col__head p { margin-top: 1em; }
.items { border-bottom: 1px solid var(--line); }
.items > div { padding: 24px 0; border-top: 1px solid var(--line); }
.items h3 { margin-bottom: 0.35em; }
.items p { margin: 0; }

.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 52px 22px 0; font-size: 1.1rem; font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange); transform: translateY(-50%); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) scale(1.6); }
.faq .answer { padding: 0 0 24px; }
.faq .answer p { margin: 0; }

.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 104px); align-items: start; }
.about .u { justify-self: start; width: min(100%, 400px); }
.about h2 { margin-bottom: 0.6em; }

/* Rechtstexte */
.prose { max-width: 46rem; }
.prose h2 { margin: 2.2em 0 0.5em; font-size: 1.5rem; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: none; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.platzhalter { padding: 0.05em 0.35em; border-radius: 3px; background: #fff2a8; }

.notfound { min-height: 70vh; display: grid; align-items: center; }
.notfound h1 { max-width: 12em; font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -0.045em; }
.notfound p { margin: 1.2em 0 1.8em; font-size: 1.2rem; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(48px, 7vw, 80px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { margin: 0; max-width: 20em; color: var(--paper-dim); }
.footer-title { margin: 0 0 14px; font-weight: 700; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--paper-dim); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(36px, 5vw, 60px);
  padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 0.92rem; color: var(--paper-dim); }
.footer-bottom p { margin: 0; max-width: none; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-header .wrap { min-height: 64px; gap: 12px; }
  .brand img { height: 32px; }
  .header-actions { margin-left: auto; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 4px var(--gutter) 24px; background: var(--ink); border-top: 1px solid var(--line-light); }
  .nav[data-open] { display: flex; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line-light); border-radius: 0; font-size: 1.2rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--paper); font-weight: 700; }

  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .u { justify-self: center; width: min(78%, 360px); }
  .about .u { justify-self: start; }

  .row { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
  .row__text { grid-column: 2; }
  .split { grid-template-columns: 1fr; }
  .split > div + div { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .statements { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .two-col, .about { grid-template-columns: 1fr; }
  .two-col__head { position: static; }
  .page-hero__mark { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero__lead { font-size: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 0.65em; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
