/* =====================================================
   SchlossTraum Europa CSS - "modern_bold" Design Style
   Author: Professional UI Designer & CSS Developer
   ===================================================== */

/* =========================
   CSS RESET / NORMALIZE
   ========================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(34, 60, 96, 0.05);
}
body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #223C60;
  background: #FDF6EA;
  line-height: 1.6;
  min-height: 100vh;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #223C60;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(.4,0,.2,1);
}
a:focus {
  outline: 2px solid #B49B73;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:root {
  --color-primary: #223C60;
  --color-secondary: #B49B73;
  --color-accent: #FDF6EA;
  --color-dark: #171B23;
  --color-light: #fff;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Lato', Arial, sans-serif;
}

/* =========================
   CONTAINERS & GLOBAL SPACING
   ========================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 20px;
  box-shadow: 0 2px 24px 0 rgba(34,60,96,0.06);
}
@media (max-width: 600px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 40px;
    border-radius: 14px;
  }
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  line-height: 1.17;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.05rem;
  }
}

p, ul, li, address, span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #223C60;
  font-weight: 400;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
  color: var(--color-secondary);
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(34,60,96,0.07);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--color-primary);
  transition: color 0.22s cubic-bezier(.4,0,.2,1);
  letter-spacing: 0.1px;
  position: relative;
  padding: 2px 0;
}
header nav a:hover,
header nav a:active {
  color: var(--color-secondary);
}
.primary-cta {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  transition: background 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s;
  box-shadow: 0 3px 18px 0 rgba(34,60,96,0.11);
  margin-left: 22px;
  display: inline-block;
  margin-bottom: 0;
}
.primary-cta:hover, .primary-cta:focus {
  background: var(--color-secondary);
  color: #223C60;
  box-shadow: 0 5px 32px 0 rgba(180,155,115,0.21);
}
header img {
  height: 45px;
  margin-right: 26px;
}

/* MOBILE MENU BUTTON (BURGER) */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 10px;
  padding: 6px 16px;
  line-height: 1;
  margin-left: 18px;
  transition: background 0.2s;
  z-index: 1200;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary);
}
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* =============================
   MOBILE NAVIGATION OVERLAY
   ============================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,60,96,0.97);
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-size: 2.6rem;
  border: none;
  margin: 27px 38px 7px 0;
  transition: color 0.18s;
  cursor: pointer;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  gap: 24px;
  margin-left: 38px;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
  font-weight: 800;
  padding: 9px 0;
  border-radius: 5px;
  transition: background 0.19s, color 0.18s;
  margin-right: 18px;
  margin-bottom: 0;
}
.mobile-nav a:hover,
.mobile-nav a:active {
  background: var(--color-secondary);
  color: var(--color-primary);
}
/* Hide desktop nav on mobile, show burger */
@media (max-width: 900px) {
  header .container nav, header .container .primary-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  display: flex;
  align-items: center;
  min-height: 330px;
  background: #fff;
  border-radius: 18px;
  margin: 40px 0 60px 0;
  box-shadow: 0 2px 36px 0 rgba(34,60,96,0.03);
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 720px;
  gap: 18px;
}
.hero h1 {
  color: var(--color-primary);
  font-weight: 800;
}
.hero p {
  color: var(--color-dark);
  line-height: 1.5;
  font-size: 1.18rem;
  margin-bottom: 10px;
}
.hero .primary-cta {
  margin-top: 18px;
}
@media (max-width: 600px) {
  .hero {
    min-height: 170px;
    margin: 20px 0 20px 0;
    padding: 0;
    border-radius: 8px;
  }
}

/* ========== FEATURES ========== */
.features {
  padding: 0;
  background: none;
  margin-bottom: 60px;
}
.features .content-wrapper h2 {
  margin-bottom: 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  margin-top: 18px;
}
.feature-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px 0 rgba(34,60,96,0.07);
  flex: 1 1 240px;
  min-width: 210px;
  max-width: 320px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  border-top: 3.5px solid var(--color-secondary);
  transition: transform 0.18s, box-shadow 0.19s;
}
.feature-item img {
  width: 42px;
  margin-bottom: 8px;
}
.feature-item h3 {
  font-size: 1.27rem;
  color: var(--color-primary);
}
.feature-item p {
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.52;
}
.feature-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 30px rgba(180,155,115,0.17);
  border-top-color: var(--color-primary);
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 24px;
  }
}
@media (max-width: 730px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item {
    max-width: 100%;
    width: 100%;
    padding: 20px 13px;
    border-radius: 12px;
  }
}

/* ========== ABOUT PREVIEW & FLEX ========== */
.about-preview-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}
.about-preview-flex .text-section {
  flex: 1 1 300px;
  min-width: 220px;
  max-width: 55%;
}
.about-preview-flex img {
  width: 100px;
  min-width: 72px;
}
@media (max-width: 900px) {
  .about-preview-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-preview-flex .text-section {
    max-width: 100%;
  }
}

/* ========== SERVICES & LISTS ========== */
.services {
  background: #fff;
  box-shadow: 0 2px 24px 0 rgba(34,60,96,0.04);
  border-radius: 18px;
  margin-bottom: 60px;
}
.services h2 {
  margin-bottom: 22px;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.service-list li {
  font-size: 1.08rem;
  color: var(--color-dark);
  background: #FDF6EA;
  padding: 16px 18px;
  border-radius: 10px;
  margin-bottom: 8px;
  border-left: 4px solid var(--color-secondary);
  transition: background 0.25s;
}
.service-list li strong {
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--color-primary);
}
.service-list li em {
  font-style: italic;
  font-size: 0.97em;
  color: var(--color-secondary);
  font-weight: 700;
  margin-left: 8px;
}
.service-list li:hover {
  background: #fffbe5;
}
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  justify-content: space-between;
}
.service-grid > div {
  background: #FDF6EA;
  border-radius: 10px;
  flex: 1 1 260px;
  min-width: 198px;
  box-shadow: 0 2px 8px 0 rgba(180,155,115,0.07);
  padding: 22px 16px;
  margin-bottom: 20px;
  font-size: 1.08rem;
  border-left: 3px solid var(--color-secondary);
}
.service-grid strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  margin-bottom: 6px;
  display: inline-block;
}
.service-grid span {
  display: block;
  font-size: 0.99em;
  color: var(--color-secondary);
  margin-top: 12px;
}
@media (max-width: 700px) {
  .service-grid {
    flex-direction: column;
    gap: 10px;
  }
  .service-grid > div {
    min-width: 0;
    width: 100%;
    border-radius: 8px;
  }
}

/* ================ LEGAL SECTION ================ */
.legal {
  background: #fff;
  box-shadow: 0 2px 22px 0 rgba(34,60,96,0.09);
  border-radius: 14px;
  margin-bottom: 40px;
  padding: 40px 24px;
}
.legal h1 {
  font-size: 2.2rem;
}
@media (max-width: 600px){
  .legal {
    padding: 22px 6px;
  }
}

/* ========== TESTIMONIALS & CARDS ========== */
.testimonials {
  background: var(--color-accent);
  margin-bottom: 60px;
  border-radius: 16px;
}
.testimonials .content-wrapper h2 {
  margin-bottom: 18px;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 34px 22px 24px;
  min-width: 250px;
  max-width: 405px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px 0 rgba(34,60,96,0.13);
  margin-bottom: 20px;
  position: relative;
  color: var(--color-primary);
  font-size: 1.04rem;
  transition: box-shadow 0.16s, transform 0.17s;
}
.testimonial-card .star-rating {
  color: #B49B73;
  font-size: 1.06rem;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  font-weight: bold;
}
.testimonial-card p {
  color: var(--color-dark);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.5;
  margin-bottom: 2px;
}
.testimonial-card strong {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-secondary);
}
.testimonial-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 3.5px;
  height: 36px;
  background: var(--color-secondary);
  border-radius: 4px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px 0 rgba(180,155,115,0.25);
  transform: translateY(-3px) scale(1.025);
}
@media (max-width: 800px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    max-width: 100%;
    width: 100%;
    padding: 18px 10px 16px 16px;
  }
}

/* ========== CALL TO ACTION SECTION ========== */
.cta {
  margin-bottom: 60px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(34,60,96,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta h2, .cta .primary-cta {
  color: var(--color-primary);
}
.cta h2 {
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 14px;
}
.cta .primary-cta {
  background: #fff;
  color: var(--color-primary);
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 2px 18px 0 rgba(34,60,96,0.11);
  margin-left: 0;
  transition: background 0.19s, color 0.19s;
}
.cta .primary-cta:hover {
  background: #223C60;
  color: #fff;
}

/* ========== FOOTER ========== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 38px 0 16px 0;
  box-shadow: 0 0 24px 0 rgba(34,60,96,0.08);
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 1110px;
}
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.footer-navigation a {
  color: #fff;
  opacity: 0.85;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 0;
  transition: color 0.16s, opacity 0.15s;
}
.footer-navigation a:hover {
  color: var(--color-secondary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.98rem;
  margin-top: 2px;
  color: #fff;
}
.footer-contact address {
  font-style: normal;
  opacity: 0.90;
  color: #fff;
}
.footer-contact a {
  color: var(--color-secondary);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.18s;
}
.footer-contact a:hover {
  color: #fff;
}
@media (max-width: 600px) {
  .footer-contact, .footer-navigation {
    flex-direction: column;
    gap: 7px;
  }
}

/* ================ CONTACT PAGE FLEX ================ */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 15px;
}
.contact-address,
.contact-details {
  background: #FDF6EA;
  border-radius: 10px;
  padding: 18px 28px 18px 20px;
  flex: 1 1 240px;
  min-width: 190px;
}
@media (max-width: 700px) {
  .contact-section {
    flex-direction: column;
    gap: 10px;
  }
  .contact-address,
  .contact-details {
    width: 100%;
    min-width: 0;
    border-radius: 7px;
    padding: 14px 10px 11px 12px;
  }
}

/* ================ FLEXBOX UTILS FOR ALIGNMENT ================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 2px 13px 0 rgba(34,60,96,0.06);
  transition: box-shadow 0.18s;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 18px;
  gap: 13px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* CRITICAL: responsive flex direction for text-image sections */
@media (max-width: 768px) {
  .text-image-section, .about-preview-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ================ COOKIE CONSENT BANNER & MODAL ================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: #fff;
  color: #223C60;
  box-shadow: 0 -4px 24px 0 rgba(34,60,96,0.11);
  width: 100vw;
  padding: 26px 16px 22px 16px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
  border-top: 4px solid var(--color-secondary);
  animation: slideUpBanner 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUpBanner {
  0% { transform: translateY(110%); opacity:0; }
  80% { opacity:.94; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner__text {
  font-size: 1.04rem;
  color: #223C60;
  margin-right: 22px;
  flex: 2 1 290px;
}
.cookie-banner__actions {
  display: flex;
  gap: 17px;
  align-items: center;
  flex-shrink: 0;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  border-radius: 7px;
  padding: 10px 22px;
  font-size: 1rem;
  transition: background 0.19s, color 0.18s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #ddd;
  color: #223C60;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: #223C60;
}
/* Responsive banner */
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 5px;
  }
  .cookie-banner__actions {
    gap: 8px;
  }
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,60,96,0.79);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s;
}
.cookie-modal-overlay.open {
  display: flex !important;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 385px;
  min-width: 260px;
  padding: 38px 36px 24px 36px;
  box-shadow: 0 10px 48px 0 rgba(34,60,96,0.22);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: slideDownModal 0.42s cubic-bezier(.44,0,.18,1);
}
@keyframes slideDownModal {
  0% { transform: translateY(-44px) scale(0.94); opacity: 0.55; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.26rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-option input[type="checkbox"] {
  accent-color: var(--color-secondary);
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  padding: 10px 16px;
}
/* Essential always checked/disabled */
.cookie-option input[type="checkbox"][disabled] {
  opacity: 0.64;
}
@media (max-width: 600px) {
  .cookie-modal {
    max-width: 96vw;
    padding: 22px 5vw 16px 5vw;
  }
}

/* ================ UTILITY CLASSES ================ */
.mb-40 { margin-bottom: 40px; }
.mb-24 { margin-bottom: 24px; }
.mt-24 { margin-top: 24px; }
.mt-10 { margin-top: 10px; }
.gap-20 { gap: 20px; }
.text-center { text-align: center; }

/* =================== MEDIA QUERIES =================== */
@media (max-width: 600px) {
  .container {
    padding: 0 4px;
  }
  .content-wrapper {
    gap: 14px;
  }
}

/* ================== ANIMATION CLASSES ================== */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 12px;
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 12px;
}

/* ======= FOCUS & ACCESSIBILITY ======= */
:focus-visible {
  outline: 2.5px dashed var(--color-secondary);
  outline-offset: 2.5px;
}

/* ========== CUSTOM CHECKBOX (Cookie Modal) ========== */
/* fallback for old browsers */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* =============== PRINT OPTIMIZED =============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff;
    color: #223C60;
  }
}

/* =============== END OF CSS =============== */
