/* ==========================================================================
   Schreinerei Feiner — Demo-Gestaltungsvorschlag (unverbindlich)
   Konzept: „Feiner" = Familienname + „fein gearbeitet". Refined minimal,
   handwerklich-warm, präzise, bodenständig. Holz im Mittelpunkt, feine Linien,
   saubere Kanten. Wiedererkennung: Schwalbenschwanz-Zinkung als Emblem.
   Palette: Walnuss #6b4a2f · Espresso #2a221c · Creme #f5f0e8 ·
            Naturgrün #5e6b4f · Amber #c08a3e
   Schriften: Petrona (Headlines) + Instrument Sans (Text), lokal gehostet.
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Petrona";
  src: url("../fonts/petrona.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Petrona";
  src: url("../fonts/petrona-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrumentsans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Designsystem ---------- */
:root {
  --cream: #f5f0e8;          /* Naturweiß / Creme — Grundfläche */
  --cream-deep: #ece4d6;     /* abgesetzte helle Fläche */
  --cream-line: #ddd2bf;     /* Trennlinien auf hellem Grund */
  --walnut: #6b4a2f;         /* Walnussbraun — Leitfarbe */
  --walnut-dark: #553a24;    /* Hover / Tiefe */
  --walnut-pale: #b08a63;    /* helles Holz auf dunklem Grund */
  --espresso: #2a221c;       /* Headlines / Kontrast / Footer */
  --espresso-soft: #5a4f45;  /* abgesetzter Fließtext */
  --green: #5e6b4f;          /* Naturgrün — Sekundärakzent, sparsam */
  --amber: #c08a3e;          /* Messing/Amber — Highlight, sehr sparsam */
  --line-dark: rgba(245, 240, 232, 0.15);

  --font-head: "Petrona", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --container: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* feine Holzmaserung als wiederkehrende Textur (sehr dezent) */
  --grain: repeating-linear-gradient(
    90deg,
    rgba(107, 74, 47, 0.022) 0px,
    rgba(107, 74, 47, 0.022) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* ---------- Reset & Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--espresso);
  background-color: var(--cream);
  background-image: var(--grain);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--walnut); text-decoration: none; }
a:hover { color: var(--walnut-dark); }

::selection { background: var(--walnut); color: var(--cream); }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--espresso);
  text-wrap: balance;
  hyphens: manual;            /* nur an gesetzten &shy;-Stellen trennen */
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.45rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.32rem); }

.mark { color: var(--walnut); font-style: italic; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--walnut);
  flex: none;
}

.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: var(--espresso-soft);
  max-width: 38em;
}

/* ---------- Demo-Leiste ---------- */
.demo-bar {
  background: var(--espresso);
  color: var(--cream);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.5rem var(--pad);
  line-height: 1.45;
}
.demo-bar strong { color: var(--walnut-pale); font-weight: 600; }

/* ---------- Header / Navigation ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--espresso);
}
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.01em;
}
.brand__name small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-top: 0.28rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.8rem);
}
.nav a {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--espresso);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--walnut); }
.nav a[aria-current="page"] { border-bottom-color: var(--walnut); }

.nav__cta {
  background: var(--walnut);
  color: var(--cream) !important;
  padding: 0.55rem 1.15rem !important;
  border-bottom: none !important;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--walnut-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--cream-line);
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--espresso);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* ---------- Schwalbenschwanz-Divider ----------
   Holzverbindung als Sektionsübergang. Farbe der Zinken = Hintergrund der
   Sektion DARÜBER; Grundfarbe = Hintergrund der Sektion DARUNTER. */
.dovetail {
  height: 20px;
  background-repeat: repeat-x;
  background-size: 84px 20px;
  background-position: center top;
}
.dovetail--cream {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 20'%3E%3Cpath fill='%23f5f0e8' d='M25 0 L17 20 L67 20 L59 0 Z'/%3E%3C/svg%3E");
}
.dovetail--creamdeep {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 20'%3E%3Cpath fill='%23ece4d6' d='M25 0 L17 20 L67 20 L59 0 Z'/%3E%3C/svg%3E");
}
.dovetail--espresso {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 20'%3E%3Cpath fill='%232a221c' d='M25 0 L17 20 L67 20 L59 0 Z'/%3E%3C/svg%3E");
}
.bg-cream { background-color: var(--cream); }
.bg-creamdeep { background-color: var(--cream-deep); }
.bg-espresso { background-color: var(--espresso); }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--creamdeep { background: var(--cream-deep); }
.section--espresso { background: var(--espresso); color: var(--cream); }
.section--espresso h2, .section--espresso h3 { color: var(--cream); }
.section--espresso .eyebrow { color: var(--walnut-pale); }
.section--espresso .eyebrow::before { background: var(--walnut-pale); }
.section--espresso p { color: rgba(245, 240, 232, 0.82); }
.section--espresso a { color: var(--walnut-pale); }
.section--espresso a:hover { color: var(--cream); }

.section__head {
  max-width: 46em;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.section__head p { color: var(--espresso-soft); margin-top: 0.9rem; }
.section--espresso .section__head p { color: rgba(245, 240, 232, 0.82); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.3rem; }
.hero .lead { margin-bottom: 2.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Hero-Kunstwerk: großes Schwalbenschwanz-Emblem + Maserungslinien */
.hero__art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero__joint {
  width: clamp(190px, 24vw, 280px);
  filter: drop-shadow(0 18px 36px rgba(42, 34, 28, 0.16));
}

/* feine Telefon-Zeile im Hero */
.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--espresso-soft);
}
.hero__phone strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--walnut);
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.82rem 1.7rem;
  border: 1.5px solid var(--espresso);
  color: var(--espresso);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--espresso); color: var(--cream); }

.btn--solid {
  background: var(--walnut);
  border-color: var(--walnut);
  color: var(--cream);
}
.btn--solid:hover { background: var(--walnut-dark); border-color: var(--walnut-dark); color: var(--cream); }

.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--espresso); }

/* ---------- Möbel-Bereiche (Kacheln) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.tile {
  background: var(--cream);
  /* Trennung per box-shadow, nicht über Container-Hintergrund */
  box-shadow: 0 0 0 1px var(--cream-line);
  padding: 1.8rem 1.6rem 1.6rem;
  color: var(--espresso);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--walnut), 0 14px 30px rgba(42, 34, 28, 0.1);
  color: var(--espresso);
}
.tile__icon { width: 38px; height: 38px; color: var(--walnut); }
.tile h3 { margin-top: 0.25rem; }
.tile p { font-size: 0.96rem; color: var(--espresso-soft); flex-grow: 1; }

/* Kacheln auf Cremedeep-Sektion: weiße Karten mit Schatten-Trennung */
.section--creamdeep .tile { background: var(--cream); box-shadow: 0 0 0 1px var(--cream-line); }
.section--creamdeep .tile:hover { box-shadow: 0 0 0 1px var(--walnut), 0 14px 30px rgba(42, 34, 28, 0.1); }

/* ---------- Werte / Anspruch (auf Espresso) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2.6rem;
}
.value {
  border-top: 2px solid var(--walnut-pale);
  padding-top: 1.1rem;
}
.value svg { width: 30px; height: 30px; color: var(--walnut-pale); margin-bottom: 0.8rem; }
.value h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.value p { font-size: 0.95rem; }

/* ---------- Über-Werkstatt-Split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
.split__art {
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
  background-image: var(--grain);
  box-shadow: 0 0 0 1px var(--cream-line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.split__art svg { width: clamp(120px, 30%, 180px); color: var(--walnut); opacity: 0.85; }
.placeholder-tag {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  right: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--espresso-soft);
  background: rgba(245, 240, 232, 0.85);
  border: 1px dashed var(--walnut);
  padding: 0.35rem 0.6rem;
  text-align: center;
}

/* ---------- Leistungen (Detailseite) ---------- */
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--cream-line);
}
.service:first-of-type { border-top: none; padding-top: 0; }
.service__head h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.service__head svg { width: 42px; height: 42px; color: var(--walnut); margin-bottom: 0.9rem; }
.service__num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--walnut);
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}
.service__body p + p { margin-top: 0.9rem; }
.service__body p { color: var(--espresso-soft); }
.service__body strong { color: var(--espresso); font-weight: 600; }

/* ---------- Werkstatt-Fakten ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.fact {
  background: var(--cream);
  border-left: 3px solid var(--walnut);
  box-shadow: 0 0 0 1px var(--cream-line);
  padding: 1.5rem 1.4rem;
}
.fact strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--espresso);
  margin-bottom: 0.3rem;
}
.fact p { font-size: 0.95rem; color: var(--espresso-soft); }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: var(--espresso);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.cta-band h2 { color: var(--cream); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(245, 240, 232, 0.82); max-width: 38em; margin-inline: auto; }
.cta-band .tel {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--walnut-pale);
  margin-block: 1.4rem 1.6rem;
  font-variant-numeric: tabular-nums;
}
.cta-band .tel:hover { color: var(--cream); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.contact-card {
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--cream-line);
  border-top: 3px solid var(--walnut);
  padding: 1.7rem 1.5rem;
}
.contact-card svg { width: 34px; height: 34px; color: var(--walnut); margin-bottom: 0.8rem; }
.contact-card h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.contact-card p { color: var(--espresso-soft); }
.contact-card .big {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  color: var(--espresso);
  margin-top: 0.4rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.contact-card .big:hover { color: var(--walnut); }
.contact-card .btn { margin-top: 1rem; }

/* ---------- Anfrage-Formular (Demo-Optik, nicht funktional) ---------- */
.form-wrap {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: start;
}
.form-card {
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--cream-line);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.form-card form { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--espresso); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--cream-line);
  background: var(--cream-deep);
  color: var(--espresso);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--walnut);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-consent {
  display: flex;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--espresso-soft);
  align-items: flex-start;
}
.form-consent input { margin-top: 0.25rem; flex: none; }
.form-note {
  background: var(--cream-deep);
  border-left: 3px solid var(--amber);
  padding: 1.2rem 1.4rem;
  color: var(--espresso-soft);
  font-size: 0.95rem;
}
.form-note strong { color: var(--espresso); }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 1.6rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 0.7rem; }
.legal p, .legal address { color: var(--espresso-soft); font-style: normal; }
.legal p + p { margin-top: 0.8rem; }
.legal ul { padding-left: 1.3rem; color: var(--espresso-soft); }

.demo-note {
  background: var(--cream-deep);
  border-left: 3px solid var(--walnut);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
  color: var(--espresso);
}
.placeholder {
  display: inline-block;
  background: var(--cream-deep);
  border: 1px dashed var(--walnut);
  padding: 0.05rem 0.5rem;
  color: var(--walnut);
  font-size: 0.92em;
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--espresso);
  color: rgba(245, 240, 232, 0.78);
  font-size: 0.95rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 3.5rem) 2rem;
}
.foot-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.foot-brand svg { width: 40px; height: 40px; flex: none; }
.foot-brand span { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--cream); }
.site-foot h3 { color: var(--cream); font-size: 1.02rem; margin-bottom: 0.8rem; }
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 0.45rem; }
.site-foot a { color: rgba(245, 240, 232, 0.78); }
.site-foot a:hover { color: var(--walnut-pale); }

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  border-top: 1px solid var(--line-dark);
  padding-block: 1.3rem;
  font-size: 0.85rem;
}
.foot-meta a { color: rgba(245, 240, 232, 0.78); }
.foot-meta a:hover { color: var(--walnut-pale); }

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsiv: Tablet ---------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; margin-bottom: 0.5rem; }
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .split { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Responsiv: Mobil ---------- */
@media (max-width: 660px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-line);
    padding: 0.8rem var(--pad) 1.2rem;
    gap: 0.2rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0.3rem; border-bottom: 1px solid var(--cream-line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--walnut); }
  .nav__cta { text-align: center; margin-top: 0.7rem; }
  body.nav-open .site-head { box-shadow: 0 12px 30px rgba(42, 34, 28, 0.12); }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .tiles, .values, .facts, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand__name { font-size: 1.15rem; }
}
