
/* HeizMax-style theme (aligned to heizmax.de look) */
:root{
  --brand:#c40000;
  --brand-dark:#9f0000;
  --accent:#ffb400;
  --bg:#ffffff;
  --section:#f6f6f6;
  --card:#ffffff;
  --ink:#111111;
  --muted:#555555;
  --line:#e5e5e5;
  --radius:12px;
  --shadow:0 10px 28px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font:16px/1.6 "Poppins","Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1180px;margin:0 auto;padding:22px}

/* Header (clean, like HeizMax) */
header{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:14px 0 18px;
  border-bottom:1px solid var(--line);
  margin-bottom:18px;
}
.brand{display:flex;align-items:center;gap:14px;min-width:0}
.brand img{height:52px;width:auto;display:block}
.brand h1{margin:0 0 6px;font-size:22px;line-height:1.2}
.progress{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.step{
  padding:6px 12px;border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:#333;
  font-weight:700;
  font-size:12px;
}
.step.on{
  color:#fff;
  border-color:var(--brand);
  background:var(--brand);
}

.lang-switch{display:flex;gap:10px;align-items:center}
.lang{
  display:inline-flex;align-items:center;justify-content:center;
  padding:6px 10px;border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:#111;
  font-weight:700;font-size:12px;
}
.lang.on{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}

/* Intro */
.intro{
  max-width:980px;margin:0 auto 18px;
  padding:18px 18px;
  background:var(--section);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.intro p{margin:10px 0;color:#222;font-size:16px}
.goldline{
  height:3px;border-radius:999px;
  background:linear-gradient(90deg,var(--brand),var(--accent),transparent);
  margin:14px 0 0;
}

/* Layout */
.grid{display:grid;grid-template-columns:1fr;gap:18px}
@media(min-width:980px){.grid{grid-template-columns:1.25fr .9fr}}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
}
h2{margin:0 0 12px;font-size:20px}
p.muted{color:var(--muted);margin:6px 0 16px}

/* Forms */
label{display:block;margin:10px 0 6px;font-weight:700;color:#111;font-size:13px}
input[type="number"],input[type="text"],input[type="email"],select,textarea{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  color:#111;
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease;
  font-size:15px;
}
textarea{min-height:120px;resize:vertical}
input:focus,select:focus,textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(196,0,0,.15);
}
.row{display:grid;grid-template-columns:1fr;gap:12px;margin-top:6px}
.row+.row{margin-top:12px}
@media(min-width:680px){.row.two{grid-template-columns:1fr 1fr}}

/* Toggle */
.toggle-group{display:flex;gap:10px}
.toggle{
  flex:1;
  padding:12px 0;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  color:#111;
  font-weight:800;
  cursor:pointer;
  text-transform:uppercase;
  letter-spacing:.6px;
  font-size:12px;
}
.toggle.active{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 16px;border-radius:10px;border:none;
  cursor:pointer;font-weight:800;font-size:14px;
  color:#fff;
  background:var(--brand);
  transition:background .2s ease, transform .06s ease, box-shadow .2s ease;
  box-shadow:0 10px 18px rgba(0,0,0,.10);
}
.btn:hover{background:var(--brand-dark)}
.btn:active{transform:translateY(1px)}
.btn.secondary{
  background:#fff;color:#111;border:1px solid var(--line);
  box-shadow:none;
}
.btn.secondary:hover{background:#f2f2f2}

.notice{font-size:12.5px;color:#666}

/* Result */
.result{display:none;margin-top:12px}
.result.show{display:block}
.rec{display:grid;gap:16px;grid-template-columns:1fr;align-items:start;margin-top:10px}
@media(min-width:760px){.rec{grid-template-columns:1fr 1fr}}
.result-panel{
  background:#fff;
  border:1px solid rgba(196,0,0,.20);
  border-radius:var(--radius);
  padding:14px;
}
.kv{
  display:grid;grid-template-columns:1fr auto;gap:10px;
  padding:12px 14px;border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
}
.kv+.kv{margin-top:10px}
.kv b{font-weight:900;color:var(--brand)}
.kv.emph{background:#fff5f5;border-color:rgba(196,0,0,.22)}

.result-side p{margin:0 0 10px;color:#333}
#deviceImage img{
  width:100%;border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow:0 10px 18px rgba(0,0,0,.08);
}

/* CTA row */
.cta-row{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}
.btn.cta{padding:14px 18px;font-size:15px}
.cta-row .notice{margin-top:6px;max-width:520px}

/* Gallery */
.gallery{margin-top:18px}
.gallery h2{font-size:18px;margin:0;color:#111}
.slider{
  position:relative;overflow:hidden;border-radius:var(--radius);
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
}
.track{display:flex;gap:16px;align-items:center;padding:16px;animation:slide 34s linear infinite}
@keyframes slide{from{transform:translateX(0)} to{transform:translateX(-50%)}}
figure{min-width:280px;max-width:320px;margin:0;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#fff}
figure img{width:100%;height:180px;object-fit:cover;display:block}
figcaption{padding:10px 12px;font-size:14px;color:#333}

/* Footer */
.site-footer{margin-top:32px}
.footer-top,.footer-links{display:grid;gap:22px;padding:18px 0;grid-template-columns:repeat(4,1fr)}
.footer-top h3{margin:0 0 8px;font-size:18px}
.footer-links h4{margin:0 0 10px;font-size:16px}
.footer-top p{margin:6px 0 0;color:#333}
.footer-top .tel,.footer-top .mail,.cta-link{font-weight:800}
.footer-links ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.footer-links a{color:#333}
.foot-line{border:0;border-top:1px solid var(--line);margin:12px 0}
.copyright{font-size:12px;color:#666;text-align:center;padding:14px 0 20px}

/* Mobile sticky */
.mobile-sticky{
  position:fixed;left:0;right:0;bottom:0;z-index:50;
  display:none;align-items:center;justify-content:center;gap:10px;
  padding:10px 14px;
  background:var(--brand);
}
.mobile-sticky a{
  display:inline-flex;align-items:center;gap:10px;
  background:#fff;color:#111;
  padding:10px 14px;border-radius:999px;
  border:1px solid rgba(0,0,0,.06);
  font-weight:800;
}

/* Responsive */
@media(max-width:980px){.footer-top,.footer-links{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.wrap{padding:16px} .brand h1{font-size:18px} .btn,.toggle{width:100%}}
@media(max-width:640px){.footer-top,.footer-links{grid-template-columns:1fr} .mobile-sticky{display:flex} body{padding-bottom:70px}}
@media (prefers-reduced-motion: reduce){ .track{animation:none} }


/* === HeizMax tune to match /fertigung-nach-wunsch (bootstrap-like spacing) === */
:root{
  --container-pad: 15px;
}
.wrap{padding: calc(var(--container-pad) + 10px);}
@media (min-width: 1200px){
  .wrap{padding: 28px;}
}
.brand h1{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .2px;
}
@media (min-width: 992px){
  .brand h1{font-size: 34px;}
}
h2{font-size: 22px;font-weight: 800;}
p, .intro p{font-size: 16px;}
label{font-size: 14px;}
/* Card spacing like Bootstrap sections */
.card{padding: 26px;}
@media (max-width: 640px){
  .card{padding: 18px;}
}
/* Buttons similar to site buttons */
.btn, .btn.cta{
  border-radius: 10px;
  padding: 13px 18px;
}
.btn.cta{padding: 15px 20px; font-size: 16px;}
/* Intro block closer to heizmax section spacing */
.intro{padding: 22px 22px; margin-bottom: 22px;}
.goldline{height: 3px;}

/* Headline style like page H1 */
.intro strong{font-weight:800}


/* === Modern Hero Intro (V5) === */
.hero{
  max-width: 1180px;
  margin: 6px auto 22px;
  padding: 22px 22px;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(196,0,0,.09), transparent 55%),
    radial-gradient(700px 420px at 90% 10%, rgba(255,180,0,.10), transparent 55%),
    #f6f6f6;
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(255,255,255,.35));
  pointer-events:none;
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 18px;
  align-items: start;
}
@media(max-width:980px){ .hero-inner{grid-template-columns:1fr} }
.hero-kicker{
  display:inline-flex;align-items:center;gap:10px;
  font-weight:800;letter-spacing:.3px;color:#111;margin-bottom:10px;
}
.hero-kicker .dot{
  width:10px;height:10px;border-radius:999px;background: var(--brand);
  box-shadow:0 0 0 4px rgba(196,0,0,.12);
}
.hero-title{font-size:26px;line-height:1.2;margin:0 0 10px;font-weight:900;color:#111}
@media(min-width:992px){ .hero-title{font-size:30px} }
.hero-text{margin:0 0 12px;color:#222;font-size:16px}
.hero-list{margin:0;padding-left:18px;color:#222}
.hero-list li{margin:6px 0}
.hero-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;background:#fff;
  border:1px solid var(--line);font-weight:700;color:#111;font-size:13px;
}
.chip .icon{
  width:18px;height:18px;border-radius:6px;
  display:inline-flex;align-items:center;justify-content:center;
  background: rgba(196,0,0,.08);color: var(--brand);font-weight:900;
}
.hero-side{
  background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;
}
.hero-side h3{margin:0 0 8px;font-size:16px;font-weight:900}
.hero-side p{margin:0 0 10px;color:#333;font-size:14px}
.hero-side .cta-row2{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.hero-side .cta-mini{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 12px;border-radius:10px;background: var(--brand);color:#fff;font-weight:800;
  border:1px solid var(--brand);
}
.hero-side .cta-mini:hover{background:#9f0000}
.hero-side .cta-ghost{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 12px;border-radius:10px;background:#fff;color:#111;font-weight:800;border:1px solid var(--line);
}
.hero-side .cta-ghost:hover{background:#f2f2f2}
.hero-sep{height:3px;border-radius:999px;background:linear-gradient(90deg,var(--brand),var(--accent),transparent);margin-top:14px}

/* Hero visual (V6) */
.hero-visual{
  margin-top:22px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 10px 22px rgba(0,0,0,.10);
  background:#fff;
}
.hero-visual img{
  width:100%;
  height:auto;
  display:block;
}
@media(max-width:980px){
  .hero-visual{margin-top:12px}
}

/* hero-visual-responsive (V7) */
@media(max-width:980px){
  .hero-side{padding:14px}
  .hero-visual{margin-top:16px}
}
@media(max-width:640px){
  .hero{padding:16px}
  .hero-title{font-size:24px}
  .hero-visual img{border-radius:12px}
}

/* Mobile Header Fix (V8) */
@media (max-width: 720px){
  header{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px 14px;
  }
  .brand{
    width: 100%;
    align-items: center;
    gap: 10px;
  }
  .brand img{
    height: 44px;
    flex: 0 0 auto;
  }
  .brand > div{
    min-width: 0;
  }
  .brand h1{
    font-size: 20px;
    line-height: 1.15;
    margin: 0 0 6px;
    word-break: break-word;
    hyphens: auto;
  }
  .progress{
    width: 100%;
    gap: 8px;
  }
  .step{
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
    padding: 8px 10px;
  }
  .lang-switch{
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }
  .lang{
    padding: 7px 12px;
  }
}
@media (max-width: 420px){
  .brand h1{font-size: 18px}
  .step{font-size: 11px; padding: 8px 8px}
}
