/* 3D Druckwerk · Gestaltung für alle Seiten */

/* ---------- Schriften (lokal gespeichert, kein fremder Server) ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Farben und Grundwerte ---------- */
:root {
  --tuerkis: #00AFAF;       /* Logo-Türkis: Linien, Symbole, Akzente */
  --tuerkis-tief: #007C7C;  /* für Knöpfe und Links, gut lesbar mit weisser Schrift */
  --dunkelblau: #1F2933;    /* Logo-Dunkelblau: Text und Überschriften */
  --warmweiss: #FAF8F5;     /* Seitenhintergrund */
  --sand: #EDE6DC;          /* Flächen, Platzhalter, Holz-Wärme */
  --grau: #5B6670;          /* Nebentext */
  --linie: #DDD5CA;

  --schrift-titel: "Fraunces", Georgia, "Times New Roman", serif;
  --schrift-text: "Figtree", "Segoe UI", system-ui, sans-serif;

  --breite: 1160px;
  --rand: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --schatten: 0 10px 30px -12px rgba(31, 41, 51, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--warmweiss);
  color: var(--dunkelblau);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tuerkis-tief); text-underline-offset: .18em; }
a:hover { color: var(--dunkelblau); }
:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 600; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tuerkis-tief); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--tuerkis); }
.lead { font-size: 1.2rem; color: var(--grau); max-width: 38rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.6rem;
  border: 0; border-radius: 999px;
  background: var(--tuerkis-tief); color: #fff;
  font: 600 1rem/1 var(--schrift-text); text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover { background: var(--dunkelblau); color: #fff; transform: translateY(-2px); box-shadow: var(--schatten); }
.btn .pfeil { transition: transform .25s ease; }
.btn:hover .pfeil { transform: translateX(4px); }
.btn--hell { background: transparent; color: var(--dunkelblau); box-shadow: inset 0 0 0 1.5px var(--dunkelblau); }
.btn--hell:hover { background: var(--dunkelblau); color: #fff; }

/* ---------- Kopfleiste ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--linie); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.logo-link { display: block; flex-shrink: 0; }
.logo-link img { width: 190px; }
.nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { position: relative; color: var(--dunkelblau); text-decoration: none; font-weight: 500; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--tuerkis); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: .65rem 1.3rem; font-size: .95rem; }
.nav-toggle { display: none; }

/* ---------- Kopfbereich Startseite ---------- */
.hero { position: relative; background: #F4EFE8; overflow: hidden; }
.hero-bild {
  position: absolute; top: 0; right: 0; bottom: 0; width: 55%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%);
  mask-image: linear-gradient(to right, transparent 0%, #000 28%);
}
.hero-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }
.hero .container { position: relative; display: flex; align-items: center; min-height: min(78vh, 720px); }
/* Text bleibt im hellen Bereich links vom Foto: höchstens bis 40 % der Fensterbreite */
.hero-text {
  max-width: min(31rem, calc(40vw - (100vw - min(100vw - 2 * var(--rand), var(--breite))) / 2));
  padding-block: 5rem;
}
.hero-text h1 { text-wrap: balance; }
.hero-text p { font-size: 1.2rem; color: var(--grau); margin-bottom: 2rem; text-wrap: pretty; }
.hero-text h1 em { font-style: italic; font-weight: 400; color: var(--tuerkis-tief); }

/* ---------- Sortiment ---------- */
.section-kopf { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.section-kopf h2 { margin-bottom: 0; }
.section-kopf p { max-width: 26rem; color: var(--grau); margin: 0; }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.kachel { display: block; color: inherit; text-decoration: none; }
.kachel-bild { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.kachel:hover .kachel-bild img { transform: scale(1.04); }
.kachel h3 { display: flex; justify-content: space-between; align-items: center; margin: 1.1rem 0 .3rem; }
.kachel h3 .pfeil { color: var(--tuerkis-tief); transition: transform .3s ease; }
.kachel:hover h3 .pfeil { transform: translateX(5px); }
.kachel p { color: var(--grau); margin: 0; }

/* ---------- Ideen nehmen Form an ---------- */
.ideen { background: var(--dunkelblau); color: #E9EEF1; }
.ideen h2 { color: #fff; }
.ideen .kicker { color: var(--tuerkis); }
.ideen .lead { color: #B9C3CA; }
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; list-style: none; margin: 3.5rem 0 0; padding: 0; counter-reset: schritt; }
.schritt { position: relative; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.schritt::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--tuerkis);
  transition: width 1s ease .2s;
}
.schritt.is-visible::before, .no-js .schritt::before { width: 64px; }
.schritt-nr { font-family: var(--schrift-titel); font-style: italic; font-size: 1rem; color: var(--tuerkis); display: block; margin-bottom: .8rem; }
.schritt svg { width: 42px; height: 42px; margin-bottom: 1.1rem; }
.schritt h3 { color: #fff; }
.schritt p { color: #B9C3CA; margin: 0; }

/* ---------- Über uns ---------- */
.ueber { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.ueber-bild { position: relative; isolation: isolate; }
.ueber-bild img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.ueber-bild::after {
  content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; z-index: -1;
  border: 1.5px solid var(--tuerkis); border-radius: var(--radius);
}
.ueber-text p { color: var(--grau); }
.ueber-text .ort { display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; font-weight: 500; color: var(--dunkelblau); }
.ueber-text .ort svg { width: 20px; height: 20px; color: var(--tuerkis-tief); }

/* ---------- Anfrage ---------- */
.anfrage { background: var(--sand); }
.anfrage-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.anfrage-intro p { color: var(--grau); }
.anfrage-intro .kontakt-direkt { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); font-size: .98rem; }
.formular { background: var(--warmweiss); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--schatten); }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.feld label .optional { font-weight: 400; color: var(--grau); }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem;
  border: 1.5px solid var(--linie); border-radius: 10px; background: #fff;
  font: 400 1rem/1.4 var(--schrift-text); color: var(--dunkelblau);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.feld textarea { min-height: 140px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--tuerkis); box-shadow: 0 0 0 3px rgba(0, 175, 175, .18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular .hinweis { font-size: .85rem; color: var(--grau); margin: .2rem 0 1.3rem; }
.formular .btn { width: 100%; }
.meldung { display: none; padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.3rem; font-weight: 500; }
.meldung.is-ok { display: block; background: #DDF3F1; color: #0B4F4F; }
.meldung.is-fehler { display: block; background: #F8E3DE; color: #7A2A1B; }

/* ---------- Unterseiten ---------- */
.seiten-kopf { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.seiten-kopf .lead { margin-bottom: 0; }
.brotkrumen { font-size: .9rem; color: var(--grau); margin-bottom: 1.5rem; }
.brotkrumen a { color: var(--grau); }
.produkte { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.produkt { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); transition: box-shadow .3s ease, transform .3s ease; }
.produkt:hover { box-shadow: var(--schatten); transform: translateY(-3px); }
.produkt img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--sand); }
.produkt-text { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.produkt-text h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.produkt-text p { color: var(--grau); flex: 1; }
.produkt-text .btn { align-self: flex-start; min-height: 46px; }
.wunsch { background: var(--dunkelblau); color: #E9EEF1; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: clamp(4rem, 8vw, 6rem); }
.wunsch h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .4rem; }
.wunsch p { margin: 0; color: #B9C3CA; }
.wunsch .btn { background: var(--tuerkis); color: var(--dunkelblau); flex-shrink: 0; }
.wunsch .btn:hover { background: #fff; }

.rechtstext { max-width: 46rem; padding-bottom: clamp(4rem, 8vw, 6rem); }
.rechtstext h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.rechtstext p, .rechtstext li { color: #3B4650; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext .stand { color: var(--grau); font-size: .9rem; margin-top: 2.5rem; }

/* ---------- Fussbereich ---------- */
.site-footer { background: #182028; color: #B9C3CA; padding-block: 3.5rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-logo { display: inline-block; background: var(--warmweiss); padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.footer-logo img { width: 160px; }
.site-footer h2 { font-family: var(--schrift-text); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #DCE3E8; text-decoration: none; }
.site-footer a:hover { color: var(--tuerkis); }
.footer-unten { padding-top: 1.5rem; font-size: .85rem; }

/* ---------- Knopf "Nach oben" ---------- */
.nach-oben {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 54px; height: 54px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--tuerkis-tief); color: #fff;
  box-shadow: var(--schatten);
  cursor: pointer;
  visibility: hidden;
  transform: translateX(calc(100% + 32px));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), background-color .25s ease, visibility 0s linear .5s;
}
.nach-oben.is-visible {
  visibility: visible;
  transform: none;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), background-color .25s ease, visibility 0s;
}
.nach-oben svg { width: 26px; height: 26px; transition: transform .25s ease; }
.nach-oben:hover { background: var(--dunkelblau); }
.nach-oben:hover svg { transform: translateY(-3px); }

/* ---------- Sanftes Einblenden ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Kopfbereich schmal: Foto oben, Text darunter statt darüber ---------- */
@media (max-width: 900px) {
  .hero-bild { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 60vh; -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent); mask-image: linear-gradient(to bottom, #000 75%, transparent); }
  .hero-bild img { object-position: 50% 55%; }
  .hero .container { min-height: 0; }
  .hero-text { max-width: 36rem; padding-block: .5rem 3.5rem; }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .kacheln, .produkte { grid-template-columns: repeat(2, 1fr); }
  .schritte { grid-template-columns: 1fr; gap: 2rem; }
  .anfrage-grid, .ueber { grid-template-columns: 1fr; }
  .ueber-bild { max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Handy: eigene Anordnung ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .logo-link img { width: 150px; }
  .site-header .container { min-height: 64px; }

  /* Menü klappt aus */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; color: var(--dunkelblau);
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--warmweiss); border-bottom: 1px solid var(--linie);
    padding: .5rem var(--rand) 1.5rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--linie); }
  .nav a:not(.btn)::after { display: none; }
  .nav li:last-child { margin-top: 1.2rem; }
  .nav .btn { width: 100%; min-height: 50px; }

  .hero-text p { font-size: 1.08rem; }
  .hero-text .btn { width: 100%; }

  .section-kopf { flex-direction: column; align-items: start; gap: 1rem; margin-bottom: 2rem; }
  /* Kategorien: kompakte Querformat-Kacheln */
  .kacheln { grid-template-columns: 1fr; gap: 1.75rem; }
  .kachel-bild { aspect-ratio: 16 / 10; }
  .produkte { grid-template-columns: 1fr; }
  .produkt img { aspect-ratio: 4 / 3; }
  .produkt-text .btn { align-self: stretch; }

  .schritt svg { display: none; }
  .ueber-bild { max-width: none; margin-right: 1.2rem; }
  .feld-reihe { grid-template-columns: 1fr; gap: 0; }
  .wunsch { flex-direction: column; align-items: stretch; text-align: left; }
  .wunsch .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .nach-oben { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}
