/* ----------------------- RESET & NORMALIZE ----------------------- */
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}
:root {
  /* Brand Colors */
  --color-primary: #1A2233;
  --color-secondary: #B4C4D9;
  --color-accent: #E8F6E2;

  /* Vibrant energetic palette extension */
  --color-electric: #30D5C8;
  --color-orange: #FF6D2D;
  --color-hotpink: #FF2987;
  --color-violet: #7B3FF2;
  --color-yellow: #FFE066;

  /* Greys and UI */
  --color-bg: #F8FAFC;
  --color-bg-dark: #22282E;
  --color-text: #1A2233;
  --color-text-light: #fff;

  /* Shadows & Radius */
  --shadow-md: 0 4px 20px 0 rgba(30,60,100,0.12);
  --shadow-lg: 0 8px 32px 0 rgba(30,60,100,0.20);
  --radius: 16px;

  /* Typography Scale */
  --fs-xs: 0.875rem; /* 14px */
  --fs-s: 1rem; /* 16px */
  --fs-m: 1.125rem; /* 18px */
  --fs-l: 1.5rem; /* 24px */
  --fs-xl: 2rem; /* 32px */
  --fs-xxl: 3rem; /* 48px */

  /* Spacing */
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 40px;
  --space-xxl: 60px;
}
@media (max-width: 480px) {
  :root {
    --fs-xl: 1.5rem;
    --fs-xxl: 2.1rem;
    --space-l: 20px;
    --space-xl: 24px;
    --space-xxl: 32px;
  }
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: var(--fs-s);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

/* -------------------- TYPOGRAPHY -------------------- */
h1, .hero h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: var(--fs-xxl);
  line-height: 1.18;
  color: var(--color-electric);
  font-weight: bold;
  margin-bottom: var(--space-m);
}
h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: var(--fs-xl);
  color: var(--color-orange);
  font-weight: 700;
  margin-bottom: var(--space-m);
}

h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: var(--fs-l);
  color: var(--color-text);
  font-weight: bold;
  margin-bottom: var(--space-s);
}
h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: var(--fs-m);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

p, li, blockquote, ul, ol {
  font-size: var(--fs-s);
  color: var(--color-text);
  line-height: 1.7;
}

.subheadline {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: var(--fs-l);
  color: var(--color-hotpink);
  font-weight: 600;
  margin-bottom: var(--space-l);
  letter-spacing: 0.2px;
}

blockquote {
  font-family: 'Merriweather', Georgia, serif;
  font-size: var(--fs-m);
  color: var(--color-primary);
  quotes: '“' '”';
  position: relative;
  margin-bottom: var(--space-s);
}
blockquote::before {
  content: open-quote;
  color: var(--color-hotpink);
  font-size: 2em;
  vertical-align: -0.25em;
  margin-right: 4px;
}
blockquote::after {
  content: close-quote;
  color: var(--color-hotpink);
  font-size: 2em;
  vertical-align: -0.25em;
  margin-left: 4px;
}

/* -------------------- CONTAINER -------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) var(--space-m);
  background: transparent;
}

/* ----------------------- HEADER ----------------------- */
header {
  background: var(--color-text-light);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 100;
}
header .container {
  padding-top: var(--space-s);
  padding-bottom: var(--space-s);
}
.header-logo img, header img[alt*="Logo"] {
  max-height: 48px;
  width: auto;
}
.header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-m);
}

nav.main-nav a {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--color-primary);
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 8px;
  padding: 8px 14px;
  transition: background .18s cubic-bezier(0.8,0.4,0.2,1), color .18s;
}
nav.main-nav a:hover {
  background: var(--color-hotpink);
  color: var(--color-text-light);
}

.cta-btn {
  background: linear-gradient(90deg, var(--color-electric) 40%, var(--color-orange) 100%);
  color: var(--color-text-light);
  font-family: 'Merriweather', Georgia, serif;
  font-size: var(--fs-m);
  font-weight: 700;
  border-radius: 40px;
  padding: 14px 30px;
  margin-left: var(--space-m);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  display: inline-block;
  transition: box-shadow .18s, background .18s, transform .12s;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--color-hotpink) 0%, var(--color-yellow) 100%);
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.03);
}

/* ------- Hamburger Mobile Menu Button ------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2100;
  width: 48px;
  height: 48px;
  background: var(--color-electric);
  border-radius: 50%;
  color: var(--color-text-light);
  font-size: 2rem;
  line-height: 1;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background .2s, transform .13s;
}
.mobile-menu-toggle:active {
  transform: rotate(9deg) scale(0.95);
  background: var(--color-orange);
}

/* ------- Mobile menu overlay ------- */
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 2101;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--color-bg-dark);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(100vw);
  transition: transform .34s cubic-bezier(0.8,0.3,0.2,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 26px;
  margin-left: 24px;
  color: var(--color-electric);
  background: none;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: background .16s;
}
.mobile-menu-close:hover {
  background: var(--color-hotpink);
  color: var(--color-text-light);
}
.mobile-nav {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding-left: 36px;
}
.mobile-nav a {
  color: var(--color-text-light);
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  padding: 14px 0;
  border-radius: 8px;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-electric);
  color: var(--color-primary);
  padding-left: 12px;
}

@media (max-width: 1024px) {
  nav.main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* -------------- HERO SECTION --------------- */
.hero {
  padding: var(--space-xl) 0 var(--space-l) 0;
  background: linear-gradient(110deg, var(--color-electric) 10%, var(--color-accent) 80%);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: var(--space-s);
}
@media (max-width: 768px) {
  .hero {
    padding: var(--space-m) 0;
    min-height: 190px;
  }
}

/* -------------------- FEATURE GRID -------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: var(--space-m);
}
.feature-grid > div {
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-l) var(--space-m);
  flex: 1 1 300px;
  min-width: 240px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: 0;
  transition: box-shadow .22s, transform .15s;
  border: 2px solid transparent;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 36px 0 rgba(48,213,200,0.16), var(--shadow-lg);
  border-color: var(--color-hotpink);
  transform: translateY(-6px) scale(1.025);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-s);
}

/* ---------------- GENERIC FLEX CONTAINERS --------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: box-shadow .18s, transform .12s;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(124,45,180,0.14), var(--shadow-lg);
  transform: translateY(-3px) scale(1.01);
}

.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: stretch;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  max-width: 650px;
}
.testimonial-card blockquote {
  margin-bottom: 0;
  color: #133b3e;
  font-size: var(--fs-m);
}
.testimonial-card > div {
  font-size: var(--fs-xs);
  color: var(--color-violet);
  font-weight: bold;
}

/* Ensure testimonial text is dark for contrast */
.testimonial-card, .testimonial-card * {
  color: #222936 !important;
  background: var(--color-accent);
}
.testimonial-card b {
  color: var(--color-hotpink) !important;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: var(--space-s);
}

/* Article preview for Ratgeber */
.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: var(--space-l);
}
.article-preview {
  flex: 1 1 200px;
  min-width: 220px;
  max-width: 340px;
  background: var(--color-bg);
  border: 2px solid var(--color-electric);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-m);
  transition: border .2s, box-shadow .2s;
}
.article-preview:hover {
  border-color: var(--color-hotpink);
  box-shadow: 0 6px 28px -2px var(--color-hotpink), var(--shadow-lg);
}

/* --------------- Text Sections --------------- */
.text-section {
  background: none;
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 0;
}
.text-section ul, .text-section ol {
  padding-left: var(--space-l);
  margin-bottom: var(--space-s);
}
.text-section li {
  margin-bottom: 10px;
  list-style: disc inside none;
}
.text-section li strong {
  color: var(--color-electric);
}

/* --------------- SPECIAL LISTS --------------- */
.tip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-left: 0;
}
.tip-list li {
  flex: 1 1 200px;
  font-size: var(--fs-xs);
  background: var(--color-yellow);
  color: var(--color-primary);
  border-radius: 7px;
  padding: 7px 13px;
  margin-bottom: 0;
}

/* -------------- BUTTONS & LINKS --------------- */
button, .cta-btn {
  font-family: 'Merriweather', Georgia, serif;
  text-transform: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  outline: none;
  user-select: none;
  transition: background .18s, color .18s, box-shadow .15s, transform .13s;
}

a {
  color: var(--color-violet);
  transition: color .15s;
}
a:hover, a:focus {
  color: var(--color-hotpink);
}

/* --------------- LISTS & FORMS --------------- */
ul, ol {
  margin-bottom: var(--space-s);
}
ul li, ol li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-s);
    padding-right: var(--space-s);
  }
  .feature-grid {
    gap: 18px;
  }
  .feature-grid > div {
    padding: var(--space-m);
    min-width: 100%;
    max-width: 100%;
  }
  .card-container, .content-grid, .article-list {
    gap: 14px;
  }
}

/*-------- Modal and Cookie Consent Banner ---------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-violet);
  color: var(--color-text-light);
  z-index: 999;
  padding: 18px 12px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 24px 0 rgba(24,12,60,0.20);
  gap: 20px;
  font-size: var(--fs-s);
}
.cookie-banner p {
  margin: 0;
  color: #fff;
  font-size: var(--fs-xs);
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-btn {
  border: none;
  border-radius: 7px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-yellow);
  padding: 8px 18px;
  cursor: pointer;
  transition: background .13s, color .14s, box-shadow .13s;
  margin: 0;
}
.cookie-btn.cookie-reject {
  background: var(--color-hotpink);
  color: #fff;
}
.cookie-btn.cookie-settings {
  background: var(--color-electric);
  color: #fff;
}
.cookie-btn:hover {
  background: var(--color-orange);
  color: var(--color-primary);
  box-shadow: 0 2px 12px 0 rgba(254,187,36,0.17);
}

.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,22,32,0.68);
  animation: fadein-bg .23s cubic-bezier(.5,0,.2,1);
}
.cookie-modal-content {
  background: var(--color-bg);
  color: var(--color-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 90vw;
  padding: var(--space-m) var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  align-items: flex-start;
  animation: modal-in .31s cubic-bezier(.6,.2,.3,1);
}
.cookie-modal-content h2 {
  color: var(--color-hotpink);
  font-size: var(--fs-l);
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-s);
}
.cookie-toggle {
  display: inline-block;
  width: 38px;
  height: 22px;
  background: var(--color-secondary);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  margin-left: 8px;
  border: 1px solid rgba(110,120,170,0.12);
  transition: background .18s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-electric);
  transition: left .18s cubic-bezier(0.8,0.2,0.2,1), background .18s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 18px;
  background: var(--color-hotpink);
}
.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
}

@keyframes fadein-bg {
  from { background: rgba(20,22,32,0); }
  to   { background: rgba(20,22,32,0.68); }
}
@keyframes modal-in {
  0% { opacity: 0; transform: scale(0.95) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: var(--fs-xs);
    padding: 10px 10px 10px 12px;
  }
  .cookie-modal-content {
    min-width: 90vw;
    padding: var(--space-s) var(--space-s);
  }
}

/* -------------- FOOTER -------------- */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding-top: var(--space-l);
  padding-bottom: var(--space-l);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -3px 32px -8px var(--color-primary);
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: var(--fs-xs);
}
.footer-nav a {
  color: var(--color-electric);
  text-decoration: underline;
  transition: color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-hotpink);
}
.brand-info {
  font-size: var(--fs-xs);
  margin-bottom: 0;
  color: var(--color-accent);
}
.brand-info a {
  color: var(--color-yellow);
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.social-links img {
  width: 26px;
  height: 26px;
  transition: transform .18s;
}
.social-links img:hover {
  transform: translateY(-4px) scale(1.15) rotate(-7deg);
}

footer .content-wrapper {
  flex-direction: row;
  align-items: flex-end;
  gap: var(--space-m);
  justify-content: space-between;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
  }
}

/* -------- MISC: Spacing Between Cards/Sections --------- */
section {
  margin-bottom: var(--space-xxl);
}
section:last-child {
  margin-bottom: 0;
}
.card,
.feature-grid > div,
.testimonial-card,
.article-preview {
  margin-bottom: 0 !important; /* gap used instead */
}

/* --------- Utility Responsive Flex Directions --------- */
@media (max-width: 900px) {
  .feature-grid, .content-grid, .card-container {
    flex-direction: column !important;
    gap: 18px !important;
  }
}

/* ------------- Hide visually (for accessibility) ------ */
.visually-hidden {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

/* ------------ Focus outlines for accessibility --------- */
:focus-visible {
  outline: 2px solid var(--color-hotpink);
  outline-offset: 2px;
}

/* --------- THANKS & ERROR PAGES -------------- */
.thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 68vh;
  text-align: center;
}
.thank-you h1 {
  color: var(--color-electric);
}

/* ------------ Section Headings Animation --------- */
h2, .subheadline {
  position: relative;
  z-index: 1;
  overflow: visible;
  animation: fadeinhead .6s cubic-bezier(.6,0,.3,1);
}
@keyframes fadeinhead {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------- Cards micro-interactions --------------- */
.card, .feature-grid > div, .testimonial-card, .article-preview {
  transition: box-shadow .17s, transform .13s, border-color .13s;
}
.card:focus-within, .feature-grid > div:focus-within, .article-preview:focus-within {
  box-shadow: 0 8px 24px 0 var(--color-electric), var(--shadow-lg);
  border-color: var(--color-electric);
}

/* --------- Prevent content overlap --------- */
.section, .card-container, .card, .feature-grid, .testimonial-card, .content-grid, .article-list {
  margin-bottom: var(--space-m);
}

/* ----------- CONTACT / FORM ELEMENTS ------------- */
input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--color-secondary);
  box-shadow: none;
  font-size: var(--fs-s);
  padding: 10px 12px;
  margin-bottom: var(--space-s);
  width: 100%;
  transition: border-color .13s, box-shadow .14s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-electric);
  box-shadow: 0 0 0 2px var(--color-accent);
}
label {
  display: block;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 5px;
  font-size: var(--fs-xs);
}

/* ----------------- END OF FILE ----------------- */
