/*
Theme Name:  anno1769
Description: Ferienwohnung anno1769 · Mülsen · Sachsen
Version:     1.0
Author:      anno1769
*/

/* ─── VARIABLEN ─────────────────────────────────────────── */
:root {
  --c-dark:    #1C3B2E;
  --c-dark2:   #2D5940;
  --c-gold:    #C8913A;
  --c-gold2:   #DFA84E;
  --c-bg:      #FAF7F2;
  --c-bg2:     #F0EAE0;
  --c-text:    #1D1D1D;
  --c-muted:   #666;
  --c-white:   #fff;
  --c-brand:   #8B3A2A;
  --c-brand2:  #A0422A;
  --f-h: 'Palatino Linotype', Palatino, Georgia, serif;
  --f-b: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --r:   6px;
  --shadow: 0 2px 16px rgba(0,0,0,.08);
  --max: 1140px;
  --gap: clamp(50px,7vw,90px);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-b);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── TYPOGRAFIE ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--f-h); line-height: 1.2; font-weight: 400; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1rem, 2vw, 1.35rem); }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px,5vw,40px); }
.section    { padding: var(--gap) 0; }
.section--alt  { background: var(--c-bg2); }
.section--dark { background: var(--c-dark); color: var(--c-white); }
.section__tag {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: .75rem;
}
.section__title { margin-bottom: 1rem; }
.section__sub { color: var(--c-muted); max-width: 560px; margin-bottom: 2rem; }
.section--dark .section__sub { color: rgba(255,255,255,.65); }
.text-center { text-align: center; }
.text-center .section__sub { margin-left: auto; margin-right: auto; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85em 2em;
  border-radius: var(--r);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: .25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  font-family: var(--f-b);
}
.btn--accent { background: var(--c-gold); color: #fff; border-color: var(--c-gold); }
.btn--accent:hover { background: var(--c-gold2); border-color: var(--c-gold2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,145,58,.35); }
.btn--dark { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.btn--dark:hover { background: var(--c-dark2); border-color: var(--c-dark2); transform: translateY(-2px); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--outline-dark { background: transparent; color: var(--c-dark); border-color: var(--c-dark); }
.btn--outline-dark:hover { background: var(--c-dark); color: #fff; }

/* ─── NAVIGATION ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: var(--c-dark); box-shadow: 0 2px 20px rgba(0,0,0,.2); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo-img { height: 56px; width: auto; display: block; }
@media (max-width: 600px) { .nav__logo-img { height: 72px; } }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a {
  color: rgba(255,255,255,.82);
  font-size: .875rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: .2s;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover,
.nav__links a.active { color: #fff; border-bottom-color: var(--c-gold); }
.nav__cta {
  background: var(--c-gold) !important;
  color: #fff !important;
  padding: .5rem 1.25rem !important;
  border-radius: var(--r) !important;
  border: none !important;
}
.nav__cta:hover { background: var(--c-gold2) !important; border-bottom-color: transparent !important; }
.nav__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav__burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--c-dark) 0%, #2D5940 55%, #3a6b4a 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.5) 0%, rgba(28,59,46,.55) 100%);
}
.hero__content { position: relative; z-index: 1; padding: 110px 0 80px; }
.hero__tag {
  display: inline-block;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-gold2); margin-bottom: 1.25rem; opacity: .9;
}
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero h1 em { font-style: normal; color: var(--c-gold2); }
.hero__sub { color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 500px; margin-bottom: 2.5rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.45); font-size: 1.5rem; animation: bounce 2.2s infinite;
  cursor: pointer; border: none; background: none;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(9px); }
}

/* ─── FEATURES-STREIFEN ──────────────────────────────────── */
.features { background: var(--c-white); padding: clamp(35px,4vw,55px) 0; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1.5rem; }
.feature { text-align: center; padding: 1.5rem 1rem; }
.feature__icon { font-size: 2.1rem; margin-bottom: .75rem; }
.feature h3 { font-size: 1rem; font-family: var(--f-b); font-weight: 600; margin-bottom: .25rem; }
.feature p  { font-size: .875rem; color: var(--c-muted); margin: 0; }

/* ─── ABOUT-SEKTION ──────────────────────────────────────── */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__img {
  border-radius: calc(var(--r)*2); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4/3;
  background: var(--c-bg2); display: flex; align-items: center; justify-content: center;
}
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--ph { color: var(--c-muted); font-size: .875rem; text-align: center; padding: 2rem; }

/* ─── PREISKARTEN ────────────────────────────────────────── */
.prices__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem; margin: 2rem 0; }
.price-card {
  background: var(--c-white); border: 2px solid var(--c-bg2);
  border-radius: calc(var(--r)*2); padding: 2rem; text-align: center; transition: .25s;
}
.price-card:hover { border-color: var(--c-gold); box-shadow: var(--shadow); transform: translateY(-4px); }
.price-card--featured { border-color: var(--c-gold); position: relative; }
.price-card--featured::before {
  content: 'Beliebt'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--c-gold); color: #fff; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .2rem .85rem; border-radius: 20px;
}
.price-card__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-muted); margin-bottom: .5rem; }
.price-card__price { font-family: var(--f-h); font-size: 2.9rem; color: var(--c-dark); line-height: 1; }
.price-card__price sup { font-size: 1.2rem; vertical-align: super; }
.price-card__unit { font-size: .85rem; color: var(--c-muted); margin: .4rem 0 .75rem; }
.price-card__info { font-size: .85rem; color: var(--c-text); }
.price-extras { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.price-extra { background: var(--c-bg2); border-radius: var(--r); padding: .5rem 1rem; font-size: .85rem; }

/* ─── ANFAHRT ────────────────────────────────────────────── */
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.distances { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1.5rem; }
.distance { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--c-bg2); font-size: .9rem; }
.distance strong { color: var(--c-dark); }
.map-ph { background: var(--c-bg2); border-radius: calc(var(--r)*2); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--c-muted); text-align: center; font-size: .9rem; line-height: 1.8; }

/* ─── CTA-BAND ───────────────────────────────────────────── */
.cta-band { background: var(--c-dark); padding: clamp(50px,7vw,90px) 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p  { color: rgba(255,255,255,.65); margin-bottom: 2rem; font-size: 1.05rem; }

/* ─── SEITENKOPF ─────────────────────────────────────────── */
.page-hero {
  background: var(--c-dark);
  padding: clamp(90px,13vw,150px) 0 clamp(45px,6vw,65px);
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero__sub { color: rgba(255,255,255,.6); margin-top: .6rem; }
.breadcrumb { font-size: .78rem; color: rgba(255,255,255,.45); margin-bottom: 1rem; }
.breadcrumb a { color: var(--c-gold2); }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── SEITEN-INHALT ──────────────────────────────────────── */
.page-content { padding: var(--gap) 0; }
.page-content h2 { margin: 2rem 0 .75rem; color: var(--c-dark); }
.page-content h3 { margin: 1.5rem 0 .5rem; color: var(--c-dark); }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: .4rem; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.page-content td, .page-content th { padding: .75rem 1rem; border-bottom: 1px solid var(--c-bg2); text-align: left; font-size: .9rem; }
.page-content th { background: var(--c-bg2); font-weight: 600; }
.page-content a { color: var(--c-dark); text-decoration: underline; }

/* ─── KONTAKT ────────────────────────────────────────────── */
.contact__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
.contact-info__item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-info__icon { font-size: 1.25rem; margin-top: .1rem; flex-shrink: 0; }
.contact-info__text h4 { font-size: .82rem; color: var(--c-muted); margin-bottom: .2rem; font-family: var(--f-b); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.contact-info__text a { color: var(--c-dark); }
.contact-info__text a:hover { color: var(--c-gold); }

/* ─── CF7-FORMULAR ───────────────────────────────────────── */
.wpcf7-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wpcf7-form p { margin: 0; }
.wpcf7-form label { font-size: .84rem; color: var(--c-muted); display: block; margin-bottom: .3rem; }
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form input[type=date],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%; padding: .78rem 1rem;
  border: 1.5px solid #ddd; border-radius: var(--r);
  font-family: var(--f-b); font-size: .95rem;
  background: var(--c-white); transition: .2s; color: var(--c-text);
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus, .wpcf7-form select:focus {
  outline: none; border-color: var(--c-dark); box-shadow: 0 0 0 3px rgba(28,59,46,.07);
}
.wpcf7-form textarea { resize: vertical; min-height: 120px; }
.wpcf7-form .wpcf7-submit {
  background: var(--c-gold); color: #fff; border: none;
  padding: 1rem 2.5rem; border-radius: var(--r);
  font-size: 1rem; cursor: pointer; transition: .25s;
  font-family: var(--f-b); align-self: flex-start;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--c-gold2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,145,58,.3); }
.wpcf7-response-output { border-radius: var(--r); padding: 1rem; font-size: .9rem; margin-top: .5rem; }

/* ─── AUSSTATTUNGS-GRID ──────────────────────────────────── */
.amenities { margin: 2.5rem 0; }
.amenities__title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--c-dark); padding-bottom: .5rem; border-bottom: 2px solid var(--c-gold); display: inline-block; }
.amenities__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: .5rem; }
.amenity { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: var(--c-white); border-radius: var(--r); font-size: .875rem; border: 1px solid var(--c-bg2); }
.amenity::before { content: '✓'; color: var(--c-gold); font-weight: 700; flex-shrink: 0; }

/* ─── STORNO-TABELLE ─────────────────────────────────────── */
.storno-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.storno-table th, .storno-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--c-bg2); font-size: .9rem; text-align: left; }
.storno-table th { background: var(--c-dark); color: #fff; font-weight: 500; }
.storno-table tr:hover td { background: var(--c-bg2); }

/* ─── GALERIE ────────────────────────────────────────────── */
.gallery-ph { background: var(--c-bg2); border-radius: calc(var(--r)*2); padding: 3rem; text-align: center; color: var(--c-muted); line-height: 2; }
.gallery-ph strong { display: block; color: var(--c-text); margin-bottom: .25rem; }
.wp-block-image img { border-radius: var(--r); }
figure.wp-block-gallery { gap: .5rem !important; }

/* ─── HINWEIS-BOX ────────────────────────────────────────── */
.info-box { background: var(--c-bg2); border-left: 3px solid var(--c-gold); padding: 1rem 1.5rem; border-radius: 0 var(--r) var(--r) 0; font-size: .9rem; margin: 1.5rem 0; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--c-dark); color: rgba(255,255,255,.65); padding: clamp(35px,5vw,55px) 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer__logo { font-family: var(--f-h); font-size: 1.45rem; color: #fff; }
.footer__logo span { color: var(--c-gold); }
.footer__nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__nav a { font-size: .84rem; color: rgba(255,255,255,.55); transition: .2s; }
.footer__nav a:hover { color: var(--c-gold); }
.footer__copy { font-size: .78rem; color: rgba(255,255,255,.35); width: 100%; text-align: center; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.07); margin-top: 1.25rem; }
.footer__copy a { color: rgba(255,255,255,.5); }
.footer__copy a:hover { color: var(--c-gold); }

/* ─── ANIMATIONEN ────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .about__grid, .location__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__img { order: -1; }
}
@media (max-width: 768px) {
  .nav__links {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--c-dark); flex-direction: column;
    justify-content: center; align-items: center; gap: 2.5rem; z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.3rem; color: #fff; border: none !important; }
  .nav__cta { background: var(--c-gold) !important; padding: .75rem 2rem !important; border-radius: var(--r) !important; }
  .nav__burger { display: flex; z-index: 101; }
  .form-row { grid-template-columns: 1fr; }
  .distances { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .prices__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; }
  .price-extras { justify-content: center; }
}

/* ─── HISTORY SECTION ────────────────────────────────────── */
.section--history { background: var(--c-bg); }
.history__grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}
.history__symbol img { opacity: .85; filter: drop-shadow(0 2px 8px rgba(166,90,31,.15)); }
.history__text h2 { margin-bottom: 1rem; }
.history__text p { color: var(--c-muted); line-height: 1.8; margin-bottom: .75rem; }
.history__text p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .history__grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .history__symbol { display: flex; justify-content: center; }
}

/* ─── MAP EMBED ──────────────────────────────────────────── */
.map-embed {
  border-radius: calc(var(--r)*2);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.map-embed iframe {
  width: 100%; height: 420px; border: 0; display: block;
}
.map-embed__link {
  display: block;
  text-align: right;
  font-size: .75rem;
  color: var(--c-muted);
  padding: .4rem .75rem;
  background: var(--c-bg2);
}
.map-embed__link:hover { color: var(--c-dark); }
@media (max-width: 768px) { .map-embed iframe { height: 280px; } }
