/* Nikografie – Stil
   Farben: Asphalt bei Nacht, Licht von Natriumdampf-Strassenlampen */
/* Schrift lokal (keine Verbindung zu Google, wichtig fuer den Datenschutz) */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variabel.woff2") format("woff2-variations"), url("../fonts/archivo-variabel.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --nacht: #101418;
  --flaeche: #181e25;
  --linie: #29313b;
  --text: #ece8e1;
  --leise: #9aa1aa;
  --akzent: #e0a43a;
  --rand: clamp(1rem, 4vw, 3.5rem);
  --breit: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nacht);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; margin: 0; font-stretch: 112%; font-variation-settings: "wdth" 112; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* Kopf */
.kopf {
  position: fixed; inset: 0 0 auto; z-index: 10;
  background: linear-gradient(to bottom, rgb(16 20 24 / .92) 0%, rgb(16 20 24 / .7) 55%, rgb(16 20 24 / 0) 100%);
  padding-bottom: 1.5rem;
}
.kopf-innen {
  max-width: var(--breit); margin: 0 auto; padding: 1.1rem var(--rand);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
}
.marke {
  font-weight: 800; font-size: 1.35rem; letter-spacing: 0.01em; text-decoration: none;
  font-variation-settings: "wdth" 125; margin: 0;
}
.marke--klein { font-size: 1.1rem; }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); font-size: 0.98rem; }
.nav a { text-decoration: none; color: #c9ced5; padding: 0.25rem 0; text-shadow: 0 1px 8px rgb(0 0 0 / .6); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--akzent); }

/* Hero: Foto oben, Schriftzug als Typenschild an der Unterkante */
.hero { position: relative; }
.hero-bild { display: block; position: relative; height: 74svh; min-height: 420px; overflow: hidden; }
.hero-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-bild::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--nacht) 0%, rgb(16 20 24 / 0) 28%);
}
.hero-text {
  position: relative; z-index: 1; max-width: var(--breit); margin: 0 auto; padding: 0 var(--rand);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem 3rem;
}
.hero-titel { grid-column: 1 / -1; margin: 0; font-stretch: normal; }
.hero-marke {
  display: block;
  font-size: clamp(2.6rem, 7.5vw, 6.8rem); font-weight: 800; line-height: 0.85;
  letter-spacing: -0.02em; font-variation-settings: "wdth" 125;
  margin: -0.5em 0 0 -0.03em;
}
.hero-unter {
  display: block; margin-top: 1.2rem;
  font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: 0;
  font-variation-settings: "wdth" 112; color: var(--text);
}
.hero-lead { max-width: 30rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--leise); margin: 0; }
.hero-text .knopf { justify-self: end; }
@media (max-width: 700px) {
  /* Auf dem Handy das ganze Bild zeigen, damit beide Fahrzeuge sichtbar bleiben */
  .hero-bild { height: auto; min-height: 0; margin-top: 6.5rem; }
  .hero-bild img { position: static; height: auto; }
  .hero-bild::after { background: linear-gradient(to top, var(--nacht) 0%, rgb(16 20 24 / 0) 22%); }
  .hero-text { grid-template-columns: 1fr; }
  .hero-text .knopf { justify-self: start; }
}

.knopf {
  display: inline-block; background: var(--akzent); color: #1a1408; font-weight: 700;
  text-decoration: none; padding: 0.85rem 1.5rem; border-radius: 2px;
  font-variation-settings: "wdth" 112;
}
.knopf:hover { background: #ecb558; }

/* Bloecke */
.block { max-width: var(--breit); margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) var(--rand) 0; }
.block-kopf {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem; margin-bottom: 2.5rem;
}
.block-kopf p { color: var(--leise); margin: 0; max-width: 32rem; }
.mehr { color: var(--akzent); text-underline-offset: 4px; }

.leistungen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.leistungen li { border-top: 1px solid var(--linie); padding-top: 1.4rem; }
.leistungen h3 { margin-bottom: 0.8rem; }
.leistungen p { color: var(--leise); max-width: 30rem; }
.leistungen .preis { color: var(--akzent); margin: 0; font-weight: 600; }

/* Kachel-Raster (Mauerwerk) */
.raster { columns: 4 240px; column-gap: 1.25rem; }
.raster--voll { max-width: var(--breit); margin: 0 auto; padding: 0 var(--rand); }
.kachel { display: block; break-inside: avoid; margin-bottom: 1.6rem; text-decoration: none; }
.kachel img { width: 100%; background: var(--flaeche); }
.kachel-text { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 0.6rem; }
.kachel-titel { font-weight: 600; font-variation-settings: "wdth" 112; }
.kachel-zahl { color: var(--leise); font-size: 0.88rem; white-space: nowrap; }
.kachel:hover .kachel-titel { text-decoration: underline; text-decoration-color: var(--akzent); text-underline-offset: 4px; }

/* Ueber mich */
.ueber { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 4rem; align-items: start; }
.ueber h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.ueber-text p { font-size: 1.15rem; max-width: 38rem; }

/* Kontakt */
.kontakt {
  max-width: var(--breit); margin: clamp(4rem, 9vw, 7.5rem) auto 0; padding: clamp(3rem, 6vw, 5rem) var(--rand);
  border-top: 1px solid var(--linie);
}
.kontakt h2 { font-size: clamp(2rem, 5vw, 4.2rem); max-width: 14ch; margin-bottom: 1.2rem; }
.kontakt p { color: var(--leise); max-width: 34rem; margin-bottom: 1.8rem; }

/* Unterseiten */
.seite { padding-top: 6.5rem; }
.seiten-kopf { max-width: var(--breit); margin: 0 auto; padding: 2rem var(--rand) 2.5rem; }
.seiten-kopf h1 { font-size: clamp(2.4rem, 6.5vw, 5.5rem); font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.seiten-kopf p { color: var(--leise); margin: 0; }
.zurueck { display: inline-block; color: var(--leise); text-decoration: none; margin-bottom: 1rem; }
.zurueck::before { content: "\2039\00a0"; }
.zurueck:hover { color: var(--text); }

.galerie { max-width: var(--breit); margin: 0 auto; padding: 0 var(--rand); columns: 3 300px; column-gap: 1rem; }
.galerie-bild { display: block; break-inside: avoid; margin-bottom: 1rem; cursor: zoom-in; }
.galerie-bild img { width: 100%; background: var(--flaeche); }

.blaettern {
  max-width: var(--breit); margin: 3rem auto 0; padding: 2rem var(--rand) 0;
  display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--linie);
}
.blaettern a { text-decoration: none; font-weight: 600; font-variation-settings: "wdth" 112; display: flex; flex-direction: column; }
.blaettern a:last-child { text-align: right; }
.blaettern span { color: var(--leise); font-weight: 400; font-size: 0.9rem; font-variation-settings: "wdth" 100; }
.blaettern a:hover { color: var(--akzent); }

/* Lightbox */
.lightbox { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgb(8 10 12 / .96); color: var(--text); }
.lightbox::backdrop { background: rgb(8 10 12 / .9); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 3.5rem 4rem; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--text); font: inherit;
  font-size: 2.6rem; line-height: 1; width: 3.5rem; height: 3.5rem; cursor: pointer;
}
.lightbox button:hover { color: var(--akzent); }
.lb-zu { top: 0.5rem; right: 0.5rem; }
.lb-vor { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-nach { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* Fuss */
.fuss { margin-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--linie); }
.fuss-innen {
  max-width: var(--breit); margin: 0 auto; padding: 2.2rem var(--rand) 2.6rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; color: var(--leise); font-size: 0.95rem;
}
.fuss-innen p { margin: 0; }
.fuss .marke { color: var(--text); }
.fuss a { text-underline-offset: 3px; }
.fuss a:hover { color: var(--text); }

@media (max-width: 900px) {
  .leistungen { grid-template-columns: 1fr; gap: 0; }
  .leistungen li { padding-bottom: 1.4rem; }
  .ueber { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kopf-innen { flex-direction: column; gap: 0.4rem; }
  .nav { gap: 1.1rem; font-size: 0.92rem; flex-wrap: wrap; }
  .raster { columns: 2; column-gap: 0.75rem; }
  .kachel-text { flex-direction: column; gap: 0; }
  .lightbox img { padding: 3.5rem 0.5rem; }
  .seite { padding-top: 7.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Unterseiten: Dienstleistungen */
.block-fuss { margin: 2rem 0 0; }
.angebot {
  max-width: var(--breit); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--rand);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center;
  border-top: 1px solid var(--linie);
}
.angebot--ohne-bild { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.angebot h2 { margin-bottom: 1rem; }
.angebot-lead { font-size: 1.15rem; max-width: 34rem; }
.angebot-bild { margin: 0; }
.angebot-bild img { width: 100%; max-height: 72vh; object-fit: cover; background: var(--flaeche); }
.haken { list-style: none; margin: 0 0 1.4rem; padding: 0; color: var(--leise); }
.haken li { padding: 0.45rem 0 0.45rem 1.5rem; position: relative; border-bottom: 1px solid var(--linie); max-width: 34rem; }
.haken li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.6rem; height: 2px; background: var(--akzent); }
.preis { color: var(--akzent); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.6rem; }

/* Ueber mich */
.ueber-bild { max-width: var(--breit); margin: 0 auto; padding: 0 var(--rand); }
.ueber-bild img { width: 100%; max-height: 70vh; object-fit: cover; }
.leistungen--vier { grid-template-columns: repeat(4, 1fr); }

/* Kontakt */
.kontakt-raster {
  max-width: var(--breit); margin: 0 auto; padding: 0 var(--rand);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start;
}
.formular { display: grid; gap: 1.2rem; max-width: 46rem; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.feld { display: grid; gap: 0.4rem; }
.feld label { font-weight: 600; font-size: 0.95rem; }
.optional { color: var(--leise); font-weight: 400; }
.feld input, .feld select, .feld textarea {
  font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 2px; padding: 0.75rem 0.85rem; width: 100%;
}
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--akzent); outline-offset: 0; border-color: transparent; }
.feld ::placeholder { color: #6b737d; }
.botcheck { display: none; }
.hinweis { color: var(--leise); font-size: 0.9rem; margin: 0; }
.formular .knopf { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.direkt h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.direkt dl { margin: 0; }
.direkt dt { color: var(--leise); font-size: 0.9rem; margin-top: 1rem; }
.direkt dd { margin: 0.15rem 0 0; }
.direkt a { text-underline-offset: 3px; }

/* Rechtstexte */
.recht { max-width: 46rem; margin: 0 auto 0 0; padding: 0 var(--rand); }
.seite .recht { margin-left: max(var(--rand), calc((100vw - var(--breit)) / 2 + var(--rand))); padding: 0; }
.recht h2 { font-size: 1.25rem; margin: 2.2rem 0 0.8rem; }
.recht p { color: var(--leise); }
.recht a { color: var(--text); text-underline-offset: 3px; }
.stand { margin-top: 2.5rem; font-size: 0.9rem; }

@media (max-width: 900px) {
  .angebot, .angebot--ohne-bild, .kontakt-raster { grid-template-columns: 1fr; }
  .leistungen--vier { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feld-paar { grid-template-columns: 1fr; }
}

/* Portfolio-Filter */
.filter { max-width: var(--breit); margin: 0 auto 2rem; padding: 0 var(--rand); }
.filter-leiste { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter button {
  font: inherit; font-size: 0.95rem; color: var(--leise); background: transparent;
  border: 1px solid var(--linie); border-radius: 2px; padding: 0.5rem 0.9rem; cursor: pointer;
}
.filter button span { color: #6b737d; margin-left: 0.25rem; font-size: 0.85rem; }
.filter button:hover { color: var(--text); border-color: var(--leise); }
.filter button[aria-pressed="true"] { color: #1a1408; background: var(--akzent); border-color: var(--akzent); font-weight: 600; }
.filter button[aria-pressed="true"] span { color: #1a1408; }
.filter-status { max-width: var(--breit); margin: -1rem auto 1rem; padding: 0 var(--rand); color: var(--leise); font-size: 0.9rem; min-height: 1px; }
.kachel[hidden] { display: none; }
@media (max-width: 640px) {
  .filter { padding-right: 0; }
  .filter-leiste { flex-wrap: nowrap; overflow-x: auto; padding-right: var(--rand); scrollbar-width: none; }
  .filter-leiste::-webkit-scrollbar { display: none; }
  .filter button { flex: none; }
}

/* Portraet Nikola */
.ueber-kopf { display: grid; gap: 1.8rem; align-content: start; }
.portraet { margin: 0; max-width: 340px; }
.portraet img { width: 100%; background: var(--flaeche); }
.ueber--seite { padding-top: 1rem; }

/* Detailseite */
.detail-lead { color: var(--text) !important; max-width: 40rem; margin-bottom: 0.4rem !important; }

.fuss-credit { font-size: 0.85rem; }
.fuss-credit a { color: var(--leise); }

/* Zweite Filterebene (Marken) */
.filter-leiste--marken { margin-top: 0.6rem; }
.filter-leiste--marken[hidden] { display: none; }
.filter-leiste--marken button { font-size: 0.88rem; padding: 0.4rem 0.75rem; }

/* Partner */
.partner-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.partner-liste a {
  display: flex; align-items: center; justify-content: center; height: 110px; padding: 1.1rem;
  background: #ece8e1; border-radius: 2px;
}
.partner-liste img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.partner-liste a:hover { background: #fff; }
.detail-zahl { font-size: 0.9rem; }
@media (max-width: 900px) { .partner-liste { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .partner-liste { grid-template-columns: repeat(2, 1fr); } .partner-liste a { height: 90px; } }

/* Logo im Kopf */
.marke--logo { display: block; line-height: 0; }
.marke--logo img { height: 50px; width: auto; }
.kopf-innen { align-items: center; }
@media (max-width: 640px) { .marke--logo img { height: 42px; } }
