/* EWS Tragetest: Landingpage
   Aufbau: 1 Schriften · 2 Variablen · 3 Basis · 4 Kopfzeile · 5 Banner und Intro · 6 Modelle
           7 Formularfelder · 8 Warum EWS · 9 Fertigung · 10 Ablauf · 11 Konditionen · 12 FAQ
           13 Anfrageformular · 14 Fußzeile · 15 Mobile Leiste und Hilfsklassen */

/* 1 Schriften (lokal, kein Abruf bei Google) */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("BarlowCondensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("BarlowCondensed-700.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("PublicSans-Variable.woff2") format("woff2"); }

/* 2 Variablen */
:root {
  --bg: #F3F5F2; --surface: #FFFFFF; --ink: #16201B; --muted: #4F5B54;
  --brand: #1E8B5A; --brand-strong: #166B46; --taupe: #A09878; --taupe-strong: #7A7254;
  --soft: #ECE9DF; --line: #D6DBD3; --deep: #0C3524; --gold: #E6DBAB; --focus: #0B57D0;
  --radius: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1411; --surface: #172019; --ink: #ECF0EA; --muted: #A7B2AA;
    --brand: #2FA570; --brand-strong: #1E8B5A; --taupe: #B8B08F; --taupe-strong: #B8B08F;
    --soft: #232720; --line: #2B362E; --focus: #8AB4F8;
  }
}

/* 3 Basis */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1.0625rem; line-height: 1.55; }
h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; font-weight: 700; line-height: 1.05; letter-spacing: -.008em; margin: 0; }
h2 { font-size: clamp(2.2rem, 5.5vw, 3.5rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
img { max-width: 100%; }
a { color: var(--brand-strong); }
@media (prefers-color-scheme: dark) { a { color: var(--brand); } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head p { margin-top: 1rem; color: var(--muted); }
.fine { font-size: .92rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--deep); color: #fff; padding: .7rem 1rem; }
.skip:focus { left: 0; }

.btn { display: inline-block; font: inherit; font-weight: 600; line-height: 1.3; cursor: pointer; padding: .95rem 1.7rem; border-radius: 999px; text-decoration: none; text-align: center; border: 2px solid var(--brand-strong); background: var(--brand-strong); color: #fff; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(22, 107, 70, .7); }
.btn.small { padding: .6rem 1.2rem; font-size: .95rem; }
.btn.ghost { background: transparent; color: var(--brand-strong); }
.btn.ghost:hover { background: var(--soft); color: var(--brand-strong); }
@media (prefers-color-scheme: dark) { .btn.ghost { color: var(--ink); border-color: var(--taupe); } .btn.ghost:hover { color: var(--ink); } }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* 4 Kopfzeile (immer weiß, damit das Logo sauber steht) */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid #D6DBD3; padding-top: env(safe-area-inset-top, 0px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo { display: block; height: 3.4rem; width: auto; }
.navlinks { display: flex; align-items: center; gap: 1.5rem; font-size: .95rem; }
.navlinks a:not(.btn) { color: #16201B; text-decoration: none; font-weight: 500; }
.navlinks a:not(.btn):hover { text-decoration: underline; }
.navlinks .btn { color: #fff; }
@media (max-width: 860px) { .navlinks a:not(.btn) { display: none; } }

/* 5 Banner und Intro */
.bannerhero { background: var(--deep); line-height: 0; padding: 0; }
.bannerhero img { display: block; width: 100%; height: auto; }
.intro { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.lead { font-size: 1.25rem; max-width: 36rem; color: var(--muted); }
.lead strong { color: var(--ink); }
.deal { display: inline-block; margin-top: 1.5rem; padding: .5rem 1rem; background: var(--soft); border-left: 6px solid var(--taupe); font-weight: 600; }
.cta-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.only { margin-top: 2rem; max-width: 36rem; padding: 1rem 1.25rem; border: 1.5px solid var(--brand-strong); border-radius: 14px; background: var(--surface); }
.only b { display: block; margin-bottom: .2rem; }
.only span { color: var(--muted); font-size: .97rem; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-left: 10px solid var(--taupe); border-radius: 18px; padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .45); }
@media (min-width: 900px) { .sheet { transform: rotate(1.2deg); } }
.sheet h2 { font-size: 1.7rem; margin-bottom: .25rem; }
.sheet .sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }
.sheet .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-top: 1px dashed var(--line); }
.sheet .row b { font-weight: 600; }
.dots { display: flex; gap: .35rem; }
.dots span { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--taupe); }
.dots span.on { background: var(--brand); border-color: var(--brand); }
.stamp { margin-top: 1rem; display: inline-block; border: 2px solid var(--brand-strong); color: var(--brand-strong); padding: .15rem .7rem; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.2rem; transform: rotate(-3deg); }
@media (prefers-color-scheme: dark) { .stamp { color: var(--brand); border-color: var(--brand); } }

/* 6 Modelle */
.prod-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }
.prod { display: flex; flex-direction: column; padding: 1.7rem 1.4rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 0 6px 0 var(--brand), 0 18px 30px -24px rgba(0, 0, 0, .35); transition: transform .25s; }
.prod:hover { transform: translateY(-5px); }
.prod.rescue { box-shadow: inset 0 6px 0 var(--taupe), 0 18px 30px -24px rgba(0, 0, 0, .35); }
.prod .line { font-weight: 600; font-size: .95rem; color: var(--muted); }
.pimg { background: #fff; border-radius: 14px; margin: .7rem 0 .4rem; padding: .5rem; display: grid; place-items: center; aspect-ratio: 4 / 4.3; }
.pimg img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.num { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 3.4rem; line-height: .95; margin: .2rem 0 .1rem; color: transparent; -webkit-text-stroke: 1.6px var(--brand-strong); }
.prod.rescue .num { -webkit-text-stroke-color: var(--taupe-strong); }
@media (prefers-color-scheme: dark) { .num { -webkit-text-stroke-color: var(--brand); } }
.prod h3 { font-size: 1.5rem; }
.prod p { margin-top: .6rem; color: var(--muted); font-size: .98rem; }
.specs { list-style: none; margin: .9rem 0 .6rem; padding: 0; display: grid; gap: .3rem; font-size: .9rem; color: var(--muted); }
.specs li { padding-left: 1rem; position: relative; }
.specs li::before { content: ""; position: absolute; left: 0; top: .55em; width: .45rem; height: .45rem; border-radius: 1px; background: var(--taupe); }
.prod .ds { display: inline-block; margin: .2rem 0 1.1rem; font-weight: 600; font-size: .95rem; }
.prod .btn { margin-top: auto; width: 100%; }
.more { margin-top: 1.75rem; color: var(--muted); }

/* 7 Formularfelder (Basis) */
.check { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; font-weight: 400; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--brand-strong); flex: none; }
.check small { display: block; color: var(--muted); font-size: .92rem; }
select, input[type=text], input[type=email], input[type=tel], textarea { font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--taupe); border-radius: 12px; padding: .75rem 1rem; }

/* 8 Warum EWS */
.why-grid { display: grid; gap: 1.2rem; }
@media (min-width: 800px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-grid > div { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-grid h3 { font-size: 2.4rem; color: var(--brand-strong); margin-bottom: .5rem; }
@media (prefers-color-scheme: dark) { .why-grid h3 { color: var(--brand); } }
.why-grid p { color: var(--muted); }

/* 9 Fertigung */
.about-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; } }
.about-intro { margin-top: 1rem; color: var(--muted); }
.facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.facts li { padding-left: 1.1rem; border-left: 5px solid var(--brand); }
.facts h3 { font-size: 1.7rem; margin-bottom: .2rem; }
.facts p { color: var(--muted); }
.photos { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
.photos figure { margin: 0; }
.photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.photos figcaption { margin-top: .4rem; font-size: .88rem; color: var(--muted); }
.photos .tall { grid-row: span 2; position: relative; min-height: 26rem; }
.photos .tall img { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - 3.1rem); aspect-ratio: auto; }
.photos .tall figcaption { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; }
.special { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; border-radius: 16px; background: var(--deep); color: #fff; }
.special h3 { font-size: 2rem; margin-bottom: .5rem; }
.special p { color: rgba(255, 255, 255, .82); }
.pbox { background: #fff; border-radius: 14px; padding: .5rem; margin-bottom: 1.1rem; display: grid; place-items: center; }
.pbox img { display: block; width: auto; max-width: 100%; max-height: 15rem; height: auto; }
@media (max-width: 520px) {
  .photos { grid-template-columns: 1fr; }
  .photos .tall { grid-row: auto; position: static; min-height: 0; }
  .photos .tall img { position: static; height: auto; aspect-ratio: 3 / 4; }
  .photos .tall figcaption { position: static; margin-top: .4rem; }
  .special { grid-row: auto; }
}

/* 10 Ablauf */
.process { background: var(--surface); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; max-width: 46rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding-bottom: 1.75rem; position: relative; }
.steps li::before { content: counter(s); width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-strong); color: #fff; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.3rem; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 1.2rem; top: 2.5rem; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.steps p { color: var(--muted); }
@media (min-width: 960px) {
  .steps { max-width: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .steps li { grid-template-columns: 1fr; gap: .9rem; padding-bottom: 0; align-content: start; align-items: start; }
  .steps li::after { left: 3rem; right: -1.5rem; top: 1.2rem; bottom: auto; width: auto; height: 2px; }
  .steps li:last-child::after { display: none; }
  .steps h3 { font-size: 1.45rem; }
}

/* 11 Konditionen */
.cond { padding-block: clamp(1rem, 3vw, 2rem); }
.cond-grid { display: grid; gap: 2.5rem; background: var(--soft); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.75rem, 5vw, 3.5rem); }
@media (min-width: 860px) { .cond-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.cond-grid p.text { margin-top: 1rem; color: var(--muted); }
.cond-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.cond-grid li { padding-left: 1.75rem; position: relative; }
.cond-grid li::before { content: ""; position: absolute; left: 0; top: .65rem; width: 1rem; height: 6px; border-radius: 6px; background: var(--brand); }
.cond-grid .fine { margin-top: 1.25rem; }

/* 12 FAQ */
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Barlow Condensed", sans-serif; font-size: 1.9rem; line-height: 1; color: var(--brand-strong); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .6rem; color: var(--muted); }

/* 13 Anfrageformular */
.contact { background: var(--bg); }
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }
.contact .text { margin-top: 1rem; color: var(--muted); }
.person { margin-top: 1.5rem; padding-left: 1rem; border-left: 4px solid var(--taupe); }
.person b { display: block; font-size: 1.1rem; }
.form { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.25rem, 3.5vw, 2.25rem); box-shadow: 0 30px 50px -36px rgba(0, 0, 0, .4); }
.form .two { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .form .two { grid-template-columns: 1fr 1fr; } }
.form label, .form legend { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .3rem; padding: 0; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { width: 100%; border-color: var(--line); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.form textarea { min-height: 6.5rem; resize: vertical; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; border: 0; background: none; padding: 0; margin-bottom: .4rem; }
.form .btn { width: 100%; }
.models { display: grid; gap: .5rem; }
@media (min-width: 600px) { .models { grid-template-columns: 1fr 1fr; } }
.form label.model { display: flex; gap: .6rem; align-items: center; margin: 0; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); font-weight: 600; cursor: pointer; }
.form label.model input { width: 1.2rem; height: 1.2rem; accent-color: var(--brand-strong); flex: none; }
.form label.model:has(input:checked) { border-color: var(--brand-strong); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.form legend .hint { font-weight: 400; }
.hint { color: var(--muted); font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form .msg { font-weight: 600; min-height: 1.5rem; }
.form .msg.ok { color: var(--brand-strong); }
.form .msg.err { color: #B3261E; }
@media (prefers-color-scheme: dark) { .form .msg.ok { color: var(--brand); } .form .msg.err { color: #F2B8B5; } }

/* 14 Fußzeile */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, .75); padding-block: 2rem; margin-top: clamp(2rem, 5vw, 4rem); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer strong { color: #fff; }
.site-footer a { color: rgba(255, 255, 255, .88); }

/* 15 Mobile Leiste */
.stickybar { display: none; }
@media (max-width: 720px) {
  .stickybar { display: block; position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; text-align: center; padding: 1.05rem 1.25rem; border-radius: 999px; background: var(--gold); color: var(--deep); font-weight: 700; font-size: 1.05rem; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); border: 2px solid var(--deep); transition: transform .3s, opacity .3s; }
  .stickybar.off { transform: translateY(160%); opacity: 0; pointer-events: none; }
  .site-footer { padding-bottom: 6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .prod, .stickybar { transition: none; } .prod:hover { transform: none; } }
