/* ==========================================================================
   Zeugmacherei – Stylesheet
   Mobile first. Schriften liegen lokal in /fonts (SIL Open Font License).
   ========================================================================== */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #fbf7f0;
  --papier: #fffdf9;
  --sand: #f3ece0;
  --linie: #e6dccb;
  --tinte: #1a1a1a;
  --text-leise: #4a4540;
  --glut: #e8590c;        /* Akzent für Flächen, Linien, Deko */
  --glut-text: #b4440a;   /* Akzent für Text – Kontrast > 4.5:1 auf Creme */

  --font-titel: "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --breite: 68rem;
  --rand: 1.25rem;
  --radius: 1.25rem;
  --abstand: clamp(4rem, 10vw, 7.5rem);

  color-scheme: light;
}

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  line-height: 1.65;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-titel);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
}

h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--glut-text);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--tinte);
}

:focus-visible {
  outline: 3px solid var(--glut);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--glut);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--tinte);
  color: var(--creme);
  border-radius: 0.5rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
  color: var(--creme);
}

/* ---------- Kopfzeile ---------- */

.kopf {
  padding-block: 1rem;
}

.kopf .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.kopf-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--tinte);
  text-decoration: none;
  font-family: var(--font-titel);
  font-weight: 900;
  font-size: 1.25rem;
}

.kopf-logo img {
  width: 2.75rem;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--tinte);
  text-decoration: none;
  font-family: var(--font-titel);
  font-weight: 800;
  font-size: 1rem;
  padding-block: 0.4rem;
  background: linear-gradient(var(--glut), var(--glut)) left bottom / 0 2px no-repeat;
  transition: background-size 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background-size: 100% 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  overflow: hidden;
}

/* Feine Schichtlinien wie beim 3D-Druck, nach unten auslaufend */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 7px,
    rgba(26, 26, 26, 0.045) 7px 8px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 60%, transparent);
}

.hero-logo {
  width: min(26rem, 82%);
  margin: 0 auto 2rem;
}

.hero h1 {
  margin: 0;
}

.claim {
  font-family: var(--font-titel);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw + 1rem, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.claim .punkt {
  color: var(--glut);
}

.hero-text {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: var(--text-leise);
  font-size: 1.15em;
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--tinte);
  border-radius: 999px;
  background: var(--tinte);
  color: var(--creme);
  font-family: var(--font-titel);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.knopf:hover {
  color: var(--creme);
  background: #333;
  transform: translateY(-2px);
}

.knopf-hell {
  background: transparent;
  color: var(--tinte);
}

.knopf-hell:hover {
  background: var(--tinte);
  color: var(--creme);
}

.knopf svg {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
}

/* ---------- Abschnitte ---------- */

.abschnitt {
  padding-block: var(--abstand);
}

.abschnitt-sand {
  background: var(--sand);
}

.abschnitt-kopf {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* Kurze "Laserlinie" unter den Überschriften */
.abschnitt-kopf h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: 1rem;
  border-radius: 2px;
  background: var(--glut);
}

.abschnitt-kopf p {
  color: var(--text-leise);
  font-size: 1.1em;
}

/* ---------- Karten: Was ich mache ---------- */

.karten {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.karte {
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

.karte p {
  margin: 0;
  color: var(--text-leise);
}

.icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  background: var(--sand);
  color: var(--tinte);
}

.icon svg {
  width: 2rem;
  height: 2rem;
}

/* ---------- Kombiniert ---------- */

.kombi {
  position: relative;
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--tinte);
  color: var(--creme);
  overflow: hidden;
}

.kombi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/holz.svg") center / 600px auto repeat;
  opacity: 0.18;
  pointer-events: none;
}

.kombi > * {
  position: relative;
}

.kombi h3 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  font-weight: 900;
}

.kombi .markierung {
  color: var(--glut);
}

.kombi p {
  margin: 0;
  color: #e9e2d6;
}

.kombi-liste {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kombi-liste li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(251, 247, 240, 0.18);
  border-radius: 0.9rem;
  background: rgba(26, 26, 26, 0.55);
}

.kombi-liste strong {
  flex: none;
  min-width: 6.5rem;
  font-family: var(--font-titel);
  font-weight: 900;
  color: var(--creme);
}

/* ---------- Reparieren ---------- */

.reparieren {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.reparieren .abschnitt-kopf {
  margin-bottom: 0;
}

.reparieren-text p {
  max-width: 38rem;
}

.werkzeugkiste {
  padding: 1.75rem 1.5rem;
  background: var(--papier);
  border: 2px dashed var(--linie);
  border-radius: var(--radius);
}

.werkzeugkiste h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
}

.werkzeugkiste h3 svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--glut-text);
}

.werkzeugkiste ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.werkzeugkiste li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--linie);
}

.werkzeugkiste li:last-child {
  border-bottom: 0;
}

.werkzeugkiste .status {
  color: var(--text-leise);
  text-align: right;
}

/* ---------- Projekte ---------- */

.galerie {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.projekt {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

.projekt img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand);
}

.projekt figcaption {
  padding: 1.25rem 1.4rem 1.5rem;
}

.projekt h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.projekt p {
  margin: 0;
  color: var(--text-leise);
}

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

.kontakt {
  text-align: center;
}

.kontakt .abschnitt-kopf {
  margin-inline: auto;
}

.kontakt .abschnitt-kopf h2::after {
  margin-inline: auto;
}

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

.fuss {
  padding-block: 2.5rem;
  border-top: 1px solid var(--linie);
  font-size: 0.95rem;
  color: var(--text-leise);
}

.fuss .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.fuss p {
  margin: 0;
}

.fuss ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss a {
  color: var(--tinte);
  font-weight: 600;
}

.fuss a:hover {
  color: var(--glut-text);
}

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

.seite {
  padding-block: clamp(2rem, 6vw, 4rem) var(--abstand);
}

.seite .container {
  max-width: 46rem;
}

.seite h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 3.25rem);
  margin-bottom: 1.5rem;
}

.seite h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.fehler {
  text-align: center;
}

.fehler-zahl {
  font-family: var(--font-titel);
  font-weight: 900;
  font-size: clamp(5rem, 22vw, 10rem);
  line-height: 1;
  margin: 0;
  color: var(--glut);
}

.fehler-logo {
  width: 9rem;
  margin: 0 auto 1.5rem;
  transform: rotate(-8deg);
}

.fehler p {
  max-width: 32rem;
  margin-inline: auto;
}

.fehler .knoepfe {
  margin-top: 2rem;
}

/* ---------- Breitere Bildschirme ---------- */

@media (min-width: 40rem) {
  .kombi-liste li {
    flex-direction: row;
    align-items: baseline;
  }

  .karten,
  .galerie {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56rem) {
  .kombi {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 3rem;
  }

  .reparieren {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
  }

  .galerie {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 68rem) {
  .karten {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Weniger Bewegung, wenn gewünscht ---------- */

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
