/* ============================================================
   Installateur Notdienst – Landing Page
   Mobile-first, no external dependencies
   ============================================================ */

:root {
  --blue: #0f2d52;
  --blue-dark: #0a1f3a;
  --blue-light: #1a4a80;
  --blue-pale: #eef3f9;
  --orange: #f76b1c;
  --orange-dark: #d95a10;
  --text: #23303f;
  --text-muted: #5b6b7c;
  --border: #dde5ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 45, 82, 0.08);
  --shadow-lg: 0 10px 40px rgba(15, 45, 82, 0.14);
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* ---------- Layout ---------- */

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

.container--narrow {
  max-width: 780px;
}

.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.25;
  color: var(--blue);
  text-align: center;
  margin-bottom: 12px;
}

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

/* ---------- Icons ---------- */

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.icon--sm {
  width: 17px;
  height: 17px;
}

.icon--lg {
  width: 30px;
  height: 30px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
}

.btn--primary:hover {
  background: var(--orange-dark);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--dark {
  background: var(--blue);
  color: #fff;
}

.btn--dark:hover {
  background: var(--blue-light);
}

.btn--lg {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn--call {
  background: var(--orange);
  color: #fff;
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

.btn--call:hover {
  background: var(--orange-dark);
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.logo__icon {
  width: 26px;
  height: 26px;
  color: var(--orange);
}

.logo__accent {
  color: var(--orange);
}

.nav {
  display: none;
  align-items: center;
  gap: 26px;
}

.nav__link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav__link:hover {
  color: #fff;
}

.header__call {
  display: none;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
@media (max-width: 899px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blue-dark);
    padding: 8px 0 12px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 14px 24px;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    position: static;
  }

  .header__call {
    display: inline-flex;
  }

  .burger {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 0 0 56px;
}

.hero__banner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

.hero__banner-frame {
  position: relative;
}

.hero__banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ---------- Rating badge ---------- */

.rating-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(15, 45, 82, 0.22);
  padding: 12px 18px 12px 14px;
  border-left: 4px solid var(--orange);
}

.rating-badge__stars {
  display: flex;
  gap: 3px;
  color: var(--orange);
  margin-bottom: 4px;
}

.rating-badge__stars svg {
  width: 16px;
  height: 16px;
}

.rating-badge__score {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--blue);
}

.rating-badge__score span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.rating-badge__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero__inner {
  display: grid;
  gap: 36px;
  padding-top: 36px;
}

.hero__content {
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero__badge .icon {
  color: var(--orange);
}

.hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  list-style: none;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.trust__item .icon {
  color: var(--orange);
}

/* Mobil: Banner randlos über die volle Breite, direkt unter dem Header */
@media (max-width: 899px) {
  .hero__banner {
    padding: 0;
  }

  .hero__banner-img {
    border-radius: 0;
    box-shadow: none;
  }

  .rating-badge {
    left: 10px;
    bottom: 10px;
    padding: 8px 12px 8px 10px;
    border-radius: 10px;
    border-left-width: 3px;
  }

  .rating-badge__stars {
    gap: 2px;
    margin-bottom: 2px;
  }

  .rating-badge__stars svg {
    width: 12px;
    height: 12px;
  }

  .rating-badge__score {
    font-size: 1rem;
  }

  .rating-badge__label {
    font-size: 0.68rem;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 0 0 80px;
  }

  .hero__banner {
    padding-top: 40px;
  }

  .hero__inner {
    padding-top: 48px;
  }
}


/* ---------- Services grid ---------- */

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.service-card__icon {
  width: 34px;
  height: 34px;
  color: var(--orange);
  margin-bottom: 6px;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--blue);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (min-width: 560px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* ---------- Aktion (Gasthermen-Wartung) ---------- */

.section--aktion {
  background: linear-gradient(160deg, #fdf2e9 0%, #fff8f2 100%);
}

.aktion {
  display: grid;
  gap: 30px;
  align-items: center;
}

.aktion__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.aktion__eyebrow {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 15px;
  margin-bottom: 16px;
}

.aktion__content h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  line-height: 1.25;
  color: var(--blue);
  margin-bottom: 14px;
}

.aktion__price {
  color: var(--orange);
  white-space: nowrap;
}

.aktion__content > p {
  color: var(--text);
  margin-bottom: 20px;
}

.aktion__list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.aktion__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
}

.aktion__list .icon {
  color: var(--orange);
}

.aktion__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn--ghost {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

.btn--ghost:hover {
  background: var(--blue);
  color: #fff;
}

@media (max-width: 899px) {
  .aktion__media {
    margin: 0 -20px;
  }

  .aktion__img {
    border-radius: 0;
    box-shadow: none;
  }
}

@media (min-width: 900px) {
  .aktion {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* ---------- Topic blocks ---------- */

.topic__inner {
  display: grid;
  gap: 30px;
  align-items: center;
}

.topic__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--blue-pale);
  color: var(--orange);
  margin-bottom: 18px;
}

.topic__text h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.8rem);
  line-height: 1.25;
  color: var(--blue);
  margin-bottom: 16px;
}

.topic__text p {
  margin-bottom: 14px;
  color: var(--text);
}

.topic__text .btn {
  margin-top: 8px;
}

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fdf1e8;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.alert .icon {
  color: var(--orange);
  margin-top: 2px;
}

.alert p {
  margin: 0;
  font-size: 0.93rem;
}

.topic__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Mobil: Themen-Fotos randlos über die volle Breite */
@media (max-width: 899px) {
  .topic__media {
    margin: 0 -20px;
  }

  .topic__media .topic__img {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
}

@media (min-width: 900px) {
  .topic__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
  }

  .topic__inner--reverse .topic__text {
    order: 2;
  }

  .topic__inner--reverse .topic__media {
    order: 1;
  }
}

/* ---------- Steps ---------- */

.section--dark {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
}

.section--dark .section__title {
  color: #fff;
}

.section--dark .section__lead {
  color: rgba(255, 255, 255, 0.75);
}

.steps {
  display: grid;
  gap: 20px;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step__number {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
}

.step__icon {
  width: 32px;
  height: 32px;
  color: var(--orange);
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ---------- Features ---------- */

.features {
  display: grid;
  gap: 18px;
}

.feature {
  padding: 26px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature__icon {
  width: 30px;
  height: 30px;
  color: var(--orange);
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

@media (min-width: 560px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item p {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ---------- Contact ---------- */

.section--cta {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
}

.contact {
  display: grid;
  gap: 40px;
}

.contact__info h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 14px;
}

.contact__info > p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 460px;
  margin-bottom: 26px;
}

.contact__phone {
  font-size: 1.15rem;
}

.contact__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.contact__hint .icon {
  color: var(--orange);
}

.contact__form {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}

.contact__form h3 {
  color: var(--blue);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.form-group .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
  resize: vertical;
  min-height: 84px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(26, 74, 128, 0.15);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #d93025;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #e8f5e9;
  border-radius: 10px;
  color: #1e7b34;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-success .icon {
  color: #1e7b34;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
  }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 0;
  font-size: 0.93rem;
}

.footer__inner {
  display: grid;
  gap: 32px;
  padding-bottom: 36px;
}

.footer__brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}

.footer__text {
  max-width: 300px;
}

.footer__heading {
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer__nav {
  display: grid;
  gap: 8px;
}

.footer__nav a,
.footer__link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__nav a:hover,
.footer__link:hover {
  color: #fff;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer__impressum {
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.footer__impressum a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer__impressum a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer__legal {
  display: flex;
  gap: 18px;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer__legal a:hover {
  color: #fff;
}

@media (min-width: 700px) {
  .footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
  }
}

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 20px rgba(15, 45, 82, 0.15);
  transform: translateY(110%);
  transition: transform 0.3s;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__call {
  flex: 1.4;
}

.sticky-cta__form {
  flex: 1;
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}

/* When sticky CTA is visible, keep footer content reachable */
@media (max-width: 899px) {
  body {
    padding-bottom: 74px;
  }
}
