/* --- CSS RESET & NORMALIZE --- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Lato', Arial, sans-serif;
  background: #FFFFFF;
  color: #384863;
  line-height: 1.7;
  font-size: 1rem;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  background: none;
  border: none;
}

/* --- VARIABLES (with fallback) --- */
:root {
  --clr-primary: #384863;
  --clr-secondary: #E1B574;
  --clr-accent: #FFFFFF;
  --clr-bg: #FFFFFF;
  --clr-text: #384863;
  --clr-text-dark: #222A36;

  --shadow-light: 0 2px 12px rgba(56, 72, 99, 0.08), 0 1.5px 6px rgba(56, 72, 99, 0.06);
  --radius: 12px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--clr-primary);
  font-weight: 700;
  line-height: 1.19;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}
p, ul, ol, blockquote {
  font-family: 'Lato', Arial, sans-serif;
  color: var(--clr-text-dark);
  margin-bottom: 16px;
  font-size: 1rem;
}
blockquote {
  border-left: 3px solid var(--clr-secondary);
  padding-left: 16px;
  font-style: italic;
  color: var(--clr-primary);
  margin-bottom: 14px;
  background: #FAF8F4;
  border-radius: var(--radius);
}
ul li, ol li {
  margin-bottom: 10px;
}

strong {
  color: var(--clr-primary);
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}

.content-wrapper {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 18px;
    padding: 0 2px;
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--clr-bg);
  border-bottom: 1px solid #f4f7fb;
  padding: 16px 0;
  box-shadow: 0 2px 16px rgba(56, 72, 99, 0.025);
  position: relative;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
}
header img[alt="SchlossFamilienZeit"] {
  height: 42px;
  width: auto;
  margin-right: 26px;
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  gap: 18px;
}
.main-nav a {
  font-size: 1rem;
  color: var(--clr-primary);
  opacity: 0.94;
  padding: 4px 7px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--clr-secondary);
  color: #fff;
  opacity: 1;
}
.cta-primary, .cta-secondary {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 24px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  outline: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: background 0.15s, color 0.15s, box-shadow 0.2s, transform 0.16s;
  margin-left: 16px;
}
.cta-primary {
  background: var(--clr-primary);
  color: #fff;
  border: 1px solid var(--clr-primary);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--clr-secondary);
  color: var(--clr-primary);
  box-shadow: 0 4px 16px rgba(56,72,99,0.11);
  transform: translateY(-2px) scale(1.02);
}
.cta-secondary {
  background: #fff;
  color: var(--clr-primary);
  border: 1px solid var(--clr-secondary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--clr-secondary);
  color: #fff;
  box-shadow: 0 6px 22px rgba(56,72,99,0.07);
  transform: translateY(-2px) scale(1.02);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--clr-primary);
  margin-left: auto;
  cursor: pointer;
  padding: 5px 10px;
  transition: background 0.2s, box-shadow 0.2s;
  border-radius: 6px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #f5f5f8;
  box-shadow: 0 1.5px 6px rgba(56,72,99,0.15);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 88vw;
  max-width: 340px;
  background: var(--clr-accent);
  box-shadow: -2px 0 24px rgba(56,72,99,0.13);
  z-index: 8888;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.25,.8,.25,1);
  display: flex;
  flex-direction: column;
  padding: 0 0 40px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--clr-primary);
  margin: 25px 28px 10px 0;
  padding: 3px 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #f5f6fa;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 26px;
  margin-top: 10px;
}
.mobile-nav a {
  font-size: 1.13rem;
  color: var(--clr-primary);
  padding: 12px 4px;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--clr-secondary);
  color: #fff;
}

@media (max-width: 1100px) {
  .main-nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
}
@media (min-width: 1101px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- HERO & FLEX STRUCTURES --- */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 28px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: var(--shadow-light);
  border-radius: var(--radius);
  padding: 28px 22px;
  min-width: 270px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(56,72,99,0.09);
  transform: translateY(-2px) scale(1.01);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: var(--clr-primary);
  box-shadow: var(--shadow-light);
  border-radius: var(--radius);
  margin-bottom: 24px;
  min-width: 220px;
  max-width: 580px;
  flex-wrap: wrap;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(56,72,99,0.14);
}
.testimonial-card blockquote {
  margin-bottom: 6px;
  color: var(--clr-primary);
  font-size: 1.08rem;
}
.testimonial-info {
  color: var(--clr-secondary);
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 600;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 10px;
    max-width: 100%;
  }
}
.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 14px 0;
}
.feature-icons span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: var(--clr-primary);
  background: #f8f6f4;
  border-radius: 22px;
  padding: 7px 16px 7px 9px;
  box-shadow: 0 1.5px 5px rgba(56,72,99,0.03);
  font-weight: 600;
}
.feature-icons img {
  width: 28px;
  height: 28px;
  display: block;
}

/* --- SECTIONS & LAYOUT --- */
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  background: transparent;
}
section:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  section {
    padding: 20px 0 0 0;
    margin-bottom: 34px;
  }
}

/* --- ROUTE TAGS (Schlosstouren) --- */
.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}
.route-tags span {
  background: #f8f6f3;
  color: var(--clr-primary);
  padding: 5px 14px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 600;
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: #f7f7fb;
  border-top: 1px solid #ededf2;
  padding: 28px 0 25px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}
.footer-nav,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.97rem;
  color: var(--clr-text);
  margin-bottom: 6px;
}
.footer-nav a, .footer-legal a {
  color: var(--clr-primary);
  opacity: 0.82;
  padding: 2px 4px;
  border-radius: 5px;
  transition: background 0.15s, opacity 0.14s;
}
.footer-nav a:hover, .footer-legal a:hover { background: var(--clr-secondary); color: #fff; opacity: 1; }

.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.social-links a {
  display: flex;
  align-items: center;
  transition: background 0.13s, box-shadow 0.13s;
  border-radius: 100px;
  padding: 3px;
}
.social-links a:hover {
  background: var(--clr-secondary);
}
.social-links img {
  width: 28px;
  height: 28px;
}
@media (max-width: 700px) {
  footer .container {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav, .footer-legal { gap: 10px; }
}


/* --- MISC ELEMENTS --- */
ol {
  list-style: decimal inside;
}
ul {
  list-style: disc inside;
}
ul, ol {
  margin-left: 0;
}

/* --- BUTTONS --- */
button {
  cursor: pointer;
  outline: none;
  transition: background 0.17s, color 0.16s, box-shadow 0.16s;
}
button:active {
  transform: scale(0.98);
}

/* --- MICRO-INTERACTIONS --- */
a, button {
  transition: background 0.16s, color 0.14s, box-shadow 0.17s, opacity 0.16s, transform 0.14s;
}
a:focus, button:focus {
  outline: 2px solid var(--clr-secondary);
  outline-offset: 2px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 850px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .content-wrapper {
    max-width: 100%;
    padding: 0;
  }
}
@media (max-width: 650px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.07rem; }
  section, .section {
    padding: 10px 2px 0 2px;
  }
  .card {
    min-width: 160px;
    padding: 14px 8px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  color: var(--clr-text-dark);
  box-shadow: 0 -4px 36px rgba(56,72,99,0.09);
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 20px 25px 18px 25px;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(.32,.71,.59,.94), opacity 0.23s;
}
.cookie-banner.closed {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  flex: 1 1 auto;
  font-size: 0.96rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  min-width: 220px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: 18px;
  border: 1px solid #e3e3ea;
  font-size: 0.97rem;
  font-family: 'Lato', Arial, sans-serif;
  background: var(--clr-secondary);
  color: var(--clr-primary);
  font-weight: 700;
  margin-right: 5px;
  transition: background 0.14s, color 0.11s;
}
.cookie-btn.accept {
  background: var(--clr-primary);
  color: #fff;
  border: 1px solid var(--clr-primary);
}
.cookie-btn.accept:hover {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--clr-primary);
  border: 1px solid #b9b8b3;
}
.cookie-btn.reject:hover {
  background: #eeeae2;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--clr-primary);
  border: 1px solid var(--clr-secondary);
}
.cookie-btn.settings:hover {
  background: var(--clr-secondary);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 10px 14px 10px;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(56,72,99,0.18);
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  padding: 36px 28px 22px 28px;
  border-radius: var(--radius);
  width: 98vw;
  max-width: 420px;
  box-shadow: 0 10px 60px rgba(56,72,99,0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: popIn .23s cubic-bezier(.49,1.39,.61,.93);
}
@keyframes popIn {
  from { transform: scale(0.94); opacity:0; }
  to   { transform: scale(1); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.17rem;
  margin-bottom: 8px;
}
.cookie-category {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-toggle {
  width: 38px;
  height: 21px;
  border-radius: 13px;
  background: #eae7e2;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
  box-shadow: 0 1px 4px rgba(56,72,99,0.07);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  transform: translateX(17px);
  background: var(--clr-secondary);
}
.cookie-toggle input:checked ~ .cookie-toggle {
  background: var(--clr-secondary);
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.cookie-modal .cookie-btn {
  min-width: 80px;
}
.cookie-modal .close {
  position: absolute;
  top: 15px;
  right: 20px;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--clr-primary);
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 5px;
}
.cookie-modal .close:hover {
  background: #f4f2ef;
}

/* --- UTILITIES --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.w-100 { width: 100% !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* --- ACCESSIBLE FOCUS STATE --- */
:focus-visible {
  outline: 2px solid var(--clr-secondary);
  outline-offset: 1.5px;
}

/* --- PRINT --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  body, section, .container { background: #fff !important; color: #222A36 !important; box-shadow: none !important; }
}

/* --- END --- */
