:root {
  --primary: #2CA6A4;
  --primary-dark: #1B2845;
  --dark: #0F1B3A;
  --light: #F4F8FA;
  --accent: #E63946;
  --text: #0F1B3A;
  --muted: #5B6E8F;
  --bg: #FFFFFF;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img, picture { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--dark); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin-bottom: 1rem; color: var(--text); }

.container { width: min(100% - 2rem, 1200px); margin-inline: auto; }
.container--narrow { max-width: 720px; }
.container--wide { max-width: 1400px; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}
.eyebrow-light { color: var(--primary); }

.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head h2 { margin-bottom: 1rem; }
.section-lead { font-size: 1.125rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.75rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .3s ease; text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--primary); color: var(--dark); border-color: var(--primary); }
.btn-primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--light); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: #fff; color: var(--dark); }
.btn-large { padding: 1.05rem 2.15rem; font-size: 1rem; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--primary);
  z-index: 9999; transition: width .1s linear;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0; transition: all .3s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  padding: .6rem 0;
  backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: #fff; font-family: var(--font-heading); }
.site-header.scrolled .logo { color: var(--dark); }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--primary); color: var(--dark);
  font-weight: 700; font-size: 1rem; letter-spacing: .02em;
}
.logo-text { font-size: 1.1rem; }
.logo-text em { font-style: normal; color: var(--primary); font-weight: 500; }

.main-nav ul { display: flex; list-style: none; gap: 2rem; align-items: center; }
.main-nav a {
  color: #fff; font-size: .95rem; font-weight: 500;
  position: relative; padding: .5rem 0;
  font-family: var(--font-body);
}
.site-header.scrolled .main-nav a { color: var(--dark); }
.main-nav a::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .3s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.phone-link { color: #fff; font-weight: 600; font-size: .95rem; }
.site-header.scrolled .phone-link { color: var(--dark); }
.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 36px; height: 36px; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
}
.burger span { display: block; width: 24px; height: 2px; background: #fff; transition: all .3s ease; }
.site-header.scrolled .burger span { background: var(--dark); }
.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); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
  padding: 2rem;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; text-align: center; margin-bottom: 2rem; }
.mobile-menu li { margin: 1rem 0; }
.mobile-menu a { color: #fff; font-size: 1.5rem; font-family: var(--font-heading); }
.mobile-menu .mobile-phone { display: block; text-align: center; padding: 1rem 2rem; background: var(--primary); color: var(--dark); border-radius: 999px; font-weight: 600; }

/* HERO A — full slider */
.hero-a { position: relative; height: 100vh; min-height: 640px; color: #fff; overflow: hidden; display: flex; align-items: center; }
.hero-slider { position: absolute; inset: 0; z-index: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1.0) translate(0,0); }
  to   { transform: scale(1.12) translate(-2%, -2%); }
}
.hero-content { position: relative; z-index: 5; width: 100%; }
.hero-content h1 { color: #fff; margin-bottom: 1rem; max-width: 900px; }
.hero-subline { font-size: clamp(1rem, 1.5vw, 1.35rem); max-width: 680px; margin-bottom: 1.5rem; color: rgba(255,255,255,.92); }
.hero-content p { color: rgba(255,255,255,.85); max-width: 700px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-badges { list-style: none; display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-badges li { display: flex; flex-direction: column; gap: .25rem; }
.hero-badges strong { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary); font-weight: 600; }
.hero-badges span { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; opacity: .75; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: #fff; border-radius: 2px;
  animation: scroll-mouse 1.8s ease-in-out infinite;
}
@keyframes scroll-mouse { 0%, 100% { top: 8px; opacity: 1; } 50% { top: 22px; opacity: .3; } }

/* About */
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: center; }
.about-text p { margin-bottom: 1.1rem; }
.about-media { position: relative; }
.about-photo { border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.about-photo img { aspect-ratio: 4/5; object-fit: cover; transition: transform .8s ease; }
.about-photo:hover img { transform: scale(1.04); }
.about-badge {
  position: absolute; bottom: -30px; left: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--primary); color: var(--dark);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  font-family: var(--font-heading);
  box-shadow: 0 15px 40px rgba(0,0,0,.2);
  text-align: center;
}
.about-badge strong { font-size: 2rem; line-height: 1; }
.about-badge span { font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; }

/* Tech — Template A */
.section-tech { background: var(--light); }
.tech-intro { max-width: 820px; margin: 0 auto 3rem; text-align: left; }
.tech-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.tech-card {
  background: #fff; padding: 2.5rem 2rem; border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05); transition: all .35s ease;
  text-align: center;
}
.tech-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.12); }
.tech-icon {
  width: 80px; height: 80px; margin: 0 auto 1.5rem;
  border-radius: 50%; background: var(--primary); color: var(--dark);
  display: grid; place-items: center; font-weight: 700;
  font-family: var(--font-heading);
}
.tech-icon span { font-size: 1rem; }
.tech-card h3 { margin-bottom: .5rem; }
.tech-image img { border-radius: 12px; aspect-ratio: 16/7; object-fit: cover; }

/* Zones grid */
.zones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.zone-card {
  background: #fff; padding: 1.75rem; border-radius: 12px;
  border: 1px solid rgba(0,0,0,.07);
  transition: all .3s ease;
}
.zone-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.08); border-color: var(--primary); }
.zone-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.zone-head h3 { font-size: 1.15rem; margin: 0; }
.zone-price { font-family: var(--font-heading); font-weight: 700; color: var(--accent); font-size: 1.15rem; }
.zone-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.zones-note { margin-top: 2rem; text-align: center; font-style: italic; color: var(--muted); }

/* Ablauf */
.ablauf-timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.ablauf-timeline::before {
  content: ""; position: absolute; top: 32px; left: 5%; right: 5%;
  height: 2px; background: var(--primary); opacity: .3;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 64px; height: 64px; margin: 0 auto 1.5rem;
  border-radius: 50%; background: var(--primary); color: var(--dark);
  display: grid; place-items: center; font-weight: 700; font-size: 1.3rem;
  font-family: var(--font-heading);
  position: relative; z-index: 2;
}
.step h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.step p { font-size: .9rem; color: var(--muted); }

/* Warum */
.section-warum { background: var(--light); }
.warum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.warum-card {
  background: #fff; padding: 2rem 1.75rem; border-radius: 12px;
  text-align: left; transition: all .3s ease;
  border-left: 4px solid var(--primary);
}
.warum-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.warum-icon { font-size: 2rem; margin-bottom: 1rem; }
.warum-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.warum-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Portfolio */
.section-portfolio { background: var(--bg); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.pf-item { aspect-ratio: 4/5; overflow: hidden; border-radius: 8px; }
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pf-item:hover img { transform: scale(1.08); }

/* Testimonials */
.section-testimonials { background: var(--light); overflow: hidden; }
.testimonials-swiper { padding: 1rem 0 4rem; }
.testimonial {
  background: #fff; padding: 2.5rem 2rem; border-radius: 16px;
  height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.stars { color: var(--primary); font-size: 1.2rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial blockquote { font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.6; color: var(--dark); font-style: italic; margin-bottom: 1.5rem; }
.t-footer { display: flex; flex-direction: column; }
.t-footer strong { color: var(--dark); }
.t-footer span { font-size: .85rem; color: var(--muted); }
.swiper-pagination-bullet-active { background: var(--primary) !important; }
.swiper-button-prev, .swiper-button-next { color: var(--primary) !important; }
.testimonials-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { height: auto; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px; margin-bottom: .75rem; overflow: hidden;
  transition: all .3s ease;
}
.faq-item[open] { border-color: var(--primary); box-shadow: 0 8px 20px rgba(0,0,0,.05); }
.faq-item summary {
  padding: 1.25rem 1.75rem; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-heading); font-size: 1.05rem;
  color: var(--dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); transition: transform .3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.75rem 1.5rem; color: var(--muted); }
.faq-answer p { margin: 0; }

/* Anfahrt */
.anfahrt-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.anfahrt-info { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.anfahrt-info > div { display: flex; flex-direction: column; padding: 1rem; background: var(--light); border-radius: 8px; border-left: 3px solid var(--primary); }
.anfahrt-info strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-bottom: .25rem; }
.anfahrt-info a { color: var(--dark); font-weight: 500; }
.anfahrt-map iframe { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.1); min-height: 480px; }

/* CTA banner */
.section-cta-banner { background: var(--dark); color: #fff; overflow: hidden; }
.section-cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--primary) 0%, transparent 40%);
  opacity: .15;
}
.cta-inner { position: relative; display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; }
.cta-text h2 { color: #fff; margin-bottom: 1rem; }
.cta-text p { color: rgba(255,255,255,.8); }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; }

/* Contact form */
.section-contact { background: var(--light); }
.contact-form {
  background: #fff; padding: 2.5rem; border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.05);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.contact-form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 500; font-size: .9rem; color: var(--dark); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.contact-form input, .contact-form textarea {
  padding: .85rem 1rem; border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px; font-family: inherit; font-size: 1rem;
  transition: border-color .3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--primary); }
.contact-form .checkbox { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; font-size: .85rem; color: var(--muted); }
.contact-form button { align-self: flex-start; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand h3 { color: #fff; margin-bottom: .75rem; }
.footer-brand h3 em { font-style: normal; color: var(--primary); }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; }
.footer-col p, .footer-col a { color: rgba(255,255,255,.75); font-size: .95rem; }
.footer-col a:hover { color: var(--primary); }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: .5rem; }
.footer-network { padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.footer-network strong { color: #fff; }
.footer-network a { color: var(--primary); margin: 0 .5rem; }
.footer-network a:hover { color: #fff; }
.footer-bottom { padding-top: 1.5rem; text-align: center; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.7); margin: 0 .5rem; }

/* Back-to-top */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--dark);
  border: 0; cursor: pointer; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: all .3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }

/* Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--bg); display: grid; place-items: center;
  transition: opacity .5s ease;
}
.preloader.hide { opacity: 0; pointer-events: none; }
.spinner { width: 48px; height: 48px; border: 4px solid rgba(0,0,0,.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Template B specifics ===== */
.hero-b { padding-top: 90px; min-height: 100vh; display: flex; align-items: center; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: calc(100vh - 90px); width: 100%; }
.hero-b-text { display: flex; align-items: center; padding: 3rem 4rem; background: var(--bg); }
.hero-b-inner { max-width: 560px; }
.hero-b-inner h1 { color: var(--dark); margin-bottom: 1rem; }
.hero-b-image { position: relative; overflow: hidden; }
.hero-b-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-b-overlay {
  position: absolute; bottom: 2rem; left: 2rem; right: 2rem;
  background: rgba(0,0,0,.7); backdrop-filter: blur(10px);
  padding: 1.5rem; color: #fff; border-radius: 8px;
}
.hero-b-overlay span { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--primary); display: block; }
.hero-b-overlay strong { font-family: var(--font-heading); font-size: 1.3rem; display: block; margin: .25rem 0; }
.hero-b-overlay small { color: rgba(255,255,255,.7); }

.section-tech-b { background: var(--light); }
.tech-b-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.tech-b-image img { border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.1); aspect-ratio: 4/5; object-fit: cover; }
.tech-list { list-style: none; margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tech-list li { padding: .75rem 1rem; background: #fff; border-radius: 8px; border-left: 3px solid var(--primary); font-size: .95rem; }
.tech-list strong { color: var(--primary); margin-right: .5rem; }

.steps-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card {
  background: #fff; padding: 2.25rem 1.75rem; border-radius: 12px;
  transition: all .3s ease; border: 1px solid rgba(0,0,0,.07);
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0,0,0,.08); }
.step-card-num { font-family: var(--font-heading); font-size: 2.5rem; color: var(--primary); font-weight: 700; margin-bottom: 1rem; line-height: 1; }
.step-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.section-about-b { padding: 0; }
.about-b-parallax { background-size: cover; background-position: center; background-attachment: fixed; padding: 8rem 0; }
.about-b-content { max-width: 780px; color: #fff; }
.about-b-content h2 { color: #fff; }
.about-b-content p { color: rgba(255,255,255,.9); }

.zones-magazine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.zone-group { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,.05); transition: all .3s ease; }
.zone-group:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.zone-group-img { aspect-ratio: 3/2; overflow: hidden; }
.zone-group-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.zone-group:hover .zone-group-img img { transform: scale(1.08); }
.zone-group-body { padding: 1.75rem; }
.zone-group-body h3 { margin-bottom: 1rem; font-size: 1.3rem; color: var(--primary); }
.zone-group-body ul { list-style: none; }
.zone-group-body li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px dashed rgba(0,0,0,.1); font-size: .95rem; }
.zone-group-body li:last-child { border-bottom: 0; }
.zone-group-body li em { color: var(--accent); font-style: normal; font-weight: 600; }

.flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.flip-card { perspective: 1000px; aspect-ratio: 1/1; }
.flip-card-inner {
  position: relative; width: 100%; height: 100%; transition: transform .7s ease;
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute; inset: 0; border-radius: 12px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 2rem; text-align: center;
  backface-visibility: hidden;
}
.flip-front { background: var(--primary); color: var(--dark); }
.flip-num { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.flip-front h3 { color: var(--dark); font-size: 1.15rem; }
.flip-back { background: var(--dark); color: #fff; transform: rotateY(180deg); }
.flip-back p { color: rgba(255,255,255,.9); font-size: .95rem; margin: 0; }

.anfahrt-b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.anfahrt-b-text { padding: 3rem; background: var(--light); }
.anfahrt-b-text h2 { margin-bottom: 1.5rem; }
.contact-list { list-style: none; margin-top: 2rem; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; padding: .85rem 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: .95rem; }
.contact-list strong { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.anfahrt-b-map { min-height: 520px; }
.anfahrt-b-map iframe { display: block; height: 100%; }

/* ===== Template C specifics ===== */
.hero-c { position: relative; min-height: 80vh; padding: 8rem 0 4rem; color: #fff; overflow: hidden; display: flex; align-items: center; }
.hero-c-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  z-index: 0;
}
.hero-c-content { position: relative; z-index: 5; max-width: 780px; }
.hero-c-content h1 { color: #fff; margin-bottom: 1rem; }
.hero-c-content p { color: rgba(255,255,255,.88); }

.stats-bar { background: var(--dark); color: #fff; padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stats-grid > div { text-align: center; }
.stats-grid strong { display: block; font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); color: var(--primary); font-weight: 700; line-height: 1; }
.stats-grid span { font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; opacity: .7; margin-top: .5rem; display: block; }

.section-tech-c { padding: 0; background: var(--dark); color: #fff; position: relative; }
.diagonal-wrap { padding: 8rem 0; transform: skewY(-3deg); background: var(--dark); position: relative; }
.diagonal-wrap > .container > .tech-c-inner { transform: skewY(3deg); }
.tech-c-inner h2 { color: #fff; }
.tech-c-inner p { color: rgba(255,255,255,.85); }
.tech-c-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.tech-c-grid > div { padding: 2rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; border-left: 4px solid var(--primary); }
.tech-c-grid span { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--primary); font-weight: 700; }
.tech-c-grid em { display: block; font-style: normal; font-size: .9rem; color: rgba(255,255,255,.7); margin-top: .25rem; }

.zones-c-layout { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
.zones-c-nav { position: sticky; top: 100px; }
.zones-c-nav strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-bottom: 1rem; }
.zones-c-nav ul { list-style: none; margin-bottom: 2rem; }
.zones-c-nav li { margin-bottom: .5rem; }
.zones-c-nav a { color: var(--dark); font-weight: 500; padding: .5rem .75rem; display: block; border-radius: 6px; transition: all .3s ease; }
.zones-c-nav a:hover { background: var(--primary); color: var(--dark); }
.zone-group-c { margin-bottom: 3rem; scroll-margin-top: 110px; }
.zone-group-c h3 { font-size: 1.75rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--primary); }
.zone-rows { display: flex; flex-direction: column; gap: .5rem; }
.zone-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
  padding: 1.25rem 1.5rem; background: var(--light); border-radius: 8px;
  transition: all .3s ease;
}
.zone-row:hover { background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.06); transform: translateX(4px); }
.zone-row h4 { font-size: 1.05rem; margin-bottom: .25rem; }
.zone-row p { font-size: .9rem; color: var(--muted); margin: 0; }
.zone-row .zone-price { white-space: nowrap; font-size: 1.1rem; }

.steps-c-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; position: relative; }
.steps-c-timeline::before { content: ""; position: absolute; top: 30px; left: 5%; right: 5%; height: 2px; background: rgba(0,0,0,.1); }
.step-c { text-align: left; padding: 1rem; }
.step-c-num {
  display: inline-grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--dark); color: var(--primary);
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  margin-bottom: 1rem; position: relative; z-index: 2;
}
.step-c h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.step-c p { font-size: .9rem; color: var(--muted); }

.altrow { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.altrow.row-reverse { direction: rtl; }
.altrow.row-reverse > * { direction: ltr; }
.altrow-text p { font-size: 1.05rem; line-height: 1.8; }
.altrow-img { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.altrow-img img { width: 100%; height: 100%; object-fit: cover; }

.warum-c-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.warum-c-card {
  padding: 2.25rem 1.75rem;
  background: #fff;
  border-top: 3px solid var(--primary);
  transition: all .3s ease;
}
.warum-c-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.warum-c-num { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); font-weight: 700; margin-bottom: 1rem; line-height: 1; }
.warum-c-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.warum-c-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.section-cta-c { padding: 0; position: relative; overflow: hidden; color: #fff; }
.cta-c-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  transform: skewY(-3deg);
  z-index: 0;
}
.cta-c-inner { position: relative; z-index: 5; padding: 7rem 0; text-align: center; max-width: 780px; margin: 0 auto; }
.cta-c-inner h2 { color: #fff; margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3rem); }
.cta-c-inner p { color: rgba(255,255,255,.88); }
.cta-c-inner .hero-actions { justify-content: center; margin-top: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
  .about-grid, .anfahrt-grid, .tech-b-grid, .anfahrt-b-grid, .cta-inner, .zones-c-layout { grid-template-columns: 1fr; }
  .zones-c-nav { position: static; }
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-b-text { padding: 3rem 2rem; }
  .hero-b-image { min-height: 400px; }
  .tech-columns, .warum-grid, .zones-magazine, .flip-grid, .tech-c-grid, .stats-grid, .steps-cards { grid-template-columns: repeat(2, 1fr); }
  .steps-c-timeline, .ablauf-timeline { grid-template-columns: repeat(2, 1fr); }
  .steps-c-timeline::before, .ablauf-timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-masonry { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta .phone-link, .header-cta .btn { display: none; }
  .burger { display: flex; }
  .hero-badges { gap: 1rem; }
  .hero-badges li { flex: 1 1 40%; }
  .tech-columns, .warum-grid, .zones-magazine, .flip-grid, .tech-c-grid, .stats-grid, .steps-cards, .ablauf-timeline, .steps-c-timeline, .zones-grid { grid-template-columns: 1fr; }
  .about-badge { width: 100px; height: 100px; bottom: -20px; left: -10px; }
  .about-badge strong { font-size: 1.5rem; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-network { font-size: .8rem; }
  .section { padding: 4rem 0; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .anfahrt-info { grid-template-columns: 1fr; }
  .altrow, .altrow.row-reverse { grid-template-columns: 1fr; direction: ltr; }
  .tech-list { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero-a { min-height: 560px; }
  .back-to-top { bottom: 1rem; right: 1rem; }
}

/* Template A extras */
body[data-template="A"] .hero-content h1 { letter-spacing: -.02em; }
body[data-template="A"] .section:nth-of-type(even):not(.section-testimonials):not(.section-warum):not(.section-tech) { background: var(--bg); }

/* Template B extras */
body[data-template="B"] .hero-b-inner h1 { letter-spacing: -.015em; font-weight: 500; }
body[data-template="B"] .section-head h2 { font-weight: 500; }

/* Template C extras */
body[data-template="C"] h1, body[data-template="C"] h2, body[data-template="C"] h3 { text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
body[data-template="C"] .hero-c-content h1 { font-weight: 700; line-height: 1.05; }
body[data-template="C"] .section-head h2 { text-transform: none; }
body[data-template="C"][data-city="stuttgart"] h1, body[data-template="C"][data-city="stuttgart"] h2 { letter-spacing: .04em; }
