/* Open Sans, selbst gehostet (SIL Open Font License) */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/open-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }

/* ============================================================
   PROTOTYP Startseite – Creyation Gafner
   Tokens: hier zentral anpassen
   ============================================================ */
:root {
  --schwarz: #000;
  --weiss: #fff;
  --band: #F0F0EE;      /* hellgraues Band wie im Briefpapier */
  --grau: #6F6F6C;      /* Nebentext */
  --licht: #FFD89A;     /* einzige Farbe ausserhalb der Fotos: das Licht der Lampe */
  --font: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 82rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --sperr: .42em;       /* Laufweite der Wortmarke */
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--weiss); color: var(--schwarz);
  font-family: var(--font); font-weight: 400; font-size: 1.0625rem; line-height: 1.7;
  letter-spacing: .01em; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-weight: 300; line-height: 1.12; margin: 0; letter-spacing: .02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 400; }
p { margin: 0 0 1rem; max-width: 38rem; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); font-weight: 300; }
.meta { color: var(--grau); font-size: .92rem; }
.gesperrt { letter-spacing: var(--sperr); }

/* Buttons */
.btn { display: inline-block; font: 400 1rem var(--font); letter-spacing: .06em; text-decoration: none;
  padding: .9rem 1.5rem; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.btn-voll { background: var(--schwarz); color: var(--weiss); border-color: var(--schwarz); }
.btn-voll:hover { background: var(--weiss); color: var(--schwarz); }
.btn:not(.btn-voll):hover { background: var(--schwarz); color: var(--weiss); }
.textlink { text-decoration: underline; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--weiss); background: transparent;
  transition: background .35s, color .35s, opacity .6s, border-color .35s;
  border-bottom: 1px solid transparent;
  opacity: 0; pointer-events: none;
}
.kopf.sichtbar { opacity: 1; pointer-events: auto; }
.kopf.hell { background: var(--weiss); color: var(--schwarz); border-bottom-color: #0001; }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.wortmarke { text-decoration: none; font-size: .88rem; letter-spacing: var(--sperr); white-space: nowrap; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav a { text-decoration: none; font-size: .95rem; letter-spacing: .06em; }
.nav a:hover { text-decoration: underline; }
.menue { display: none; background: none; border: 1px solid currentColor; color: inherit; font: 400 .9rem var(--font); letter-spacing: .06em; padding: .45rem .8rem; cursor: pointer; }
@media (max-width: 760px) {
  .menue { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--weiss); color: var(--schwarz); display: none; border-bottom: 1px solid #0002; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--pad) 1.25rem; }
  .nav a { display: block; padding: .65rem 0; font-size: 1.1rem; }
  .wortmarke { font-size: .78rem; letter-spacing: .32em; }
}

/* ---------- Einstieg: Karte → Stuhl → Logo ---------- */
.buehne {
  position: relative; height: 100vh; height: 100svh; min-height: 34rem;
  background: #EDEDEB; color: var(--weiss); overflow: hidden;
  display: grid; place-items: center;
  transition: background 900ms ease;
}
.buehne.nacht { background: var(--schwarz); }
.buehne .logo-box { grid-area: 1 / 1; position: relative; z-index: 1; }
/* 3D-Faltung der Visitenkarte (three.js), liegt unter dem Logo */
.falt3d { position: absolute; inset: 0; transition: opacity 900ms ease; }
.falt3d canvas { display: block; width: 100%; height: 100%; }
.nacht .falt3d { opacity: 0; }
.buehne .logo-box { grid-area: 1 / 1; position: relative; z-index: 1; }
.logo-box { display: flex; flex-direction: column; align-items: center; gap: clamp(1.25rem, 3vh, 2.25rem); }
.logo { height: min(60svh, 34rem); width: auto; fill: var(--weiss); overflow: visible; }
.logo g { transition: opacity 700ms ease, transform 900ms cubic-bezier(.2,.7,.2,1); }
.logo .lg-chair, .logo .lg-text, .logo .lg-frame, .logo .lg-lamp { opacity: 0; }
.logo .lg-lamp { transform: translateY(-60px); }
.lg-glow { opacity: 0; transition: opacity 1200ms ease; }
.anspruch { margin: 0; font-weight: 300; font-size: clamp(.9rem, 1.35vw, 1.1rem); letter-spacing: .24em; text-align: center; opacity: 0; transition: opacity 900ms ease; padding: 0 1rem; }
.anspruch span { white-space: nowrap; }
@media (min-width: 720px) { .anspruch { white-space: nowrap; } }

/* Ablauf: play (Faltung läuft) → nacht (Stuhl wird Logo) → licht → fertig */
.nacht .logo .lg-chair { opacity: 1; }
.licht .logo .lg-lamp { opacity: 1; transform: none; }
.licht .logo .lg-text { opacity: 1; transition-delay: 250ms; }
.licht .lg-glow { opacity: 1; transition-delay: 700ms; }
.fertig .logo .lg-frame { opacity: 1; }
.fertig .anspruch { opacity: 1; }
/* Endzustand ohne Animation */
.sofort *, .sofort { transition: none !important; animation: none !important; }
.sofort .falt3d { display: none; }

.buehne-steuerung { position: absolute; right: var(--pad); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 2;
  background: none; border: 1px solid currentColor; color: #000; font: 400 .85rem var(--font); letter-spacing: .06em; padding: .45rem .85rem; cursor: pointer; transition: color .6s; }
.nacht .buehne-steuerung { color: #fff; }
.weiter { position: absolute; left: 50%; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); color: #fff; font-size: .85rem; letter-spacing: .2em; text-decoration: none; opacity: 0; transition: opacity .8s; }
.fertig .weiter { opacity: .75; }
@media (max-width: 600px) { .weiter { display: none; } .buehne-steuerung { bottom: auto; top: calc(5rem + env(safe-area-inset-top, 0px)); } }

/* ---------- Abschnitte ---------- */
section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.kopfzeile-abschnitt { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.kopfzeile-abschnitt p { margin: 1rem 0 0; }

/* Kern */
.kern .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.kern h1 { font-size: clamp(2.5rem, 6.4vw, 5.6rem); letter-spacing: .01em; margin-bottom: 2rem; }
.kern .zitat { font-weight: 300; font-size: 1.15rem; border-left: 1px solid #000; padding-left: 1.25rem; margin: 2rem 0 2.5rem; }
.kern .aktionen { display: flex; flex-wrap: wrap; gap: 1rem; }
.kern figure { margin: 0; }
.kern figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.kern figcaption { margin-top: .75rem; }
@media (max-width: 860px) { .kern .wrap { grid-template-columns: minmax(0, 1fr); } .kern figure { max-width: 26rem; } }

/* Faltlinie als Trenner: durchgezogen = nach hinten, gepunktet = nach vorne */
.faltlinie { height: 24px; margin: 0 auto; max-width: var(--wrap); padding: 0 var(--pad); }
.faltlinie svg { width: 100%; height: 24px; display: block; }

/* Drei Standbeine */
.standbeine ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
@media (max-width: 1100px) { .standbeine ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.standbeine li { display: flex; flex-direction: column; }
.standbeine img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 1.4rem; }
.standbeine h3 { margin-bottom: .8rem; }
.standbeine p { font-size: 1rem; }
.standbeine .textlink { margin-top: auto; padding-top: .5rem; }
@media (max-width: 860px) { .standbeine ul { grid-template-columns: minmax(0, 1fr); } .standbeine img { aspect-ratio: 3 / 2; } }

/* Projekte */
.projekte-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2.5vw, 2rem); }
.projekt { margin: 0; }
.projekt img { width: 100%; height: clamp(15rem, 31vw, 29rem); object-fit: cover; }
.projekt figcaption { margin-top: 1rem; }
.projekt h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.projekt p { margin: .4rem 0 0; font-size: 1rem; }
.s7 { grid-column: span 7; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
@media (max-width: 760px) { .projekte-raster > * { grid-column: 1 / -1; } .projekt img { height: 68vw; } }

/* Frage und Lösung */
.fragen { background: var(--band); }
.frage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid #000; }
.frage:last-child { border-bottom: 1px solid #000; }
.frage img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.frage .q { font-weight: 300; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.2; margin-bottom: 1.2rem; max-width: 30rem; }
.frage:nth-child(even) img { order: 2; }
@media (max-width: 760px) { .frage { grid-template-columns: minmax(0, 1fr); } .frage:nth-child(even) img { order: 0; } }

/* Arbeitsweise (schwarz, wie die Kapitelseiten im Portfolio) */
.ablauf { background: var(--schwarz); color: var(--weiss); }
.ablauf ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: s; position: relative; }
.ablauf ol::before { content: ""; position: absolute; top: .55rem; left: 0; right: 0; border-top: 2px dotted #fff8; }
.ablauf li { counter-increment: s; position: relative; padding-top: 2.4rem; }
.ablauf li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 1.2rem; height: 1.2rem; background: var(--schwarz); font-size: .8rem; line-height: 1.2rem; color: #fffb; }
.ablauf h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 300; letter-spacing: .12em; margin-bottom: 1rem; }
.ablauf p { color: #fffd; font-size: 1rem; }
@media (max-width: 860px) { .ablauf ol { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 3rem; } .ablauf ol::before { display: none; } }
@media (max-width: 520px) { .ablauf ol { grid-template-columns: minmax(0, 1fr); } }

/* Produkte */
.produkte ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.produkte img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--band); margin-bottom: 1rem; }
.produkte h3 { font-size: 1.2rem; letter-spacing: .06em; margin-bottom: .3rem; }
.produkte p { font-size: .98rem; }
.hinweis { margin-top: 2rem; color: var(--grau); }
@media (max-width: 860px) { .produkte ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Über mich */
.ueber .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ueber img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ueber h2 { margin-bottom: 1.5rem; }
@media (max-width: 860px) { .ueber .wrap { grid-template-columns: minmax(0, 1fr); } .ueber figure { max-width: 26rem; } }
.ueber figure { margin: 0; }
.ueber figcaption { margin-top: .75rem; }

/* Referenzen */
.referenzen { padding-top: 0; }
.referenzen .liste { columns: 3 14rem; column-gap: 2rem; list-style: none; padding: 1.5rem 0 0; margin: 0; border-top: 1px solid #000; }
.referenzen li { padding: .3rem 0; break-inside: avoid; }

/* Kontakt */
.kontakt { background: var(--band); }
.kontakt .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.kontakt h2 { margin-bottom: 1.5rem; }
.kontakt address { font-style: normal; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.kontakt address strong { font-weight: 600; display: block; font-size: .95rem; }
form { display: grid; gap: 1.1rem; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
legend { font-size: .95rem; margin-bottom: .6rem; }
.anliegen input { position: absolute; opacity: 0; }
.anliegen label { border: 1px solid #000; padding: .5rem .9rem; cursor: pointer; font-size: .95rem; }
.anliegen input:checked + label { background: #000; color: #fff; }
.anliegen input:focus-visible + label { outline: 2px solid #000; outline-offset: 3px; }
.feld { display: grid; gap: .35rem; }
.feld label { font-size: .95rem; }
input[type=text], input[type=email], textarea { font: inherit; padding: .8rem .9rem; border: 1px solid #000; border-radius: 0; background: #fff; width: 100%; }
textarea { min-height: 9rem; resize: vertical; }
.status { min-height: 1.7em; margin: 0; }
@media (max-width: 860px) { .kontakt .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Fuss */
.fuss { background: var(--schwarz); color: #fffc; padding: 3.5rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.fuss .wortmarke { color: #fff; font-size: .9rem; display: block; margin-bottom: .5rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.fuss a { color: #fff; }


@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============================================================
   Unterseiten
   ============================================================ */
body.unterseite .kopf { opacity: 1; pointer-events: auto; background: var(--weiss); color: var(--schwarz); border-bottom-color: #0001; }
body.unterseite main { padding-top: calc(4.25rem + env(safe-area-inset-top, 0px)); }
.seitenkopf { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.seitenkopf h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); margin-bottom: 1.2rem; }
.seitenkopf p { margin: 0; }

/* Projektübersicht */
.filter { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0; list-style: none; }
.filter button { font: 400 .95rem var(--font); letter-spacing: .04em; border: 1px solid #000; background: #fff; color: #000; padding: .5rem .9rem; cursor: pointer; }
.filter button[aria-pressed="true"] { background: #000; color: #fff; }
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.5vw, 2rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
@media (max-width: 1000px) { .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .karten { grid-template-columns: minmax(0, 1fr); } }
.karte { display: block; text-decoration: none; color: inherit; }
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--band); transition: opacity .3s; }
.karte:hover img { opacity: .88; }
.karte h2 { font-size: 1.3rem; font-weight: 400; margin: 1rem 0 .2rem; letter-spacing: .02em; }
.karte p { margin: .4rem 0 0; font-size: 1rem; }
.karte[hidden] { display: none; }
.marken { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.marke { font-size: .78rem; letter-spacing: .05em; border: 1px solid #0004; padding: .1rem .45rem; color: var(--grau); }

/* Projektseite */
.zurueck { display: inline-block; margin-bottom: 1.5rem; font-size: .95rem; }
.projekt-kopf h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: .8rem; }
.projekt-kopf .meta { font-size: 1rem; }
.projekt-titelbild { margin: clamp(2rem, 4vw, 3rem) 0; }
.projekt-titelbild img { display: block; width: 100%; max-height: 78vh; object-fit: cover; cursor: zoom-in; }
/* Hochformat: ganzes Bild zeigen, mittig auf grauem Band (Klasse setzt seite.js) */
.projekt-titelbild.hoch { background: var(--band); }
.projekt-titelbild.hoch img { width: auto; max-width: 100%; max-height: 84vh; margin: 0 auto; object-fit: contain; }
.projekt-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-bottom: clamp(2rem, 4vw, 3rem); }
.projekt-text .lead { margin-top: 0; }
.fakten { border-top: 1px solid #000; padding-top: 1rem; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; margin: 0; font-size: .98rem; }
.fakten dt { color: var(--grau); }
.fakten dd { margin: 0; }
.frage-box { background: var(--band); padding: clamp(1.5rem, 3vw, 2.5rem); margin: 0 0 clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.frage-box .q { font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; margin: 0; }
@media (max-width: 760px) { .projekt-text, .frage-box { grid-template-columns: minmax(0, 1fr); } }
/* Galerie: zwei Spalten, jedes Bild in seinem eigenen Format (kein Zuschnitt) */
.galerie { columns: 2; column-gap: clamp(.75rem, 2vw, 1.25rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.galerie button { all: unset; cursor: zoom-in; display: block; width: 100%; margin-bottom: clamp(.75rem, 2vw, 1.25rem); break-inside: avoid; }
.galerie button:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.galerie img { display: block; width: 100%; height: auto; background: var(--band); }
@media (max-width: 600px) { .galerie { columns: 1; } }
.blaettern { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #000; padding: 1.5rem 0 clamp(3rem, 6vw, 5rem); flex-wrap: wrap; }
.blaettern a { text-decoration: none; }
.blaettern span { display: block; font-size: .85rem; color: var(--grau); }
.aufruf { background: var(--schwarz); color: var(--weiss); padding: clamp(3rem, 6vw, 5rem) 0; }
.aufruf .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.aufruf h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.aufruf .btn { border-color: #fff; color: #fff; }
.aufruf .btn:hover { background: #fff; color: #000; }

/* Grossansicht */
dialog.gross { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
dialog.gross::backdrop { background: rgba(0,0,0,.94); }
dialog.gross img { position: absolute; inset: 0; margin: auto; max-width: 92vw; max-height: 86vh; object-fit: contain; }
dialog.gross button { position: absolute; background: none; border: 1px solid #fff8; color: #fff; font: 400 .9rem var(--font); letter-spacing: .06em; padding: .5rem .9rem; cursor: pointer; }
dialog.gross .zu { top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; }
dialog.gross .vor { right: 1rem; bottom: 1rem; } dialog.gross .rueck { left: 1rem; bottom: 1rem; }

/* Produktseite */
.produktlinie { padding: 0 0 clamp(3rem, 6vw, 5rem); }
.produktlinie > h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid #000; padding-top: 1.2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.produktlinie .karten { padding-bottom: 0; }
.produktkarte { display: flex; flex-direction: column; }
.produktkarte img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--band); margin-bottom: 1rem; }
.produktkarte h3 a { color: inherit; text-decoration: none; }
.produktkarte h3 a:hover { text-decoration: underline; }
.produktkarte .vorschau { display: flex; gap: .4rem; margin: -.5rem 0 .9rem; flex-wrap: wrap; }
.produktkarte .vorschau button { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; line-height: 0; }
.produktkarte .vorschau button[aria-pressed="true"] { border-color: #000; }
.produktkarte .vorschau img { width: 3.4rem; height: 3.4rem; margin: 0; object-fit: cover; }
.produktkarte h3 { font-size: 1.3rem; letter-spacing: .04em; margin-bottom: .2rem; }
.produktkarte p { margin: .4rem 0 0; font-size: 1rem; }
.produktkarte .btn { align-self: flex-start; margin-top: 1.2rem; }
.farben { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.farbe { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid #0004; background: var(--f); cursor: pointer; padding: 0; }
.farbe[aria-pressed="true"] { outline: 2px solid #000; outline-offset: 2px; }
.farbname { font-size: .9rem; color: var(--grau); margin-left: .3rem; }

/* Casa del Paw */
.cdp-kopf { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: 1rem 0 clamp(2.5rem, 5vw, 4rem); }
.cdp-kopf img { width: 100%; max-width: 20rem; }
.cdp-kopf h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
.konfigurator { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); }
.konf-bild { margin: 0; }
.konf-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--band); }
.konf-bild figcaption { margin-top: .6rem; }
.konf-wahl h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.2rem; }
.konf-wahl fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.konf-wahl legend { font-size: .95rem; margin-bottom: .6rem; }
.konf-wahl legend span { color: var(--grau); margin-left: .4rem; }
.muster { display: flex; flex-wrap: wrap; gap: .55rem; }
.muster .farbe { width: 2.4rem; height: 2.4rem; }
.muster .farbe:disabled { opacity: .18; cursor: not-allowed; }
.holzmuster { margin: 0 0 1.5rem; display: flex; gap: 1rem; align-items: center; }
.holzmuster img { width: 6rem; height: 6rem; object-fit: cover; }
.cdp-zusatz { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; border-top: 1px solid #000; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.cdp-zusatz h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.cdp-zusatz img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.happy { border-top: 1px solid #000; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.happy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.5rem; }
.happy-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.happy-raster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 760px) { .cdp-kopf, .konfigurator, .cdp-zusatz { grid-template-columns: minmax(0, 1fr); } .happy-raster { grid-template-columns: minmax(0, 1fr); } }

/* Über mich */
.ueber-kopf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.ueber-kopf figure { margin: 0; }
.ueber-kopf img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; filter: grayscale(1); }
.ueber-kopf h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); margin-bottom: 1.2rem; }
.karte-geschichte, .werkstatt, .handschrift { border-top: 1px solid #000; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.karte-geschichte h2, .werkstatt h2, .handschrift h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1.5rem; }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.faltmuster { width: 100%; max-width: 22rem; justify-self: center; box-shadow: 0 0 0 1px #0002; }
.karte-geschichte .breit { width: 100%; margin-top: clamp(2rem, 4vw, 3rem); aspect-ratio: 2 / 1; object-fit: cover; }
.werkstatt img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.handschrift ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; }
.handschrift li { border-left: 1px solid #000; padding-left: 1rem; max-width: 34rem; }
.handschrift strong { font-weight: 600; display: block; margin-bottom: .2rem; }
@media (max-width: 760px) { .ueber-kopf, .zweispaltig, .handschrift ul { grid-template-columns: minmax(0, 1fr); } .ueber-kopf figure { max-width: 22rem; } }

/* Textseiten (Impressum, Datenschutz) */
.textseite { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(4rem, 8vw, 7rem); max-width: 50rem; margin-left: 0; }
.textseite h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 2rem; }
.textseite h2 { font-size: 1.25rem; font-weight: 600; margin: 2.2rem 0 .6rem; letter-spacing: .01em; }
.textseite p { max-width: 42rem; }
.danke { background: #fff; padding: 1rem 1.2rem; border-left: 2px solid #000; }

/* ---------- Feinschliff Handyansicht (14.11.2026) ---------- */
/* Lange Wörter in Titeln (z. B. «Datenschutzerklärung») dürfen die Seite nicht verbreitern */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
/* Knöpfe im Fliesstext (z. B. Seite 404) mit Abstand, auch beim Umbruch */
.seitenkopf p .btn { margin: .6rem .4rem 0 0; }
@media (max-width: 600px) {
  /* Einstieg: Knopf unten in der Mitte statt oben über dem Logo */
  .buehne-steuerung { top: auto; right: auto; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); white-space: nowrap; font-size: .8rem; }
  .buehne .logo-box { padding-bottom: 3.25rem; }
  .logo { height: min(54svh, 34rem); }
  /* Kundenliste als fortlaufende Zeilen statt 25 Einzelzeilen */
  .referenzen .liste { columns: auto; line-height: 2; }
  .referenzen li { display: inline-block; max-width: 100%; padding: 0; margin-right: .55em; }
  .referenzen li:not(:last-child)::after { content: "·"; margin-left: .55em; color: var(--grau); }
}
/* Fingerbedienung: Ziele mindestens rund 44 Pixel */
@media (pointer: coarse) {
  .menue { min-height: 2.75rem; padding-left: 1rem; padding-right: 1rem; }
  .filter button { min-height: 2.75rem; }
  .farbe, .muster .farbe { width: 2.75rem; height: 2.75rem; }
  .fuss ul { gap: .5rem 1.5rem; }
  .fuss ul a { display: inline-block; padding: .65rem 0; }
  .zurueck, .textlink { display: inline-block; padding: .55rem 0; }
}
