/* =========================================================
   Gästehaus Anita Nowak – modern redesign
   Palette: warm sand, sage/forest green, deep ink
   ========================================================= */
:root {
  --green-900: #1f3a2e;
  --green-700: #2f5a44;
  --green-600: #3c6b52;
  --green-500: #4f8266;
  --sand-50:  #faf7f1;
  --sand-100: #f3ede1;
  --sand-200: #e7dcc7;
  --ink-900:  #23231f;
  --ink-700:  #46453d;
  --ink-500:  #6b6a5f;
  --gold:     #c99a4b;
  --white:    #ffffff;
  --shadow-sm: 0 2px 8px rgba(31,58,46,.08);
  --shadow-md: 0 10px 30px rgba(31,58,46,.12);
  --shadow-lg: 0 24px 60px rgba(31,58,46,.22);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--sand-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--green-700); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--green-900); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--green-900); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn-outline:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
  background: rgba(24,38,30,.18);
  backdrop-filter: saturate(140%) blur(4px);
  -webkit-backdrop-filter: saturate(140%) blur(4px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1.05; color: #fff; transition: color .3s ease; }
.brand .brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; }
.brand .brand-sub { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; opacity: .85; }
.site-header.scrolled { background: rgba(250,247,241,.92); backdrop-filter: saturate(160%) blur(10px); box-shadow: var(--shadow-sm); padding: 12px 0; }
.site-header.scrolled .brand { color: var(--green-900); }
.site-header.scrolled .nav a { color: var(--ink-700); }
.site-header.scrolled .nav a:not(.cta) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.scrolled .nav a.cta { color: #fff; }
.site-header.scrolled .menu-toggle span { background: var(--green-900); }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: rgba(255,255,255,.94); font-size: 1.08rem; font-weight: 500; position: relative; }
.nav a:not(.cta) {
  padding: .55rem 1.1rem; border-radius: 999px;
  background: rgba(28,42,34,.3);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
}
.nav a:not(.cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav a:not(.cta):hover::after { width: 100%; }
.nav a.cta { background: var(--gold); color: #fff; padding: .65rem 1.35rem; border-radius: 999px; }
.nav a.cta::after { display: none; }
.nav a.cta:hover { background: #b3852f; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; text-align: center;
  background: linear-gradient(180deg, rgba(20,35,28,.28) 0%, rgba(20,35,28,.42) 100%),
              url("https://gaestehaus-anita.de/bilder-nowak/neu/nowak-gailingen-006.jpg") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,58,46,0) 55%, rgba(31,58,46,.65) 100%);
}
.hero-inner {
  position: relative; z-index: 2; max-width: 720px; margin: 0 auto; padding: 3.4rem 3.2rem;
  background: rgba(28,42,34,.28);
  backdrop-filter: blur(6px) saturate(125%);
  -webkit-backdrop-filter: blur(6px) saturate(125%);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero .eyebrow {
  display: inline-block; letter-spacing: .35em; text-transform: uppercase;
  font-size: .78rem; margin-bottom: 1.4rem; color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.4); padding: .5rem 1.2rem; border-radius: 999px;
}
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0 0 1rem; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.4rem); max-width: 620px; margin: 0 auto 2.2rem; color: rgba(255,255,255,.95); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.85); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- Section basics ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .kicker { color: var(--gold); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: .6rem 0 1rem; }
.section-head p { color: var(--ink-700); font-size: 1.08rem; margin: 0; }
.alt { background: var(--sand-100); }
.dark { background: var(--green-900); color: rgba(255,255,255,.9); }
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p { color: rgba(255,255,255,.8); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.about-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.2rem; }
.about-text p { color: var(--ink-700); margin: 0 0 1.1rem; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; }
.about-media .stamp {
  position: absolute; bottom: -26px; right: -18px; background: var(--gold); color: #fff;
  border-radius: 50%; width: 128px; height: 128px; display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow-md); font-family: var(--serif); line-height: 1.1; padding: 10px;
}
.about-media .stamp b { display:block; font-size: 1.9rem; }
.about-media .stamp span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

.feature-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--sand-100);
  border: 1px solid var(--sand-200); color: var(--green-900); padding: .5rem 1rem;
  border-radius: 999px; font-size: .9rem; font-weight: 500;
}

/* Mindestmietdauer-Hinweis in der Studiowohnung */
.min-stay {
  display: inline-flex; align-items: center; gap: .55rem; margin: 1.4rem 0 0;
  background: var(--sand-100); border: 1px solid var(--sand-200);
  color: var(--green-900); padding: .6rem 1.1rem; border-radius: 999px;
  font-size: .92rem;
}
.min-stay strong { font-weight: 700; }

/* Distances strip */
.distances { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 4rem; }
.distance {
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius);
  padding: 1.6rem 1.3rem; text-align: center; box-shadow: var(--shadow-sm);
}
.distance b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--green-700); }
.distance span { color: var(--ink-500); font-size: .92rem; }

/* ---------- Cards / Rooms ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.04);
  display: flex; flex-direction: column; transition: transform .28s ease, box-shadow .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .thumb { aspect-ratio: 4/3; overflow: hidden; cursor: zoom-in; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.card-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.card-body p { color: var(--ink-700); font-size: .96rem; margin: 0 0 1.2rem; flex: 1; }
.price-tag { display: flex; align-items: baseline; gap: .4rem; margin-top: auto; }
.price-tag .from { font-size: .8rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; }
.price-tag .amount { font-family: var(--serif); font-size: 1.9rem; color: var(--green-700); font-weight: 700; }
.price-tag .unit { font-size: .85rem; color: var(--ink-500); }

/* Amenities list */
.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: .8rem 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.amenities li { display: flex; align-items: center; gap: .7rem; color: var(--ink-700); }
.amenities li::before { content: "✓"; color: var(--green-600); font-weight: 700; }

/* ---------- Studio split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split .media { min-height: 420px; background-size: cover; background-position: center; }
.split .content { background: var(--white); padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.split .content h3 { font-size: 2rem; margin: 0 0 1rem; }
.split .content p { color: var(--ink-700); margin: 0 0 1.4rem; }
.split.wide { margin-left: 2rem; margin-right: 2rem; }
.studio-price { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1.6rem; }
.studio-price .amount { font-family: var(--serif); font-size: 2.4rem; color: var(--green-700); font-weight: 700; }
.studio-price .note { color: var(--ink-500); font-size: .9rem; }
.studio-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.6rem 2rem 0; }
.studio-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.studio-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform .4s ease; display: block; }
.studio-gallery figure:hover img { transform: scale(1.06); }

/* ---------- Gallery ---------- */
/* grid-auto-flow: dense – kleinere Bilder füllen Lücken auf, die entstehen,
   wenn ein breites Bild nicht mehr in die Restspalte einer Reihe passt. */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px;
           grid-auto-flow: row dense; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.08); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- Umgebung ---------- */
.umgebung-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.5rem; align-items: center; }
.umgebung-grid img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.umgebung-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.umgebung-list li { display: flex; gap: .9rem; }
.umgebung-list .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-content: center; font-size: 1.1rem; }

/* ---------- Contact / Booking ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--green-700); color: #fff; display: grid; place-content: center; font-size: 1.2rem; }
.info-item h4 { margin: 0 0 .2rem; font-family: var(--sans); font-size: 1rem; color: var(--green-900); }
.info-item p, .info-item a { margin: 0; color: var(--ink-700); }
.map-embed { border: 0; width: 100%; height: 260px; border-radius: var(--radius); margin-top: .5rem; box-shadow: var(--shadow-sm); }

form.booking { background: var(--white); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--green-900); margin-bottom: .35rem; }
.field-hint { grid-column: 1 / -1; margin: -.4rem 0 1.1rem; font-size: .85rem; color: var(--ink-500); }

/* Ablauf einer Anfrage – drei nummerierte Schritte */
.ablauf {
  list-style: none; counter-reset: schritt; margin: 2.4rem auto 0; padding: 0;
  max-width: 62rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.ablauf li {
  counter-increment: schritt; position: relative;
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-sm);
  padding: 1.5rem 1.4rem 1.4rem; text-align: left;
}
.ablauf li::before {
  content: counter(schritt); display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; margin-bottom: .8rem; border-radius: 999px;
  background: var(--gold); color: #fff; font-weight: 700; font-size: .95rem;
}
.ablauf strong { display: block; color: var(--green-900); margin-bottom: .3rem; }
.ablauf span { display: block; color: var(--ink-500); font-size: .9rem; line-height: 1.55; }
.form-error {
  grid-column: 1 / -1; margin: -.4rem 0 1.1rem; padding: .7rem .95rem; border-radius: 9px;
  background: #fbe9e7; color: #a3271b; font-size: .88rem; font-weight: 500;
}
.form-error[hidden] { display: none; }

/* Spamschutz-Feld: aus dem sichtbaren Bereich geschoben statt display:none –
   manche Bots überspringen versteckte Felder gezielt. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Rückmeldung nach dem Absenden */
.form-status {
  margin: 0 0 1.1rem; padding: .9rem 1.1rem; border-radius: 9px;
  font-size: .92rem; font-weight: 500; line-height: 1.5;
}
.form-status[hidden] { display: none; }
.form-status.ok { background: #e7f4ec; color: #1c5a37; }
.form-status.fehler { background: #fbe9e7; color: #a3271b; }
form.booking .btn-primary[disabled] { opacity: .6; cursor: progress; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .98rem; padding: .75rem .9rem;
  border: 1.5px solid var(--sand-200); border-radius: var(--radius-sm); background: var(--sand-50);
  transition: border .2s ease, box-shadow .2s ease; color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(79,130,102,.15); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
form.booking .btn-primary { width: 100%; justify-content: center; margin-top: .4rem; }
.form-note { font-size: .82rem; color: var(--ink-500); margin: 1rem 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer .brand-name { font-family: var(--serif); font-size: 1.6rem; color: #fff; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(15,25,20,.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 3vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 22px; right: 30px; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; background: none; border: 0; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; width: 54px; height: 54px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; transition: background .2s; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-prev { left: 24px; } .lightbox .lb-next { right: 24px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--green-900); color: #fff; padding: 150px 0 60px; }
.legal-hero h1 { color: #fff; font-size: clamp(2rem,5vw,3rem); }
.legal-body { max-width: 820px; margin: 0 auto; padding: 60px 24px 90px; }
.legal-body h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.legal-body h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.legal-body p { color: var(--ink-700); }
.legal-body address { font-style: normal; background: var(--sand-100); padding: 1.2rem 1.4rem; border-radius: var(--radius-sm); border-left: 4px solid var(--gold); margin: 1.2rem 0; }
.back-home { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .umgebung-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .split .media { min-height: 300px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .distances { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media .stamp { right: 12px; }
}
@media (max-width: 640px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column;
    align-items: flex-start; justify-content: flex-start; gap: 1.4rem;
    background: var(--sand-50); padding: 90px 32px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .32s ease; z-index: 90;
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: var(--green-900) !important; font-size: 1.28rem; }
  .nav a:not(.cta) { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
  section { padding: 68px 0; }
  .cards, .form-row { grid-template-columns: 1fr; }
  .ablauf { grid-template-columns: 1fr; }
  .distances { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .split .content { padding: 2rem; }
  .studio-gallery { grid-template-columns: 1fr; }
  .about-media .stamp { width: 104px; height: 104px; }
}
