/* ==========================================================================
   Großmengen & Sondermaße: dunkler Kopf mit dem gezeichneten Film, acht Fälle mit
   Fotos echter Aufträge, sandfarbene Box, Band mit dem Ablauf, Kundenbilder, Anfrageformular.
   Kopf, Band und Formular stammen aus entwurf/neubau/grossmengen-sondermasse.html,
   die Fälle und die Box aus entwurf/neubau/grossmengen-sandbox.html.
   Was nur für WordPress nötig ist, steht in wp.css.
   ========================================================================== */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(20px, var(--safe-l)); padding-right: max(20px, var(--safe-r)); }

/* Kopf: links dunkel mit den Faellen, rechts der gezeichnete Film in voller Hoehe */
.gm-hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); background: #26221d; }
.gm-hero-text { display: flex; flex-direction: column; justify-content: center; color: #fff; padding: 62px clamp(24px, 5vw, 80px) 66px; }
.gm-hero-text .eyebrow { color: #e8c98a; margin-bottom: 18px; }
.gm-vor { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(21px, 2.3vw, 28px); color: rgba(255,255,255,0.8); margin-bottom: 4px; }
.gm-faelle { font-size: clamp(21px, 2.3vw, 31px); line-height: 1.12; letter-spacing: -0.02em; }
.gm-faelle button { display: block; position: relative; font: inherit; letter-spacing: inherit; text-align: left; border: none; background: none; padding: 3px 0 7px; margin: 0; color: rgba(255,255,255,0.34); transition: color 0.35s ease; }
.gm-faelle button.an { color: #fff; }
.gm-faelle button:hover { color: rgba(255,255,255,0.62); } .gm-faelle button.an:hover { color: #fff; }
/* Der goldene Strich unter dem aktiven Fall laeuft mit der Zeit der Szene mit */
.gm-faelle button::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 4px; width: calc(var(--p, 0) * 100%); max-width: 100%; background: var(--gold); border-radius: 2px; }
.gm-hero-text p.lead { font-size: 18px; color: rgba(255,255,255,0.86); max-width: 36ch; margin: 22px 0 26px; }
.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); }
.gm-film { position: relative; background: #ebe6dc; display: flex; align-items: center; min-height: 420px; }
.gm-film svg { display: block; width: 100%; height: auto; }
.gm-film text, .pic text { font-family: 'Source Sans 3', sans-serif; }
.gm-pause { position: absolute; right: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 50%; border: none; background: #fff; color: var(--ink); box-shadow: 0 1px 6px rgba(0,0,0,0.16); display: flex; align-items: center; justify-content: center; }
.gm-pause svg { width: 16px; height: 16px; }

.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: 62ch; }

/* Acht Fälle wie im Kopf, je mit einem echten Auftrag (Variante 5 aus entwurf/neubau/grossmengen-sandbox.html, 25.11.2026).
   Klick auf ein Foto öffnet es groß (seite.js), der Link trägt den Fall ins Formular ein (gm.js). */
.acht { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 18px; }
.fall { display: flex; flex-direction: column; gap: 10px; }
.fall .foto, .fall .gm-buehne { position: relative; aspect-ratio: 4 / 5; margin: 0; border-radius: var(--radius-m); overflow: hidden; background: #ebe6dc; }
.fall .foto img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.4s; }
.fall .foto.lage-links img { object-position: 24% 50%; }
.fall .foto[role="button"] { cursor: zoom-in; }
.fall .foto[role="button"]:hover img { transform: scale(1.03); }
.fall .foto[role="button"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fall .foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: left; padding: 44px 18px 15px; background: linear-gradient(180deg, transparent, rgba(20,18,14,0.74)); }
.fall .gm-buehne { display: flex; align-items: center; cursor: pointer; }
/* pointer-events: Die Zeichnung wird laufend neu aufgebaut. Ohne das trifft der Klick ein Teil, das es beim Loslassen
   nicht mehr gibt, und Firefox loest dann den Klick nicht aus. */
.fall .gm-buehne svg { display: block; width: 100%; height: auto; pointer-events: none; }
.fall h3 { font-size: 19px; line-height: 1.2; }
.fall .more { font-size: 14.5px; font-weight: 700; color: var(--gold-deep); margin-top: auto; }
.fall .more a:hover { color: var(--ink); }

/* Was auf Anfrage geht: sandfarbene Box, links Text und Knöpfe, rechts die Liste mit Haken (am Handy zwischen Text und Knöpfen) */
.geht { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: clamp(28px, 5vw, 72px); align-items: center; background: var(--sand); border-radius: var(--radius-l); padding: clamp(28px, 4.5vw, 60px); }
.geht h2 { font-size: clamp(1.7rem, 2.7vw, 2.3rem); max-width: 20ch; text-wrap: balance; }
.geht-text p { font-size: 17.5px; line-height: 1.6; color: var(--ink-soft); margin-top: 16px; max-width: 46ch; }
.geht ul.geht-liste { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; font-size: 18px; line-height: 1.35; }
.geht-liste li { position: relative; padding-left: 32px; }
.geht-liste li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 0.92em; height: 0.92em; -webkit-mask: var(--haken) center / contain no-repeat; mask: var(--haken) center / contain no-repeat; background-color: var(--ok); }
.geht .geht-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }

.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; }
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.schritt { background: #322d26; border: 1px solid #453f35; border-radius: var(--radius-m); padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.schritt small { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #e8c98a; }
.schritt h3 { font-size: 21px; color: #fff; }
.schritt p { font-size: 16.5px; line-height: 1.55; color: #e3ddd0; }

.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)); }
/* Kundenbilder lassen sich anklicken und oeffnen die Grossansicht (dialog.foto aus seiten.css), wie auf der Startseite */
.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); }
.proof-card[role="button"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nach { margin-top: 20px; }

/* Abschluss mit dem Anfrageformular */
.closer { margin-top: 96px; background: var(--sand); scroll-margin-top: 100px; }
.closer-in { max-width: 1120px; margin: 0 auto; padding: 72px max(20px, var(--safe-l)) 84px max(20px, var(--safe-r)); }
.closer h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.closer .vor { font-size: 17.5px; line-height: 1.55; color: var(--ink-soft); max-width: 58ch; margin-top: 12px; }
/* Formular in einer weissen Box mit zwei Spalten: links Thema, Nachricht und Kontakt, rechts die freiwilligen Angaben zum Gestell.
   Am Handy steht die rechte Spalte zwischen den Kontaktfeldern und dem Senden-Knopf. */
.closer.gesendet .vor { display: none; } /* nach dem Absenden braucht es den Einleitungssatz nicht mehr */
#gmForm[hidden] { display: none; }
.gm-box { background: #fff; border-radius: var(--radius-l); padding: clamp(20px, 4vw, 44px); margin-top: 28px; }
.closer .sp-form { display: block; margin-top: 0; padding-top: 0; border-top: none; }
.gm-spalten { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); grid-template-rows: auto 1fr; gap: 16px clamp(20px, 3vw, 36px); align-items: start; }
.gm-neben { grid-column: 2; grid-row: 1 / span 2; background: var(--paper); border-radius: var(--radius-m); padding: clamp(18px, 2.4vw, 26px); }
.gm-neben h3 { font-size: 19px; }
.gm-neben .unter { font-size: 14.5px; color: var(--muted); margin: 3px 0 16px; }
.gm-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.closer textarea { min-height: 112px; }
.gm-uebernommen { background: var(--ok-wash); color: #24492f; border-radius: 10px; padding: 11px 14px; font-size: 14.5px; margin: 0 0 20px; }
/* „Etwas Ähnliches anfragen“: das Foto, um das es geht, steht über dem Formular */
.gm-vorbild { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--gold); border-radius: 12px; padding: 10px 14px 10px 10px; margin: 0 0 20px; }
.gm-vorbild[hidden] { display: none; }
.gm-vorbild img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.gm-vorbild span { font-size: 15.5px; line-height: 1.35; } .gm-vorbild b { display: block; }
.gm-vorbild button { margin-left: auto; flex: none; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink-soft); padding: 8px; }
.gm-vorbild button:hover { color: var(--ink); }
.gm-themen { grid-column: 1 / -1; border: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.gm-themen legend { padding: 0; margin-bottom: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.gm-themen legend span, .sp-form .opt { font-weight: 400; color: var(--muted); }
.gm-themen label { display: inline-flex; align-items: center; gap: 9px; border: 1.5px solid #d6cebf; background: #fff; border-radius: 100px; padding: 9px 17px 9px 13px; font-weight: 600; cursor: pointer; transition: border-color 0.2s; }
.gm-themen label:has(input:checked) { border-color: var(--ink); }
.gm-themen input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.closer select { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid #d6cebf; border-radius: 10px; padding: 12px 14px; }
.closer select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-wash); }
.gm-datei input { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; font-size: 15px; color: var(--ink-soft); background: #fff; border: 1.5px dashed #cfc6b5; border-radius: 10px; padding: 14px; }
.closer .gm-hinweis { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.gm-datei input::file-selector-button { font: inherit; font-weight: 700; font-size: 14.5px; color: var(--ink); background: var(--sand); border: none; border-radius: 100px; padding: 8px 16px; margin-right: 12px; cursor: pointer; }

@media (max-width: 860px) {
  .gm-hero { grid-template-columns: 1fr; }
  .gm-film { order: -1; min-height: 0; }
  .gm-hero-text { padding: 30px 20px 40px; }
  .btn-primary { align-self: stretch; justify-content: center; }
  .acht { grid-template-columns: 1fr 1fr; gap: 26px 12px; } .fall h3 { font-size: 17px; } .fall .more { font-size: clamp(12.5px, 3.4vw, 14.5px); } .sec-head p { text-wrap: balance; } .fall .foto figcaption { font-size: 13px; padding: 34px 12px 11px; }
  .geht { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } .geht ul.geht-liste { grid-column: auto; grid-row: auto; margin-top: 24px; font-size: 17px; }
  .schritte { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; } .proof-card { height: 300px; }
  .sec { padding-top: 60px; } .stimmen-band { margin-top: 60px; padding: 52px 0 56px; } .closer { margin-top: 64px; }
  .closer-in { padding-top: 48px; padding-bottom: 60px; }
  .gm-vorbild { flex-wrap: wrap; } .gm-vorbild span { flex: 1 1 180px; } .gm-vorbild button { margin-left: 70px; padding: 4px 8px; }
  .gm-spalten { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 22px; }
  .gm-neben { grid-column: auto; grid-row: auto; }
}
@media (max-width: 560px) { .gm-raster { grid-template-columns: minmax(0, 1fr); } }
