/* ==========================================================================
   Startseite: großes Foto mit Aussage und Preis, sandfarbene Box, drei Karten,
   Bewertungen, Kundenfotos, Abschluss. Unverändert aus dem Entwurf übernommen
   (entwurf/neubau/startseite.html). Die Bausteine werden auch auf
   „Großmengen & Sondermaße“ verwendet. Was nur für WordPress nötig ist,
   steht in wp.css.
   ========================================================================== */
body { background: var(--paper); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(20px, var(--safe-l)); padding-right: max(20px, var(--safe-r)); }

/* HERO: randlos zweigeteilt. Links Aussage, Preis und Button,
   rechts das eingebaute Produkt in voller Hoehe und ohne Hochskalieren. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 720px; background: #26221d; }
.hero-text { display: flex; flex-direction: column; justify-content: center; color: #fff; padding: 150px clamp(24px, 5vw, 80px) 70px; }
.hero-text .eyebrow { color: #e8c98a; }
.hero-text h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); color: #fff; margin: 0 0 18px; }
.hero-text p.lead { font-size: 18px; color: rgba(255,255,255,0.86); max-width: 36ch; }
.hero-price { margin: 30px 0 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hero-price .amt { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 34px; font-variant-numeric: tabular-nums; }
.hero-price .unit { font-size: 15px; color: rgba(255,255,255,0.75); }
.btn-primary {
  background: var(--gold); color: #241d0f; padding: 18px 34px; border-radius: 100px; align-self: flex-start;
  font-size: 16.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.15s, background 0.15s;
}
.btn-primary:hover { background: #dcb970; transform: translateY(-1px); }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 15px; color: rgba(255,255,255,0.9); }
.checks li::before { content: ""; display: inline-block; width: 0.92em; height: 0.92em; vertical-align: -0.1em; -webkit-mask: var(--haken) center / contain no-repeat; mask: var(--haken) center / contain no-repeat; background-color: #8fd19e; margin-right: 9px; }
.hero-photo { position: relative; min-height: 420px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 78%; }
.hero-photo .tag { position: absolute; left: 18px; bottom: 18px; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 100px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; height: 400px; min-height: 0; }
  .hero-text { padding: 30px 20px 40px; }
  .btn-primary { align-self: stretch; justify-content: center; }
  .hero-price { margin: 22px 0 18px; }
}
/* Handy: Der goldene Knopf soll ohne Scrollen ganz zu sehen sein, auch über der schwebenden Leiste von Safari am iPhone (Martin, 25.11.2026:
   „da war der CTA verdeckt“). Das Foto gibt so viel Höhe ab, wie Text, Preis und Knopf brauchen (gut 360 px), und wird nie höher als 340 px. */
@media (max-width: 560px) {
  .hero-photo { height: 340px; height: clamp(210px, calc(100svh - 362px), 340px); }
  .hero-text { padding-top: 22px; }
  .hero-text h1 { margin-bottom: 12px; }
  .hero-text p.lead { font-size: 17px; line-height: 1.5; }
  .hero-price { margin: 16px 0 14px; }
}
@media (max-width: 385px) { .hero-price .amt { font-size: 30px; } .hero-price .unit { font-size: 14px; } }

/* ---------- Bilderfolge im Kopf (Baustein roomify/kopffotos, assets/js/kopffotos.js) ----------
   Das neue Foto blendet über dem alten ein, das alte bleibt so lange voll sichtbar: kein dunkler Moment dazwischen. */
.bf { position: absolute; inset: 0; overflow: hidden; background: #26221d; touch-action: pan-y; --blende: 1600ms; }
.hero .bf figure { position: absolute; inset: 0; margin: 0; opacity: 0; z-index: 0; }
.hero .bf.bereit figure { will-change: opacity; }
.hero .bf figure img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--p, 50% 50%); }
.hero .bf figure.war { opacity: 1; z-index: 1; }
.hero .bf figure.an { opacity: 1; z-index: 2; transition: opacity var(--blende) cubic-bezier(0.45, 0, 0.25, 1); }
.bf::before, .bf::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; pointer-events: none; }
.bf::before { top: 0; height: 170px; background: linear-gradient(rgba(20,18,14,0.5), transparent); }
.bf::after { bottom: 0; height: 110px; background: linear-gradient(transparent, rgba(20,18,14,0.34)); }
.bf .leiste { position: absolute; z-index: 5; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; }
.bf .leiste .tag { position: relative; left: auto; bottom: auto; overflow: hidden; white-space: nowrap; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.55; padding: 7px 13px; border-radius: 100px; transition: width 0.6s cubic-bezier(0.45, 0, 0.25, 1); box-sizing: border-box; }
.bf .leiste .tag span { display: inline-block; transition: opacity 0.4s; }
.bf .leiste .tag span.weg { opacity: 0; }
.bf .leiste button { font: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
.bf .leiste button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.bf:not(.bereit) .striche, .bf:not(.bereit) .halt-btn { visibility: hidden; }
.bf .leiste .halt-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(20,18,14,0.42); color: #fff; display: grid; place-items: center; transition: background 0.2s; }
.bf .leiste .halt-btn:hover { background: rgba(20,18,14,0.62); }
.bf .halt-btn svg { width: 15px; height: 15px; }
.bf .striche { margin-left: auto; flex: none; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 100px; background: rgba(20,18,14,0.42); }
/* Balken B: der aktive Strich wächst, der vorige schrumpft */
.bf .striche button { position: relative; width: 16px; height: 4px; border-radius: 4px; background-color: rgba(255,255,255,0.42); transition: width 1.1s cubic-bezier(0.45, 0, 0.25, 1), flex-grow 1.1s cubic-bezier(0.45, 0, 0.25, 1), background-color 1.1s cubic-bezier(0.45, 0, 0.25, 1); }
.bf .striche button::after { content: ""; position: absolute; inset: -16px -4px; }
.bf .leiste .striche button { background-color: rgba(255,255,255,0.42); }
.bf .leiste .striche button[aria-current="true"] { width: 42px; background-color: #fff; }
.bf.erst, .bf.erst * { transition: none !important; }
/* Handy: Beschriftung und Anhalten in einer Zeile, darunter der Balken als dünne Linie über die ganze Breite */
@media (max-width: 860px) {
  .hero .bf figure img { object-position: var(--pm, var(--p, 50% 50%)); }
  .bf::after { height: 130px; background: linear-gradient(transparent, rgba(20,18,14,0.5)); }
  .bf .leiste { flex-wrap: wrap; gap: 12px 10px; left: 16px; right: 16px; bottom: 16px; }
  .bf .leiste .tag { max-width: calc(100% - 44px); text-overflow: ellipsis; }
  .bf .leiste .halt-btn { margin-left: auto; width: 34px; height: 34px; }
  .bf .striche { order: 3; flex: 1 0 100%; margin: 0; height: 4px; padding: 0; gap: 6px; background: none; border-radius: 0; }
  .bf .striche button { flex: 1 1 0; width: auto; height: 3px; }
  .bf .leiste .striche button[aria-current="true"] { width: auto; flex-grow: 2.4; }
}
@media (prefers-reduced-motion: reduce) { .hero .bf figure.an { transition-duration: 0.01s; } .bf .striche button { transition: none; } }

.sec { padding-top: 88px; }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.sec-head p { font-size: 16px; color: var(--ink-soft); margin-top: 8px; max-width: 80ch; }

.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--sand); border-radius: var(--radius-l); overflow: hidden; }
.intro-text { padding: clamp(28px, 4.5vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.intro h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 18ch; margin-bottom: 18px; }
.intro p { font-size: 17.5px; color: var(--ink-soft); line-height: 1.6; max-width: 46ch; }
.intro p.stark { margin-top: 12px; color: var(--ink); font-weight: 700; }
.intro-cta { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; margin-top: 28px; }
.btn-dark { background: var(--ink); color: #fff; padding: 15px 26px; border-radius: 100px; font-size: 15.5px; font-weight: 700; }
.btn-dark:hover { background: var(--gold-deep); }
.btn-link { font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.intro-pic { position: relative; min-height: 380px; }
.intro-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Handy: 300 statt 240 px hoch und unten ausgerichtet, damit die Kufe ganz zu sehen ist (Foto vom 24.11.2026) */
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro-pic { min-height: 300px; order: -1; } .intro .intro-pic img { object-position: 50% 100%; } }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.choice { display: flex; flex-direction: column; gap: 14px; }
.choice .pic { aspect-ratio: 1 / 1; border-radius: var(--radius-m); overflow: hidden; background: #e9e9e9; }
.choice .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.choice:hover .pic img { transform: scale(1.03); }
.choice h3 { font-size: 21px; }
.choice p { font-size: 15.5px; color: var(--ink-soft); max-width: 36ch; }
.choice .more { font-size: 14.5px; font-weight: 700; color: var(--gold-deep); margin-top: auto; }
@media (max-width: 860px) { .choice-grid { grid-template-columns: 1fr; gap: 34px; } }

.stimmen-band { margin-top: 88px; background: #26221d; color: #f4efe3; padding: 72px 0 76px; }
.stimmen-band .sec-head h2 { color: #fff; }
.stimmen-band .sec-head p { color: #cfc8ba; }
.stimmen-band .stimme { background: #322d26; border-color: #453f35; }
.stimmen-band .stimme blockquote { color: #fff; }
.stimmen-band .stimme figcaption { color: #b8b0a0; }
.stimmen { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stimme { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.stimme .sterne { color: #e8a917; font-size: 20px; letter-spacing: 2px; }
.stimme blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.stimme figcaption { font-size: 14px; color: var(--muted); margin-top: auto; display: flex; align-items: center; gap: 9px; }
/* Offizielles Google-G (unveraendert von gstatic.com) auf weissem Kreis. Laut Googles Vorgaben fuer Kundenbewertungen: nur offizielle Logos,
   keine Sterne direkt neben dem Logo, "auf Google" statt "von Google", und die Verfasser muessen der Verwendung zugestimmt haben. */
.stimme figcaption .g { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.stimme figcaption .g img { width: 13px; height: 13px; display: block; }
.ph-text { background: #fff3c9; color: #6b5a1e; border-radius: 4px; padding: 1px 6px; }
@media (max-width: 860px) { .stimmen { grid-template-columns: 1fr; } }
/* Ab drei Bewertungen (24.11.2026, Variante 8 aus entwurf/neubau/bewertungen-varianten.html): die erste groß links,
   die nächsten zwei rechts übereinander. Weitere stehen zu zweit darunter, eine übrige geht über die ganze Breite. */
.stimmen-gross { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.stimmen-gross .stimme blockquote { font-size: 16.5px; }
.stimmen-gross .stimme:first-child { grid-row: span 2; padding: 36px 40px; gap: 18px; }
.stimmen-gross .stimme:first-child .sterne { font-size: 24px; }
.stimmen-gross .stimme:first-child blockquote { font-size: 20px; line-height: 1.5; }
.stimmen-gross .stimme:last-child:nth-child(even) { grid-column: 1 / -1; }
.stimmen-gross .stimme blockquote span { display: block; }
.stimmen-gross .stimme blockquote span + span { margin-top: 0.5em; }
.stimmen-striche { display: none; }
/* Handy: nebeneinander zum Wischen, die nächste Karte schaut rechts hervor */
@media (max-width: 860px) {
  .stimmen-gross {
    --rl: max(20px, var(--safe-l)); --rr: max(20px, var(--safe-r));
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: calc(-1 * var(--rl)); margin-right: calc(-1 * var(--rr)); padding-left: var(--rl); padding-right: var(--rr);
    scroll-padding-left: var(--rl); scroll-padding-right: var(--rr);
  }
  .stimmen-gross::-webkit-scrollbar { display: none; }
  .stimmen-gross .stimme, .stimmen-gross .stimme:first-child { flex: none; width: min(86%, 560px); padding: 24px 22px 22px; gap: 14px; scroll-snap-align: start; }
  .stimmen-gross .stimme:first-child .sterne { font-size: 20px; }
  .stimmen-gross .stimme:first-child blockquote { font-size: 16.5px; line-height: 1.55; }
  .stimmen-gross:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
  .stimmen-striche:not([hidden]) { display: flex; align-items: center; gap: 7px; height: 44px; margin: 12px 0 -14px; }
  .stimmen-striche button { position: relative; width: 16px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,0.28); transition: width 0.5s cubic-bezier(0.45, 0, 0.25, 1), background-color 0.5s; -webkit-tap-highlight-color: transparent; }
  .stimmen-striche button::after { content: ""; position: absolute; inset: -20px -4px; }
  .stimmen-striche button[aria-current="true"] { width: 42px; background: var(--gold); }
  .stimmen-striche button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
}
@media (prefers-reduced-motion: reduce) { .stimmen-striche button { transition: none; } }
.proof-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
.proof-card { position: relative; border-radius: var(--radius-m); overflow: hidden; background: var(--sand); height: 380px; }
.proof-card img { width: 100%; height: 100%; object-fit: cover; }
.proof-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; color: #fff; font-size: 14px; font-weight: 600;
  padding: 44px 18px 15px; background: linear-gradient(180deg, transparent, rgba(20,18,14,0.74));
}
@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card { height: 300px; }
  /* Startseite: zwei Fotos nebeneinander (Anordnung A aus entwurf/neubau/kundenfotos-sandbox.html) */
  .proof-grid.zwei { grid-template-columns: 1fr 1fr; gap: 10px; }
  .proof-grid.zwei .proof-card { height: clamp(210px, 40vw, 300px); }
  .proof-grid.zwei .cap { font-size: 13px; line-height: 1.4; padding: 34px 12px 11px; }
}
/* Erst neun Fotos, am Handy sechs; die übrigen nach „Mehr anzeigen“ (assets/js/seite.js). Dieselben Zahlen in inc/bausteine.php. */
.proof-grid.kurz .proof-card:nth-child(n + 10) { display: none; }
@media (max-width: 860px) { .proof-grid.kurz .proof-card:nth-child(n + 7) { display: none; } }
.proof-mehr { display: block; margin: 26px auto 0; border: 2px solid var(--ink); border-radius: 100px; padding: 13px 30px; background: none; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.proof-mehr .handy, .proof-mehr.nur-handy { display: none; }
.proof-mehr:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
@media (min-width: 861px) { .proof-mehr:hover { background: var(--ink); color: #fff; } }
@media (max-width: 860px) { .proof-mehr.nur-handy { display: block; } .proof-mehr .pc { display: none; } .proof-mehr .handy { display: inline; } }
.proof-card.neu { animation: proof-neu 0.45s ease both; }
@keyframes proof-neu { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .proof-card.neu { animation: none; } }

.proof-card[role="button"] { cursor: zoom-in; }
.proof-card[role="button"] img { transition: transform 0.4s; }
.proof-card[role="button"]:hover img { transform: scale(1.03); }
dialog.foto { border: none; padding: 0; border-radius: 16px; width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; color: var(--ink); overflow: hidden; }
dialog.foto::backdrop { background: rgba(20,18,14,0.72); }
dialog.foto[open] { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: min-content; align-content: start; } /* Zeile und Ausrichtung: sonst zieht Safari das Fenster auf volle Höhe (25.11.) */
dialog.foto .gross { background: #ebe6dc; min-height: 320px; max-height: calc(100vh - 32px); }
dialog.foto .gross img { width: 100%; height: 100%; object-fit: contain; }
dialog.foto .txt { padding: 40px 36px 34px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; overflow: auto; }
dialog.foto h3 { font-size: 26px; }
dialog.foto p { font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
dialog.foto .zu { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,0.92); font-size: 24px; line-height: 1; color: var(--ink); box-shadow: 0 1px 6px rgba(0,0,0,0.2); }
@media (max-width: 760px) { dialog.foto[open] { grid-template-columns: 1fr; overflow: auto; } dialog.foto .gross { max-height: 46vh; } dialog.foto .txt { padding: 22px 20px 26px; } }
.closer { margin-top: 96px; background: var(--sand); }
.closer-in { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.closer h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 24ch; }
.closer .btn-primary { align-self: center; background: var(--ink); color: #fff; }
.closer .btn-primary:hover { background: var(--gold-deep); }
.closer .checks { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 0; color: var(--ink-soft); }
.closer .checks li::before { color: var(--ok); }
.pay { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.pay img { height: 28px; width: auto; }
