/* WILD & CLEAN – raumpflegerin.ch
   Farben, Schrift und Abstände stehen hier oben gesammelt.
   Wer etwas ändern will, ändert am besten nur diese Werte. */

@font-face { font-family: "Outfit"; src: url("../fonts/outfit-400.woff") format("woff"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-700.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  --bg: #f8faf9;        /* Seitenhintergrund, auf allen Seiten gleich */
  --paper: #ffffff;     /* Eingabefelder */
  --ink: #1c2428;       /* Text */
  --muted: #5f6b6f;     /* grauer Text */
  --blue: #00659b;      /* Markenblau, Links, Footer */
  --green: #4cbb17;     /* grüne Punkte */
  --line: #d6e0e3;      /* Linien und Rahmen */
  --tint: #eaf2f8;      /* hellblaue Flächen (Kundenstimmen) */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;        /* maximale Breite des Inhalts */
  --gap: 56px;          /* Abstand zwischen den Abschnitten */
  --leading: 1.45;      /* Zeilenabstand im Fliesstext */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: var(--leading); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0; }
ul { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: 15px; color: var(--muted); }
.muted { color: var(--muted); }
.lead { font-size: clamp(19px, 2.1vw, 22px); color: var(--muted); max-width: 54ch; text-wrap: balance; }

/* Kopfzeile */
.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.site-header .logo img { height: 72px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; }
.site-nav a { text-decoration: none; text-transform: uppercase; font-weight: 500; font-size: 16px; letter-spacing: .03em; padding: 8px 26px; border-left: 1px solid var(--blue); line-height: 1.6; }
.site-nav a:first-child { border-left: 0; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

main { display: flex; flex-direction: column; gap: var(--gap); padding-bottom: var(--gap); }

/* Startseite: Kopfbereich mit Kugel */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero > * { min-width: 0; }
.kugel-stage { justify-self: center; width: min(100%, 360px); aspect-ratio: 1; perspective: 900px; }
.kugel { position: relative; width: 100%; height: 100%; will-change: transform; }
.kugel img, .kugel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Unterseiten: Eyebrow, Titel und Untertitel stehen überall gleich */
.page-head { display: grid; grid-template-columns: minmax(0, 620px) 240px; justify-content: start; gap: 24px 80px; align-items: start; padding-top: 12px; min-height: 220px; }
.page-head > * { min-width: 0; }
.page-head.full { grid-template-columns: 1fr; min-height: 0; }
.page-head.full .lead { text-wrap: pretty; }
.page-head .stack { gap: 12px; }
.page-head h1 { font-size: clamp(38px, 5.2vw, 58px); }
.page-head .side { justify-self: start; width: 100%; max-width: 220px; margin-top: -12px; }

/* Grüne Punkte mit Titel */
.dot { display: flex; gap: 14px; align-items: center; font-weight: 500; font-size: clamp(21px, 2.2vw, 25px); line-height: 1.2; }
.dot::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green); flex: none; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 36px; }
.grid-3 > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.more { font-size: 16px; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Startseite: Über mich */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center; }
.about > * { min-width: 0; }
.about .text { max-width: 54ch; display: flex; flex-direction: column; gap: 16px; }
.about .text h2 { font-size: clamp(32px, 4vw, 48px); }
.about .text p { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; }
.portrait { margin: 0; }
.portrait figcaption { font-size: 15px; color: var(--muted); text-align: center; margin-top: 6px; }

.quote { background: var(--tint); margin: 0; padding: 28px 48px; color: var(--blue); font-style: italic; font-weight: 400; font-size: clamp(21px, 2.5vw, 30px); line-height: 1.35; }
.quote footer { font-style: italic; margin-top: 4px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: end; justify-content: space-between; }
.cta a.go { font-size: clamp(20px, 2vw, 24px); text-decoration: none; }
.cta a.go:hover { text-decoration: underline; }

/* Leistungen: Fragen */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 13px; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 28px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-top: 8px; max-width: 66ch; }

/* Leistungen: Details */
.detail { display: grid; grid-template-columns: 260px 1fr; gap: 12px 40px; border-top: 1px solid var(--line); padding-top: 22px; scroll-margin-top: 20px; }
.detail > * { min-width: 0; }
.detail .body { display: flex; flex-direction: column; gap: 10px; max-width: 66ch; }
.detail ul { padding-left: 22px; display: flex; flex-direction: column; gap: 2px; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 36px; }
.areas > div { min-width: 0; }
.areas b { font-weight: 500; font-size: 22px; display: block; }

/* Konditionen */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { min-width: 0; border: 1px solid #c9e1ee; border-radius: 14px; background: var(--bg) center / cover no-repeat; padding: 16px 22px 14px; display: flex; flex-direction: column; }
.card.easy { background-image: url("../img/karte-easy.jpg"); border-color: #b9e6ec; }
.card.plus { background-image: url("../img/karte-plus.jpg"); border-color: #c4dcf3; }
.card.go   { background-image: url("../img/karte-go.jpg");   border-color: #c3e6cc; }
.card .kind { letter-spacing: .28em; font-size: 19px; font-weight: 500; }
.card .name { font-size: 30px; font-weight: 500; line-height: 1.15; margin-top: 2px; }
.card .name small { font-size: 20px; }
.card .for { flex: 1; padding-bottom: 10px; border-bottom: 1px solid #c9d6dc; }
.card .price { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; margin-top: 10px; font-variant-numeric: tabular-nums; }
.card .total { font-size: 20px; font-variant-numeric: tabular-nums; }
.dots-row { display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; }
.dots-row .dot { font-weight: 400; font-size: 22px; }
.monthly { background: #eef4f9 url("../img/staubsauger.jpg") right center / cover no-repeat; padding: 26px 36px 30px; min-height: 340px; display: flex; flex-direction: column; gap: 10px; }
.monthly .text { max-width: 46ch; display: flex; flex-direction: column; gap: 10px; }
.monthly .price { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; }
.boxes { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.box { border: 1px solid #9aa7ad; border-radius: 4px; padding: 16px 26px 20px; min-width: 0; }
.box h3 { font-size: 27px; margin-bottom: 8px; }
.box ul { color: var(--muted); padding-left: 22px; }
.box .cols { columns: 2; column-gap: 48px; }

/* Kontakt: Bild bündig mit dem Inhalt, links weich ausgeblendet */
.contact-band { position: relative; display: grid; grid-template-columns: 1fr; min-height: 220px; }
.contact-band > * { min-width: 0; position: relative; }
.contact-band::before { content: ""; position: absolute; inset: 0 24px 0 30%; background: url("../img/kontakt-hintergrund.jpg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%); mask-image: linear-gradient(to right, transparent, #000 35%); }
.contact-band .stack { align-self: start; padding-top: 12px; gap: 12px; padding-bottom: 32px; }
.contact-band h1 { font-size: clamp(38px, 5.2vw, 58px); }
.contact-band figure { margin: 0; justify-self: end; position: relative; width: 100%; max-width: 280px; }
.contact-band figcaption { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; background: rgba(255,255,255,.72); color: var(--muted); font-size: 17px; padding: 6px; }
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; }
.contact > * { min-width: 0; }
.contact .info { display: flex; flex-direction: column; gap: 28px; }
form.kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
form.kontakt h2 { grid-column: 1 / -1; font-size: 28px; }
form.kontakt label { display: flex; flex-direction: column; gap: 6px; font-size: 16px; min-width: 0; }
form.kontakt .full { grid-column: 1 / -1; }
form.kontakt input, form.kontakt textarea { font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 11px 14px; width: 100%; border-radius: 0; }
form.kontakt textarea { min-height: 140px; resize: vertical; }
form.kontakt .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.kontakt .send { grid-column: 1 / -1; display: flex; justify-content: center; }
.button { background: var(--blue); color: #fff; border: 0; font: inherit; font-size: 22px; padding: 15px 100px; cursor: pointer; text-decoration: none; display: inline-block; }
.button:hover { background: #00557f; }
.small { font-size: 15px; color: var(--muted); }

/* Textseiten (Impressum, Datenschutz) */
.legal { display: flex; flex-direction: column; gap: 10px; }
.legal > * { max-width: 70ch; }
.legal h2 { font-size: 25px; margin-top: 16px; }

/* Kundenstimmen auf der Startseite */
.stimmen-track { display: grid; }
.stimmen-track .quote { grid-area: 1 / 1; transition: opacity .8s ease; }
.stimmen-track .quote.aus { opacity: 0; pointer-events: none; }
.stimmen-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.stimmen-dots button { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.stimmen-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #b8cbd6; }
.stimmen-dots button[aria-current="true"]::before { background: var(--blue); }
@media (prefers-reduced-motion: reduce) { .stimmen-track .quote { transition: none; } }

/* Fusszeile */
.site-footer { background: var(--blue); color: #fff; padding-block: 30px 56px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer .name { font-size: 22px; }
.site-footer .addr { color: #cfe6f3; font-size: 19px; line-height: 1.4; }
.site-footer nav { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; padding-right: 60px; }
.site-footer a { color: #fff; text-decoration: none; font-size: 19px; }
.site-footer a:hover { text-decoration: underline; }

/* Tablet und Handy */
/* Tablet (hoch und quer): Zweispaltigkeit bleibt, nur etwas enger */
@media (max-width: 960px) {
  :root { --gap: 48px; }
  .hero { grid-template-columns: 1.3fr 1fr; gap: 24px; }
  .kugel-stage { width: min(100%, 300px); }
  .page-head { grid-template-columns: 1fr 180px; gap: 24px 32px; min-height: 0; }
  .page-head .side { max-width: 180px; margin-top: 0; }
  .about { grid-template-columns: 180px 1fr; gap: 36px; }
  .grid-3 { gap: 28px 28px; }
  .contact { grid-template-columns: 1fr 1.4fr; gap: 36px; }
  .site-nav a { padding: 6px 14px; font-size: 15px; }
  .quote { padding: 24px 32px; }
}
/* Schmale Tablets und grosse Handys */
@media (max-width: 760px) {
  :root { --gap: 44px; }
  .hero, .contact, .page-head, .contact-band { grid-template-columns: 1fr; min-height: 0; }
  .kugel-stage { order: -1; width: min(55%, 240px); }
  .page-head .side { display: none; }
  .grid-3, .cards { grid-template-columns: 1fr 1fr; }
  .grid-3 > :last-child:nth-child(odd), .cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .areas { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .site-nav a { padding: 6px 12px; }
  .quote { padding: 22px 24px; }
  .monthly { background-image: none; min-height: 0; }
  .contact-band::before { inset: 0 24px; opacity: .6; }
  .button { padding: 15px 48px; }
  .karte { max-width: 100%; }
}
/* Handy */
@media (max-width: 600px) {
  .about { grid-template-columns: 1fr; }
  .about .portrait { max-width: 200px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .grid-3, .cards, .areas, form.kontakt { grid-template-columns: 1fr; }
  .box .cols { columns: 1; }
  .site-header .logo img { height: 58px; }
  .site-nav { width: 100%; justify-content: space-between; }
  .site-nav a { padding: 6px 0; border-left: 0; font-size: 14px; letter-spacing: 0; }
  .site-footer nav { padding-right: 0; }
}

/* Fensterlicht hinter dem Kopfbereich (Leistungen) */
.page-head.licht { position: relative; padding-bottom: 32px; }
.page-head.licht > * { position: relative; }
.page-head.licht::before { content: ""; position: absolute; inset: 0 24px 0 30%; background: url("../img/kontakt-hintergrund.jpg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%); mask-image: linear-gradient(to right, transparent, #000 35%); }
@media (max-width: 760px) { .page-head.licht::before { inset: 0 24px; opacity: .6; } }

/* Kontakt: Karte des Einsatzgebiets */
.karte { margin: 0; max-width: 440px; }
.karte img { width: 100%; border: 1px solid var(--line); }
.karte figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Anhänge im Kontaktformular */
form.kontakt .datei input { padding: 9px 12px; background: var(--paper); }
form.kontakt .datei small { color: var(--muted); font-size: 14px; }
