/* ============================================================
   Glanzwerk Demo – Website-Miete Template
   Farben & Fonts zentral hier anpassen (pro Kunde)
   ============================================================ */
:root {
  --primary: #0B2E4F;      /* Dunkelblau – Headlines, Footer */
  --accent: #0FA3B1;       /* Türkis – CTAs, Akzente */
  --accent-dark: #0B7E8A;
  --bg: #F6FAFB;
  --surface: #FFFFFF;
  --text: #1C2B36;
  --text-soft: #52626F;
  --radius: 14px;
  --shadow: 0 18px 44px -18px rgba(11, 46, 79, 0.28);
  --font-display: 'Sora', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
.container { width: min(1120px, 92%); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--primary); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-intro { max-width: 62ch; color: var(--text-soft); margin-bottom: 2.2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(15, 163, 177, 0.55);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: rgba(11, 46, 79, 0.25);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.btn-block { width: 100%; border: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 46, 79, 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 0;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  display: grid; place-items: center;
}
.logo-text {
  font-family: var(--font-display); font-weight: 700; color: var(--primary);
  line-height: 1.05; font-size: 1.05rem;
}
.logo-text em { display: block; font-style: normal; font-size: 0.7rem; font-weight: 400; color: var(--text-soft); letter-spacing: 0.06em; }

.main-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.97rem; transition: color 0.15s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent-dark); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 0.55rem 1.15rem; border-radius: 50px;
  transition: background 0.15s ease !important;
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(15, 163, 177, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 55% at 8% 90%, rgba(11, 46, 79, 0.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(15, 163, 177, 0.12);
  color: var(--accent-dark);
  font-size: 0.82rem; font-weight: 600;
  padding: 0.4rem 0.9rem; border-radius: 50px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub { color: var(--text-soft); max-width: 56ch; margin-bottom: 1.8rem; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  display: grid; gap: 1.3rem;
  transform: rotate(1.5deg);
}
.hero-stat strong {
  font-family: var(--font-display); font-size: 1.9rem; color: var(--primary); display: block; line-height: 1.1;
}
.hero-stat span { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Leistungen ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid rgba(11, 46, 79, 0.07);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 163, 177, 0.4);
}
.service-card p { color: var(--text-soft); font-size: 0.95rem; }
.service-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary), #123f68);
}
.service-card.featured h3 { color: #fff; font-size: 1.35rem; }
.service-card.featured p { color: rgba(255, 255, 255, 0.82); font-size: 1rem; max-width: 60ch; }

/* ---------- Über uns ---------- */
.about { background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about p { color: var(--text-soft); margin-bottom: 1.4rem; }
.trust-list { list-style: none; display: grid; gap: 0.55rem; font-weight: 500; }
.about-quote blockquote {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.8rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--primary);
}
.about-quote footer { margin-top: 1rem; font-family: var(--font-body); font-size: 0.9rem; color: var(--text-soft); }

/* ---------- GEO ---------- */
.geo p { color: var(--text-soft); max-width: 75ch; margin-bottom: 1.2rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.faq-list { max-width: 780px; display: grid; gap: 0.7rem; }
.faq-list details {
  background: var(--bg);
  border: 1px solid rgba(11, 46, 79, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  transition: border-color 0.15s ease;
}
.faq-list details[open] { border-color: rgba(15, 163, 177, 0.5); }
.faq-list summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-display);
  color: var(--primary); font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 0.7rem; color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.contact p { color: var(--text-soft); margin-bottom: 1.5rem; }
.contact-info { list-style: none; display: grid; gap: 0.6rem; }
.contact-info a { color: var(--accent-dark); text-decoration: none; font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: grid; gap: 1.1rem;
}
.form-row { display: grid; gap: 0.35rem; }
.form-row label { font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.form-row input, .form-row textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(11, 46, 79, 0.18);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 163, 177, 0.18);
}
.consent { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.consent label { font-weight: 400; font-size: 0.83rem; color: var(--text-soft); }
.consent a { color: var(--accent-dark); }
.consent input { margin-top: 0.25rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255, 255, 255, 0.85); padding: 2.6rem 0 1.4rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-brand { font-family: var(--font-display); font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.site-footer nav { display: flex; gap: 1.4rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-note { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 10px; cursor: pointer;
  }
  .nav-toggle .bar { width: 24px; height: 2.5px; background: var(--primary); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7.5px) rotate(-45deg); }

  .main-nav ul {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid rgba(11, 46, 79, 0.1);
    box-shadow: 0 20px 30px -20px rgba(11, 46, 79, 0.3);
  }
  .main-nav ul.open { display: flex; }
  .main-nav li { border-top: 1px solid rgba(11, 46, 79, 0.07); }
  .main-nav ul a { display: block; padding: 1rem 1.4rem; }
  .nav-cta { border-radius: 0 !important; text-align: center; }
}

/* ============================================================
   Prozess / Bild-Text-Modul
   ============================================================ */
.process { background: var(--surface); }
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}
.process-illu, .hero-illu { width: 100%; height: auto; }
.hero-visual { position: relative; }
.hero-visual .hero-card {
  position: absolute;
  bottom: -1.2rem; right: -0.6rem;
  padding: 1.2rem 1.4rem;
  gap: 0.9rem;
  transform: rotate(1.5deg) scale(0.92);
}
.step-list { list-style: none; counter-reset: step; display: grid; gap: 1.3rem; margin: 1.5rem 0 1.8rem; }
.step-list li { counter-increment: step; position: relative; padding-left: 3.4rem; }
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  display: grid; place-items: center;
}
.step-list strong { font-family: var(--font-display); color: var(--primary); display: block; margin-bottom: 0.2rem; }
.step-list p { color: var(--text-soft); font-size: 0.96rem; }

/* ============================================================
   DEMO-Ebene: Pitch-Sektion, Flying CTA, Modal
   (bei echten Kundenseiten löschbar – hängt nur an .demo-*,
   .fly-*, .modal-* Klassen)
   ============================================================ */
.demo-pitch {
  background: linear-gradient(135deg, #0d2b45, #123f68);
  color: #fff;
}
.demo-pitch-inner { max-width: 720px; text-align: center; margin-inline: auto; }
.demo-eyebrow {
  display: inline-block;
  background: rgba(0, 180, 216, 0.18);
  color: #7ADEEE;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 1.2rem;
}
.demo-pitch h2 { color: #fff; margin-bottom: 1rem; }
.demo-text { color: rgba(255, 255, 255, 0.82); margin-bottom: 1.8rem; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.btn-whatsapp {
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; gap: 0.55rem;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.55);
}
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { background: #1EBE5A; transform: translateY(-2px); }
.demo-pitch .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.demo-pitch .btn-ghost:hover { border-color: #fff; color: #fff; }

/* Flying CTA */
.fly-cta {
  position: fixed;
  bottom: 1.1rem; right: 1.1rem;
  z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem;
}
.fly-cta a, .fly-cta button {
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
  border: none; cursor: pointer; text-decoration: none;
  border-radius: 50px;
  padding: 0.7rem 1.2rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fly-rent {
  background: var(--primary); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(13, 43, 69, 0.6);
}
.fly-personalize {
  background: #fff; color: var(--primary);
  border: 1.5px solid rgba(13, 43, 69, 0.18) !important;
  box-shadow: 0 10px 24px -12px rgba(13, 43, 69, 0.45);
}
.fly-cta a:hover, .fly-cta button:hover { transform: translateY(-2px); }
@media (max-width: 640px) {
  .fly-cta { left: 0.8rem; right: 0.8rem; align-items: stretch; }
  .fly-cta a, .fly-cta button { text-align: center; }
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13, 43, 69, 0.55);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 1rem;
}
.modal {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(13, 43, 69, 0.5);
  width: min(440px, 100%);
  max-height: 90vh; overflow-y: auto;
  padding: 2rem;
  display: grid; gap: 1rem;
}
.modal h3 { font-size: 1.35rem; }
.modal-sub { color: var(--text-soft); font-size: 0.9rem; margin-top: -0.4rem; }
.modal-close {
  position: absolute; top: 0.7rem; right: 0.9rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--text-soft);
}
.modal-close:hover { color: var(--primary); }
.modal .form-row input[type="text"] { background: var(--bg); }
.color-picker-wrap { display: flex; align-items: center; gap: 0.8rem; }
.color-picker-wrap input[type="color"] {
  width: 56px; height: 40px; padding: 2px;
  border: 1.5px solid rgba(11, 46, 79, 0.18); border-radius: 10px;
  background: var(--bg); cursor: pointer;
}
.color-hint { font-size: 0.83rem; color: var(--text-soft); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.3rem; }
.modal-actions .btn { border-width: 1.5px; }

/* Personalisiert-Badge im Header */
.personalized-badge {
  position: fixed; top: 74px; left: 50%; transform: translateX(-50%);
  z-index: 55;
  background: var(--accent); color: #fff;
  font-size: 0.82rem; font-weight: 600;
  padding: 0.45rem 1.1rem; border-radius: 50px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);
  animation: badge-in 0.4s ease;
}
@keyframes badge-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.modal-backdrop[hidden] { display: none; }
