/* ==========================================================================
   Pension da Carla – Assmannshausen
   Keine externen Schriften/CDNs (DSGVO-freundlich, schnell)
   ========================================================================== */

:root {
  --creme: #faf6ef;
  --creme-dunkel: #f1e9dc;
  --terracotta: #b4532a;
  --terracotta-dunkel: #8f3f1d;
  --ocker: #d9a441;
  --rebe: #2f4a34;
  --rebe-dunkel: #1f3324;
  --text: #2b2420;
  --text-leise: #6b5f57;
  --linie: #e2d6c4;
  --weiss: #ffffff;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* fluide Seitenränder: Inhalte nutzen die volle Breite, nur mit Luft am Rand */
  --rand: clamp(16px, 4vw, 72px);
  --abstand: clamp(56px, 8vw, 120px);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(16px, 0.25vw + 15px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--terracotta-dunkel); }
a:hover { color: var(--terracotta); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--rebe-dunkel);
}
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.vorzeile {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--rebe); color: var(--weiss); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-booking { background: #003580; color: var(--weiss); }       /* Booking.com-Blau */
.btn-booking:hover { background: #00275e; color: var(--weiss); }
.btn-hell { background: transparent; color: var(--weiss); border-color: rgba(255,255,255,0.7); }
.btn-hell:hover { background: var(--weiss); color: var(--rebe-dunkel); }
.btn-primaer { background: var(--terracotta); color: var(--weiss); }
.btn-primaer:hover { background: var(--terracotta-dunkel); color: var(--weiss); }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem var(--rand);
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.logo {
  font-family: var(--serif);
  text-decoration: none;
  color: var(--rebe-dunkel);
  line-height: 1.1;
}
.logo strong { display: block; font-size: 1.35rem; }
.logo span { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-leise); font-family: var(--sans); }

.nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 2rem); }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--terracotta); }
.nav .btn { padding: 0.65em 1.2em; font-size: 0.92rem; }

.menue-knopf {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--rebe-dunkel);
}
.menue-knopf svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .menue-knopf { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--creme); border-bottom: 1px solid var(--linie);
    padding: 0.5rem var(--rand) 1.25rem;
    display: none;
  }
  .nav.offen { display: flex; }
  .nav a:not(.btn) { padding: 0.8rem 0; border-bottom: 1px solid var(--linie); }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  min-height: min(88vh, 860px);
  padding: var(--abstand) var(--rand);
  color: var(--weiss);
  background:
    linear-gradient(100deg, rgba(31, 51, 36, 0.92) 0%, rgba(31, 51, 36, 0.78) 45%, rgba(31, 51, 36, 0.35) 100%),
    url("../img/hero-hintergrund.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero h1 {
  color: var(--weiss);
  font-size: clamp(2.6rem, 5vw + 1rem, 5.6rem);
  margin-bottom: 0.3em;
}
.hero h1 em { font-style: italic; color: var(--ocker); }
.hero .vorzeile { color: var(--ocker); }
.hero-text p { font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.35rem); max-width: 38ch; opacity: 0.95; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-bild {
  justify-self: center;
  width: min(100%, 380px);
  background: var(--weiss);
  padding: 12px 12px 44px;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
  position: relative;
}
.hero-bild img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.hero-bild figcaption {
  position: absolute; left: 0; right: 0; bottom: 10px;
  text-align: center; font-family: var(--serif); font-style: italic; color: var(--text-leise);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .hero-bild { width: min(78%, 300px); transform: rotate(1.5deg); }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: var(--abstand) var(--rand); }
.abschnitt-kopf { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.abschnitt-kopf p { color: var(--text-leise); font-size: 1.08rem; }
.hell { background: var(--weiss); }
.dunkel { background: var(--creme-dunkel); }

/* Willkommen: Text + Bild nebeneinander, volle Breite */
.zweispaltig {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}
.zweispaltig .text { max-width: 62ch; }
.bild-rahmen { position: relative; }
.bild-rahmen img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(43, 36, 32, 0.15);
}
.bild-rahmen::before {
  content: "";
  position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--ocker);
  border-radius: var(--radius);
  z-index: -1;
}
.unterschrift { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--terracotta-dunkel); }

@media (max-width: 860px) {
  .zweispaltig { grid-template-columns: 1fr; }
  .bild-rahmen::before { inset: 12px -10px -12px 10px; }
}

/* Merkmale */
.merkmale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 2rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 1100px) { .merkmale { grid-template-columns: repeat(2, 1fr); } }
.merkmal {
  background: var(--creme);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.merkmal svg { width: 34px; height: 34px; color: var(--terracotta); margin-bottom: 0.75rem; }
.merkmal h3 { margin-bottom: 0.3em; }
.merkmal p { margin: 0; color: var(--text-leise); font-size: 0.97rem; }
@media (max-width: 520px) {
  .merkmal { padding: 1rem; }
  .merkmal h3 { font-size: 1.05rem; }
  .merkmal p { font-size: 0.88rem; }
}

/* Galerie: randlos über die volle Breite */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 6px;
  margin: 0 calc(var(--rand) * -1);
}
.galerie button {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  overflow: hidden; display: block;
}
.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s;
}
.galerie button:hover img,
.galerie button:focus-visible img { transform: scale(1.05); filter: brightness(1.05); }

@media (max-width: 520px) {
  .galerie { grid-template-columns: repeat(2, 1fr); }
}

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 96vw; max-height: 92vh;
}
.lightbox::backdrop { background: rgba(20, 16, 14, 0.9); }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; border-radius: 4px; }
.lightbox p { color: var(--weiss); text-align: center; margin: 0.6rem 0 0; }
.lightbox-zu {
  position: fixed; top: 14px; right: 18px;
  background: none; border: 0; color: var(--weiss); font-size: 2.4rem; line-height: 1; cursor: pointer;
}

/* Booking-Band */
.booking-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) var(--rand);
  background: var(--terracotta);
  color: var(--weiss);
}
.booking-band h2 { color: var(--weiss); margin: 0 0 0.2em; font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); }
.booking-band p { margin: 0; opacity: 0.92; max-width: 60ch; }
.booking-band .btn-booking { background: var(--weiss); color: #003580; font-size: 1.05rem; }
.booking-band .btn-booking:hover { background: var(--creme); }

/* Umgebung */
.ausflug-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none; padding: 0; margin: 0;
}
.ausflug-liste li {
  border-left: 3px solid var(--ocker);
  padding: 0.25rem 0 0.25rem 1.25rem;
}
.ausflug-liste strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--rebe-dunkel); }
.ausflug-liste span { color: var(--text-leise); font-size: 0.97rem; }

/* Anreise + Kontakt */
.kontakt-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}
@media (max-width: 960px) { .kontakt-raster { grid-template-columns: 1fr; } }

.adresse { font-style: normal; font-size: 1.1rem; margin-bottom: 1.5rem; }
.kontaktdaten { list-style: none; padding: 0; margin: 0 0 2rem; }
.kontaktdaten li { display: flex; gap: 0.75rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--linie); }
.kontaktdaten svg { width: 20px; height: 20px; color: var(--terracotta); flex-shrink: 0; }
.kontaktdaten a { text-decoration: none; }
.dunkel .hinweis { background: var(--weiss); }
.hinweis {
  background: var(--creme-dunkel);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-leise);
}

/* Formular */
.formular {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 20px 40px rgba(43, 36, 32, 0.06);
}
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .feld-reihe { grid-template-columns: 1fr; } }
.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.feld label small { font-weight: 400; color: var(--text-leise); }
.feld input,
.feld textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--creme);
  font: inherit;
  color: var(--text);
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld input:focus,
.feld textarea:focus { outline: 2px solid var(--ocker); outline-offset: 1px; background: var(--weiss); }
.zustimmung { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-leise); margin-bottom: 1.5rem; }
.zustimmung input { margin-top: 0.3rem; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--terracotta); }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.meldung { border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 1.25rem; font-weight: 500; }
.meldung[hidden] { display: none; }
.meldung.ok { background: #e3efe2; color: var(--rebe-dunkel); }
.meldung.fehler { background: #f7e1d8; color: var(--terracotta-dunkel); }

/* ---------- Fußzeile ---------- */
.fuss {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 2rem var(--rand);
  background: var(--rebe-dunkel);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}
.fuss a { color: rgba(255, 255, 255, 0.9); text-decoration: none; margin-left: 1.25rem; }
.fuss a:first-child { margin-left: 0; }
.fuss a:hover { color: var(--ocker); }

/* ---------- Rechtstexte ---------- */
.rechtstext { padding: var(--abstand) var(--rand); }
.rechtstext > * { max-width: 75ch; }
.rechtstext h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
.rechtstext h2 { font-size: 1.4rem; margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
