/* Schreinerei Gmeiner – keine externen Schriften, alles lokal. */

:root {
  color-scheme: light;
  --wood: #c99d63;          /* Fallback, solange das Holzbild lädt */
  --ink: #2b170a;           /* eingebrannte Schrift */
  --ink-soft: #4d2e15;
  --scorch: rgba(122, 66, 22, 0.35);
  --emboss: rgba(255, 238, 210, 0.45);
  --paper: #fbf6ee;
  --eggshell: #f0ead6;      /* Schrift auf dunklen Buttons */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

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

html { background: var(--wood); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Holz als fixe Ebene (statt background-attachment: fixed, das iOS ignoriert) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 238, 205, 0.28), transparent 70%),
    radial-gradient(ellipse at center, transparent 55%, rgba(60, 30, 10, 0.42) 100%),
    url("/img/eiche.webp") center / cover no-repeat,
    var(--wood);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Nur für Screenreader, Suchmaschinen und Agenten sichtbar (Text des Logos) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Brandzeichen ---------- */

.brand-mark {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;   /* Maserung scheint durch die Brandstelle */
}

/* ---------- Startseite ---------- */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vh, 3.5rem);
  padding: 2rem 16px;
  text-align: center;
}

.brand {
  margin: 0;
  width: min(540px, 88vw, 62vh);
  animation: brand-in 1.6s ease-out both;
}

@keyframes brand-in {
  from { opacity: 0; filter: blur(6px); }
  to   { opacity: 1; filter: blur(0); }
}

/* Schwebende Tafel: Text nie direkt aufs Holz */
.card {
  width: min(56rem, 100%);
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: #2e2219;
  background: rgba(247, 242, 230, 0.94);   /* Eierschale */
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(40, 20, 5, 0.2),
    0 18px 48px rgba(40, 20, 5, 0.3);
  animation: fade-in 1s 0.4s ease-out both;
}

.intro {
  max-width: 36rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  text-wrap: balance;
}

.intro p { margin: 0; }

.contact {
  font-style: normal;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(110, 58, 18, 0.18);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.contact__address {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(43, 23, 10, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s;
}

.contact__address:hover { text-decoration-color: var(--ink); }

.contact__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Buttons wie eingebrannte Lederanhänger: dunkel, heller Text, gut lesbar */
.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  min-height: 48px;
  text-decoration: none;
  font-weight: 600;
  color: var(--eggshell);
  text-shadow: none;
  background: rgba(36, 19, 7, 0.9);
  border: 1px solid #1a0d04;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.12), 0 3px 10px rgba(40, 20, 5, 0.2);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.contact__links a:hover {
  background: #5a3013;
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.18), 0 0 0 4px var(--scorch), 0 3px 10px rgba(40, 20, 5, 0.2);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.sep { opacity: 0.6; }
.br-mobile { display: none; }

/* ---------- Rechtliche Seiten ---------- */

.page-head {
  display: flex;
  justify-content: center;
  padding: 2rem 16px 1.25rem;
}

.page-head__logo {
  display: block;
  width: min(260px, 60vw);
}

.sheet {
  flex: 1;
  width: min(46rem, calc(100% - 32px));
  margin: 0 auto 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--paper);
  color: #2e2219;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(40, 20, 5, 0.25), 0 12px 40px rgba(40, 20, 5, 0.25);
  overflow-wrap: anywhere;
}

.sheet h1 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1.2;
  color: var(--ink);
}

.sheet h2 {
  margin: 2rem 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a4a22;
}

.sheet p { margin: 0 0 0.9rem; }
.sheet a { color: #6b3a14; }
.sheet .lead { font-size: 1.1rem; padding: 1rem 1.2rem; background: #f3e8d6; border-radius: 4px; }
.sheet .meta { margin-top: 2rem; font-size: 0.9rem; color: #7d6a5a; }

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

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  padding: 0.9rem 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--eggshell);
  background: rgba(36, 19, 7, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.12), 0 -6px 18px rgba(40, 20, 5, 0.18);
}

.foot a { text-decoration-color: rgba(240, 234, 214, 0.5); }
.foot a:hover { text-decoration-color: var(--eggshell); }

.foot nav { display: flex; gap: 1.25rem; }

/* ---------- Klein ---------- */

/* Unterhalb dieser Breite passen die drei Buttons nicht in eine Reihe → gleichmäßig stapeln */
@media (max-width: 940px) {
  .contact__links { flex-direction: column; width: min(100%, 24rem); }
  .contact__links a { display: flex; justify-content: center; }
}

@media (max-width: 560px) {
  .sep { display: none; }
  .br-mobile { display: inline; }
  .contact__address { flex-direction: column; gap: 0.35rem; text-align: center; }
  .contact__links { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .brand, .card { animation: none; }
  .contact__links a { transition: none; }
}
