/* ============================================================
   until11 — OnePager Styles
   Signalfarbe (Akzent) zentral: --accent  ->  #f09621
   ============================================================ */

:root {
  --accent: #f09621;
  --accent-dark: #d77f12;
  --ink: #14161a;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f4f4f5;
  --dark: #0c0d10;
  --dark-soft: #16181d;
  --border: #e6e7eb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(15, 18, 25, 0.08);
  --shadow-lg: 0 24px 70px rgba(15, 18, 25, 0.18);
  --maxw: 1160px;
  --header-h: 72px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* kein horizontales Wegziehen der Seite auf Mobil */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1em; }

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

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section-head p { color: #b9bcc4; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(240, 150, 33, 0.35); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; border-color: rgba(20,22,26,.18); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,.22); border-color: #fff; }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn--outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,.85); transition: color .15s; }
.nav a:hover { color: var(--accent); }
.nav-logo { display: none; }
.header-cta { display: flex; align-items: center; gap: 16px; }

.burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.burger span { width: 24px; height: 2px; background: #fff; transition: .25s; border-radius: 2px; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 46px; width: auto; border-radius: 50%; }
.logo svg { height: 34px; width: auto; }

/* ---------- Hero (Video-Hintergrund) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(440px, 62vh, 660px);
  display: flex; align-items: center;
  color: #fff;
  padding: clamp(48px, 7vw, 90px) 0;
}
.hero-video { position: absolute; inset: 0; z-index: 0; background: #000 url("../assets/buero.jpg") center/cover no-repeat; }
.hero-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,9,12,.55) 0%, rgba(8,9,12,.45) 40%, rgba(8,9,12,.8) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-body { max-width: 760px; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--accent); }
.hero .eyebrow { color: #fff; }
.hero .lead { font-size: 1.25rem; color: rgba(255,255,255,.88); max-width: 580px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; color: rgba(255,255,255,.85); font-size: 0.95rem; }
.hero-trust .g-logo { width: 20px; height: 20px; flex-shrink: 0; }
.rating-num { font-weight: 700; color: #fff; }
.stars { color: #FBBC04; letter-spacing: 2px; font-size: 1.05rem; }
.rating-text { color: rgba(255,255,255,.82); }

/* Schwarzes Kennzahlen-Band (Letterbox-Unterbalken unter dem Video) */
.badges-band { background: #000; padding: 26px 0; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; }
.badge {
  flex: 1 1 0; min-width: 180px;
  background: #121419; border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); padding: 18px 22px;
}
.badge strong { display: block; font-size: 1.45rem; color: #fff; }
.badge span { font-size: 0.9rem; color: rgba(255,255,255,.66); }

/* ---------- Logo strip ---------- */
.logostrip { padding: 44px 0; border-bottom: 1px solid var(--border); }
.logostrip p { text-align: center; color: var(--muted); font-size: 0.85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 28px; }
.logostrip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px 40px; }
.logostrip-row img {
  height: 58px; width: auto; max-width: 190px; object-fit: contain;
  filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s;
}
.logostrip-row img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Leistungen ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .feature-media { order: -1; }
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 11; background: #e3e4e8; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body h3 { margin-bottom: 12px; }
.feature-body p { color: var(--muted); margin: 0; }
.feature-num { font-size: .85rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }

/* ---------- Portfolio ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { width: 100%; font: inherit; color: inherit; padding: 0; background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease; cursor: pointer; text-align: left; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #d7d9df, #eef0f3); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.play {
  position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: background .2s, transform .2s;
}
.card:hover .play { background: #fff; transform: scale(1.06); }
.play::after { content: ""; border-left: 18px solid var(--accent); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 1.15rem; margin: 0 0 4px; }
.card-body span { color: var(--muted); font-size: .9rem; }

/* ---------- Video-Popup (Lightbox) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(6,7,10,.92); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox-frame { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .8;
}
.lightbox-close:hover { opacity: 1; }

/* ---------- Ablauf (Steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: var(--dark-soft); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); overflow: hidden; }
.step-img { aspect-ratio: 16 / 10; background: #222; }
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step-body { padding: 22px 24px 26px; }
.step-num { color: var(--accent); font-weight: 700; font-size: .9rem; letter-spacing: .08em; }
.step-body h3 { margin: 6px 0 10px; }
.step-body p { color: #aeb2bc; font-size: .96rem; margin: 0; }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: #e3e4e8; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-body .accent-line { color: var(--accent); font-weight: 700; }
.about-body p { color: var(--muted); }

/* ---------- Kundenstimmen / Fallstudien (Inline-Video, Wechsel-Layout) ---------- */
/* Kopf + abwechselnde, volle Hintergrundbänder (grau/weiß) für klare Trennung */
.cases-head { padding: clamp(64px, 9vw, 110px) 0 clamp(30px, 4vw, 46px); }
#testimonials .section-head { margin-bottom: 0; }
.case-band { padding: clamp(46px, 6vw, 74px) 0; background: #fff; }
.case-band--alt { background: var(--bg-alt); }

.case-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 64px); align-items: center; }
.case-row--flip .case-video { order: 2; }

.case-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; background: #000; }
.case-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.case-video:hover img { transform: scale(1.04); }
.case-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-name { position: absolute; left: 20px; bottom: 16px; color: #fff; font-weight: 700; font-size: 1.15rem; text-shadow: 0 2px 10px rgba(0,0,0,.7); pointer-events: none; }
.case-video.playing .play, .case-video.playing .case-name { display: none; }

.case-company { display: inline-block; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 6px; margin-bottom: 16px; }
.case-block { margin-bottom: 11px; }
.case-block:last-of-type { margin-bottom: 0; }
.case-block h4 { margin: 0 0 1px; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.case-block p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.case-checks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px 18px; }
.case-checks li { position: relative; padding-left: 20px; font-size: .82rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.case-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 1.08rem; padding: 22px 44px 22px 0; position: relative; color: var(--ink); }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); transition: transform .2s; line-height: 1; }
.faq-item.open .faq-q::after { content: "\2013"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { color: var(--muted); padding: 0 44px 22px 0; margin: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-info p { color: #b9bcc4; max-width: 420px; }
.contact-person { display: flex; align-items: center; gap: 16px; margin: 32px 0 26px; }
.contact-person img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.contact-person .name { font-weight: 700; color: #fff; }
.contact-person .role { color: var(--accent); font-size: .92rem; }
.contact-lines { display: grid; gap: 12px; }
.contact-lines a { display: flex; align-items: center; gap: 12px; color: #e8e9ed; font-weight: 500; }
.contact-lines a:hover { color: var(--accent); }
.contact-lines .ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.contact-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); }
.contact-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.contact-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: #3a3d44; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fafafb; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,150,33,.18); background: #fff; }
.contact-card .btn { width: 100%; margin-top: 6px; }
.form-hint { font-size: .8rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { background: #000; color: #fff; padding: 30px 0; }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .logo-img { height: 44px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: #cfd1d6; font-size: .92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-rights { color: #6b6e76; font-size: .88rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.legal p, .legal li { color: #3a3d44; }
.legal-back { display: inline-block; margin-bottom: 30px; color: var(--accent); font-weight: 600; }

/* ---------- Danke page ---------- */
.thanks { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.thanks .check { width: 78px; height: 78px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; margin: 0 auto 24px; }
.thanks p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }

/* ---------- Consent-Banner (externe Medien / YouTube) ---------- */
.btn--sm { padding: 11px 20px; font-size: .92rem; }

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #0c0d10; border-top: 2px solid var(--accent);
  box-shadow: 0 -12px 40px rgba(0,0,0,.45);
  max-height: 80vh; overflow-y: auto;
}
.consent[hidden] { display: none; }
.consent-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.consent-text { flex: 1 1 440px; color: #c9ccd3; font-size: .85rem; }
.consent-text strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 4px; }
.consent-text p { margin: 0; line-height: 1.55; }
.consent-text a { color: var(--accent); }
.consent-actions { display: flex; gap: 12px; flex-shrink: 0; margin-left: auto; }

/* In-Place-Hinweis direkt auf dem Video-Platzhalter */
.video-consent {
  position: absolute; inset: 0; z-index: 4;
  background: rgba(8,9,12,.93);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 22px; text-align: center;
}
.video-consent p { margin: 0; max-width: 480px; color: #c9ccd3; font-size: .82rem; line-height: 1.5; }
.video-consent a { color: var(--accent); }

/* Footer-Link „Cookie-Einstellungen" */
.consent-reopen {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: .92rem; color: #cfd1d6;
}
.consent-reopen:hover { color: var(--accent); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .about, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 1fr; gap: 22px; }
  .case-row--flip .case-video { order: 0; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #000; border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 0 0 8px; transform: translateY(-120%); transition: transform .25s ease; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  }
  .nav.open { transform: translateY(0); }
  .nav-logo { display: flex; justify-content: center; padding: 22px 0 16px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 6px; }
  .nav-logo img { height: 64px; border-radius: 50%; }
  .nav a { padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.08); }
  .nav a:first-of-type { border-top: 0; }
  .burger { display: flex; }
  .header-cta .btn { display: none; }
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .btn { white-space: normal; max-width: 100%; }
  .btn--lg { padding: 15px 22px; font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .hero { min-height: auto; }
  .consent-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .consent-text { flex: 0 0 auto; }
  .consent-actions { margin-left: 0; }
  .consent-actions .btn { flex: 1 1 auto; }
}
