/* CSS Reset & Normalize (Mobile-first approach) */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFFFFF;
  color: #29475A;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; border: 0; }
a { color: #40697A; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #B89F73; outline: none; }
ul,ol { padding-left: 24px; }
strong { font-weight: 600; }
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #29475A;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.3rem; line-height: 1.21; margin-bottom: 20px; }
h2 { font-size: 1.75rem; margin-bottom: 18px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.12rem; margin-bottom: 8px; }

main { flex: 1 0 auto; background: #FFF; min-height: 70vh; }

/* Container Styles */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background: #FFFFFF;
  border-bottom: 1.5px solid #E2E0CF;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 40;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}
.nav-container a img {
  height: 44px; width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #29475A;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover:not(.cta-button),
.main-nav a:focus:not(.cta-button) {
  color: #997223;
  background: #e2e0cf80;
}

.cta-button {
  background: #997223;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(41,71,90,0.08);
  border: none;
  display: inline-block;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  border: 1.5px solid #997223;
  margin-left: 12px;
}
.cta-button:hover, .cta-button:focus {
  background: #b89f73;
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 2px 14px rgba(41,71,90,0.16);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #997223;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 12px;
  transition: color 0.2s;
  z-index: 101;
}
.mobile-menu-toggle:focus { outline: 2px solid #997223; }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw; height: 100vh;
  background: rgba(64,105,122,0.96);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(0.58, 0, 0.24, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  align-self: flex-end;
  margin-bottom: 30px;
  cursor: pointer;
  transition: color .18s;
  z-index: 130;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #b89f73; outline: 2px solid #b89f73; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.15rem;
  padding: 12px 0;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .2s, background .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #997223;
  color: #fffbe9;
}

/* Responsive Nav - hide desktop main-nav/show burger on mobile */
@media (max-width: 992px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
}

/* --- Section, Spacing & Layout Patterns --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
@media (max-width: 600px) {
  .section { padding: 28px 8px; }
  .content-wrapper { gap: 14px; }
}

/* --- HERO --- */
.hero {
  background: #E2E0CF;
  border-bottom: 1.5px solid #99722333;
  position: relative;
  margin-bottom: 44px;
}
.hero .content-wrapper {
  align-items: flex-start;
  padding: 38px 0 32px 0;
}
.hero h1 {
  color: #29475A;
  font-size: 2.4rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: .012em;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.19rem;
  margin-bottom: 18px;
  color: #40697A;
}
@media (max-width: 600px) {
  .hero .content-wrapper { padding: 22px 0 14px 0; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 1rem; }
}

/* --- Feature grid and items --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(41,71,90,0.07);
  border: 1.5px solid #e4e1d0;
  padding: 22px 18px 18px;
  flex: 1 1 220px; /* Responsive card width */
  min-width: 200px; /* Prevent stacking too small */
  margin-bottom: 20px;
}
.feature-item img {
  width: 36px;
  height: 36px;
  display: block;
  margin-bottom: 6px;
}
.feature-item h3 {
  font-size: 1.15rem;
  color: #29475A;
}
.feature-item p {
  color: #40697A;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .feature-grid { gap: 16px; }
  .feature-item { min-width: 170px; }
}
@media (max-width: 600px) {
  .feature-grid { flex-direction: column; gap: 18px; }
  .feature-item { width: 100%; min-width: 0; }
}

/* --- Cards & Card Containers --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(41,71,90,0.08);
  padding: 24px 18px;
  border: 1px solid #e4e1d0;
  transition: box-shadow .22s, border .16s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 20px rgba(41,71,90,0.13);
  border: 1.5px solid #B89F73;
}

/* Content grid */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 600px) {
  .content-grid { flex-direction: column; gap: 12px; }
}

/* --- Text-Image Section --- */
.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; }
}

/* --- Testimonial Style --- */
.testimonial-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 26px 20px 26px;
  background: #F8F7F3;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(41,71,90,0.07);
  border: 1.5px solid #e4e1d0;
  flex: 1 1 250px;
  min-width: 220px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, border 0.14s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 26px rgba(41,71,90,0.12);
  border: 1.5px solid #b89f73;
}
.testimonial-card p {
  color: #29475A;
  font-size: 1.07rem;
  font-style: italic;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-meta {
  color: #997223;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .testimonial-row {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card { min-width: 0; width: 100%; }
}

/* --- Pricing Table & Specials --- */
.pricing-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 24px;
  margin-top: 8px;
}
.pricing-option {
  background: #fff;
  border: 1.5px solid #e4e1d0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(41,71,90,0.07);
  flex: 1 1 200px;
  min-width: 180px;
  padding: 18px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .21s, border .16s;
}
.pricing-option h3 { color: #997223; font-size: 1.18rem; margin-bottom: 2px; }
.pricing-option .price {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  color: #29475A;
  font-weight: 700;
  margin-top: 3px;
}
.pricing-option:hover, .pricing-option:focus {
  border: 1.5px solid #b89f73;
  box-shadow: 0 4px 18px rgba(41,71,90,0.12);
}
.special-offers { background: #e2e0cf; border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.special-offers h4 { color: #29475A; font-size: 1.04rem; margin-bottom: 5px; }
.special-offers li { color: #40697A; margin-bottom: 4px; }
@media (max-width: 768px) {
  .pricing-tables { flex-direction: column; gap: 16px; }
  .pricing-option { min-width: 0; }
}

/* --- Table Styling (Stundenplan etc) --- */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.98rem;
  box-shadow: 0 2px 10px rgba(41,71,90,0.07);
}
thead tr {
  background: #40697A;
  color: #fff;
}
th, td {
  text-align: left;
  padding: 12px 14px;
}
th { font-family: 'Montserrat', Arial, sans-serif; font-size: 1.05rem; }
tbody tr { border-top: 1px solid #e4e1d0; }
tbody tr:nth-child(even) { background: #F8F7F3; }

.class-types-legende { background: #f8f7f3; border-radius: 8px; padding: 12px 18px; margin-bottom: 14px; }
.class-types-legende p { color: #29475A; margin-bottom: 5px; }
.class-types-legende li { color: #40697A; font-size: .98rem; margin-bottom: 2px; }

/* --- Kontakt page --- */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #40697A;
  font-size: 1.04rem;
}
.contact-list li a { color: #29475A; font-weight: 400; }
.map-snippet { background: #e2e0cf; border-radius: 9px; padding: 12px 16px; margin-top: 14px; color: #29475A; }
.map-snippet img { width: 20px; margin-right: 8px; }

/* --- Footer --- */
footer { background: #29475A; color: #fff; border-top: 2.5px solid #997223; padding-top: 20px; }
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 0 16px 0;
  font-size: 0.98rem;
}
.footer-content img { height: 48px; margin-bottom: 12px; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-links a {
  color: #fff;
  opacity: 0.85;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.96rem;
  transition: color 0.16s, opacity .16s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #B89F73;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact img { width: 18px; display: inline-block; margin-right: 6px; vertical-align: text-bottom; }
.brand-tagline {
  font-size: 1.02rem;
  color: #B89F73;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.005em;
}
@media (max-width: 800px) {
  .footer-content { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* --- Legal pages --- */
.legal-content {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(41,71,90,0.04);
  padding: 32px 20px;
  margin-top: 18px;
  margin-bottom: 32px;
  font-size: 1.01rem;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: #29475A;
  color: #FFF;
  padding: 22px 16px 22px 24px;
  box-shadow: 0 -2px 14px rgba(41,71,90, .15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100vw;
  transition: transform 0.35s, opacity 0.22s;
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  border-radius: 20px;
  cursor: pointer;
  padding: 10px 20px;
  border: none;
  margin-right: 0px;
  outline: none;
  font-weight: 600;
  transition: background .18s, color .18s;
}
.cookie-banner .accept-btn { background: #997223; color: #fff; border: 1.5px solid #997223; }
.cookie-banner .accept-btn:hover, .cookie-banner .accept-btn:focus { background: #b89f73; border-color: #b89f73; color: #fffbe9; }
.cookie-banner .reject-btn { background: #fff; color: #29475A; border: 1.5px solid #997223; }
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus { background: #e2e0cf; color: #997223; }
.cookie-banner .settings-btn { background: none; color: #b89f73; border: 1.5px solid #b89f73; }
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus { background: #e2e0cf; color: #29475A; }

@media (max-width: 700px) {
  .cookie-banner { font-size: 0.98rem; padding: 16px 6px 16px 10px; }
  .cookie-banner .cookie-buttons { gap: 10px; }
}

/* --- Cookie Preferences Modal --- */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(41,71,90,0.62);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .23s;
}
.cookie-modal-overlay.hide {
  display: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(41,71,90,.18);
  padding: 34px 28px;
  min-width: 340px; max-width: 95vw;
  color: #29475A;
  font-size: 1.09rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalFadeIn .35s cubic-bezier(.39,.8,.49,1);
}
@keyframes cookieModalFadeIn { from { opacity:0; transform: scale(.92);} to { opacity:1;transform:scale(1);} }
.cookie-modal h2 {
  font-size: 1.23rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #994C23;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.cookie-switch {
  margin-left: auto;
}
.cookie-category input[type="checkbox"] {
  accent-color: #997223;
  width: 19px;
  height: 19px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal button {
  font-family:'Montserrat',Arial,sans-serif;
  font-size: 0.98rem;
  border-radius: 17px; padding: 7px 15px;
  border: none;cursor: pointer; font-weight: 600;transition:all .14s;
}
.cookie-modal .save-btn { background:#997223; color:#fff; }
.cookie-modal .save-btn:hover, .cookie-modal .save-btn:focus { background:#b89f73; }
.cookie-modal .cancel-btn { background:#fff; color:#997223; border:1.3px solid #997223; }
.cookie-modal .cancel-btn:hover, .cookie-modal .cancel-btn:focus { background:#f5ecd8; color:#29475A;}
.cookie-modal .close-x {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  font-size: 1.4rem; color: #29475A; cursor: pointer; opacity: 0.75;
  transition: color .17s, opacity .16s;
}
.cookie-modal .close-x:hover, .cookie-modal .close-x:focus { color: #997223; opacity: 1; }

/* --- Buttons General --- */
button, .button, input[type="submit"], input[type="reset"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 1rem;
  outline: none;
  border: none;
  background: #997223;
  color: #fff;
  box-shadow: 0 2px 8px rgba(41,71,90,0.07);
  letter-spacing: .01em;
  transition: background .18s, box-shadow .18s, color .18s;
}
button:hover, button:focus, .button:hover, .button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: #B89F73;
  color: #fff;
  box-shadow: 0 2px 14px rgba(41,71,90,0.16);
}

/* --- Inputs --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.2px solid #e4e1d0;
  padding: 9px 15px;
  background: #fff;
  transition: border .16s;
}
input:focus, textarea:focus, select:focus { border: 1.5px solid #997223; outline: none; }

/* --- Typography & Headings --- */
@media (max-width: 600px) {
  h1 { font-size: 1.43rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.01rem; }
}

/* --- General --- */
::-webkit-input-placeholder { color: #b1b8c3; }
::-moz-placeholder { color: #b1b8c3; }
:-ms-input-placeholder { color: #b1b8c3; }
::placeholder { color: #b1b8c3; }

/* --- Utility --- */
.mt-8{margin-top:8px;} .mb-8{margin-bottom:8px;} .mt-12{margin-top:12px;} .mb-12{margin-bottom:12px;} .mt-24{margin-top:24px;} .mb-24{margin-bottom:24px;}

/* --- Responsive layout tweaks --- */
@media (max-width: 600px) {
  .container { padding-left: 8px; padding-right: 8px; }
}

/* --- Custom scrollbar for premium look (desktop only) --- */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; background: #e2e0cf; }
  ::-webkit-scrollbar-thumb { background: #b89f73; border-radius: 6px; }
  ::-webkit-scrollbar-thumb:hover { background: #997223; }
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .cta-button, button, .feature-item, .testimonial-card, .pricing-option, .card {
    transition: box-shadow .18s, border .14s, transform .13s, color .17s, background .18s;
  }
  .cta-button:active, button:active, .feature-item:active, .card:active {
    transform: scale(.98);
  }
}

/* --- Z-index layering for overlays --- */
.mobile-menu { z-index: 120; }
.mobile-menu-toggle { z-index: 121; }
.cookie-banner { z-index: 999; }
.cookie-modal-overlay { z-index: 10000; }

/* --- Special: Prevent content overlap --- */
main, section, .section, .container, .content-wrapper, .card, .feature-item, .testimonial-card, .pricing-option {
  margin-bottom: 20px;
}

/* --- End of CSS --- */

/* Please deliver font links via HTML (Google Fonts):
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap" rel="stylesheet"> */
