/* ==========================================================
   Sunny Maler & Bau GmbH – Landingpage
   Mobile First · 8px Grid
   ========================================================== */

:root {
  /* Farben aus Logo-Farbkreis */
  --c-orange: #F97316;
  --c-red: #EF4444;
  --c-pink: #DB2777;
  --c-violet: #7C3AED;
  --c-blue: #2563EB;
  --c-green: #16A34A;

  --gradient: linear-gradient(90deg, #F97316 0%, #DB2777 40%, #7C3AED 70%, #2563EB 100%);
  --gradient-soft: linear-gradient(135deg, rgba(249,115,22,.08), rgba(124,58,237,.08), rgba(37,99,235,.08));

  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --navy: #0F172A;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.12);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 16px; }

a { color: var(--c-blue); text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 800px; }

.section { padding: 64px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  min-height: 48px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn i, .btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--c-orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,.35);
}
.btn--primary:hover { box-shadow: 0 6px 20px rgba(249,115,22,.45); }

.btn--gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124,58,237,.3);
}
.btn--gradient:hover { box-shadow: 0 10px 28px rgba(124,58,237,.4); }

.btn--white {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.btn--full { width: 100%; }
.btn--lg { padding: 18px 40px; font-size: 1.1rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.header__logo img { width: 150px; height: auto; }
.header__nav { display: none; gap: 28px; }
.header__nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s;
}
.header__nav a:hover { color: var(--c-orange); }
.header__contact { display: flex; align-items: center; gap: 16px; }
.header__phone { display: none; align-items: center; gap: 10px; color: var(--ink); }
.header__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-soft);
  color: var(--c-orange);
}
.header__phone-icon i, .header__phone-icon svg { width: 18px; height: 18px; }
.header__phone-text { display: flex; flex-direction: column; line-height: 1.25; }
.header__phone-text small { color: var(--muted); font-size: .75rem; }
.header__cta {
  padding: 9px 14px;
  min-height: 40px;
  font-size: .82rem;
  white-space: nowrap;
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute;
  inset: 0;
  /* Mobile: kräftiger Weiss-Overlay für Lesbarkeit */
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 60%, rgba(255,255,255,.82) 100%),
    url('../img/hero.webp') center/cover no-repeat;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.hero__title { margin-bottom: 20px; }
.hero__subtitle { color: var(--ink-soft); max-width: 420px; font-size: 1.05rem; }
.hero__checks {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero__checks i, .hero__checks svg { width: 22px; height: 22px; color: var(--c-green); flex-shrink: 0; }

.stars { color: #F59E0B; letter-spacing: 2px; font-size: 1.1rem; }
.hero__rating { display: flex; align-items: center; gap: 10px; }
.hero__rating strong { font-size: 1.1rem; }
.hero__rating-text { color: var(--muted); font-size: .9rem; }

.hero__note {
  display: none;
  margin-top: 32px;
  color: var(--ink-soft);
  transform: rotate(-6deg);
}
.hero__note-text {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.1;
  display: block;
}
.hero__note-arrow { margin-left: 40px; }

/* Formular-Karte */
.hero__form-card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  scroll-margin-top: 90px;
}
.form-card__title { font-size: 1.35rem; margin-bottom: 4px; }
.form-card__subtitle { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.form-card__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--muted);
  margin: 14px 0 0;
  text-align: center;
}
.form-card__secure i, .form-card__secure svg { width: 14px; height: 14px; color: var(--c-green); flex-shrink: 0; }

.form-group { margin-bottom: 14px; position: relative; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-violet);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.form-group textarea { resize: vertical; }
.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .8rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}
.form-consent input { width: auto; margin-top: 2px; }
.form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .85rem;
  margin-bottom: 14px;
}

/* ===== Trust Bar ===== */
.trustbar {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.trustbar__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.trustbar__item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trustbar__item i, .trustbar__item > svg { width: 28px; height: 28px; color: var(--c-violet); flex-shrink: 0; }
.trustbar__item div { display: flex; flex-direction: column; line-height: 1.3; }
.trustbar__item strong { font-size: 1.05rem; }
.trustbar__item span { color: var(--muted); font-size: .82rem; }
.swiss-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: #DA291C;
  border-radius: 6px;
  color: #fff;
  flex-shrink: 0;
}
.swiss-flag i, .swiss-flag svg { width: 16px; height: 16px; color: #fff; }

/* ===== Leistungen ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--gradient-soft);
  margin-bottom: 16px;
}
.service-card__icon i, .service-card__icon svg { width: 28px; height: 28px; color: var(--c-violet); }
.service-card h3 { margin-bottom: 4px; }
.service-card p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ===== CTA Banner ===== */
.cta-banner { padding: 0 20px; }
.cta-banner__inner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.cta-banner__text h2 { color: #fff; margin-bottom: 4px; font-size: 1.5rem; }
.cta-banner__text p { color: rgba(255,255,255,.7); margin: 0; }
.cta-banner__points { display: flex; gap: 28px; flex-wrap: wrap; }
.cta-banner__point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
}
.cta-banner__point i, .cta-banner__point svg { width: 24px; height: 24px; color: var(--c-orange); flex-shrink: 0; }

/* ===== Ablauf ===== */
.steps { background: var(--bg-alt); }
.steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  text-align: center;
}
.step__number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
.step__number--1 { background: var(--c-blue); }
.step__number--2 { background: var(--c-pink); }
.step__number--3 { background: var(--c-orange); }
.step__number--4 { background: var(--c-green); }
.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-soft);
  margin-bottom: 14px;
}
.step__icon i, .step__icon svg { width: 26px; height: 26px; color: var(--ink-soft); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ===== Kundenstimmen ===== */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { font-size: .95rem; }
.testimonial p {
  margin: 12px 0 20px;
  color: var(--ink-soft);
  font-size: .95rem;
}
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.testimonial__author div { display: flex; flex-direction: column; line-height: 1.3; }
.testimonial__author small { color: var(--muted); }

/* ===== Garantie ===== */
.guarantee { padding-top: 0; }
.guarantee__card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.guarantee__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 20px;
  background: var(--gradient);
  flex-shrink: 0;
}
.guarantee__icon i, .guarantee__icon svg { width: 36px; height: 36px; color: #fff; }
.guarantee__text h2 { font-size: 1.4rem; margin-bottom: 8px; }
.guarantee__text p { color: var(--muted); margin: 0; }
.guarantee__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guarantee__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-soft);
}
.guarantee__list i, .guarantee__list svg { width: 18px; height: 18px; color: var(--c-green); flex-shrink: 0; }

/* ===== FAQ ===== */
.faq { background: var(--bg-alt); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i, .faq__item summary svg {
  width: 20px; height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.faq__item[open] summary i, .faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item p { color: var(--muted); padding-bottom: 18px; margin: 0; font-size: .95rem; }

/* ===== Finaler CTA ===== */
.final-cta__sub { color: var(--muted); margin-bottom: 28px; }
.final-cta__phone { margin-top: 20px; color: var(--muted); font-size: .95rem; }
.final-cta__phone a { color: var(--ink); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding-top: 56px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer__brand img {
  width: 150px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 16px;
}
.footer__brand p { font-size: .9rem; max-width: 300px; }
.footer__col h3 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.footer__col i, .footer__col svg { width: 16px; height: 16px; color: var(--c-orange); flex-shrink: 0; }
.footer__col a { color: rgba(255,255,255,.75); transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: .82rem;
}
.footer__bottom p { margin: 0; }

/* ===== Sticky Mobile CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  flex-shrink: 0;
}
.sticky-cta__phone i, .sticky-cta__phone svg { width: 20px; height: 20px; }
.sticky-cta__btn { flex: 1; }

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 16px;
  background: rgba(15,23,42,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cookie-banner__content {
  max-width: 800px;
  width: 100%;
  background: rgba(255,255,255,.97);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.cookie-banner__text h3 { margin: 0 0 8px; font-size: 1.05rem; }
.cookie-banner__text p { margin: 0 0 8px; font-size: .88rem; color: var(--muted); }
.cookie-banner__link { font-size: .82rem; }
.cookie-banner__actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s ease;
  flex: 1;
  min-width: 140px;
}
.cookie-btn--accept { background: var(--c-blue); color: #fff; }
.cookie-btn--accept:hover { opacity: .9; }
.cookie-btn--reject { background: var(--bg-alt); color: var(--ink-soft); border: 1px solid var(--line); }
.cookie-btn--reject:hover { background: var(--line); }

/* ===== Legal Pages ===== */
.legal-page { padding: 48px 0 64px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.3rem; margin-top: 36px; }
.legal-page h3 { font-size: 1.05rem; margin-top: 24px; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: .95rem; }

/* ===== Danke-Seite ===== */
.thanks {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 64px 0;
}
.thanks__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--gradient);
  margin-bottom: 24px;
}
.thanks__icon i, .thanks__icon svg { width: 44px; height: 44px; color: #fff; }
.thanks__steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 28px auto;
  text-align: left;
}
.thanks__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: .95rem;
}
.thanks__steps i, .thanks__steps svg { width: 20px; height: 20px; color: var(--c-green); flex-shrink: 0; }
