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

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2"), url("fonts/archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --zink: #E3E6E7;
  --zink-2: #CBD1D3;
  --anthrazit: #383E42;
  --graphit: #22282B;
  --weiss: #FFFFFF;
  --gelb: #F2A900;
  --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;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--schrift); 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(--graphit); 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(--graphit); }
.knopf-gelb:hover { background: #FFBC1F; }
.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, .tel-name, .tel-nr { display: none; }
.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-kurz, .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-kurz { display: none; }
  .tel-name { display: inline; color: #8C969B; }
  .tel-nr { display: inline; font-stretch: 75%; font-weight: 700; 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); }
.kopf-innen { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.marke img { width: 40px; height: 40px; object-fit: contain; background: var(--weiss); padding: 3px; border-radius: 2px; }
.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); }
.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: 100%; 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 { min-height: 84px; gap: 2rem; }
  .marke img { width: 46px; height: 46px; }
  .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(--graphit); }
.sf-akzent .sf-label { color: var(--graphit); }
.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); }

@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 { font-weight: 600; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 3px; text-underline-offset: 5px; }

@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 */
.ueber { padding: 0 0 clamp(3.5rem, 9vw, 7rem); }
.ueber-innen { display: grid; gap: 2.5rem; border-top: 1px solid var(--zink-2); padding-top: clamp(3.5rem, 8vw, 6rem); align-items: center; }
.ueber-bild { margin: 0; }
.team-bild { width: 100%; height: auto; }
.ueber-text p:first-of-type { margin-top: 1.1rem; }
.fakten { margin: 1.5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .8rem 1.4rem; }
.fakten dt { font-weight: 600; }
.fakten dd { margin: 0; color: var(--grau); }
@media (min-width: 900px) { .ueber-innen { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* 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); display: flex; flex-direction: column; }
.personen span { font-weight: 600; }
.personen a { font-stretch: 75%; font-weight: 700; font-size: 1.4rem; text-decoration: none; overflow-wrap: anywhere; }
.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: rgba(242, 169, 0, .15); }
.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 */
.g-kopf-innen { display: grid; gap: 1.5rem; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.g-zurueck { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; margin-bottom: .4rem; color: var(--hellgrau); }
.g-zurueck:hover { color: var(--weiss); }
.g-kopf h1 { font-stretch: 62%; font-weight: 800; font-size: clamp(2.6rem, 10vw, 5rem); line-height: .92; color: var(--weiss); }
.g-kopf-text p { margin-top: 1rem; color: var(--hellgrau); }
.g-kopf-zeichnung { max-width: 420px; justify-self: end; width: 100%; }
@media (min-width: 860px) { .g-kopf-innen { grid-template-columns: 3fr 2fr; } }
@media (max-width: 859px) { .g-kopf-zeichnung { max-width: 280px; justify-self: start; } }

.g-rubriken { border-bottom: 1px solid var(--zink-2); background: var(--weiss); }
.g-rubriken ul { list-style: none; margin: 0; padding: .8rem 0; display: flex; gap: .5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.g-rubriken a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .95rem; border: 2px solid var(--anthrazit); border-radius: 2px; }
.g-rubriken a[aria-current="page"] { background: var(--anthrazit); color: var(--weiss); }
.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(--graphit); }

/* 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: var(--graphit); color: #B9C0C3; font-size: .92rem; padding: 1.8rem 0 calc(1.8rem + env(safe-area-inset-bottom, 0px)); }
.fuss-innen { display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; }
.fuss nav { display: flex; gap: 1.5rem; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--weiss); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-blatt, .hero-blatt.aktiv, .kachel .foto img, .mass-linie { transition: none; }
}
