/* ==========================================================
   Folientechnik-Service – Stylesheet
   Farben und Schriften zentral hier oben anpassen.
   ========================================================== */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("schriften/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("schriften/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("schriften/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("schriften/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("schriften/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  --tinte: #151515;
  --tinte-weich: #2a2926;
  --papier: #f4f2ed;
  --weiss: #ffffff;
  --rot: #d42b1e;
  --rot-dunkel: #b02016;
  --grau: #5d5a54;
  --linie: #dcd8cf;

  --schrift-titel: "Barlow Condensed", "Arial Narrow", sans-serif;
  --schrift-text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --breite: 1180px;
  --rand: clamp(16px, 4vw, 40px);
  --kopf-hoehe: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-hoehe) + 16px); }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

.sprungmarke {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--tinte); color: var(--weiss); padding: .6em 1em; text-decoration: none;
}
.sprungmarke:focus { top: 16px; }

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf__innen {
  max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand);
  height: var(--kopf-hoehe);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.kopf__logo img { height: 34px; width: auto; }
.kopf__nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.kopf__nav a {
  font-family: var(--schrift-titel); font-weight: 600; font-size: 1.15rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.kopf__nav a:hover { color: var(--rot); }
.kopf__nav .kopf__kontakt {
  background: var(--tinte); color: var(--weiss);
  padding: .35em .9em; border-radius: 3px;
}
.kopf__nav .kopf__kontakt:hover { background: var(--rot); color: var(--weiss); }

@media (max-width: 640px) {
  :root { --kopf-hoehe: 60px; }
  .kopf__logo img { height: 26px; }
  .kopf__nav a:not(.kopf__kontakt) { display: none; }
}

/* ---------- Bausteine ---------- */

.abschnitt { padding: clamp(64px, 10vw, 120px) 0; }
.abschnitt__innen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

.ueberschrift {
  font-family: var(--schrift-titel); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1;
  text-transform: uppercase; letter-spacing: .01em;
  margin: 0 0 clamp(32px, 5vw, 56px);
}
.ueberschrift::after {
  content: ""; display: block;
  width: 64px; height: 8px; margin-top: 18px;
  background: var(--rot); transform: skewX(-20deg);
}

.knopf {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--schrift-titel); font-weight: 600; font-size: 1.3rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: .6em 1.15em; border-radius: 4px; border: 2px solid var(--tinte);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.knopf svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
.knopf--voll { background: var(--tinte); color: var(--weiss); }
.knopf--voll:hover { background: var(--rot); border-color: var(--rot); }
.knopf--rand:hover { background: var(--tinte); color: var(--weiss); }
.knopf:hover { transform: translateY(-2px); }

/* ---------- Held / Titelbereich ---------- */

.held {
  position: relative; overflow: hidden;
  padding: clamp(48px, 9vw, 110px) 0 clamp(64px, 10vw, 120px);
}
/* Parallelogramme wie im Logo */
.held::before, .held::after {
  content: ""; position: absolute; pointer-events: none;
  border: 2px solid var(--linie); transform: skewX(-14deg);
}
.held::before { width: 38vw; height: 70%; right: -6vw; top: 6%; }
.held::after { width: 30vw; height: 55%; right: 4vw; top: 22%; }
@media (max-width: 899px) {
  .held::before, .held::after { display: none; }
}

.held__innen {
  position: relative; z-index: 1;
  max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand);
  display: grid; gap: clamp(48px, 6vw, 80px); align-items: center;
}
@media (min-width: 900px) {
  .held__innen { grid-template-columns: 1.15fr 1fr; }
}

.held__slogan {
  font-family: var(--schrift-titel); font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .98;
  text-transform: uppercase; letter-spacing: -.005em;
  margin: 0 0 .45em;
}
.held__text > p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--grau); max-width: 34em; }
.held__knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Hervorhebung [so] im Slogan: Aufkleber mit weißem Schnittrand */
.aufkleber {
  display: inline-block;
  background: var(--rot); color: var(--weiss);
  padding: .02em .22em .06em; margin: .08em .04em 0;
  border-radius: .1em;
  box-shadow: 0 0 0 .07em var(--weiss), 0 .14em .35em rgb(0 0 0 / .25);
  transform: rotate(-3deg);
}

.held__bilder { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
.held__bild {
  position: absolute; width: 60%; aspect-ratio: 1 / 1; object-fit: cover;
  background: var(--weiss); border: clamp(6px, 1vw, 10px) solid var(--weiss);
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / .35);
  transition: transform .4s ease;
}
.held__bild--1 { left: 0; top: 2%; transform: rotate(-7deg); z-index: 1; }
.held__bild--2 { right: 0; top: 14%; transform: rotate(5deg); z-index: 2; }
.held__bild--3 { left: 18%; bottom: 0; transform: rotate(-2deg); z-index: 3; width: 56%; }
.held__bilder:hover .held__bild--1 { transform: rotate(-10deg) translate(-8px, -6px); }
.held__bilder:hover .held__bild--2 { transform: rotate(8deg) translate(8px, -4px); }
.held__bilder:hover .held__bild--3 { transform: rotate(0deg) translateY(6px); }

/* ---------- Leistungen ---------- */

.leistungen { background: var(--weiss); border-block: 1px solid var(--linie); }
.leistungen__liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  border-top: 1px solid var(--linie); border-left: 1px solid var(--linie);
}
.leistung {
  position: relative; background: var(--weiss);
  border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
  padding: 28px 26px 32px; min-height: 150px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .25s;
}
.leistung::after {
  content: ""; position: absolute; left: 26px; bottom: 0; height: 5px; width: 0;
  background: var(--rot); transform: skewX(-20deg); transition: width .3s ease;
}
.leistung:hover { background: var(--papier); }
.leistung:hover::after { width: 48px; }
.leistung__nr {
  font-family: var(--schrift-titel); font-weight: 600; font-size: 1rem;
  color: var(--rot); letter-spacing: .1em;
}
.leistung__titel {
  font-family: var(--schrift-titel); font-weight: 700;
  font-size: 1.75rem; line-height: 1.05; text-transform: uppercase;
  margin: auto 0 0; hyphens: auto; overflow-wrap: break-word;
}
.leistung__text { margin: 0; color: var(--grau); font-size: 1rem; line-height: 1.5; }
@media (max-width: 560px) {
  .leistung { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-height: 0; padding: 16px 18px; }
  .leistung::after { left: 18px; }
  .leistung__titel { font-size: 1.45rem; margin: 0; }
  .leistung__text { flex-basis: 100%; }
}

/* ---------- Galerie ---------- */

.galerie__raster {
  display: grid; gap: clamp(10px, 1.5vw, 18px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
@media (max-width: 520px) {
  .galerie__raster { grid-template-columns: 1fr 1fr; }
}
.galerie__bild {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--linie); border-radius: 3px;
}
.galerie__bild img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.galerie__bild:hover img { transform: scale(1.05); }
.galerie__titel {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--weiss); color: var(--tinte);
  font-family: var(--schrift-titel); font-weight: 600; font-size: 1rem;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  padding: .45em .6em .4em; border-radius: 2px;
  box-shadow: 0 2px 8px rgb(0 0 0 / .15);
  transition: background .2s, color .2s;
}
.galerie__bild:hover .galerie__titel { background: var(--rot); color: var(--weiss); }

/* ---------- Kontakt ---------- */

.kontakt { background: var(--tinte); color: var(--weiss); }
.kontakt p { color: #c9c6bf; font-size: 1.2rem; max-width: 30em; }
.kontakt__innen { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .kontakt__innen { grid-template-columns: 1fr 1fr; align-items: end; }
}
.kontakt__daten { display: flex; flex-direction: column; gap: 10px; }
.kontakt__gross {
  font-family: var(--schrift-titel); font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05;
  text-decoration: none; width: fit-content;
  background: linear-gradient(var(--rot), var(--rot)) 0 100% / 0 4px no-repeat;
  transition: background-size .3s, color .2s;
}
.kontakt__gross:hover { color: #ffd9d5; background-size: 100% 4px; }
.kontakt__mail { font-size: clamp(1.35rem, 3.4vw, 2.2rem); overflow-wrap: anywhere; }
.kontakt address {
  font-style: normal; color: #c9c6bf; margin-top: 18px; line-height: 1.55;
}
.kontakt address strong { color: var(--weiss); font-weight: 600; }

/* ---------- Fuß ---------- */

.fuss { background: #0c0c0c; color: #a3a09a; font-size: .95rem; }
.fuss__innen {
  max-width: var(--breite); margin: 0 auto; padding: 28px var(--rand);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
}
.fuss p { margin: 0; }
.fuss__hinweis { flex: 1 1 280px; }
.fuss__nav { display: flex; gap: 20px; }
.fuss__nav a { color: var(--weiss); text-decoration: none; }
.fuss__nav a:hover { color: var(--rot); text-decoration: underline; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */

.rechtstext .abschnitt__innen { max-width: 820px; }
.rechtstext h2 {
  font-family: var(--schrift-titel); font-weight: 700; font-size: 1.6rem;
  text-transform: uppercase; margin: 2em 0 .4em; line-height: 1.1;
}
.rechtstext ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.rechtstext a:not(.knopf) { color: var(--rot-dunkel); }
.rechtstext__stand { margin-top: 3em; color: var(--grau); font-size: .95rem; }

/* ---------- Bildbetrachter (Lightbox) ---------- */

.betrachter {
  position: fixed; inset: 0; z-index: 200;
  background: rgb(12 12 12 / .94);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .2s;
}
.betrachter[hidden] { display: none; }
.betrachter.offen { opacity: 1; }
.betrachter figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.betrachter img {
  max-width: min(92vw, 1400px); max-height: 80vh; width: auto; height: auto;
  box-shadow: 0 20px 60px rgb(0 0 0 / .5); background: var(--weiss);
}
.betrachter figcaption {
  color: var(--weiss); font-family: var(--schrift-titel); font-weight: 600;
  font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase;
}
.betrachter__zaehler { color: #8d8a84; margin-left: .6em; }
.betrachter button {
  position: absolute; border: 0; cursor: pointer;
  background: rgb(255 255 255 / .1); color: var(--weiss);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; transition: background .2s;
}
.betrachter button:hover { background: var(--rot); }
.betrachter button svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.5; fill: none; }
.betrachter__zu { top: 16px; right: 16px; }
.betrachter__zurueck { left: 16px; top: 50%; translate: 0 -50%; }
.betrachter__weiter { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .betrachter__zurueck, .betrachter__weiter { top: auto; bottom: 16px; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
