/* ===================================================================== */
/*                  CSS RESET & BASE STYLES (Normalize)                   */
/* ===================================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F7F6F1;
  color: #263146;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #C7AC7E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #99804C;
  outline: none;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}
button {
  cursor: pointer;
}

/* Import fonts */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

/* ===================================================================== */
/*                    TYPOGRAPHY -- Luxury Premium Style                 */
/* ===================================================================== */
h1, .h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: 0.01em;
  color: #263146;
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  color: #263146;
  margin-bottom: 12px;
}
h3, .h3 {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #263146;
  margin-bottom: 10px;
}
.text-section h1,
.text-section h2,
.text-section h3 {
  color: #263146;
}
p, li, label, input, select, textarea, .testimonial-meta {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #263146;
  font-size: 1rem;
}

strong, b {
  font-weight: 700;
}

/* Visual hierarchy (heading to body): 48px, 32px, 24px, 18px, 16px, 14px */


/* ===================================================================== */
/*                    GLOBAL SPACING AND CONTAINER RULES                 */
/* ===================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  margin-bottom: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(38,49,70,0.08);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover,
.card:focus {
  box-shadow: 0 8px 32px 0 rgba(199,172,126,0.18);
  transform: translateY(-4px) scale(1.012);
}
.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;
}
.testimonial-card {
  background: #fff;
  border-left: 6px solid #C7AC7E;
  border-radius: 14px;
  box-shadow: 0 4px 16px 0 rgba(38,49,70,0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover,
.testimonial-card:focus {
  border-color: #A79465;
  box-shadow: 0 6px 24px 0 rgba(199,172,126,0.24);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Flexible list grid for Meisterkurse index */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid li {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px 0 rgba(38,49,70,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, border-color 0.16s;
  border-left: 4px solid #fff;
}
.feature-grid li img {
  max-width: 48px;
  margin-bottom: 8px;
}
.feature-grid li:hover,
.feature-grid li:focus {
  box-shadow: 0 8px 36px 0 rgba(199,172,126,0.16);
  border-left: 4px solid #C7AC7E;
}

/* ===================================================================== */
/*                                    HEADER                            */
/* ===================================================================== */
header {
  background: #fff;
  border-bottom: 1.5px solid #ede8d4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 0 20px;
  min-height: 76px;
  position: relative;
  z-index: 22;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 14px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex: 1 1 auto;
}
header nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: #263146;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 5px;
  transition: color 0.18s, background 0.18s;
}
header nav a:hover,
header nav a.active {
  color: #C7AC7E;
  background: rgba(199,172,126,0.1);
}
header .cta-button {
  margin-left: 20px;
}
.mobile-menu-toggle {
  display: none;
  background: #C7AC7E;
  color: #263146;
  font-size: 2rem;
  border-radius: 8px;
  padding: 6px 16px 4px 16px;
  border: none;
  margin-left: auto;
  transition: background 0.18s, color 0.18s;
  z-index: 100;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #99804C;
  color: #fff;
}

/* ===================================================================== */
/*                       CTA BUTTON: Gold Luxury Style                   */
/* ===================================================================== */
.cta-button {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  background: #C7AC7E;
  color: #263146 !important;
  padding: 12px 32px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 10px 0 rgba(199,172,126,0.11);
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s, transform 0.16s, box-shadow 0.16s;
}
.cta-button:hover, .cta-button:focus {
  background: #A79465;
  color: #fff !important;
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 6px 18px 0 rgba(199,172,126,0.19);
}

/* ===================================================================== */
/*                             MAIN HERO                                */
/* ===================================================================== */
.hero {
  background: #ede8d4;
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: 70px 0 60px 0;
  margin-bottom: 40px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.8rem;
  color: #263146;
  margin-bottom: 12px;
}
.hero h2 {
  font-size: 1.4rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  color: #263146;
  margin-bottom: 24px;
  max-width: 700px;
}
.hero .cta-button {
  font-size: 1.18rem;
  margin-top: 10px;
  letter-spacing: 0.03em;
}

/* ===================================================================== */
/*                         SECTIONS AND PREVIEWS                        */
/* ===================================================================== */
.about-preview, .faq-preview, .team-preview, .cta-bottom, .cta-course, .cta-contact, .form-section, .registration-info, .thank-you-section, .contact-section, .legal-section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.text-section {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* FAQ - Accordion */
.accordion-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.accordion-faq-list details {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(38,49,70,0.07);
  padding: 18px 20px;
  transition: box-shadow 0.15s;
}
.accordion-faq-list details[open] {
  box-shadow: 0 6px 18px 0 rgba(199,172,126,0.11);
  border-left: 4px solid #C7AC7E;
}
.accordion-faq-list summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1.07rem;
  color: #263146;
  outline: none;
}
.accordion-faq-list details div {
  margin-top: 8px;
  color: #3d4760;
  font-size: 1rem;
}

/* ===================================================================== */
/*                     INSTRUCTORS: Dozenten-Profil                      */
/* ===================================================================== */
.instructor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.instructor-profile {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px 0 rgba(38,49,70,0.09);
  padding: 24px 20px;
  flex: 1 1 280px;
  min-width: 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 10px;
  transition: box-shadow 0.17s, transform 0.18s;
  border-top: 4px solid #C7AC7E;
}
.instructor-profile img {
  max-width: 48px;
  margin-bottom: 6px;
}
.instructor-profile h2 {
  font-size: 1.26rem;
  margin-bottom: 6px;
}
.instructor-profile p {
  font-size: 1rem;
  color: #263146;
}
.instructor-profile div {
  font-size: 0.98rem;
  color: #99804C;
}
.instructor-profile:hover,
.instructor-profile:focus {
  box-shadow: 0 8px 32px 0 rgba(199,172,126,0.17);
  transform: translateY(-3px) scale(1.015);
}

/* ===================================================================== */
/*                            TESTIMONIALS                              */
/* ===================================================================== */
.testimonials .testimonial-card {
  background: #fff;
  color: #263146;
}
.testimonial-card p {
  color: #263146;
  font-size: 1.12rem;
  font-style: italic;
}
.testimonial-meta {
  font-size: 1rem;
  color: #263146;
  font-weight: 700;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.testimonial-meta span {
  color: #C7AC7E;
  font-size: 1.06em;
  letter-spacing: 0.02em;
}


/* ===================================================================== */
/*                                 FORMS                                 */
/* ===================================================================== */
form {
  margin-top: 8px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
label {
  font-weight: 600;
  margin-bottom: 4px;
}
input[type="text"], input[type="email"], select, textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.3px solid #C7AC7E;
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.1s;
  margin-bottom: 4px;
}
input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  border-color: #99804C;
}
textarea {
  min-height: 90px;
  resize: vertical;
}

button[type="submit"] {
  align-self: flex-start;
}

/* Address & Contact details */
.address-block, .opening-hours, .email-link {
  margin-top: 12px;
}
.email-link a {
  color: #C7AC7E;
  font-weight: 700;
  text-decoration: underline;
}

/* ===================================================================== */
/*                                FOOTER                                 */
/* ===================================================================== */
footer {
  background: #263146;
  color: #fff;
  padding: 40px 0 32px 0;
  margin-top: 60px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 22px;
  align-items: center;
  justify-content: flex-start;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.88;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
footer nav a.cta-button {
  background: #C7AC7E;
  color: #263146 !important;
  margin-left: auto;
  font-size: 1.05rem;
  padding: 10px 24px;
}
footer nav a:hover, footer nav a:focus {
  background: rgba(199,172,126,0.13);
  color: #C7AC7E;
}
.contact-details {
  margin-bottom: 16px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.98rem;
}
.contact-details a {
  color: #C7AC7E;
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

/* ===================================================================== */
/*                             MOBILE MENU                               */
/* ===================================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,49,70,0.96);
  z-index: 400;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2.2rem;
  background: none;
  color: #C7AC7E;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  z-index: 402;
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #99804C;
  color: #fff;
}
.mobile-nav {
  margin-top: 85px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding-left: 34px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
  padding: 12px 0px;
  border-radius: 7px;
  width: 90%;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(199,172,126,0.22);
  color: #C7AC7E;
}

/* ===================================================================== */
/*                            COOKIE CONSENT                             */
/* ===================================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 20px 0 rgba(38,49,70,0.06);
  border-top: 2.5px solid #C7AC7E;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  padding: 20px 18px 20px 18px;
  min-height: 82px;
  font-size: 1rem;
  animation: cookieFadeIn 0.6s cubic-bezier(.5,.2,.26,1);
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner .cookie-text {
  color: #263146;
  margin-right: 16px;
  max-width: 500px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-button {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 8px 20px;
  border-radius: 24px;
  background: #C7AC7E;
  color: #263146;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  margin-right: 2px;
  transition: background 0.13s, color 0.13s, box-shadow 0.14s;
  box-shadow: 0 2px 8px 0 rgba(199,172,126,0.09);
}
.cookie-button:hover,
.cookie-button:focus {
  background: #99804C;
  color: #fff;
}
.cookie-settings-button {
  background: #fff;
  color: #C7AC7E;
  border: 1.5px solid #C7AC7E;
}
.cookie-settings-button:hover, .cookie-settings-button:focus {
  background: #C7AC7E;
  color: #263146;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,49,70,0.86);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 36px 26px 30px 26px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 2px 22px 0 rgba(199,172,126,0.21);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalIn 0.18s cubic-bezier(.5,.2,.26,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal-content h2 {
  margin-bottom: 10px;
  color: #263146;
  font-family: 'Playfair Display', serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 18px;
}
.cookie-category label {
  color: #263146;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-toggle {
  width: 42px;
  height: 22px;
  background: #C7AC7E;
  border-radius: 20px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  transition: background 0.16s;
}
.cookie-toggle input[type=checkbox] {
  width: 0;
  height: 0;
  opacity: 0;
}
.cookie-toggle .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s, background 0.18s;
}
.cookie-toggle input:checked + .toggle-slider {
  transform: translateX(20px);
  background: #C7AC7E;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #C7AC7E;
  border-radius: 7px;
  padding: 4px 7px;
  z-index: 2;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #99804C;
  color: #fff;
}

/* ===================================================================== */
/*                            MEDIA QUERIES                             */
/* ===================================================================== */
@media (max-width: 1080px) {
  .container {
    max-width: 920px;
  }
  .feature-grid, .card-container, .instructor-list, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 820px) {
  .container {
    max-width: 98vw;
  }
  .content-wrapper,
  .text-section {
    padding-left: 0;
    padding-right: 0;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 6px;
    gap: 12px;
    min-height: 60px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
  .hero {
    padding: 56px 0 32px 0;
    min-height: 210px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid li {
    min-width: 0;
    padding: 20px 14px;
  }
  .card-container, .instructor-list, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card,
  .card {
    padding: 16px;
  }
  .footer nav {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
  }
  .contact-details {
    flex-direction: column;
    gap: 6px;
  }
  .hero .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .about-preview, .faq-preview, .team-preview, .cta-bottom, .cta-course, .cta-contact, .form-section, .registration-info, .thank-you-section, .contact-section, .legal-section {
    padding: 28px 0;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
  .testimonial-meta {
    flex-direction: column;
    gap: 3px;
  }
  .content-wrapper, .text-image-section {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-button {
    font-size: 1rem;
    padding: 10px 18px;
  }
}
@media (max-width: 540px) {
  html {
    font-size: 14px;
  }
  .container {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.25rem;
  }
  .hero h1 {
    font-size: 1.55rem;
  }
  .feature-grid li, .card, .testimonial-card {
    padding: 13px 9px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    min-height: 108px;
    gap: 9px;
    padding: 18px 8px 18px 8px;
  }
  .cookie-consent-banner .cookie-text {
    margin-right: 0;
    font-size: 0.97rem;
  }
  .cookie-button {
    font-size: 0.98rem;
    padding: 8px 12px;
  }
}

/* ===================================================================== */
/*                          Z-INDEX SAFEGUARDS                           */
/* ===================================================================== */
header { z-index: 22; }
.mobile-menu { z-index: 400; }
.cookie-consent-banner { z-index: 500; }
.cookie-modal { z-index: 9999; }


/* ===================================================================== */
/*                       END OF CSS: Luxury Premium                      */
/* ===================================================================== */
