/* Crimson Shield Akademie – Elegant Classic CSS (Flexbox only) */

/* ===== CSS RESET & BASE ===== */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #23272A;
  background-color: #F5F3F0;
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #9B1C2A;
  text-decoration: underline;
  transition: color .2s;
}
a:hover, a:focus {
  color: #23272A;
  outline: none;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 6px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #23272A;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.13;
}
h1 {
  font-size: 2.5rem;
  margin-top: 0;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p, .subhead {
  margin-bottom: 16px;
  font-size: 1.125rem;
  color: #3A3631;
}
.subhead {
  font-family: 'Montserrat', 'Georgia', serif;
  font-style: italic;
  color: #9B1C2A;
  font-size: 1.125rem;
  margin-bottom: 22px;
}

blockquote {
  font-style: italic;
  color: #23272A;
  border-left: 4px solid #9B1C2A;
  padding-left: 16px;
  background: #fcf8f6;
  margin-bottom: 14px;
}

hr {
  border: none;
  border-top: 1px solid #ddd5d0;
  margin: 32px 0;
}

strong {
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  border-bottom: 1px solid #e6e2dd;
  box-shadow: 0 2px 8px rgba(70,49,47,0.03);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: flex-start;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  color: #23272A;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color .2s, border .2s;
}
nav a:hover, nav a:focus {
  color: #9B1C2A;
  border-bottom: 2px solid #9B1C2A;
  outline: none;
}

.cta {
  font-family: 'Montserrat', 'Georgia', serif;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 2px 8px rgba(110,32,44,0.04);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
  text-align: center;
  text-decoration: none;
}
.cta.primary {
  background: #9B1C2A;
  color: #fff;
  border: 2px solid #9B1C2A;
}
.cta.primary:hover, .cta.primary:focus {
  background: #7c0a18;
  color: #fff;
  box-shadow: 0 3px 10px rgba(110,32,44,0.08);
}
.cta.secondary {
  background: #fff;
  color: #9B1C2A;
  border: 2px solid #9B1C2A;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #9B1C2A;
  color: #fff;
  box-shadow: 0 3px 10px rgba(110,32,44,0.06);
}

button,
.mobile-menu-close {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: normal;
  border: none;
  background: none;
  color: #23272A;
  cursor: pointer;
  transition: color .18s;
}
button:focus, .mobile-menu-close:focus {
  outline: 2px solid #9B1C2A;
  outline-offset: 2px;
}
.mobile-menu-toggle {
  margin-left: 16px;
  display: none;
  background: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #9B1C2A;
  border: 1px solid #e6e2dd;
  transition: background .19s, border .19s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #fffcfb;
  border: 1px solid #9B1C2A;
  color: #7c0a18;
}

/* ===== MOBILE MENU & ANIMATION ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 32px rgba(90,34,36,0.07);
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.7,.3,.3,1);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 22px 0 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 2rem;
  color: #23272A;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: none;
  transition: background .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffefef;
  color: #9B1C2A;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}
.mobile-nav a {
  color: #23272A;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.275rem;
  font-weight: 600;
  padding: 12px 0;
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: color .2s, border .18s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: #9B1C2A;
  border-bottom: 2px solid #9B1C2A;
  background: #f9eceb;
}
@media (max-width: 1000px) {
  header .container {
    gap: 12px;
  }
  nav {
    gap: 16px;
  }
}
@media (max-width: 930px) {
  nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 931px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== MAIN SECTIONS – FLEX & SPACING ===== */
section {
  width: 100%;
}
.section,
.hero,
.features,
.services,
.testimonials,
.contact, .contact-details, .about-mission, .legal,
.thankyou {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(53,27,27,0.05);
  display: flex;
  flex-direction: column;
}
.hero {
  background: #F5F3F0;
  border: none;
  box-shadow: none;
}
/* Padding/margin variations for hero on first section */
.hero .container {
  padding-top: 32px;
  padding-bottom: 28px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(53,27,27,0.06);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 270px;
}
.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;
}

/* List Features (icons, etc) */
.features .content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  list-style: none;
  width: 100%;
}
.features .content-wrapper > ul > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fcf8f6;
  box-shadow: 0 2px 12px rgba(53,27,27,0.05);
  border-radius: 16px;
  padding: 28px 18px 18px 18px;
  min-width: 200px;
  flex: 1 1 180px;
}
.features .content-wrapper > ul > li img {
  height: 36px;
  margin-bottom: 10px;
  opacity: 0.91;
}

.services .content-wrapper > ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
  margin: 18px 0 22px 0;
  padding: 0;
}
.services .content-wrapper > ul > li {
  padding: 16px 10px 14px 22px;
  border-radius: 10px;
  background: #fcf8f6;
  font-size: 1.11rem;
  border-left: 4px solid #9B1C2A;
  color: #23272A;
  margin: 0 0 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.services .preis {
  margin-left: 24px;
  color: #9B1C2A;
  font-weight: 700;
  font-size: 1rem;
}

.contact .content-wrapper p,
.contact-details .content-wrapper ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.contact .content-wrapper img,
.contact-details .content-wrapper img { height: 20px; }
.contact-details .content-wrapper ul {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonials {
  padding-bottom: 30px;
}
.testimonials .content-wrapper {
  gap: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 30px 20px 26px;
  margin-bottom: 24px;
  background: #f7f1ec;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(110,32,44,0.09);
  border-left: 5px solid #9B1C2A;
  position: relative;
  transition: box-shadow .18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 22px rgba(110,32,44,0.14);
  z-index: 2;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  padding-left: 0;
  color: #23272A;
  font-size: 1.1rem;
}
.testimonial-card p {
  margin: 0;
  font-family: 'Montserrat', Georgia, serif;
  color: #7a3434;
  font-size: 1rem;
}

/* Thank you */
.thankyou {
  background: #fff;
}
.thankyou .content-wrapper ul {
  margin-top: 8px;
  margin-bottom: 14px;
}
.thankyou .content-wrapper ul li {
  margin-bottom: 8px;
  padding-left: 12px;
}

.legal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(60,30,27,0.03);
  padding: 48px 18px;
}

/* ===== FOOTER ===== */
footer {
  background: #fbf6f2;
  border-top: 1px solid #e6e2dd;
  margin-top: 60px;
  padding: 38px 0 24px 0;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
footer .container>a {
  display: flex;
  align-items: center;
  margin-right: 18px;
}
footer img {
  height: 34px;
  width: auto;
  margin-right: 0;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
footer nav a {
  color: #23272A;
  font-size: 1rem;
  font-family: 'Montserrat', Georgia, serif;
  text-decoration: none;
  opacity: .8;
  transition: color .19s, opacity .14s;
}
footer nav a:hover, footer nav a:focus {
  color: #9B1C2A;
  opacity: 1;
}
footer p {
  color: #88847d;
  font-size: .99rem;
  margin: 0;
  font-family: Georgia, serif;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5000;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -4px 32px rgba(110,21,44,0.08);
  border-top: 3px solid #9B1C2A;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  padding: 22px 5vw 18px 5vw;
  gap: 30px;
  font-family: 'Georgia', serif;
  transition: transform .32s cubic-bezier(.7,.3,.3,1), opacity .28s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-text {
  color: #23272A;
  font-size: 1.01rem;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner .cookie-btn {
  background: #fff;
  border: 2px solid #9B1C2A;
  color: #9B1C2A;
  border-radius: 8px;
  font-size: 1rem;
  padding: 9px 15px;
  font-family: 'Montserrat', 'Georgia', serif;
  cursor: pointer;
  transition: background .18s, color .16s, border .18s;
}
.cookie-banner .cookie-btn.accept {
  background: #9B1C2A;
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: #7c0a18;
  color: #fff;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #f7dedf;
  color: #7c0a18;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #fcf8f6;
}

/* ===== COOKIE MODAL STYLE ===== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 6000;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,25,22,.60);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .27s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 390px;
  width: 94vw;
  padding: 36px 30px 26px 30px;
  box-shadow: 0 10px 48px rgba(110,32,44,0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.cookie-modal h3 {
  font-size: 1.4rem;
  color: #23272A;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #23272A;
}
.cookie-modal .cookie-switch {
  margin-left: auto;
}
.cookie-switch {
  width: 44px;
  height: 24px;
  background: #e6e2dd;
  border-radius: 12px;
  border: none;
  position: relative;
  outline: none;
  transition: background .18s;
}
.cookie-switch[aria-checked="true"] {
  background: #9B1C2A;
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .16s;
}
.cookie-switch[aria-checked="true"]:before {
  transform: translateX(20px);
}
.cookie-modal .modal-actions {
  margin-top: 26px;
  display: flex;
  gap: 13px;
}
.cookie-modal .cookie-btn {
  min-width: 90px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 11px;
  top: 10px;
  font-size: 1.3rem;
  background: none;
  border: none;
  color: #9B1C2A;
  border-radius: 5px;
  padding: 4px 8px;
  transition: background .17s;
  cursor: pointer;
}
.cookie-modal .close-modal:hover {
  background: #fcf8f6;
}

/* ===== BUTTON & MICRO-INTERACTIONS ===== */
button, .cta, .cookie-btn, .close-modal {
  transition: background .18s, color .18s, box-shadow .21s, border .18s;
}
button:active, .cta:active {
  transform: scale(.97);
}

/* ===== FORMS ===== */
input, textarea, select {
  font-family: 'Montserrat', 'Georgia', serif;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #ddd5d0;
  font-size: 1rem;
  margin-bottom: 14px;
  width: 100%;
  transition: border .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #9B1C2A;
  outline: none;
}
label {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  margin-bottom: 8px;
  display: block;
  color: #23272A;
}

/* ===== MEDIA QUERIES (RESPONSIVE FLEXBOX LAYOUTS) ===== */
@media (max-width: 800px) {
  .container {
    padding-left: 7vw;
    padding-right: 7vw;
  }
  section.section, section.hero, section.features, section.services, section.contact, section.testimonials, section.legal, .thankyou, .about-mission {
    padding: 32px 6vw;
    margin-bottom: 40px;
  }
  .card-container, .features .content-wrapper > ul {
    gap: 16px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.67rem; }
  h2 { font-size: 1.27rem; }
  h3 { font-size: 1.12rem; }
  .container {
    padding-left: 13px;
    padding-right: 13px;
  }
  .section, .hero, .features, .services, .contact, .testimonials, .legal {
    padding: 22px 3vw;
    margin-bottom: 32px;
    border-radius: 10px;
  }
  .card, .testimonial-card {
    padding: 15px 10px;
    min-width: 0;
  }
  .features .content-wrapper > ul {
    flex-direction: column;
    gap: 13px;
  }
  .services .content-wrapper > ul > li {
    padding-left: 12px;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 3vw 13px 3vw;
    gap: 18px;
    font-size: .97rem;
  }
  .cookie-modal {
    padding: 17px 9px 15px 13px;
    border-radius: 9px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
}

@media (max-width: 390px) {
  .cookie-banner, .cookie-modal {
    padding-left: 1vw;
    padding-right: 1vw;
  }
  .card, .testimonial-card {
    padding: 8px 4px;
  }
}

/* ===== LAYOUT UTILITY CLASSES ===== */
.mb-20 { margin-bottom: 20px!important; }
.mb-32 { margin-bottom: 32px!important; }
.mb-60 { margin-bottom: 60px!important; }
.center { text-align: center!important; }
.flex-center { display: flex!important; justify-content: center!important; align-items: center!important; }

/* ===== ACCESSIBILITY ===== */
:focus {
  outline: 2px solid #9B1C2A;
  outline-offset: 2px;
}

/* ===== VISUAL HIERARCHY & WHITE SPACE ===== */
.section > .container > .content-wrapper > h2,
.hero > .container > .content-wrapper > h1 {
  margin-bottom: 16px;
}
.hero > .container > .content-wrapper > .subhead {
  margin-bottom: 30px;
}

/* ===== CARD & SHADOW EFFECTS ===== */
.card:hover, .card:focus, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px rgba(53,27,27,0.13);
}

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