/* ==== 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, 
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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.4;
  background: #fff8f4;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
  box-sizing: border-box;
}

/* ==== VARIABLES ==== */
:root {
  --brand-primary: #204B5E;
  --brand-secondary: #C7A27C;
  --brand-accent: #ECECEC;
  --background: #fff8f4;
  --text: #222;
  --text-light: #fff;
  --card-bg: #fff;
  --shadow: 0 4px 16px rgba(32,75,94,0.10);
  --border-radius: 20px;
  --radius-small: 12px;
  --radius-btn: 40px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --gradient-warm: #fff4e2;
  --border-grey: #e6e6e6;
  --focus: #eec296;
}

/* ==== GENERAL LAYOUT & BASE TYPO ==== */
html {
  font-size: 16px;
  box-sizing: border-box;
}
body {
  color: var(--text);
  font-family: var(--font-body);
  background: var(--background);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 10px; }
h2 { font-size: 2rem; margin-bottom: 8px; }
h3 { font-size: 1.25rem; margin-bottom: 6px; }
h4 { font-size: 1.1rem; margin-bottom: 5px; }
p {
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--text);
}
ul, ol {
  margin-bottom: 12px;
  padding-left: 22px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--text);
  position: relative;
}
ul li::before {
  content: "•";
  color: var(--brand-secondary);
  font-weight: bold;
  margin-right: 12px;
}
strong, b {
  color: var(--brand-primary);
  font-weight: 700;
}
a {
  color: var(--brand-primary);
  transition: color 0.20s;
}
a:hover,
a:focus {
  color: var(--brand-secondary);
  text-decoration: underline;
}

/* ==== HEADER ==== */
header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(32,75,94,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}
.logo img {
  max-height: 48px;
  border-radius: var(--border-radius);
  transition: box-shadow 0.3s;
}
.logo img:hover {
  box-shadow: 0 2px 24px var(--focus);
}

/* ==== NAVIGATION ==== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  color: var(--brand-primary);
  transition: background 0.20s, color 0.20s, box-shadow 0.25s;
  position: relative;
}
.main-nav a.cta {
  background: linear-gradient(90deg, #ffe9bc 0%, #c7a27c 100%);
  color: var(--brand-primary);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(199,162,124,0.09);
  border-radius: var(--radius-btn);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--focus);
  color: #fff;
  box-shadow: 0 2px 14px var(--focus);
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: var(--brand-primary);
  color: #fff;
}

/* ==== MOBILE MENU BUTTON ==== */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border-radius: 50%;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 201;
  border: none;
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--focus);
  color: var(--brand-primary);
  box-shadow: 0 2px 8px var(--focus);
}

@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ==== MOBILE SLIDEOVER MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 244, 226, 0.99);
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.85,.01,.42,.99);
  box-shadow: 0 2px 32px rgba(32, 75, 94, 0.20);
  padding: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-size: 2.5rem;
  padding: 9px 24px 0 9px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin: 20px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--focus);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 30px;
  margin-top: 16px;
}
.mobile-nav a {
  width: 100%;
  font-size: 1.3rem;
  padding: 16px 10px;
  border-radius: var(--radius-btn);
  background: none;
  color: var(--brand-primary);
  font-family: var(--font-body);
  transition: background 0.20s, color 0.20s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffe9bc;
  color: var(--brand-primary);
}

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

/* ==== HERO SECTION ==== */
.hero {
  background: var(--gradient-warm);
  padding: 56px 0 40px 0;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  gap: 22px;
}
.hero .cta {
  margin-top: 16px;
}

/* ==== CTA BUTTON ==== */
.cta {
  display: inline-block;
  background: linear-gradient(90deg, #ffe9bc 0%, #c7a27c 100%);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  border-radius: var(--radius-btn);
  padding: 12px 36px;
  cursor: pointer;
  transition: background 0.20s, color 0.20s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(199,162,124,0.12);
  border: none;
  outline: none;
  margin-top: 10px;
}
.cta:hover, .cta:focus {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 24px var(--focus), 0 2px 14px var(--brand-secondary);
  transform: translateY(-2px) scale(1.03);
}

/* ==== SECTION UTILITY CLASSES ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* ==== FEATURE GRID ==== */
.features, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
}
.feature-grid {
  margin-top: 32px;
}
.feature {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 28px 22px 26px 22px;
  box-shadow: var(--shadow);
  flex: 1 1 220px;
  max-width: 250px;
  min-width: 188px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.19s, transform 0.18s;
}
.feature img {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
}
.feature h3 {
  margin: 6px 0 2px 0;
  font-size: 1.20rem;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 36px var(--focus);
  transform: translateY(-3px) scale(1.01);
  z-index: 2;
}

/* ==== CARD LAYOUTS & CONTENT GRIDS ==== */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 18px;
  transition: box-shadow 0.18s, transform 0.16s;
  position: relative;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 36px var(--focus);
  transform: scale(1.014);
}

.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;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ==== TESTIMONIALS ==== */
.testimonials {
  background: #fffdf8;
  border-radius: var(--border-radius);
  padding: 44px 0;
  margin-bottom: 60px;
  box-shadow: 0 2px 22px rgba(199,162,124,0.09);
}
.testimonials .container {
  flex-direction: column;
}
.testimonials .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 18px 24px;
  min-width: 250px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 18px rgba(32,75,94,0.10);
  margin-bottom: 20px;
  max-width: 340px;
  border-left: 8px solid var(--brand-secondary);
}
.testimonial-card .stars {
  color: #FFC700;
  font-size: 1.3rem;
  letter-spacing: 2px;
  font-family: var(--font-display);
}
.testimonial-card p {
  font-size: 1.08rem;
  font-family: var(--font-body);
  color: #333;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: var(--brand-primary);
  font-weight: 700;
  font-family: var(--font-body);
  margin-top: 0;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 6px 32px var(--focus);
  background: var(--gradient-warm);
}

/* ==== FEATURE ITEMS ==== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== FOOTER ==== */
footer {
  background: var(--brand-primary);
  color: var(--text-light);
  margin-top: 64px;
  padding: 32px 0 20px 0;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -6px 18px rgba(32,75,94,0.09);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer img {
  width: 48px;
  height: auto;
  margin-bottom: 6px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--brand-secondary);
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  transition: background 0.18s, color 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--focus);
  color: var(--brand-primary);
}
footer address, footer span {
  color: #d2e1ed;
  font-size: 0.97rem;
  font-style: normal;
  margin-bottom: 1px;
}

/* ==== COOKIE BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff9ee;
  box-shadow: 0 -4px 24px rgba(32,75,94,0.13);
  color: var(--text);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 36px 16px 16px 16px;
  gap: 32px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: transform 0.4s;
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0.7;
}
.cookie-banner-content {
  max-width: 680px;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 9px 26px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  font-size: 1.01rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  box-shadow: 0 2px 7px rgba(192,150,110,0.10);
}
.cookie-btn.primary {
  background: var(--brand-primary);
  color: var(--text-light);
}
.cookie-btn.settings {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 16px var(--focus);
}
.cookie-btn.primary:hover,
.cookie-btn.primary:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32, 75, 94, 0.23);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.27s;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 44px rgba(32,75,94,0.19);
  padding: 36px 32px;
  min-width: 320px;
  min-height: 280px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}
.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--brand-primary);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  margin-bottom: 6px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--brand-secondary);
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  justify-content: flex-end;
}
/* Essential cookies (always enabled) */
.cookie-category.essential input[type="checkbox"] {
  accent-color: var(--brand-secondary);
  pointer-events: none;
  background: var(--brand-secondary);
}
.cookie-category.essential label::after {
  content: "(immer aktiviert)";
  color: #aaaaaa;
  font-size: 0.9em;
  margin-left: 10px;
}

/* ==== RESPONSIVENESS ==== */
@media (max-width: 1000px) {
  .container {
    max-width: 94vw;
    padding: 0 12px;
  }
  .features, .feature-grid, .content-grid,
  .card-container, .card-grid, .testimonials .content-wrapper, .footer-nav {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch !important;
  }
}
@media (max-width: 820px) {
  .features,
  .feature-grid,
  .content-grid,
  .card-container,
  .card-grid,
  .testimonials .content-wrapper{
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .section, .hero {
    padding: 18px 0;
  }
  .testimonial-card {
    max-width: 98vw;
    min-width: 0;
  }
  .content-wrapper {
    padding: 0;
  }
}
@media (max-width: 650px) {
  h1 {font-size: 1.7rem;}
  h2 {font-size: 1.22rem;}
  .section, .hero {
    padding: 6px 0;
  }
  .feature {
    max-width: 98vw;
    min-width: 0;
    padding: 16px 8px;
  }
  .text-section {
    padding: 16px 8px;
  }
}
@media (max-width: 400px) {
  .cookie-modal {
    padding: 14px 4vw 20px 4vw;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 20px;
    padding-top: 18px;
  }
}

/* ==== MICRO-INTERACTIONS ==== */
button, .cta, .main-nav a, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn {
  transition: background 0.20s, box-shadow 0.18s, color 0.18s, transform 0.12s;
}
button:active, .cta:active, .main-nav a:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* ==== FOCUS VISIBLE INDICATOR ==== */
button:focus-visible, .cta:focus-visible, .main-nav a:focus-visible, .footer-nav a:focus-visible, .mobile-nav a:focus-visible, .cookie-btn:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus);
}

/* ==== MISC ELEMENTS ==== */
::-webkit-scrollbar { width: 10px; background: #ffe9bc; }
::-webkit-scrollbar-thumb { background: var(--brand-secondary); border-radius: 10px; }

/* ==== FORM INPUTS (for future-proofing/contact forms) ==== */
input, textarea, select {
  border-radius: var(--radius-small);
  border: 1.5px solid var(--border-grey);
  background: #fff;
  padding: 11px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 12px;
  transition: border 0.15s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px var(--focus);
}

/* ==== IMG ICONS INLINE WITH TEXT ==== */
li img, p img {
  vertical-align: middle;
  margin-right: 8px;
  max-height: 23px;
  display: inline-block;
  border-radius: var(--radius-small);
}

/* ==== UTILITY GAPS & MARGINS ==== */
.mb-3 { margin-bottom: 24px !important; }
.mt-3 { margin-top: 24px !important; }
.gap-2 { gap: 16px !important; }
.gap-3 { gap: 24px !important; }

/* ==== PRINT STYLES (optional accessibility) ==== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
}
