/* ============================================================
   Böhringer Werkzeug- und Vorrichtungsbau GmbH
   Premium B2B Frontend – Vanilla CSS, mobile-first
   ============================================================ */

/* ---------- Lokale Schriften (DSGVO: kein externes CDN) ---------- */
@font-face {
  font-family: 'Sora';
  src: url('assets/fonts/sora-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('assets/fonts/sora-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('assets/fonts/sora-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --ink:        #0d1117;
  --ink-soft:   #1a212c;
  --steel-900:  #0f1c2e;
  --brand:      #1d6fb8;
  --brand-dark: #0f4c81;
  --brand-700:  #155a96;
  --accent:     #f59e0b;
  --accent-dark:#d97f06;

  --bg:         #ffffff;
  --bg-alt:     #f4f6f9;
  --surface:    #ffffff;
  --border:     #e4e8ee;

  --text:       #1c2430;
  --text-muted: #5d6776;
  --text-invert:#eef2f7;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(13,17,23,.06), 0 2px 6px rgba(13,17,23,.05);
  --shadow:    0 8px 24px rgba(13,17,23,.08);
  --shadow-lg: 0 24px 60px rgba(13,17,23,.16);

  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2rem);

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--steel-900); color: var(--text-invert); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 800; margin-bottom: .85rem; }
.section-lead { color: var(--text-muted); font-size: 1.1rem; }
.section-dark .section-lead { color: #aeb9c7; }

.eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-dark); margin-bottom: 1rem; max-width: 100%;
}
.eyebrow-light { color: var(--accent); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,.18); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  min-height: 48px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; min-height: 54px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-dark); color: #fff; box-shadow: 0 8px 20px rgba(15,76,129,.28); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,76,129,.34); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-ghost-line { color: var(--ink); border: 1px solid var(--border); background: #fff; }
.btn-ghost-line:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--brand-dark); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header[data-state="top"] { background: transparent; }
.site-header[data-state="scrolled"] {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; }
.site-header[data-state="scrolled"] .brand { color: var(--ink); }
/* Firmenlogo: über dem dunklen Hero weiß, im hellen Header farbig */
.brand-logo { height: 50px; width: auto; transition: filter .3s var(--ease); }
.site-header[data-state="top"] .brand-logo { filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.site-header[data-state="scrolled"] .brand-logo { filter: none; }
.footer-logo { height: 64px; width: auto; margin-bottom: 1rem; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; align-items: center; gap: 1.6rem; }
.nav ul a {
  color: rgba(255,255,255,.92); font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  position: relative; padding: .4rem 0;
}
.site-header[data-state="scrolled"] .nav ul a { color: var(--text); }
.nav ul a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav ul a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-cta .btn-ghost-line { padding: .6rem 1rem; min-height: 44px; }

.burger { display: none; width: 48px; height: 48px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .25s var(--ease); }
.site-header[data-state="scrolled"] .burger span { background: var(--ink); }
.burger[aria-expanded="true"] span { background: var(--ink); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 22s var(--ease) infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,17,23,.62) 0%, rgba(13,17,23,.46) 40%, rgba(13,17,23,.86) 100%),
    radial-gradient(120% 90% at 15% 20%, rgba(15,76,129,.45), transparent 60%);
}
.hero-content { position: relative; padding-block: 7rem 4rem; max-width: 860px; }
.hero h1 { font-size: clamp(1.7rem, 6.4vw, 4.4rem); font-weight: 800; color: #fff; margin-bottom: 1.3rem; overflow-wrap: break-word; }
.hero h1 .hl { color: #fff; background: linear-gradient(120deg, var(--accent), #ffd27a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: #d9e1ea; max-width: 640px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.18); }
.hero-trust li { display: flex; flex-direction: column; font-size: .9rem; color: #c4cfdb; }
.hero-trust li span { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; }

.hero .eyebrow { color: #fff; }
.hero .eyebrow-dot { background: var(--accent); }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; display: flex; justify-content: center; }
.scroll-hint span { width: 4px; height: 8px; background: #fff; border-radius: 2px; margin-top: 7px; animation: scrollDot 1.6s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trustbar { background: var(--ink); color: var(--text-invert); }
.trustbar-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; padding-block: 2.2rem; }
.trust-item { display: flex; align-items: center; gap: 1rem; }
.trust-item svg { width: 38px; height: 38px; color: var(--accent); flex-shrink: 0; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1rem; color: #fff; }
.trust-item span { font-size: .9rem; color: #98a4b3; }

/* ============================================================
   CARDS / LEISTUNGEN
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d4dbe5; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.5rem 1.5rem 1.7rem; }
.card-body h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .55rem; }
.card-body p { color: var(--text-muted); font-size: 1rem; }

/* ============================================================
   SPLIT (Über uns / Standort)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.floating-stat {
  position: absolute; bottom: 1rem; left: 1rem; background: rgba(13,17,23,.82); color: #fff;
  padding: .9rem 1.2rem; border-radius: var(--radius); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
}
.floating-stat strong { display: block; font-family: var(--font-head); color: var(--accent); font-size: 1.2rem; }
.floating-stat span { font-size: .85rem; color: #d9e1ea; }

.split-content h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.split-content p { color: var(--text-muted); margin-bottom: 1rem; }
.split-content .btn { margin-top: .8rem; }

.check-list { display: grid; gap: .7rem; margin: 1.4rem 0; }
.check-list li { position: relative; padding-left: 2rem; color: var(--text); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(29,111,184,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f4c81' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ============================================================
   FEATURES (Warum wir)
   ============================================================ */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.feature {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem 1.6rem 1.6rem; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature::before { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 0; background: var(--accent); transition: height .35s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature:hover::before { height: 100%; }
.feature-num { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--brand); opacity: .55; }
.feature h3 { font-size: 1.2rem; margin: .5rem 0 .5rem; }
.feature p { color: var(--text-muted); font-size: .98rem; }

/* ============================================================
   STEPS (Ablauf)
   ============================================================ */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding: 1.7rem 1.6rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(15,76,129,.4);
}
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; color: #fff; }
.step p { color: #aeb9c7; font-size: .98rem; }

/* ============================================================
   MARQUEE (Bewertungen)
   ============================================================ */
.marquee { position: relative; overflow: hidden; padding-block: .5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 1.4rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card {
  flex: 0 0 auto; width: min(360px, 80vw); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; margin-bottom: .8rem; }
.review-card blockquote { font-size: 1.02rem; color: var(--text); margin-bottom: 1rem; }
.review-card figcaption { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--text-muted); }

/* ============================================================
   MAP (statischer Platzhalter)
   ============================================================ */
.map-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, #16314f, #0f1c2e); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08);
}
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 38px 38px; }
.map-road { position: absolute; background: rgba(122,163,209,.35); border-radius: 4px; }
.map-road-1 { height: 10px; width: 150%; top: 58%; left: -25%; transform: rotate(-12deg); }
.map-road-2 { width: 10px; height: 150%; left: 62%; top: -25%; transform: rotate(8deg); background: rgba(245,158,11,.28); }
.map-pin { position: absolute; top: 44%; left: 56%; width: 46px; transform: translate(-50%,-100%); filter: drop-shadow(0 8px 12px rgba(0,0,0,.4)); animation: pinBounce 2.4s var(--ease) infinite; }
@keyframes pinBounce { 0%,100% { transform: translate(-50%,-100%); } 50% { transform: translate(-50%,-112%); } }
.map-label { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; background: rgba(255,255,255,.96); border-radius: var(--radius); padding: .85rem 1.1rem; box-shadow: var(--shadow); }
.map-label strong { display: block; font-family: var(--font-head); font-size: .98rem; color: var(--ink); }
.map-label span { font-size: .85rem; color: var(--text-muted); }

.contact-facts { display: grid; gap: 1.1rem; margin: 1.6rem 0 2rem; }
.contact-facts li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-facts svg { width: 26px; height: 26px; color: var(--brand-dark); flex-shrink: 0; margin-top: 2px; }
.contact-facts span { display: flex; flex-direction: column; }
.contact-facts strong { font-family: var(--font-head); font-size: .95rem; color: var(--ink); }
.contact-facts a:hover { color: var(--brand-dark); }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.contact-aside { background: var(--steel-900); color: var(--text-invert); border-radius: var(--radius-lg); padding: 2rem 1.8rem; }
.contact-aside h3 { color: #fff; font-size: 1.3rem; margin-bottom: .7rem; }
.contact-aside p { color: #aeb9c7; margin-bottom: 1.4rem; }
.contact-line { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 600; color: #fff; margin-bottom: .9rem; word-break: break-word; }
.contact-line svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.contact-line:hover { color: var(--accent); }
.aside-divider { height: 1px; background: rgba(255,255,255,.14); margin: 1.4rem 0; }
.aside-hours { color: #aeb9c7; margin: 0; }
.aside-hours strong { color: #fff; font-family: var(--font-head); }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: .45rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fbfcfd; color: var(--text); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,111,184,.14); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field input.invalid, .field textarea.invalid { border-color: #d9534f; box-shadow: 0 0 0 4px rgba(217,83,79,.12); }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--text-muted); margin: .4rem 0 1.4rem; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; accent-color: var(--brand-dark); cursor: pointer; }
.consent a { color: var(--brand-dark); text-decoration: underline; }
.consent.invalid span { color: #c0322e; }

.form-status { margin-top: 1rem; font-weight: 600; font-size: .96rem; min-height: 1.2em; }
.form-status.ok { color: #1f8a4c; }
.form-status.err { color: #c0322e; }
.form-note { margin-top: 1rem; font-size: .82rem; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #aeb9c7; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; padding-bottom: 2.5rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; max-width: 36ch; margin-bottom: 1.2rem; }
.socials { display: flex; gap: .7rem; }
.socials a { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; transition: background .25s var(--ease), transform .25s var(--ease); }
.socials a svg { width: 20px; height: 20px; color: #cfd8e3; }
.socials a:hover { background: var(--brand-dark); transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-head); }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: .95rem; line-height: 1.8; }
.footer-col address a:hover { color: var(--accent); }

.footer-bottom { display: flex; flex-direction: column; gap: .6rem; text-align: center; padding-block: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.powered a { color: #22b8e0; font-weight: 600; }
.powered a:hover { text-decoration: underline; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.to-top svg { width: 24px; height: 24px; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-700); transform: translateY(-2px); }

/* ============================================================
   REVEAL Animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 900px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .trustbar-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  #ueber-uns .split { grid-template-columns: 1.05fr 1fr; }
  .contact-wrap { grid-template-columns: 0.9fr 1.4fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.3fr; }
}

/* Desktop nav vs mobile nav */
@media (max-width: 980px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: #fff; padding: 6rem 1.8rem 2rem; box-shadow: -20px 0 60px rgba(13,17,23,.2);
    transform: translateX(100%); transition: transform .38s var(--ease); overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav ul li { border-bottom: 1px solid var(--border); }
  .nav ul a { display: block; color: var(--ink); padding: 1rem 0; font-size: 1.1rem; font-weight: 600; }
  .nav ul a::after { display: none; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: .8rem; margin-top: 1.6rem; }
  .nav-cta .btn { width: 100%; }
  .nav-cta .btn-ghost-line { justify-content: center; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(13,17,23,.5); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; z-index: 99; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* ============================================================
   MOBILE-Kompaktmodus: weniger Text, engere Abstände
   ============================================================ */
/* Akkordeon-Chevron standardmäßig (Desktop) ausgeblendet */
.feature-chev { display: none; }

@media (max-width: 640px) {
  /* Sekundäre Textpassagen auf dem Handy ausblenden */
  .mobile-hide { display: none !important; }

  body { font-size: 1rem; }
  .section { padding-block: clamp(2.4rem, 9vw, 3.2rem); }
  .section-head { margin-bottom: 1.6rem; }
  .section-head h2 { font-size: clamp(1.5rem, 6.6vw, 1.9rem); }
  .section-lead { font-size: 1rem; }

  /* Hero kompakter */
  .hero { min-height: 92svh; }
  .hero-content { padding-block: 6rem 2.6rem; }
  .hero-sub { margin-bottom: 1.6rem; }
  .hero-actions { gap: .7rem; margin-bottom: 1.8rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-trust { gap: 1rem 1.6rem; padding-top: 1.3rem; }
  .hero-trust li { font-size: .8rem; }
  .hero-trust li span { font-size: 1rem; }

  /* Leistungs-Karten: Beschreibung auf 3 Zeilen kürzen */
  .card-body { padding: 1.2rem 1.2rem 1.3rem; }
  .card-body h3 { font-size: 1.15rem; }
  .card-body p {
    font-size: .95rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* Ablauf-Schritte: Text auf 3 Zeilen kürzen */
  .step { padding: 1.3rem 1.2rem; }
  .step p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* Über-uns / Standort: kompaktere Checkliste */
  .check-list { gap: .55rem; margin: 1.1rem 0; }

  /* ---- "Warum wir" als Akkordeon ---- */
  .features-grid { gap: .7rem; }
  .feature {
    position: relative; padding: 1.1rem 3rem 1.1rem 1.2rem; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .feature h3 { font-size: 1.08rem; margin: .15rem 0 0; }
  .feature p {
    max-height: 0; overflow: hidden; opacity: 0; margin: 0;
    transition: max-height .38s var(--ease), opacity .3s var(--ease), margin .3s var(--ease);
  }
  .feature.open p { max-height: 260px; opacity: 1; margin-top: .6rem; }
  .feature-chev {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 1rem; right: 1rem; width: 26px; height: 26px;
    border-radius: 50%; background: rgba(29,111,184,.1); color: var(--brand-dark);
    font-size: 1.3rem; line-height: 1; font-weight: 400; transition: transform .35s var(--ease);
  }
  .feature.open .feature-chev { transform: rotate(45deg); }

  /* Kontakt: Aside kompakter */
  .contact-aside { padding: 1.5rem 1.4rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-img { animation: none; transform: scale(1.06); }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
