/* ================== 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,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  background: #23272f;
}
body {
  min-height: 100vh;
  background: #23272f;
  color: #F5E9DB;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,svg {
  max-width: 100%;
  display: block;
}
a {
  color: #F5E9DB;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #e5bb71;
  text-decoration: underline;
}
ul,ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: bold;
}
section:not(:last-child) {
  margin-bottom: 60px;
}
input, button, textarea, select {
  font: inherit;
}

/* ============== BRAND COLORS & VARIABLES (with fallback) ============== */
:root {
  --primary: #2E3642;
  --secondary: #97A0AE;
  --accent: #F5E9DB;
  --bg-dark: #23272f;
  --bg-light: #323844;
  --text-main: #F5E9DB;
  --text-light: #cccbc7;
  --card-bg: #292f37;
  --card-border: #484d55;
  --shadow-dark: 0 4px 20px rgba(25,30,38,0.14), 0 2px 6px rgba(25,30,38,0.09);
  --shadow-metal: 0 1px 3px 0 rgba(151, 160, 174, 0.13), 0 0.5px 1.5px rgba(90, 94, 101, 0.13);
  --cta-gradient: linear-gradient(90deg,#23272f,#2e3642 80%);
  --focus-outline: 2px solid #e5bb71;
}

/* ============== TYPOGRAPHY ============== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
h4 {font-size: 1.08rem;}
.subheadline {
  font-size: 1.18rem;
  color: #97A0AE;
  font-weight: 500;
  margin-bottom: 28px;
}
p {
  margin-bottom: 16px;
  color: var(--text-main);
}
.text-section {
  margin-bottom: 16px;
}
.text-section ul li, .text-section ol li {
  color: var(--text-light);
}

/* ============= FLEXBOX STRUCTURE LAYOUTS & CONTAINERS ============= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-light);
  border-radius: 15px;
  box-shadow: var(--shadow-dark);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 13px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-metal);
  position: relative;
  min-width: 280px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.23s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 28px 0 rgba(245,233,219, 0.10), 0 2px 5px rgba(208,205,197,0.3);
  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 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #2E3642;
  border-radius: 14px;
  border: 1px solid #e3e1da;
  box-shadow: 0 2px 12px rgba(43,47,53,0.11);
  margin-bottom: 32px;
  font-size: 1.1rem;
  max-width: 600px;
}
.testimonial-card p {
  color: #23272f;
}
.testimonial-card span {
  font-size: 1rem;
  color: #97A0AE;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========== PAGE-SPECIFIC FLEX CONTAINERS =========== */
.features ul, .services-preview ul, .about-preview ul, .values ul, .team ul, .membership-info ul, .benefits ul,.gdpr-info ul, .privacy-policy ul, .terms-of-use ul,.cookie-info ul, .events-overview ul,.events-overview li,.service-grid, .event-summary-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  list-style: none;
  margin-bottom: 0;
}
.event-summary-cards {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}
.event-summary-card {
  background: #fff;
  color: #23272f;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: var(--shadow-metal);
  min-width: 250px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  font-size: 1.05rem;
}
.event-summary-card h3 {
  color: #2E3642;
  font-size: 1.18rem;
  margin-bottom: 8px;
}

/* ===== HERO / CTA SECTIONS ===== */
.hero {
  background: var(--cta-gradient);
  padding: 56px 0 52px 0;
  text-align: left;
  border-radius: 18px;
  box-shadow: var(--shadow-dark);
  margin-bottom: 56px;
}
.hero h1 {
  color: #F5E9DB;
  font-size: 2.6rem;
}
.cta, .event-cta, .portal-cta {
  margin-bottom: 0;
  background: #23272f;
  border-radius: 18px;
  box-shadow: var(--shadow-dark);
  padding: 42px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta .content-wrapper, .event-cta .content-wrapper, .portal-cta .content-wrapper {
  align-items: center;
  gap: 16px;
}
.cta h2, .event-cta h2, .portal-cta h2 {
  color: #F5E9DB;
  font-size: 2rem;
  margin-bottom: 16px;
}

/* =========== SERVICE CARDS (Leistungen) =========== */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 13px;
  box-shadow: var(--shadow-metal);
  flex: 1 1 200px;
  min-width: 260px;
  max-width: 310px;
  padding: 24px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.22s, transform 0.18s;
  position: relative;
}
.service-card:hover {
  box-shadow: 0 8px 26px 0 rgba(245,233,219, 0.12), 0 2px 10px rgba(220,220,220,0.23);
  transform: translateY(-6px) scale(1.013);
}
.service-card h2 {
  color: #F5E9DB;
  font-size: 1.23rem;
  margin-bottom: 7px;
}
.service-card .service-pricing {
  font-size: 1.1rem;
  color: #e5bb71;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  margin-top: 6px;
}

/* ========== BUTTONS ========== */
.button-primary, .button-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 1.11rem;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.15s, box-shadow 0.18s, border 0.18s;
  text-transform: none;
  margin-right: 12px;
  margin-bottom: 10px;
}
.button-primary {
  background: #2E3642;
  color: #F5E9DB;
  border: 2px solid #2E3642;
  box-shadow: 0 2px 6px rgba(40,44,48,0.14);
}
.button-primary:hover, .button-primary:focus {
  background: #434d59;
  border: 2px solid #434d59;
  color: #F5E9DB;
  box-shadow: 0 4px 12px rgba(151,160,174,0.22);
}
.button-secondary {
  background: #F5E9DB;
  color: #2E3642;
  border: 2px solid #F5E9DB;
}
.button-secondary:hover, .button-secondary:focus {
  background: #e8d2b7;
  border-color: #e8d2b7;
  color: #2E3642;
}
.button-primary:active, .button-secondary:active {
  transform: translateY(1px) scale(0.98);
}

/* ======= INPUTS, FORMS, FIELDS ======= */
input, textarea, select {
  background: #23272f;
  border: 1px solid #97A0AE;
  border-radius: 7px;
  color: #F5E9DB;
  padding: 10px 14px;
  transition: border 0.18s;
  margin-bottom: 12px;
}
input:focus, textarea:focus, select:focus {
  border-color: #e5bb71;
  outline: none;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  width: 100%;
  background: #23272f;
  box-shadow: 0 2px 10px rgba(20, 23, 28, 0.16);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  min-height: 72px;
  position: relative;
}
header img {
  height: 42px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  color: #F5E9DB;
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.14s, color 0.14s;
}
header nav a:hover,header nav a:focus {
  color: #e5bb71;
  border-bottom: 2px solid #e5bb71;
}
header .button-primary {
  margin-left: auto;
  margin-right: 0;
}

/* ========== MOBILE MENU BURGER ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #F5E9DB;
  font-size: 2.2rem;
  cursor: pointer;
  margin-left: 18px;
  z-index: 210;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(44,50,58,0.98);
  z-index: 199;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 10vh;
  transition: transform 0.28s cubic-bezier(.5,.3,.52,1.1);
  transform: translateX(-100vw);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0vw);
}
.mobile-menu-close {
  position: absolute;
  top: 32px; right: 24px;
  background: none;
  border: none;
  color: #F5E9DB;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 220;
  padding: 8px 12px;
  transition: color 0.13s, background 0.09s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #e5bb71;
  background: #373c45;
  border-radius: 6px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 0 34px;
}
.mobile-nav a {
  color: #F5E9DB;
  font-size: 1.23rem;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  padding: 12px 0 8px 0;
  border-bottom: 1px solid #3a3e44;
  transition: background 0.11s, color 0.12s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #e5bb71;
  background: #363c44;
}

/* Hide main nav and show burger on mobile */
@media (max-width: 950px) {
  header nav { display: none; }
  header .button-primary { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (max-width: 950px) {
  .mobile-menu { padding-top: 60px; }
}

@media (max-width: 540px) {
  .mobile-menu { padding-top: 10px; }
  .mobile-nav { padding: 0 12px; }
}

/* ========== FOOTER ========== */
footer {
  width: 100%;
  background: #23272f;
  padding: 32px 0 14px 0;
  box-shadow: 0 -2px 10px rgba(16,18,22,0.11);
  margin-top: 72px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
footer nav {
  display: flex;
  gap: 20px;
  font-size: 1.01rem;
}
footer nav a {
  color: #97A0AE;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
footer nav a:hover,footer nav a:focus {
  color: #e5bb71;
  border-color: #e5bb71;
}
.footer-meta {
  color: #6d757e;
  font-size: 0.92rem;
}

/* ========== FEATURE ICON LIST ========== */
.features ul li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #292f37;
  padding: 17px 22px;
  border-radius: 10px;
  font-size: 1.12rem;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(60,65,72,.07);
  border: 1px solid #343a42;
}
.features ul li img {
  width: 36px;
  height: 36px;
  filter: grayscale(0.26) brightness(0.95);
}

/* ========== TAGS (Events, Highlights) ========== */
.tag {
  display: inline-block;
  background: #97A0AE;
  color: #23272f;
  font-size: 0.92rem;
  border-radius: 6px;
  padding: 1.5px 12px 2.5px 12px;
  font-family: 'Montserrat',Arial,sans-serif;
  margin-left: 8px;
  vertical-align: middle;
}
.event-title { font-weight: 700; }

/* ========== ADDRESS BLOCK & TEXT SECTION ========= */
address {
  font-style: normal;
  font-size: 1.05rem;
  color: #F5E9DB;
  margin-bottom: 10px;
}

/* ========== MISC ELEMENTS & EFFECTS ========== */
hr {
  border: 0;
  height: 1px;
  background: #484d55;
  margin: 32px 0;
}

/* ======== COOKIES CONSENT BANNER & MODAL ======== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #2E3642;
  color: #F5E9DB;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 20px 28px 20px 28px;
  box-shadow: 0 -2px 24px #23272f88;
  font-size: 1.05rem;
  min-height: 60px;
  animation: cookieBannerIn 0.36s cubic-bezier(.63,.09,.52,1.05);
}
@keyframes cookieBannerIn {
  from {transform: translateY(80%);opacity:0}
  to {transform: translateY(0);opacity:1}
}
.cookie-banner p {
  flex: 2;
  margin: 0;
  color: #F5E9DB;
  font-size: 1.01rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  border-radius: 6px;
  padding: 8px 18px;
  border: none;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin: 0;
  transition: background 0.15s, color 0.13s;
}
.cookie-banner .cookie-accept {
  background: #e5bb71;
  color: #23272f;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #ffd89f;
}
.cookie-banner .cookie-reject {
  background: none;
  border: 1.5px solid #97A0AE;
  color: #97A0AE;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #343a42;
  color: #F5E9DB;
}
.cookie-banner .cookie-settings {
  background: #23272f;
  border: 1.5px solid #e5bb71;
  color: #e5bb71;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #e5bb71;
  color: #23272f;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 99999;
  left:0;right:0;top:0;bottom:0;
  background: rgba(0,0,0,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.3s cubic-bezier(.52,.07,.62,.96);
}
@keyframes cookieModalIn {
  from {opacity:0;}
to {opacity:1;}
}
.cookie-modal {
  background: #23272f;
  color: #F5E9DB;
  border-radius: 16px;
  padding: 38px 32px 24px 32px;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalPop 0.23s cubic-bezier(.6,1.28,.36,1.01);
}
@keyframes modalPop {
  from {transform: scale(0.88);opacity:0.9;}
  to {transform: scale(1);opacity:1;}
}
.cookie-modal h2{
  color:#e5bb71;
  font-size:1.24rem;
  margin-bottom:10px;
}
.cookie-modal .cookie-categories {
  margin: 10px 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F5E9DB;
  font-size: 1.01rem;
}
.cookie-modal .toggle {
  margin-left: auto;
}
.cookie-modal .cookie-category-essential {
  color: #e5bb71;
  font-weight: 600;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 10px; right: 16px;
  background: none;
  border: none;
  color: #e5bb71;
  font-size: 1.8rem;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover { color: #F5E9DB; }
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal button {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-modal .modal-save {
  background: #e5bb71;
  color: #23272f;
}
.cookie-modal .modal-cancel {
  background: none;
  color: #e5bb71;
  border: 1.5px solid #e5bb71;
}
/* ========== ACCESSIBILITY HIGHLIGHTS ========== */
a:focus, button:focus, .button-primary:focus, .button-secondary:focus, input:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* ========== RESPONSIVE DESIGN (MOBILE FIRST) ========== */
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .service-grid,
  .card-container,
  .event-summary-cards,
  .content-grid{
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .section,
  .hero,
  .cta, .portal-cta, .event-cta {
    padding: 28px 6px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .content-wrapper {
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .service-card,
  .card {
    min-width: 180px;
    max-width: 100%;
    padding: 18px 12px;
    font-size: 1.05rem;
  }
  .event-summary-card {min-width: 90vw;max-width: 99vw;}
  .testimonial-card {max-width:94vw;}
}
@media (max-width: 520px) {
  html { font-size: 14px; }
  h1{
    font-size:2rem;
    margin-bottom:10px;
  }
  .hero, .cta, .portal-cta, .event-cta, .section {
    border-radius:9px;
    box-shadow:none;
    padding: 16px 2px;
  }
  .footer-meta,
  footer nav a{
    font-size:0.94rem;
  }
  header .container{gap:8px;min-height:56px;}
  .cookie-banner {padding: 14px 4vw;gap:8px;}
}

/* ========== MICRO INTERACTIONS & TRANSITIONS ========== */
.card, .service-card, .button-primary, .button-secondary, .event-summary-card, .testimonial-card, .features ul li {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:active, .service-card:active, .features ul li:active {
  transform: scale(0.99);
}

/* ========== UTILITY CLASSES ========== */
.d-none { display: none!important; }
.text-center { text-align: center; }
.m-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }

/* ========== PAGE SECTION SPECIFIC STYLES ========== */
.about-preview ul, .services-preview ul, .about ul, .values ul, .team ul, .membership-info ul, .benefits ul {
  list-style: disc inside;
  background: none;
  color: #e0dad5;
  padding-left: 0px;
  gap: 8px;
}

/* ===== Prevent overlapping by maintaining spacing */
.card + .card,
.service-card + .service-card,
.event-summary-card + .event-summary-card,
.testimonial-card + .testimonial-card,
.section + .section {
  margin-top: 20px;
}

/* ==== Always enforce minimum margin/gap between all cards and major blocks ==== */
.section, .card, .service-card, .testimonial-card, .event-summary-card {
  margin-bottom: 24px;
}

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