/* Ihrhover Dorfkrug — Grundlagen: Schrift, Typo, Sektionen, Emaille-Bausteine */

@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/vollkorn-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/vollkorn-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/vollkorn-700italic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish.woff2") format("woff2");
  font-weight: 300 800; font-display: swap;
}

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

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

body {
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  /* Die Seite ist dunkel — helle Flächen sind die Ausnahme */
  color: var(--c-enamel);
  background: var(--c-oak);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }

/* ---------- Typo ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: var(--t-display); line-height: var(--lh-display); letter-spacing: -0.01em; }
h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: -0.005em; }
h3 { font-size: var(--t-h3); line-height: var(--lh-h3); font-weight: 600; }

@media (max-width: 30rem) {
  h1, h2, h3 { hyphens: auto; overflow-wrap: anywhere; hyphenate-limit-chars: 10 6 6; }
}

/* Betonung: kursiv in Messing — die Handschrift des Hauses */
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--c-brass-light);
}

/* Auf hellen Ausnahmeflächen das dunklere Messing */
.section--tint h1 em, .section--tint h2 em, .section--tint h3 em,
.section--white h1 em, .section--white h2 em, .section--white h3 em { color: var(--c-brass); }

strong, b { font-weight: 700; }
.muted { color: var(--c-muted); }

/* ---------- Das Emailleschild: wiederkehrendes Zeichen ---------- */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem 0.36rem;
  background: rgba(176, 125, 36, 0.1);
  color: var(--c-brass-light);
  border: 1px solid rgba(176, 125, 36, 0.42);
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Der kleine Messingpunkt davor — Zierat, kein Inhalt */
.plate::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-brass-light);
}

/* Auf den hellen Ausnahmeflächen bleibt das Emailleschild weiß */
.section--tint .plate,
.section--white .plate {
  background: var(--c-white);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-s);
  box-shadow: inset 0 0 0 2px var(--c-white), inset 0 0 0 3px rgba(36, 28, 21, 0.35);
}
.section--tint .plate::before,
.section--white .plate::before { background: var(--c-brass); }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--wrap-x);
}

.section { padding-block: var(--section-y); }

/* Zweite und dritte dunkle Stufe für den Wechsel */
.section--deep { background: var(--c-oak-2); }
.section--lift { background: var(--c-oak-3); }

/* In einem durchgehend dunklen Haus trägt die Trennung eine feine
   Messingkante — sonst verschwimmen zwei Sektionen zu einem Block. */
#main > * + *,
.site-footer { border-top: 1px solid rgba(224, 171, 77, 0.13); }
.section--tint + *, .section--white + *,
#main > .section--tint, #main > .section--white { border-top-color: rgba(36, 28, 21, 0.1); }

/* Helle Ausnahmeflächen: dort kippen alle Textfarben */
.section--tint, .section--white {
  background: var(--c-enamel-2);
  color: var(--c-ink);
}

.section--white { background: var(--c-enamel); }
.section--tint p, .section--white p { color: var(--c-muted); }

.on-oak { background: var(--c-oak); color: var(--c-enamel); }
p { color: var(--c-soft); }
.section--tint p, .section--white p,
.section--tint .card p, .section--white .card p { color: var(--c-muted); }

/* Sektionskopf */
.section-head { margin-bottom: var(--head-gap); }
.section-head .plate { margin-bottom: var(--sp-3); }
.section-head > p { color: var(--c-soft); max-width: 46em; margin-top: var(--sp-3); }
.section--tint .section-head > p,
.section--white .section-head > p { color: var(--c-muted); }

.section-head--center { text-align: center; }
.section-head--center h2 { margin-inline: auto; max-width: 22ch; }
.section-head--center > p { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  max-width: max-content;
  font-family: var(--font-sans);
  font-size: var(--t-small);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  padding: 1rem 1.7rem;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast),
    border-color var(--duration-fast), translate var(--duration-fast) var(--ease-out);
}

.btn .arr { transition: translate var(--duration-fast) var(--ease-out); }
.btn:hover .arr { translate: 4px 0; }
.btn:active { translate: 0 1px; }

.btn--solid { background: var(--c-brass); color: var(--c-white); }
.btn--solid:hover { background: var(--c-brass-2); }

/* Grundzustand ist dunkel — helle Flächen sind die Ausnahme */
.btn--ghost { border-color: var(--line-dark); color: var(--c-enamel); }
.btn--ghost:hover { border-color: var(--c-enamel); background: rgba(247, 242, 231, 0.08); }

.section--tint .btn--ghost,
.section--white .btn--ghost {
  border-color: var(--line-strong);
  color: var(--c-ink);
  background: transparent;
}

.section--tint .btn--ghost:hover,
.section--white .btn--ghost:hover {
  border-color: var(--c-ink);
  background: rgba(36, 28, 21, 0.06);
}

/* ---------- Karten & Rahmen ---------- */
.card {
  background: rgba(247, 242, 231, 0.055);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  transition: border-color var(--duration-fast), translate var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.card:where(a, .is-hoverable):hover {
  border-color: var(--c-brass-light);
  translate: 0 -3px;
  box-shadow: 0 20px 40px -28px rgba(36, 28, 21, 0.55);
}

.section--tint .card,
.section--white .card {
  background: var(--c-white);
  border-color: var(--line);
}

.frame {
  display: block;
  border-radius: var(--radius-m);
  overflow: clip;
  background: var(--c-oak-3);
  min-width: 0;
}

.frame img { width: 100%; height: 100%; object-fit: cover; }
html.js .frame[data-reveal-img] img { transform: scale(1.06); }

/* ---------- Fokus, Skip, Reveal ---------- */
:focus-visible { outline: 2px solid var(--c-brass-light); outline-offset: 3px; }
.section--tint :focus-visible, .section--white :focus-visible { outline-color: var(--c-brass); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-oak); color: var(--c-enamel);
  padding: 0.7rem 1.2rem; z-index: 300;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

html.js [data-reveal] { opacity: 0; transform: translateY(22px); }
html.js.reduced-motion [data-reveal] { opacity: 1; transform: none; }

::selection { background: var(--c-brass-light); color: var(--c-oak); }
