/* Haarwerk Huber – gemeinsame Styles für alle Seiten
   Richtung A "warm & klassisch": Creme, Kupfer, Dunkelbraun; Cormorant Garamond + Lato.
   Schriften liegen im Ordner fonts/ (selbst gehostet, keine Verbindung zu Google → DSGVO). */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/lato-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #faf7f2;
  --bg-alt: #f3ece2;
  --text: #2b2622;
  --muted: #6f655c;
  --accent: #8a5a3c;
  --accent-dark: #6f4630;
  --line: #e4dcd0;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 4.25rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h2 { font-size: clamp(2rem, 5vw, 2.75rem); color: var(--text); margin-bottom: 0.5rem; }
h3 { font-size: 1.5rem; }
.eyebrow {
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem; display: block;
}
.lead { color: var(--muted); max-width: 38rem; margin-bottom: 2rem; }
.small { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }

.notice {
  background: var(--text); color: var(--bg); text-align: center;
  font-size: 0.85rem; padding: 0.45rem 1rem;
}

/* ───────── Buttons ───────── */
.button {
  display: inline-block; padding: 0.85rem 1.8rem; min-height: 44px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid var(--accent); border-radius: 2px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.secondary, .button.ghost { background: transparent; color: var(--accent); }
.button.secondary:hover, .button.ghost:hover { background: var(--accent); color: #fff; }
.button.light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.button.light:hover { background: #fff; color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ───────── Kopfzeile mit Menü (bleibt oben stehen) ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50; transition: box-shadow 0.3s;
  background: rgba(250, 247, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .inner {
  max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.site-header.scrolled { box-shadow: 0 6px 20px -10px rgba(43, 38, 34, 0.35); }
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 1.75rem; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; padding: 0.5rem 0; }
.site-nav a:hover { color: var(--accent); }
.header-cta .short { display: none; }
.header-cta { padding: 0.6rem 1.2rem; font-size: 0.9rem; white-space: nowrap; min-height: 0; }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 2px;
  width: 44px; height: 44px; cursor: pointer; color: var(--text); font-size: 1.4rem; line-height: 1;
}

/* Handy: Menü wird zum Aufklappmenü (☰) */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .header-cta { padding: 0.55rem 0.9rem; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(43, 38, 34, 0.08);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1rem; }
  .site-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav li:last-child a { border-bottom: none; }
}
@media (max-width: 860px) { .site-header .inner { gap: 0.75rem; } }
@media (max-width: 480px) { .logo { font-size: 1.35rem; } .header-cta .long { display: none; } .header-cta .short { display: inline; } }

/* ───────── Hero: Text links, Foto rechts (Foto behält seine Form) ───────── */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 1.25rem; overflow: hidden; }
.hero .inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 4.6rem); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { font-size: 1.15rem; max-width: 30rem; margin: 1.25rem 0 2rem; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 24px 48px -24px rgba(43, 38, 34, 0.45); }
.hero-photo::before { /* versetzter Rahmen hinter dem Foto */
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--accent); border-radius: 2px; z-index: -1;
}
.hero .facts { margin-top: 2.5rem; }
@media (max-width: 860px) {
  .hero .inner { grid-template-columns: 1fr; }
  .hero-photo { margin-right: 1.25rem; }
}

/* ───────── Abschnitte ───────── */
.section { padding: clamp(3.5rem, 8vw, 6rem) 1.25rem; }
.section.alt { background: var(--bg-alt); }
.container { max-width: 1120px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }

/* Über uns: Text + Bild nebeneinander */
.split { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split img { width: 100%; max-width: 360px; height: auto; justify-self: end; border-radius: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }
.facts strong { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--accent); line-height: 1; }
.facts span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split img { max-width: 280px; justify-self: start; } }

/* Preise: Aufklapp-Liste (details/summary) */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0.25rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--accent);
  transition: transform 0.2s;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion summary .from { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin-left: auto; margin-right: 0.75rem; }
.accordion .panel { padding: 0 0.25rem 1.25rem; }
.price-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 0.5rem 1rem;
  padding: 0.75rem 0; border-bottom: 1px dotted var(--line);
}
.price-row:last-child { border-bottom: none; }
.price-row .name { font-weight: 700; }
.price-row .meta { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.price-row .price { white-space: nowrap; }
.price-row .book { font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 520px) {
  .price-row { grid-template-columns: 1fr auto; }
  .price-row .book { grid-column: 1 / -1; }
}

/* FAQ nutzt dieselbe Aufklapp-Optik, nur kleiner */
.accordion.faq summary { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; }
.accordion.faq .panel p { color: var(--muted); max-width: 44rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.member { background: var(--bg); border: 1px solid var(--line); padding: 2rem 1.5rem; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.member:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(43, 38, 34, 0.4); }
.avatar {
  width: 96px; height: 96px; margin: 0 auto 1.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-family: var(--serif); font-size: 2.2rem; font-weight: 600;
}
.member:nth-child(2) .avatar { background: #a77a5c; }
.member:nth-child(3) .avatar { background: #5e4a3c; }
.member .role { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0.25rem 0 0.75rem; }
.member p:last-child { color: var(--muted); font-size: 0.95rem; }

/* Galerie */
.gallery { columns: 4 220px; column-gap: 1rem; }
.gallery figure { break-inside: avoid; margin-bottom: 1rem; overflow: hidden; border-radius: 2px; background: var(--line); }
.gallery img { width: 100%; height: auto; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure:first-child { margin-top: 3rem; } /* versetzter Start = lockereres Bild */
@media (max-width: 640px) { .gallery { columns: 2; column-gap: 0.75rem; } .gallery figure { margin-bottom: 0.75rem; } .gallery figure:first-child { margin-top: 1.5rem; } }

/* Bewertungen */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.review { border-left: 3px solid var(--accent); padding: 0.25rem 0 0.25rem 1.25rem; }
.review blockquote { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; }
.review figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; }
.stars { color: var(--accent); letter-spacing: 0.15em; font-size: 0.95rem; margin-bottom: 0.5rem; }

/* Kontakt + Öffnungszeiten */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 700px) { .contact { grid-template-columns: 1fr; } }
.contact h3 { margin-bottom: 0.75rem; }
.contact address { font-style: normal; }

/* ───────── Tabellen, Formular (auch termin.html) ───────── */
table { width: 100%; border-collapse: collapse; }
td { padding: 0.6rem 0; border-bottom: 1px dotted var(--line); }
td:last-child { text-align: right; white-space: nowrap; }
form { display: grid; gap: 1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--text); background: #fff; min-height: 44px;
  border: 1px solid var(--line); border-radius: 2px; padding: 0.65rem 0.75rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 5rem; resize: vertical; }
form button { justify-self: start; margin-top: 0.5rem; }
form button:disabled { opacity: 0.6; cursor: wait; }
.hp { position: absolute; left: -9999px; }
#form-status { min-height: 1.5rem; }
#form-status.ok { color: #2f6b3a; }
#form-status.error { color: #a33a2a; }
.booking-card { background: #fff; border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: 0 20px 40px -28px rgba(43, 38, 34, 0.35); }
.booking-card { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .booking-card { grid-template-columns: 1fr; gap: 0.5rem; } .booking-intro .small { display: none; } }
.booking-card h2 { font-size: clamp(1.9rem, 4vw, 2.3rem); }
.booking-card .lead { margin-bottom: 1.25rem; font-size: 0.95rem; }
#termin.section { padding-top: clamp(2.5rem, 6vw, 4rem); }

/* ───────── Fußzeile ───────── */
.site-footer { background: var(--text); color: #d9cfc4; text-align: center; font-size: 0.9rem; padding: 2.5rem 1.25rem; }
.site-footer a { color: inherit; }
.site-footer .logo { color: #fff; display: inline-block; margin-bottom: 0.5rem; }
.site-footer .logo span { color: #d4a585; } /* hellerer Kupferton: genug Kontrast auf Dunkelbraun */

/* ───────── Unterseiten (termin.html, Impressum, Datenschutz) ───────── */
header.small-header { text-align: center; padding: 2.5rem 1.5rem 2rem; border-bottom: 1px solid var(--line); }
header.small-header h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 600; }
header.small-header a { color: inherit; text-decoration: none; }
header.small-header p { color: var(--muted); margin-top: 0.25rem; }
/* nur auf den Unterseiten (body class="subpage"), nicht auf der Startseite */
.subpage > main { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.subpage > main > section { padding: 3rem 0; }
.subpage > main h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.subpage > footer { text-align: center; font-size: 0.85rem; color: var(--muted); padding: 2rem 1rem 3rem; }
.subpage > footer a { color: inherit; }
.details { width: 100%; margin: 1rem 0 2rem; }
.details td:first-child { color: var(--muted); width: 35%; }
.details td:last-child { text-align: left; white-space: normal; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
button.button { font-size: 1rem; }
.hidden { display: none !important; }
#move-form { margin-top: 2rem; }
.badge { display: inline-block; font-size: 0.85rem; padding: 0.15rem 0.6rem; border-radius: 2px; background: var(--line); }
.badge.cancelled { background: #f3d9d4; color: #a33a2a; }
.legal h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin-bottom: 1rem; }
.legal ul { padding-left: 1.25rem; }
.fictional { background: var(--bg-alt); border-left: 3px solid var(--accent); padding: 0.75rem 1rem; font-size: 0.9rem; margin-bottom: 2rem; }

/* ───────── Bewegung ───────── */
/* Aufklappen der Preise/FAQ weich animieren (Chrome/Edge; andere Browser klappen einfach auf) */
:root { interpolate-size: allow-keywords; }
.accordion details::details-content {
  height: 0; overflow: clip;
  transition: height 0.35s ease, content-visibility 0.35s allow-discrete;
}
.accordion details[open]::details-content { height: auto; }

/* Beim Scrollen weich einblenden. Nur wenn JavaScript läuft (Klasse "js" am <html>),
   sonst bleibt alles sichtbar. */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].visible { opacity: 1; transform: none; }

/* Hero beim Laden: Text und Foto kommen nacheinander */
.js .hero [data-intro] { opacity: 0; transform: translateY(18px); animation: intro 0.9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--delay, 0s); }
.js .hero .hero-photo[data-intro] { transform: translateY(0) scale(0.97); }
@keyframes intro { to { opacity: 1; transform: none; } }

/* Wer in den Systemeinstellungen "Bewegung reduzieren" an hat, bekommt keine Effekte */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .hero [data-intro] { opacity: 1; transform: none; transition: none; animation: none; }
  .gallery img, .member { transition: none; }
  .accordion details::details-content { transition: none; }
}
