/* ============================================================
   Ferienhaus Oberzwota – Stylesheet
   Austauschbare Bilder: alle img mit class="page-hero" oder
   class="gallery-img" können direkt ersetzt werden.
   ============================================================ */

/* ── Schriften: lokal gehostet (kein Google-Abruf) ──
   Dateien liegen unter /fonts/ – Namen exakt wie unten. */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/playfair-display-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-display-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-sans-3-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-sans-3-600.woff2') format('woff2');
}

:root {
  --forest:   #2d3d2e;
  --moss:     #4a6741;
  --bark:     #7a5c3a;
  --sand:     #e8dcc8;
  --white:    #fdfcf9;
  --text:     #2a2520;
  --muted:    #6b6258;
  --accent:   #b07d45;
  --border:   #d4c9b4;
  --nav-h:    64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  background-color: var(--sand);
  background-size: cover;
  background-position: center 35%;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 1rem;
}
/* ── Sticky Header ── */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(45,61,46,1);
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.nav-bg { display: none; }
nav { background: transparent; }

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  color: var(--sand);
  font-size: clamp(1.3rem, 5vw, 2.2rem);
  text-decoration: none;
  letter-spacing: .02em;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  line-height: 1.1;
  white-space: nowrap;
  flex: 1 0 auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.nav-links a {
  color: var(--sand);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  padding: .28rem .75rem;
  border: 1px solid rgba(232,220,200,.35);
  border-radius: 99px;
  background: transparent;
  transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
  letter-spacing: .02em;
  opacity: .9;
  flex: 0 0 auto;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent);
  color: var(--white) !important;
  border-color: var(--accent);
  opacity: 1;
  text-decoration: none;
}

/* ── Layout ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

main .container {
  background: rgba(45,61,46,.65);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 32px rgba(0,0,0,.3);
}

main .container h2,
main .container h3,
main .container p,
main .container li {
  color: var(--sand);
}

main .container h2::after {
  background: var(--accent);
}

section + section { margin-top: 3rem; }

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--forest);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: .25rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--bark);
  margin-bottom: .5rem;
}

p { color: var(--text); margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--moss); text-decoration: none; }
a:hover { text-decoration: none; }

/* ── Cards ──
   Max. 3 Cards pro Zeile; bei 2 Cards teilen sich beide die volle
   Breite, eine einzelne Card füllt die ganze Zeile. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: rgba(45,61,46,.85);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  line-height: 1.7;
  font-size: .9rem;
  font-weight: 300;
}

.card p,
.leisure-card p {
  color: var(--sand);
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: .5rem;
}

.card p:last-child,
.leisure-card p:last-child {
  margin-bottom: 0;
}

.card h3 {
  color: var(--sand);
  position: relative;
  padding-bottom: .25rem;
  margin-bottom: .75rem;
}

.card h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}




/* ── Card-Link-Buttons ── */
.card-btn {
  display: block;
  width: 100%;
  padding: .18rem .9rem;
  margin: .1rem 0;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--sand);
  text-decoration: none;
  text-align: left;
  font-size: inherit;
  font-weight: inherit;
  background: transparent;
  transition: background .15s, border-color .15s, color .15s;
}

.card-btn {
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.card-btn:first-child {
  border-top: 1px solid rgba(255,255,255,.13);
}

.card-btn:not(.no-link):hover,
a.card-btn:not(.no-link):hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  opacity: 1;
}

/* Externes Link-Icon rechts – SVG als Maske, passt sich Textfarbe an */
.card-btn:not(.no-link)::after {
  content: '';
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-left: auto;
  float: right;
  margin-top: .25em;
  opacity: .7;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 2H2a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V10h-2v3H3V4h3V2zm4-1h5v5h-2V3.414l-6.293 6.293-1.414-1.414L11.586 2H10V1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 2H2a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V10h-2v3H3V4h3V2zm4-1h5v5h-2V3.414l-6.293 6.293-1.414-1.414L11.586 2H10V1z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: opacity .15s;
}

.card-btn:not(.no-link):hover::after {
  background-color: var(--white);
  opacity: .9;
}

/* Alle Zeilen: Aufzählungszeichen links */
.card-btn {
  padding-left: 1.4rem;
  position: relative;
}

.card-btn::before {
  content: '›';
  position: absolute;
  left: .4rem;
  color: var(--accent);
  font-weight: 600;
}

/* Nicht-klickbare Zeile: kein Rahmen, kein Hover */
.card-btn.no-link {
  border-left-color: transparent;
  border-right-color: transparent;
  background: transparent;
  cursor: default;
}

.card-btn.no-link:hover {
  background: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  color: var(--sand);
}


/* Pflichtfeld-Sternchen: größer als Kontext */
strong[style*="accent"] {
  font-size: 1.2em;
  line-height: 1;
  vertical-align: baseline;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Kontakt-Block ── */

/* E-Mail: Datenschutz via CSS-Trick (Teile getrennt, per JS zusammengesetzt) */
.email-protect {
  font-size: 1rem;
  color: var(--sand) !important;
  cursor: pointer;
  text-decoration: none;
}
.email-protect:visited { color: var(--sand) !important; }
.email-protect:hover { opacity: .75; }

/* ── Karte ── */
#map { height: 380px; border-radius: 6px; margin-top: 1.5rem; border: 1px solid var(--border); }

/* ── CTA-Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
  background: rgba(45,61,46,.85);
  color: var(--sand);
  padding: .35rem 2rem .35rem .9rem;
  border-radius: 4px;
  border: 1px solid rgba(232,220,200,.35);
  font-size: .9rem;
  font-weight: 300;
  letter-spacing: .03em;
  transition: background .15s, border-color .15s, color .15s;
  margin-top: 1rem;
  text-decoration: none;
  cursor: pointer;
}

/* Extern-Icon auf .btn mit target="_blank" */
a.btn[target="_blank"]::after {
  content: '';
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  opacity: .7;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 2H2a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V10h-2v3H3V4h3V2zm4-1h5v5h-2V3.414l-6.293 6.293-1.414-1.414L11.586 2H10V1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 2H2a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V10h-2v3H3V4h3V2zm4-1h5v5h-2V3.414l-6.293 6.293-1.414-1.414L11.586 2H10V1z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: opacity .15s, background-color .15s;
}

a.btn[target="_blank"]:hover::after {
  background-color: var(--white);
  opacity: .9;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  text-decoration: none;
}

/* ── Buchungs-Hinweis ── */
/* ── Freizeitliste ── */
.leisure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.leisure-card {
  background: rgba(45,61,46,.85);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  line-height: 1.7;
  font-size: .9rem;
  font-weight: 300;
}

.leisure-card h3 {
  color: var(--sand);
  position: relative;
  padding-bottom: .25rem;
  margin-bottom: .75rem;
}

.leisure-card h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.leisure-card a { color: var(--sand); text-decoration: none; }



/* ── Impressum / rechtliche Seiten ── */
.legal-content h2 { color: var(--sand); margin-bottom: 1.5rem; }
.legal-content h2::after { background: var(--accent); }
.legal-content h3 { margin-top: 2rem; color: var(--sand); }
.legal-content p, .legal-content li { font-size: .95rem; color: var(--sand); opacity: .85; }
.legal-content ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal-content a { color: var(--sand) !important; text-decoration: underline; opacity: .85; }
.legal-content a:hover { opacity: 1; }
.legal-content a:visited { color: var(--sand) !important; }

/* ── Footer ── */
footer {
  position: sticky;
  bottom: 0;
  z-index: 100;
  background: rgba(45,61,46,1);
  padding: .3rem 0;
  text-align: center;
  box-shadow: 0 -2px 16px rgba(0,0,0,.3);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a,
.footer-copy {
  color: var(--sand);
  opacity: .8;
  font-size: .88rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
}

.footer-links a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.footer-links a::after {
  content: attr(data-text);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .02em;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  user-select: none;
}

.footer-links a:hover {
  opacity: 1;
  font-weight: 700;
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .nav-links { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .leisure-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; gap: .3rem; }
}
