/* =========================================================
   Royal Reinigungsservice – fensterputzer-pfalz.de
   Markenfarben aus dem Original: Gelb #ffb918, Blau #49b7d8
   ========================================================= */

@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #ffb918;
  --yellow-dark: #e9a200;
  --blue: #49b7d8;
  --blue-dark: #1d7fa1;
  --navy: #0f2a3a;
  --navy-2: #163a50;
  --ink: #1b2a33;
  --muted: #5b6b75;
  --line: #e3eaee;
  --tint: #f2f8fb;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 42, 58, .10);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--navy); padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin: 0 0 .6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 18px rgba(255, 185, 24, .35); }
.btn--primary:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: .5em 1.15em; font-size: .95rem; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--blue-dark); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #cfe3ec; font-size: .9rem; }
.topbar__inner { display: flex; gap: 26px; justify-content: flex-end; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar__item { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar__item:hover { color: var(--yellow); }
.topbar__item svg { width: 16px; height: 16px; color: var(--blue); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(15,42,58,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header__logo img { height: 52px; width: auto; }

.nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--navy); text-decoration: none; font-weight: 500;
}
.nav a:not(.btn):hover, .nav a.is-current { color: var(--blue-dark); background: var(--tint); }
.nav .btn { margin-left: 8px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s ease; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay { background: linear-gradient(100deg, rgba(10,30,42,.88) 0%, rgba(10,30,42,.6) 45%, rgba(10,30,42,.15) 100%); }
.hero__content { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 100px; }
.hero__eyebrow { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; padding: 6px 14px; border-radius: 999px; }
.hero__title { color: #fff; font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 700; margin: .4em 0 .15em; max-width: 14ch; }
.hero__claim { font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--blue); font-weight: 600; margin-bottom: .8em; }
.hero__lead { font-size: 1.1rem; max-width: 44ch; color: #e3eef3; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.hero__dots { position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.hero__dots button[aria-selected="true"] { width: 28px; border-radius: 6px; background: var(--yellow); }

/* ---------- Welcome ---------- */
.welcome { background: var(--blue); color: var(--navy); }
.welcome__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.welcome .eyebrow { color: var(--navy); opacity: .75; margin-bottom: .2em; }
.welcome h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .1em; }
.welcome__text p:last-child { margin: 0; font-size: 1.1rem; }
.facts { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; flex-wrap: wrap; }
.facts li { background: rgba(255,255,255,.9); border-radius: var(--radius); padding: 14px 22px; text-align: center; min-width: 140px; }
.facts strong { display: block; font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.facts span { font-size: .9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: #d8e7ee; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: var(--yellow); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.service__media { position: relative; display: block; border: 0; padding: 0; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service:hover .service__media img { transform: scale(1.05); }
.service__count { position: absolute; left: 12px; bottom: 12px; background: rgba(15,42,58,.82); color: #fff; font-size: .8rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.service__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service__body p { color: var(--muted); font-size: .97rem; flex: 1; }
.service--cta { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); border: 0; }
.service--cta h3 { color: #fff; font-size: 1.4rem; }
.service--cta .checklist li { color: #d8e7ee; }
.service--cta .btn { align-self: flex-start; margin-top: auto; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 30px; margin: .5em 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230f2a3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Badges ---------- */
.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.badges li { background: #fff; border-radius: var(--radius); padding: 30px 22px; text-align: center; box-shadow: var(--shadow); transition: transform .25s; }
.badges li:hover { transform: translateY(-4px); }
.badges img { width: 130px; height: 130px; object-fit: contain; margin: 0 auto 16px; }
.badges p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.about__media { margin: 0; position: relative; }
.about__media img { width: 100%; max-width: 420px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; z-index: 1; }
.about__media::before { content: ""; position: absolute; width: 70%; height: 70%; left: -18px; bottom: -18px; background: var(--yellow); border-radius: var(--radius); }
.about__text p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Galerie ---------- */
.gallery { columns: 4 220px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; border-radius: 10px; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .4s, filter .4s; }
.gallery a:hover img { transform: scale(1.04); filter: brightness(1.05); }

.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.refs a { display: block; aspect-ratio: 16 / 7; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.refs img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(35%); transition: filter .3s, transform .4s; }
.refs a:hover img { filter: none; transform: scale(1.04); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.contact__intro p { font-size: 1.05rem; }
.contact__cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact__cards li { display: flex; gap: 16px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px 18px; }
.contact__cards svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--yellow); color: var(--navy); flex: none; }
.contact__cards span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #8fb3c3; }
.contact__cards a, .contact__cards address { color: #fff; text-decoration: none; font-weight: 500; }
.contact__cards a:hover { color: var(--yellow); }

.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 38px); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.form label { display: block; font-size: .9rem; font-weight: 500; color: var(--navy); margin-bottom: 16px; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfdfe;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(73,183,216,.2); outline: none; }
.form textarea { resize: vertical; min-height: 120px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted) !important; font-size: .88rem !important; }
.form__check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue-dark); flex: none; }
.form .is-invalid { border-color: #d64545 !important; }
.form__status { margin: 14px 0 0; font-weight: 500; min-height: 1.4em; }
.form__status.is-ok { color: #1f8a4c; }
.form__status.is-error { color: #c23434; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

.map { margin-top: 56px; border-radius: var(--radius); overflow: hidden; height: 380px; background: var(--navy-2) url("../img/hero/hero-03.jpg") center / cover; position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; background: rgba(15,42,58,.82); }
.map__consent p { max-width: 460px; margin: 0; }
.map__consent a { color: var(--yellow); }
.map__ext { font-size: .9rem; }

/* ---------- Footer ---------- */
.footer { background: #0a1f2b; color: #9db7c4; font-size: .95rem; padding: 46px 0 26px; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer__logo { height: 48px; width: auto; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: #d8e7ee; text-decoration: none; }
.footer__links a:hover { color: var(--yellow); }
.footer__copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 30px; padding-top: 20px; font-size: .85rem; }

/* ---------- WhatsApp-Button ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,15,22,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #cfe3ec; margin-top: 12px; font-size: .95rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 50px; height: 50px; font-size: 2rem; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0 48px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.legal > * { max-width: 820px; }
.page-hero + .section { padding-top: 48px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: #39484f; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 20px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .about__media img { max-width: 360px; }
  .topbar__item--mail { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .topbar__inner { justify-content: center; gap: 18px; font-size: .82rem; }
  .header__logo img { height: 42px; }
  :root { --header-h: 64px; }
  .services { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr 1fr; gap: 14px; }
  .badges li { padding: 20px 12px; }
  .badges img { width: 96px; height: 96px; }
  .facts { width: 100%; }
  .facts li { flex: 1; min-width: 0; padding: 12px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .hero { min-height: 640px; }
  .hero__overlay { background: linear-gradient(180deg, rgba(10,30,42,.55) 0%, rgba(10,30,42,.85) 100%); }
  .hero__actions .btn { width: 100%; }
  .lightbox { padding: 60px 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .map { height: 320px; }
}

/* Feinschliff */
.service__body .link-btn { align-self: flex-start; }
.about__text .eyebrow { color: var(--blue-dark); }
@media (max-width: 640px) {
  .gallery { columns: 2; column-gap: 10px; }
  .gallery a { margin-bottom: 10px; }
  .refs { grid-template-columns: 1fr 1fr; gap: 10px; }
}
