/* Kreativmetall – öffentliche Seite. Mobil zuerst, dann breiter. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block; /* kurz warten statt Ersatzschrift anzeigen und umspringen */
}

/* Seitenwechsel ohne Blinken: der Browser blendet weich über,
   Kopfleiste und Logo bleiben stehen (Chrome, Edge, Safari 18+; ältere Browser laden normal) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
.kopf { view-transition-name: kopf; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Fließtext-Schriften zum Vergleichen (SIL Open Font License, liegen in assets/schriften) */
@font-face { font-family: "IBM Plex Sans"; src: url("schriften/ibm-plex-sans.woff2") format("woff2"); font-weight: 100 700; font-stretch: 85% 100%; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("schriften/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("schriften/barlow-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("schriften/barlow-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("schriften/barlow-semibold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
html[data-text="plex"]   { --fliesstext: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; }
html[data-text="source"] { --fliesstext: "Source Sans 3", "Helvetica Neue", Arial, sans-serif; }
html[data-text="archivo"] { --fliesstext: var(--schrift); }
/* Überschriften, Namen und Nummern bleiben in der schmalen Archivo */
h1, h2, h3, .tel-nr, .marke-name, .hauptnav a, .schritte li::before, .personen a, .g-anfrage p, .fuss-name, .fuss-tel strong { font-family: var(--schrift); }
.darstellung .vorschau-plex { font-family: "IBM Plex Sans", sans-serif; }
.darstellung .vorschau-source { font-family: "Source Sans 3", sans-serif; }
.darstellung .vorschau-barlow { font-family: "Barlow", sans-serif; }
.darstellung .vorschau-archivo { font-family: var(--schrift); }

/* Akzent Version 2: Orange RGB 224, 92, 0 */
html[data-akzent="2"] { --gelb: #E05C00; --gelb-hover: #F26A0C; --gelb-zart: rgba(224, 92, 0, .15); --auf-gelb: #FFFFFF; }

:root {
  --zink: #E3E6E7;
  --zink-2: #CBD1D3;
  --anthrazit: #383E42;
  --graphit: #22282B;
  --weiss: #FFFFFF;
  --gelb: #F2A900;        /* Akzent Version 1 */
  --gelb-hover: #FFBC1F;
  --gelb-zart: rgba(242, 169, 0, .15);
  --auf-gelb: #22282B;    /* Schrift auf Akzentflächen */
  --grau: #596267;
  --nacht: #1E2326;      /* Grund Kopfbereich – identisch mit Zeichnungs-Papier 'dunkel' */
  --nacht-linie: #2C3337;
  --hellgrau: #B9C1C5;
  --max: 1200px;
  --rand: clamp(1.1rem, 4vw, 2.5rem);
  --schrift: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --fliesstext: "Barlow", "Helvetica Neue", Arial, sans-serif; /* Standard; über „Darstellung“ umschaltbar */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scrollbar-gutter: stable; overflow-y: scroll; }
/* Bis die Seite fertig ist, keine Übergänge – sonst wackeln Logo und Kopf beim Laden */
html:not(.bereit) *, html:not(.bereit) *::before, html:not(.bereit) *::after { transition: none !important; }
body { margin: 0; font-family: var(--fliesstext); font-size: 1.0625rem; line-height: 1.6; color: var(--graphit); background: var(--weiss); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
h1, h2, h3 { font-stretch: 75%; font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 6vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: 64ch; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }
.wrap.schmal { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--gelb); color: var(--auf-gelb); padding: .6rem 1rem; }
.skip:focus { left: 1rem; }

/* Knöpfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.4rem; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer; }
.knopf-gelb { background: var(--gelb); color: var(--auf-gelb); }
.knopf-gelb:hover { background: var(--gelb-hover); }
.knopf-linie { border-color: var(--anthrazit); color: var(--anthrazit); background: transparent; }
.knopf-linie:hover, .knopf-linie-dunkel:hover { background: rgba(56, 62, 66, .08); }
.knopf-linie-dunkel { border-color: var(--graphit); color: var(--graphit); background: transparent; }

/* Anrufzeile (ganz oben) */
.anrufzeile { background: #14181A; color: var(--weiss); padding-top: env(safe-area-inset-top, 0px); font-size: .9rem; }
.anrufzeile-innen { display: grid; grid-template-columns: 1fr 1fr; padding-left: 0; padding-right: 0; }
.slogan, .mail { display: none; }
.tel-nr { font-stretch: 75%; font-weight: 700; font-size: 1rem; }
.tel { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; text-decoration: none; font-weight: 500; }
.tel + .tel { border-left: 1px solid #3A4246; }
.tel-icon { color: var(--gelb); flex: none; }
.tel:hover .tel-nr { color: var(--gelb); }
@media (min-width: 980px) {
  .anrufzeile-innen { display: flex; align-items: center; gap: 1.8rem; min-height: 40px; padding-left: var(--rand); padding-right: var(--rand); }
  .slogan { display: block; color: #8C969B; margin-right: auto; }
  .tel { min-height: 40px; gap: .5rem; }
  .tel + .tel { border-left: 0; }
  .tel-nr { font-size: 1.05rem; }
  .mail { display: block; color: var(--hellgrau); text-decoration: none; }
  .mail:hover { color: var(--weiss); }
}

/* Hauptleiste mit Maßband */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--graphit); color: var(--weiss); border-bottom: 1px solid #3A4246; }
.kopf-innen { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.kopf-innen { position: relative; }
.marke-text { display: flex; flex-direction: column; transition: padding-left .25s ease; }
.marke-zusatz { display: none; font-size: .8rem; color: #8C969B; margin-top: .2rem; }
/* Logo als Schild mit gelber Kante, hängt ein kleines Stück unter die Leiste */
.logo-schild { position: absolute; z-index: 3; left: var(--rand); top: 6px; width: 70px; height: 74px; background: #3F3F40; border-bottom: 4px solid var(--gelb); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 6px 14px rgba(0, 0, 0, .5); transition: width .25s ease, height .25s ease, top .25s ease; }
.logo-schild img { display: block; width: 100%; height: calc(100% - 0px); object-fit: cover; }
.mit-logo .marke-text { padding-left: 84px; }
.mit-logo .kopf.klein .logo-schild { width: 52px; height: 55px; top: 7px; border-bottom-width: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.mit-logo .kopf.klein .marke-text { padding-left: 66px; }
.mit-logo .hero-innen { padding-top: calc(clamp(2.2rem, 6vw, 4.5rem) + .6rem); }
.marke-name { font-stretch: 68%; font-weight: 800; font-size: 1.7rem; line-height: 1; }
.menu-knopf { min-height: 44px; padding: .4rem .9rem; font: inherit; font-weight: 600; color: var(--weiss); background: none; border: 2px solid var(--hellgrau); border-radius: 2px; cursor: pointer; }
.kopf.offen .menu-knopf { background: var(--gelb); border-color: var(--gelb); color: var(--graphit); }
/* Handy: alles etwas filigraner */
@media (max-width: 979px) {
  .menu-knopf { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .8rem; font-weight: 500; font-size: .9rem; border-width: 1px; border-color: #5B6469; }
  .kopf.offen .menu-knopf { background: transparent; color: var(--gelb); border-color: var(--gelb); }
  .hauptnav ul a { font-stretch: 100%; font-weight: 400; font-size: 1rem; padding: .75rem 0; color: var(--hellgrau); }
  .hauptnav ul a[aria-current="page"] { color: var(--weiss); font-weight: 500; }
  .kopf-anfrage { font-weight: 500; font-size: .95rem; min-height: 44px; }
  .marke-name { font-weight: 700; font-size: 1.5rem; }
  .tel { font-weight: 400; font-size: .85rem; }
  .hero h1 { font-weight: 700; }
  .g-kopf h1 { font-weight: 700; }
  h2 { font-weight: 600; }
  h3 { font-weight: 600; }
  .knopf { font-weight: 500; }
}
.massband {
  height: 7px;
  background-color: var(--gelb);
  background-image: repeating-linear-gradient(90deg, var(--graphit) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, var(--graphit) 0 2px, transparent 2px 50px);
  background-size: 100% 3px, 100% 5px;
  background-repeat: no-repeat;
}
.hauptnav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1px); background: var(--graphit); padding: .3rem var(--rand) 1.4rem; max-height: calc(100vh - 120px); overflow-y: auto; box-shadow: 0 12px 24px rgba(0, 0, 0, .35); }
.kopf.offen .hauptnav { display: block; }
.hauptnav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.hauptnav ul a { position: relative; display: block; padding: .7rem 0; font-stretch: 75%; font-weight: 700; font-size: 1.9rem; line-height: 1.1; text-decoration: none; color: var(--weiss); border-bottom: 1px solid #3A4246; }
.hauptnav ul a[aria-current="page"] { color: var(--gelb); }
.mass-linie { display: none; }
.kopf-anfrage { width: 100%; }

@media (min-width: 980px) {
  .kopf-innen { gap: 2rem; }
  .kopf-innen { min-height: 92px; }
  .marke-zusatz { display: block; }
  .logo-schild { top: 8px; width: 108px; height: 113px; border-bottom-width: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 8px 18px rgba(0, 0, 0, .5); }
  .mit-logo .marke-text { padding-left: 130px; }
  .mit-logo .kopf.klein .logo-schild { width: 72px; height: 76px; top: 8px; }
  .mit-logo .kopf.klein .marke-text { padding-left: 94px; }
  .marke-name { font-size: 2rem; }
  .menu-knopf { display: none; }
  .massband { height: 9px; background-size: 100% 4px, 100% 7px; }
  .hauptnav { display: flex !important; position: static; align-items: center; gap: 2.2rem; padding: 0; background: none; box-shadow: none; max-height: none; overflow: visible; align-self: stretch; }
  .hauptnav ul { display: flex; gap: 2rem; margin: 0; align-self: stretch; }
  .hauptnav ul a { display: flex; align-items: center; height: 100%; padding: 0; font-stretch: 100%; font-weight: 500; font-size: 1.02rem; color: var(--hellgrau); border: 0; }
  .hauptnav ul a:hover, .hauptnav ul a[aria-current="page"] { color: var(--weiss); }
  .mass-linie { display: block; position: absolute; left: 0; right: 0; bottom: 16px; width: 100%; height: 12px; overflow: visible; fill: none; stroke: var(--gelb); stroke-width: 2; opacity: 0; transform: scaleX(.6); transition: opacity .2s, transform .2s; }
  .hauptnav ul a:hover .mass-linie, .hauptnav ul a:focus-visible .mass-linie, .hauptnav ul a[aria-current="page"] .mass-linie { opacity: 1; transform: none; }
  .kopf-anfrage { width: auto; }
}
@media (min-width: 980px) and (max-width: 1150px) {
  .hauptnav ul { gap: 1.3rem; }
  .hauptnav { gap: 1.4rem; }
}

/* Einstieg mit wechselnder Werkstattzeichnung */
.hero, .g-kopf {
  background-color: var(--nacht);
  background-image: linear-gradient(var(--nacht-linie) 1px, transparent 1px), linear-gradient(90deg, var(--nacht-linie) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--weiss);
}
.hero .knopf-linie { border-color: var(--hellgrau); color: var(--weiss); }
.hero .knopf-linie:hover { background: rgba(255, 255, 255, .08); }
.hero-innen { display: grid; gap: 2rem; padding-top: clamp(2.2rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-stretch: 62%; font-weight: 800; font-size: clamp(3.4rem, 14vw, 7.5rem); line-height: .88; color: var(--weiss); }
.hero-text p { font-size: 1.15rem; margin: 1.3rem 0 1.5rem; color: var(--hellgrau); }
.hero-blaetter { display: grid; }
.hero-blatt { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.hero-blatt.aktiv { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.hero-blatt .zeichnung { width: 100%; height: auto; }
.schriftfeld { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--nacht); border: 2px solid #5B6469; margin-top: .5rem; }
.sf-zeile { padding: .45rem .7rem; border-right: 1px solid #5B6469; border-bottom: 1px solid #5B6469; display: flex; flex-direction: column; min-width: 0; }
.sf-voll { grid-column: 1 / -1; border-right: 0; }
.sf-zeile:last-child { border-right: 0; }
.sf-zeile:nth-last-child(-n+3) { border-bottom: 0; }
.sf-label { font-size: .72rem; color: #8C969B; }
.sf-wert { font-weight: 600; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.sf-akzent { background: var(--gelb); color: var(--auf-gelb); }
[data-projekt-feld] { min-height: 2.6em; }
.sf-akzent .sf-label { color: var(--auf-gelb); }
.hero-punkte { display: flex; gap: .2rem; margin-top: .6rem; flex-wrap: wrap; }
.hero-punkt { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero-punkt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 6px; transform: translate(-50%, -50%); background: #3A4246; border: 1px solid #5B6469; }
.hero-punkt[aria-pressed="true"]::after { background: var(--gelb); border-color: var(--gelb); }

/* Auf dem Handy und Tablet hochkant keine Zeichnungen im Kopf, nur Text und Knöpfe */
@media (max-width: 899px) { .hero-zeichnung { display: none; } }
@media (min-width: 900px) {
  .hero-innen { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
  .schriftfeld { max-width: 540px; margin-left: auto; }
  .hero-punkte { justify-content: flex-end; }
}

/* Leistungen */
.leistungen { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.einleitung { display: grid; gap: 1.2rem; margin-bottom: 2.5rem; }
.einleitung p { margin: 0; color: var(--grau); }
.raster { display: grid; gap: 2.4rem 1.6rem; grid-template-columns: minmax(0, 1fr); }
.kachel { display: flex; flex-direction: column; text-decoration: none; }
.kachel .foto { aspect-ratio: 4 / 3; overflow: hidden; background: var(--zink); }
.kachel .foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kachel:hover .foto img { transform: scale(1.03); }
.kachel h3 { margin-top: 1rem; }
.kachel p { color: var(--grau); margin: .35rem 0 .5rem; font-size: 1rem; }
.kachel-mehr { display: inline-flex; align-items: center; gap: .6rem; margin-top: .3rem; font-weight: 600; font-size: .95rem; color: var(--graphit); }
.kachel-zahl { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1rem; height: 1.75rem; padding: 0 .4rem; font-family: var(--schrift); font-stretch: 75%; font-weight: 700; font-size: 1.05rem; border: 2px solid var(--anthrazit); background: var(--weiss); transition: background .2s, border-color .2s; }
.kachel-mehr-text { position: relative; }
.kachel-pfeil { width: 26px; height: 12px; overflow: visible; fill: none; stroke: var(--anthrazit); stroke-width: 2; stroke-linecap: square; transition: width .25s ease, stroke .2s; }
.kachel:hover .kachel-zahl, .kachel:focus-visible .kachel-zahl { background: var(--gelb); border-color: var(--gelb); color: var(--auf-gelb); }
.kachel:hover .kachel-pfeil, .kachel:focus-visible .kachel-pfeil { width: 40px; stroke: var(--gelb); }
.kachel:hover h3 { text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 3px; text-underline-offset: 6px; }

@media (min-width: 640px) {
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kachel.gross { grid-column: 1 / -1; }
  .kachel.gross .foto { aspect-ratio: 16 / 9; }
}
@media (min-width: 980px) {
  .einleitung { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
  .raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kachel.gross { grid-column: span 2; }
  .kachel.gross h3 { font-size: 2rem; }
}

/* Platzhalter (gezeichnet) */
.platzhalter { position: relative; width: 100%; height: 100%; min-height: 100%; background-color: var(--zink); background-image: linear-gradient(var(--zink-2) 1px, transparent 1px), linear-gradient(90deg, var(--zink-2) 1px, transparent 1px); background-size: 20px 20px; display: flex; align-items: center; justify-content: center; }
.platzhalter .zeichnung { width: 86%; height: 86%; }
.platzhalter-text { position: absolute; left: .6rem; bottom: .5rem; font-size: .8rem; font-weight: 600; background: var(--weiss); border: 1px solid var(--anthrazit); padding: .1rem .45rem; }

/* Ablauf */
.ablauf { background: var(--zink); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.schritte { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; counter-reset: s; }
.schritte li { counter-increment: s; border-top: 4px solid var(--anthrazit); padding-top: 1.2rem; }
.schritte li::before { content: counter(s); display: block; font-stretch: 62%; font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--anthrazit); margin-bottom: .6rem; }
.schritte p { color: var(--grau); margin: .5rem 0 0; }
.ablauf .hinweis { margin: 2.5rem 0 0; font-weight: 500; }
@media (min-width: 800px) { .schritte { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Tonie */
.tonie { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.tonie-innen { display: grid; gap: 2.5rem; align-items: center; }
.tonie-bilder { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: .6rem; aspect-ratio: 4 / 3.2; }
.tonie-bilder figure { margin: 0; overflow: hidden; background: var(--zink); min-height: 0; }
.tonie-bilder figure:first-child { grid-row: span 2; }
.tonie-bilder img { width: 100%; height: 100%; object-fit: cover; }
.tonie-text p { margin-top: 1.1rem; }
.merkmale { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.merkmale li { padding: .55rem 0; border-bottom: 1px solid var(--zink-2); }
@media (min-width: 900px) { .tonie-innen { grid-template-columns: 6fr 5fr; gap: 4rem; } }

/* Über uns: Werkstatt-Collage auf Millimeterpapier */
.ueber {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  background-color: var(--zink);
  background-image: linear-gradient(var(--zink-2) 1px, transparent 1px), linear-gradient(90deg, var(--zink-2) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ueber-innen { display: grid; gap: 2.5rem; align-items: center; }
.ueber-collage { position: relative; height: 470px; max-width: 620px; width: 100%; margin: 0 auto; }
.abzug { position: absolute; margin: 0; background: var(--weiss); padding: 6px; box-shadow: 0 8px 22px rgba(34, 40, 43, .25); }
.abzug img { display: block; width: 100%; height: 100%; object-fit: cover; }
.abzug-duo { left: 0; top: 0; width: 57%; height: 66%; }
.abzug-duo img { object-position: 50% 30%; }
.abzug-team { right: 0; bottom: 0; width: 72%; height: 42%; }
.abzug-team img { object-position: 50% 55%; }
.ueber-sf { background: var(--weiss); border: 2px solid var(--anthrazit); padding: .3rem .7rem; line-height: 1.25; }
.ueber-sf span { display: block; font-size: .7rem; color: var(--grau); }
.ueber-sf strong { font-weight: 600; font-size: .92rem; }
.ueber-sf-gezeichnet { position: absolute; right: 0; top: 1.5rem; display: none; }
.ueber-sf-reihe { position: absolute; left: 0; bottom: .6rem; display: flex; }
.ueber-sf-reihe .ueber-sf + .ueber-sf { margin-left: -2px; }
.ueber-sf-akzent { background: var(--gelb); }
.ueber-sf-akzent span, .ueber-sf-akzent strong { color: var(--auf-gelb); }
.ueber-text h2 { color: var(--anthrazit); }
.ueber-text > p { margin-top: 1rem; }
.kicker { margin: 0 0 .5rem !important; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.ueber-knopf { margin-top: 1.8rem; }
/* Eckdaten im Stil der Schriftfeld-Kästchen */
.fakten { margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 30rem; border-top: 2px solid var(--anthrazit); border-left: 2px solid var(--anthrazit); }
.fakt { background: var(--weiss); border-right: 2px solid var(--anthrazit); border-bottom: 2px solid var(--anthrazit); padding: .4rem .75rem .45rem; min-width: 0; }
.fakt-breit { grid-column: 1 / -1; }
.fakt dt { font-size: .72rem; font-weight: 400; color: var(--grau); line-height: 1.3; }
.fakt dd { margin: 0; font-weight: 600; line-height: 1.35; color: var(--graphit); overflow-wrap: anywhere; }
.versprechen { margin: 1.6rem 0 1.8rem; padding: .2rem 0 .2rem 1rem; border-left: 4px solid var(--gelb); }
.versprechen p { margin: .4rem 0 0; color: var(--grau); }
.versprechen .versprechen-titel { margin: 0; font-family: var(--schrift); font-stretch: 68%; font-weight: 800; font-size: 1.7rem; line-height: 1.05; color: var(--anthrazit); }
@media (min-width: 560px) {
  .ueber-collage { height: 560px; }
  .ueber-sf-gezeichnet { display: block; }
}
@media (min-width: 900px) {
  .ueber-innen { grid-template-columns: 7fr 5fr; gap: 4.5rem; }
  .ueber-collage { height: 620px; max-width: none; }
  .abzug { padding: 8px; }
  .abzug-duo { width: 50%; height: 78%; }
  .abzug-team { width: 58%; height: 45%; }
  .ueber-sf-gezeichnet { right: auto; left: calc(50% + 1.2rem); top: 2.5rem; }
}

/* Kontakt */
.kontakt { background: var(--anthrazit); color: var(--weiss); padding: clamp(3.5rem, 9vw, 7rem) 0; }
.kontakt-innen { display: grid; gap: 3rem; }
.kontakt-daten p { color: #D5DADC; margin-top: 1.1rem; }
.personen { list-style: none; padding: 0; margin: 1.8rem 0; }
.personen li { padding: .9rem 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.personen a { display: inline-flex; align-items: center; gap: .7rem; font-stretch: 75%; font-weight: 700; font-size: 1.4rem; text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
.personen a .tel-icon { flex: none; }
.personen-mail { font-size: 1.2rem !important; }
.personen a:hover { color: var(--gelb); }
.kontakt address { font-style: normal; color: #D5DADC; }
.formular { display: grid; gap: 1.1rem 1.2rem; grid-template-columns: minmax(0, 1fr); align-content: start; }
.formular label { display: block; font-size: .95rem; font-weight: 500; margin-bottom: .35rem; }
.optional { font-weight: 400; color: #C2C9CC; }
.formular input, .formular select, .formular textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--graphit); background: var(--weiss); border: 2px solid transparent; border-radius: 2px; padding: .75rem .85rem; min-height: 48px; }
.formular textarea { resize: vertical; min-height: 150px; }
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: none; border-color: var(--gelb); }
.formular .check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; font-weight: 400; color: #D5DADC; }
.formular .check input { width: 22px; min-height: 22px; height: 22px; margin-top: .15rem; flex: none; accent-color: var(--gelb); }
.formular .check a { color: var(--weiss); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { margin: 0; padding: .9rem 1rem; border-left: 4px solid var(--gelb); background: var(--gelb-zart); }
.meldung ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.meldung p { margin: 0; }
.meldung-fehler { border-left-color: #FF8A80; background: rgba(255, 138, 128, .15); }
.meldung-hinweis { color: var(--graphit); }
@media (min-width: 640px) { .formular { grid-template-columns: 1fr 1fr; } .voll { grid-column: 1 / -1; } }
@media (min-width: 980px) { .kontakt-innen { grid-template-columns: 4fr 6fr; gap: 5rem; } }

/* Galerie */
/* Galerie-Kopf: immer gleich hoch, damit beim Wechseln der Rubrik nichts springt */
.g-kopf-innen { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1.5rem; height: 250px; padding-top: 1.2rem; padding-bottom: 1rem; overflow: hidden; }
.g-zurueck { display: inline-flex; align-items: center; min-height: 36px; font-size: .9rem; color: var(--hellgrau); }
.g-zurueck:hover { color: var(--weiss); }
.g-kopf h1 { font-stretch: 62%; font-weight: 800; font-size: clamp(2.2rem, 9vw, 3rem); line-height: .95; color: var(--weiss); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-kopf-text p { margin: .7rem 0 0; color: var(--hellgrau); font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-kopf-zeichnung { display: none; }
@media (min-width: 860px) {
  .g-kopf-innen { grid-template-columns: 3fr 2fr; height: 340px; padding-top: 2.4rem; padding-bottom: 1.4rem; }
  .g-kopf h1 { font-size: clamp(2.8rem, 4.4vw, 3.8rem); }
  .g-kopf-text p { font-size: 1.05rem; -webkit-line-clamp: 4; }
  .g-kopf-zeichnung { display: flex; justify-content: flex-end; align-items: center; height: 100%; min-height: 0; }
  .g-kopf-zeichnung .zeichnung { width: auto; height: 100%; max-height: 270px; max-width: 100%; }
}

/* Rubrik-Auswahl: Handy = Auswahlfeld mit Pfeilen, Desktop = eine Zeile mit kleinen Pfeilen */
.g-wahl { border-bottom: 1px solid var(--zink-2); background: var(--weiss); }
.g-wahl-innen { display: flex; align-items: center; gap: .5rem; height: 76px; }
.g-blaettern { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 52px; text-decoration: none; color: var(--graphit); border: 2px solid var(--zink-2); border-radius: 2px; }
.g-blaettern:hover { border-color: var(--anthrazit); }
.g-pfeil { font-size: 1.5rem; line-height: 1; }
.g-blaettern-text { display: none; }
.g-namen { display: none; }
.g-auswahl { flex: 1 1 auto; position: relative; min-width: 0; }
.g-auswahl label { position: absolute; left: .85rem; top: .45rem; font-size: .7rem; color: var(--hellgrau); pointer-events: none; }
.g-auswahl select { width: 100%; min-height: 52px; padding: 1.05rem 2.4rem .3rem .85rem; font: inherit; font-weight: 600; font-size: 1rem; color: var(--weiss); background: var(--anthrazit); border: 0; border-radius: 2px; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--weiss) 50%), linear-gradient(135deg, var(--weiss) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.g-auswahl select:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
.g-auswahl noscript .knopf { margin-top: .5rem; }
@media (min-width: 1000px) {
  .g-wahl-innen { gap: 1rem; height: 64px; }
  .g-blaettern { width: 44px; height: 44px; }
  .g-auswahl { display: none; }
  .g-namen { flex: 1 1 auto; display: flex; flex-wrap: nowrap; justify-content: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; min-width: 0; }
  .g-namen a { display: inline-block; padding: .5rem 0; font-weight: 600; font-size: .95rem; white-space: nowrap; text-decoration: none; color: var(--grau); border-bottom: 3px solid transparent; }
  .g-namen a:hover { color: var(--graphit); }
  .g-namen a[aria-current="page"] { color: var(--graphit); border-bottom-color: var(--gelb); }
}
@media (min-width: 1000px) and (max-width: 1100px) { .g-namen { gap: .9rem; } .g-namen a { font-size: .9rem; } }

.g-inhalt { padding: 2rem 0 clamp(3.5rem, 9vw, 6rem); }
.g-anzahl { color: var(--grau); font-size: .95rem; }
.g-raster { display: grid; gap: 2rem 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.g-bild { margin: 0; }
.g-bild > a, .g-bild > .platzhalter { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--zink); }
.g-bild img { width: 100%; height: 100%; object-fit: cover; }
.g-link { cursor: zoom-in; }
.g-bild figcaption { margin-top: .6rem; line-height: 1.4; }
.g-anfrage { margin-top: 3rem; padding: 1.6rem; background: var(--zink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.g-anfrage p { margin: 0; font-stretch: 75%; font-weight: 700; font-size: 1.6rem; line-height: 1.15; }

/* Großansicht */
.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); border: 0; background: rgba(34, 40, 43, .96); color: var(--weiss); }
.lightbox[open] { display: flex; flex-direction: column; gap: 1rem; }
.lightbox::backdrop { background: rgba(34, 40, 43, .9); }
.lb-oben, .lb-unten { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 1100px; width: 100%; margin: 0 auto; }
.lb-unten { justify-content: flex-end; }
.lb-bild { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; }
.lb-bild img { max-width: 100%; max-height: calc(100% - 3rem); object-fit: contain; }
.lb-bild figcaption { font-size: 1.05rem; text-align: center; }
.lb-zaehler { color: #C2C9CC; font-size: .95rem; }
.lb-knopf { min-height: 44px; padding: .5rem 1rem; font: inherit; font-weight: 600; color: var(--weiss); background: none; border: 2px solid var(--weiss); border-radius: 2px; cursor: pointer; }
.lb-gelb { background: var(--gelb); border-color: var(--gelb); color: var(--auf-gelb); }

/* Textseiten */
.text-seite, .leer-seite { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.text-seite h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); margin-bottom: 1.5rem; }
.text-seite h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
.leer-seite h1 { margin-bottom: 1.5rem; }

/* Fuß */
.fuss { background: #14181A; color: var(--hellgrau); font-size: .95rem; padding-bottom: env(safe-area-inset-bottom, 0px); }
.massband-fuss { background-image: repeating-linear-gradient(90deg, #14181A 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, #14181A 0 2px, transparent 2px 50px); }
.fuss-raster { display: grid; gap: 1.6rem; padding-top: 2rem; padding-bottom: 1.6rem; }
.fuss-spalte { display: flex; flex-direction: column; gap: .3rem; }
.fuss-name { font-stretch: 68%; font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--weiss); margin-bottom: .4rem; }
.fuss address { font-style: normal; line-height: 1.6; }
.fuss-label { font-size: .78rem; color: #8C969B; }
.fuss a { color: var(--hellgrau); }
.fuss-tel { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.fuss-tel strong { font-stretch: 75%; font-size: 1.25rem; color: var(--weiss); }
.fuss-tel:hover strong { color: var(--gelb); }
.fuss-admin { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: 0 1.1rem; border: 2px solid #5B6469; border-radius: 2px; text-decoration: none; font-weight: 600; color: var(--weiss) !important; }
.fuss-admin svg { color: var(--gelb); }
.fuss-admin:hover { border-color: var(--gelb); }
.fuss-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (min-width: 800px) { .fuss-knoepfe { justify-content: flex-end; } }
.fuss-theme { font: inherit; font-weight: 600; background: none; cursor: pointer; }
.theme-punkte { display: inline-flex; }
.theme-punkt { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #14181A; }
.theme-punkt + .theme-punkt { margin-left: -5px; }
.theme-1 { background: #F2A900; }
.theme-2 { background: #E05C00; }
html[data-akzent="2"] .fuss-theme .theme-1 { order: 2; margin-left: -5px; }
html[data-akzent="2"] .fuss-theme .theme-2 { order: 1; margin-left: 0; }

/* Flyout „Darstellung“ */
.darstellung-wrap { position: relative; }
.darstellung { max-height: calc(100vh - 120px); overflow-y: auto; position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 20; width: min(300px, calc(100vw - 2 * var(--rand))); padding: .9rem 1rem; background: var(--graphit); color: var(--weiss); border: 1px solid #5B6469; box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }
@media (max-width: 799px) { .darstellung { right: auto; left: 0; } }
.darstellung fieldset { border: 0; margin: 0; padding: 0; }
.darstellung fieldset + fieldset { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid #3A4246; }
.darstellung legend { font-size: .78rem; color: #8C969B; padding: 0; margin-bottom: .3rem; }
.darstellung label { display: flex; align-items: center; gap: .55rem; min-height: 40px; cursor: pointer; font-size: .95rem; }
.darstellung input { width: 18px; height: 18px; margin: 0; accent-color: var(--gelb); }
.darstellung .theme-punkt { border-color: var(--graphit); }

/* Niedriger Kopf auf der Startseite (wie Galerien) */
html[data-kopf="niedrig"] .hero-innen { padding-top: 1.6rem; padding-bottom: 1.6rem; }
html[data-kopf="niedrig"] .hero h1 { font-size: clamp(2.6rem, 10vw, 3.8rem); }
html[data-kopf="niedrig"] .hero-text p { margin: .9rem 0 1.1rem; font-size: 1.05rem; }
html[data-kopf="niedrig"] .schriftfeld { display: none; }
html[data-kopf="niedrig"] .hero-punkte { margin-top: .2rem; justify-content: flex-end; }
@media (min-width: 900px) {
  html[data-kopf="niedrig"] .hero-innen { grid-template-columns: 3fr 2fr; height: 340px; padding-top: 2.4rem; padding-bottom: 1.4rem; overflow: hidden; }
  html[data-kopf="niedrig"] .hero-zeichnung { height: 100%; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }
  html[data-kopf="niedrig"] .hero-blaetter { flex: 1 1 auto; min-height: 0; width: 100%; }
  html[data-kopf="niedrig"] .hero-blatt { height: 100%; display: flex; justify-content: flex-end; align-items: center; }
  html[data-kopf="niedrig"] .hero-blatt .zeichnung { width: auto; height: 100%; max-height: 230px; max-width: 100%; }
  html[data-kopf="niedrig"] .hero-punkte { flex: none; margin-top: .3rem; }
}
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding-top: 1rem; padding-bottom: 1.2rem; border-top: 1px solid #2C3337; font-size: .88rem; color: #8C969B; }
.fuss-unten nav { display: flex; gap: 1.4rem; }
.fuss-unten a { text-decoration: none; }
.fuss-unten a:hover { color: var(--weiss); }
@media (min-width: 800px) {
  .fuss-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; padding-top: 2.6rem; }
  .fuss-rechts { align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .mass-strich { animation: none !important; }
  .hero-blatt, .hero-blatt.aktiv, .kachel .foto img, .mass-linie, .kachel-pfeil, .kachel-zahl, .logo-schild, .marke-text { transition: none; }
}

/* ---------- Kopf „Band“: niedrig, Maßkette unter der Überschrift, Zeichnung als Blaupause, Schriftfeld als Leiste ---------- */
.hero-mass { display: none; }
.hero { position: relative; }
html[data-kopf="band"] .hero { overflow: hidden; }
html[data-kopf="band"] .hero-innen { padding-top: 2rem; padding-bottom: 2.2rem; }
html[data-kopf="band"] .hero-titel { display: inline-block; max-width: 100%; }
html[data-kopf="band"] .hero h1 { font-size: clamp(3rem, 12vw, 5.6rem); line-height: .9; }
html[data-kopf="band"] .hero-mass { display: flex; align-items: center; gap: .7rem; height: 20px; margin-top: .9rem; padding: 0 1px; color: var(--gelb); border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
html[data-kopf="band"] .mass-strich { position: relative; flex: 1 1 auto; height: 2px; background: currentColor; transform-origin: left center; animation: mass-ziehen .9s .3s cubic-bezier(.6, 0, .2, 1) both; }
html[data-kopf="band"] .mass-rechts { transform-origin: right center; }
html[data-kopf="band"] .mass-links::before, html[data-kopf="band"] .mass-rechts::after { content: ""; position: absolute; top: -4px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
html[data-kopf="band"] .mass-links::before { left: 0; border-right: 9px solid currentColor; }
html[data-kopf="band"] .mass-rechts::after { right: 0; border-left: 9px solid currentColor; }
html[data-kopf="band"] .mass-text { flex: none; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
@keyframes mass-ziehen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html[data-kopf="band"] .hero-text p { margin: 1rem 0 1.2rem; max-width: 34em; }
@media (min-width: 900px) {
  html[data-kopf="band"] .hero-innen { grid-template-columns: 1fr; height: 420px; padding-top: 2.4rem; padding-bottom: calc(52px + 2rem); align-content: center; }
  html[data-kopf="band"] .hero-text { position: relative; z-index: 2; max-width: 660px; }
  html[data-kopf="band"] .hero h1 { white-space: nowrap; }
  html[data-kopf="band"] .hero-zeichnung { position: static; }
  /* Zeichnung: feste Fläche rechts, eigene Proportion, dezent wie eine Blaupause */
  html[data-kopf="band"] .hero-blaetter { position: absolute; z-index: 1; top: 2rem; height: calc(100% - 52px - 4.6rem); right: max(var(--rand), calc((100% - var(--max)) / 2 + var(--rand))); width: min(42%, 520px);
    display: grid; grid-template-columns: 100%; grid-template-rows: 100%; opacity: .8;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
  html[data-kopf="band"] .hero-blatt { grid-area: 1 / 1; height: 100%; min-height: 0; display: flex; justify-content: flex-end; align-items: center; }
  html[data-kopf="band"] .hero-blatt .zeichnung { display: block; width: auto; height: 100%; max-width: 100%; aspect-ratio: 760 / 620; }
  html[data-kopf="band"] .schriftfeld { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-width: none; margin: 0; display: flex; border: 0; border-top: 1px solid #3A4246; background: rgba(20, 24, 26, .9);
    padding: 0 max(var(--rand), calc((100% - var(--max)) / 2 + var(--rand))); }
  html[data-kopf="band"] .sf-zeile { flex: 0 1 auto; flex-direction: row; align-items: center; gap: .55rem; min-height: 52px; padding: 0 1.2rem; border: 0; border-left: 1px solid #3A4246; white-space: nowrap; min-width: 0; }
  html[data-kopf="band"] .sf-zeile .sf-wert { overflow: hidden; text-overflow: ellipsis; }
  html[data-kopf="band"] .sf-zeile:first-child { flex: 0 1 auto; padding-left: 0; border-left: 0; }
  html[data-kopf="band"] [data-projekt-feld] { min-height: 0; }
  html[data-kopf="band"] .sf-akzent { flex: none; margin-left: auto; padding: 0 1.3rem; }
  html[data-kopf="band"] .hero-punkte { position: absolute; z-index: 2; bottom: 58px; right: max(var(--rand), calc((100% - var(--max)) / 2 + var(--rand))); margin: 0; }
}
/* In der Leiste nur Projekt, Werkstatt und Maßstab – so bleibt sie ruhig und nichts wird abgeschnitten */
html[data-kopf="band"] .sf-zeile:nth-child(2), html[data-kopf="band"] .sf-zeile:nth-child(3) { display: none; }
