/* ============================================================
   Raggi Bildung – Elegant Classic Responsive CSS
   ------------------------------------------------------------
   Brand: vertrauenswürdig, inspirierend, individuell, familiär
   Style: serif & sans-serif, muted elegant colors, classic layout
   Flexbox Only – NO CSS Grid, NO columns! Responsive + Modern
   Hamburger menu & cookie consent UI included
   ============================================================ */

/* --------------------
   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,
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FAFAF7;
  color: #1A232E;
  min-height: 100vh;
  font-family: 'Georgia', serif;
}
img, svg {
  max-width: 100%;
  display: block;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}

/* -------------
   CSS VARIABLES
---------------- */
:root {
  --brand-primary: #1A407A;
  --brand-secondary: #517A1A;
  --brand-accent: #F9F9F9;
  --brand-bg: #FAFAF7;
  --text-main: #1A232E;
  --text-muted: #6B6B6B;
  --text-light: #fff;
  --divider: #E5E8ED;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Georgia', serif;
  --font-ui: 'Montserrat', 'Roboto', Arial, sans-serif;

  --radius-soft: 12px;
  --radius-card: 16px;

  --shadow-card: 0 3px 16px 0 rgba(34,38,76,0.06);
  --shadow-btn: 0 2px 6px 0 rgba(34,38,76,0.08);
  --transition: all 0.23s cubic-bezier(.4,.2,.2,1);
}

/* --------------
   TYPOGRAPHY
--------------- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--brand-primary);
  margin-bottom: 32px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-secondary);
  margin-bottom: 24px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.275rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 16px;
}
h4, .h4 {
  font-size: 1.1rem;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: 10px;
}
p, li, a, span, strong, em, address, label, td, th {
  font-family: var(--font-body);
  color: var(--text-main);
  font-size: 1.075rem;
}
strong { font-weight: 700; }
small { font-size: 0.98em; color: var(--text-muted); }
a {
  color: var(--brand-primary);
  text-decoration: underline;
  transition: var(--transition);
  word-break: break-word;
}
a:hover, a:focus {
  color: var(--brand-secondary);
  text-decoration: none;
}

ul, ol {
  margin-bottom: 22px;
  margin-left: 26px;
  padding-left: 0;
}
li {
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  h1, .h1 { font-size: 1.7rem; }
  h2, .h2 { font-size: 1.32rem; }
  h3, .h3 { font-size: 1.10rem; }
}

/* ---------------
   LAYOUT
---------------- */
.container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.hero {
  background: linear-gradient(128deg,#FAFAF7 82%,#E8EAF3 100%);
  padding: 48px 0 36px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

@media (min-width: 900px) {
  .hero .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 24px 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 260px;
  flex: 1 1 320px;
}
.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;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  box-shadow: 0 6px 36px rgba(34,38,76,0.11);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  margin-top: 16px;
  min-width: 240px;
  max-width: 500px;
  border-left: 4px solid var(--brand-primary);
  font-size: 1.08em;
}
.testimonial-card span {
  font-size: 1.1em;
  color: var(--brand-secondary);
  font-family: var(--font-ui);
}
.testimonial-card div {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.features-grid, .usp-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
  margin-top: 16px;
}
.feature, .usp-grid > div {
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  padding: 26px 24px 20px 24px;
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-left: 2px solid var(--brand-secondary);
  margin-bottom: 10px;
}
.features-grid img {
  margin-bottom: 10px;
  height: 42px;
  width: 42px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 900px) {
  .features-grid, .usp-grid {
    gap: 16px;
  }
  .feature, .usp-grid > div {
    flex: 1 1 100%;
    min-width: 220px;
    padding: 16px 14px 14px 14px;
  }
}

.cta-section {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin: 40px 0;
  padding: 36px 26px;
}

.cta-section .cta-button {
  margin-top: 14px;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 20px;
}
.service {
  background: #F6F7FA;
  border-radius: var(--radius-soft);
  padding: 22px 18px;
  box-shadow: 0 2px 12px 0 rgba(34,38,76,.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  border-left: 2px solid var(--brand-primary);
}
.price {
  float: right;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-secondary);
  margin-left: 12px;
  letter-spacing: 0.01em;
}

/* FAQ LIST */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-soft);
  padding: 18px 20px;
  box-shadow: 0 2px 10px 0 rgba(34,38,76,.07);
  margin-bottom: 10px;
}
.faq-item h3 {
  margin-bottom: 7px;
}

/* CONTACT INFO */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius-soft);
  padding: 10px 18px;
  box-shadow: 0 1px 8px 0 rgba(34,38,76,0.06);
  font-size: 1.07rem;
}
.contact-info img {
  width: 24px;
  height: 24px;
}

/* CTA BUTTONS */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: var(--text-light) !important;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  margin-top: 10px;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.03em;
  outline: none;
  position: relative;
  z-index: 1;
}
.cta-button:hover, .cta-button:focus {
  background: var(--brand-secondary);
  box-shadow: 0 4px 24px 0 rgba(81,122,26,0.11);
  color: #fff !important;
}

/* MAIN NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(26,40,122,0.05);
  border-bottom: 1.5px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 60;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-ui);
  font-size: 1.03rem;
  flex: 1 1 auto;
}
.main-nav a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-secondary);
  color: #fff;
}
header img[alt="Raggi Bildung"] {
  height: 46px;
  width: auto;
  margin-right: 16px;
}

/* Hide nav and show burger on mobile*/
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  header .cta-button {
    display: none;
  }
}

/* Burger Button */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: transparent;
  color: var(--brand-primary);
  border: none;
  padding: 6px 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  z-index: 80;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #eaf0fb;
  color: var(--brand-secondary);
}
@media (min-width: 901px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; 
  width: 100vw;
  height: 100vh;
  background: rgba(26,64,122,0.94);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform .32s cubic-bezier(.42,.19,.21,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.4rem;
  color: #fff;
  background: none;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  margin: 16px 22px 4px 0;
  border-radius: 50%;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(81,122,26,0.18);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 36px 36px 12px 36px;
  width: 100%;
  gap: 14px;
}
.mobile-nav a {
  font-family: var(--font-ui);
  font-size: 1.23rem;
  color: #fff;
  padding: 12px 0;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  border-radius: 7px;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(249,249,249, 0.06);
  color: var(--brand-secondary);
}

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

/* FOOTER */
footer {
  background: #fff;
  border-top: 1.5px solid var(--divider);
  padding-top: 32px;
  padding-bottom: 28px;
  margin-top: 70px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 13px;
  font-size: 0.99rem;
}
.footer-nav a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover {
  text-decoration: underline;
  color: var(--brand-secondary);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 1.01rem;
}
.footer-brand img {
  height: 36px;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  footer {
    padding-top: 20px; padding-bottom: 18px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #F3F0E3;
  color: var(--text-main);
  padding: 22px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 190;
  box-shadow: 0 -6px 28px 0 rgba(26,64,122,0.07);
  border-top: 2.5px solid var(--brand-secondary);
  transition: transform .28s ease, opacity .21s linear;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 22px;
  border: none;
  margin-right: 4px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background var(--transition), color var(--transition);
}
.cookie-btn.settings {
  background: var(--brand-secondary);
}
.cookie-btn.reject {
  background: #83927b;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--brand-secondary);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e82f32;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(26,64,122,0.17);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .22s;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 10px 48px 0 rgba(26,64,122,0.15);
  padding: 40px 26px 28px 26px;
  max-width: 390px;
  width: 92%;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInModal .32s cubic-bezier(.31,.48,.31,1);
}
@keyframes fadeInModal {
  from { transform: scale(.96) translateY(32px); opacity: 0; }
  to   { transform: scale(1) translateY(0);   opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 12px;
  font-size: 1.42rem;
  color: var(--brand-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #eee;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal label {
  font-family: var(--font-ui);
  font-size: 1.05em;
  flex: 1;
}
.cookie-modal input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--brand-secondary);
}
.cookie-modal .category-essential {
  opacity: .6;
}
.cookie-modal .essential-badge {
  background: var(--brand-secondary);
  color: #fff;
  font-size: .82em;
  padding: 1px 8px;
  border-radius: 11px;
  margin-left: 7px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  font-size: 1rem;
  padding: 8px 18px;
}
.cookie-modal .cookie-btn.cancel {
  background: #83927b;
}
.cookie-modal .cookie-btn.cancel:hover {
  background: #e82f32;
}


/* UTILITY CLASSES */
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.align-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.gap-20 { gap: 20px !important; }
.m-0 { margin: 0 !important; }
.mt-3 { margin-top: 16px !important; }

/* TEXT-SECTION */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul, .text-section ol {
  margin-left: 18px;
  margin-bottom: 16px;
}
.text-section li {
  margin-bottom: 7px;
}

/* USP GRID (About page) */
.usp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.usp-grid > div {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 24px 16px 16px 20px;
}

@media (max-width: 900px) {
  .usp-grid {
    gap: 14px;
  }
  .usp-grid > div { min-width: 100px; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 8px; padding-right: 8px;
  }
  .section, .cta-section {
    padding: 26px 6px;
    margin-bottom: 32px;
  }
  .card-container, .content-grid, .features-grid, .usp-grid {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
}

/* Microinteractions & Focus states */
.card, .testimonial-card, .service, .feature, .faq-item, .contact-info > div {
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover, .testimonial-card:hover, .feature:hover, .faq-item:hover {
  box-shadow: 0 8px 36px 0 rgba(26,64,122, 0.16);
  border-left-color: var(--brand-secondary);
}
.card:focus-within, .testimonial-card:focus-within, .feature:focus-within, .faq-item:focus-within {
  box-shadow: 0 2px 16px 0 rgba(81,122,26,0.13);
  border-left-color: var(--brand-secondary);
}

/* Animations for mobile menu and cookie banner */
.mobile-menu {
  will-change: transform;
}
.mobile-menu.active {
  box-shadow: 0 2px 46px 0 rgba(26,64,122,0.22);
}
.cookie-banner {
  will-change: transform, opacity;
}

/* Print Styles (minimal) */
@media print {
  header, .mobile-menu, .cookie-banner, footer, .cta-button {
    display: none !important;
  }
  body { background: #fff; }
  .section, .card, .testimonial-card, .feature, .service {
    background: #fff !important;
    box-shadow: none !important;
    color: #111 !important;
  }
}
