/*==============================
AlltagsMeister Modern Bold Style CSS
===============================*/
/* Reset and 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F7FAFC;
  color: #222E35;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
a {
  color: #2A4D69;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}
a:hover, a:focus {
  color: #F6D55C;
  outline: none;
}
button {
  font-family: inherit;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* Font Face (Google Fonts usage assumed) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;700&display=swap');

/*========================================
  BRAND COLOR VARIABLES (with safe fallback)
=========================================*/
:root {
  --clr-primary: #2A4D69;
  --clr-secondary: #9FB7B9;
  --clr-accent: #F6D55C;
  --clr-bg: #F7FAFC;
  --clr-contrast: #ffffff;
  --clr-grey: #e5e7eb;
  --clr-shadow: rgba(42,77,105,0.07);
  --clr-danger: #D7263D;
}

/*========================================
  Typography & Headings (Modern Bold)
========================================*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--clr-primary);
  line-height: 1.18;
  letter-spacing: -1.5px;
}
h1 {
  font-size: 2.5rem;
  margin-top: 0;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.2rem;
}
p, li, label, a, span, em, strong {
  font-family: 'Open Sans', Arial, sans-serif;
}
p, li {
  font-size: 1rem;
  font-weight: 400;
  color: #222E35;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}
.subheadline {
  font-size: 1.18rem;
  color: var(--clr-secondary);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.success-message {
  color: var(--clr-primary);
  background: #e7f4ff;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  margin: 20px 0 20px 0;
}

/*==== Layout Containers ====*/
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
}

main {
  padding-bottom: 60px;
}

.content-wrapper {
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  padding: 0;
  max-width: 800px;
}

/*==== Section Spacing Patterns (MANDATORY) ====*/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--clr-contrast);
  border-radius: 28px;
  box-shadow: 0 4px 24px var(--clr-shadow);
}
section:last-of-type {
  margin-bottom: 0;
}

/*==== Card Containers ====*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--clr-contrast);
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--clr-shadow);
  padding: 24px 20px;
}

.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7FAFC;
  border-left: 6px solid var(--clr-accent);
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--clr-shadow);
  margin-bottom: 20px;
  min-width: 0;
  color: #222e35;
  font-size: 1.1rem;
}
.testimonial-card strong {
  color: var(--clr-primary);
  font-weight: 900;
  margin-left: 8px;
  font-size: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Feature grid for Ratgeber page */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: #F7FAFC;
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--clr-shadow);
  padding: 28px 18px 20px 18px;
  min-width: 200px;
  text-align: center;
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}
.preview-snippets {
  background: var(--clr-secondary);
  color: var(--clr-primary);
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 8px;
}

ul {
  list-style: none;
  padding: 0;
}
ul > li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
ul > li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-right: 8px;
  margin-top: 2px;
}

/* Success State */
.success-message {
  background: #eafaf7;
  color: #00836A;
  border-left: 6px solid #00836A;
}

/*========================================
  BUTTONS, CTAs, MICROINTERACTIONS
========================================*/
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.16rem;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: var(--clr-accent);
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--clr-shadow);
  padding: 16px 32px;
  margin-top: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, transform 0.15s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffe064;
  color: var(--clr-primary);
  box-shadow: 0 6px 24px var(--clr-secondary);
  outline: 0;
  transform: translateY(-2px) scale(1.04);
}


.button, input[type="submit"], .btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--clr-primary);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  margin: 5px 0;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.22s;
}
.button:hover, .btn:hover, input[type="submit"]:hover {
  background: var(--clr-secondary);
  box-shadow: 0 4px 20px var(--clr-shadow);
  color: var(--clr-primary);
}

/*========================================
  HEADER, NAVIGATION, FOOTER
========================================*/
header {
  background: var(--clr-primary);
  color: #fff;
  padding: 0;
  box-shadow: 0 4px 24px var(--clr-shadow);
}
header .container {
  padding: 0 24px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  min-height: 80px;
}
header a img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.16s, border-bottom 0.14s;
  border-bottom: 2px solid transparent;
  padding: 3px 0 6px 0;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--clr-accent);
  border-bottom: 2px solid var(--clr-accent);
  outline: 0;
}
header .cta-btn {
  margin: 0 0 0 36px;
  background: var(--clr-accent);
  color: var(--clr-primary);
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--clr-shadow);
  transition: background 0.17s, color 0.18s;
}
header .cta-btn:hover, header .cta-btn:focus {
  background: #ffd834;
  color: var(--clr-primary);
}

/* Footer ---------------------------------- */
footer {
  background: #182532;
  color: #fff;
  padding: 34px 0 0 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
}
footer .footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
footer .footer-nav a {
  color: var(--clr-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.15s;
}
footer .footer-nav a:hover, footer .footer-nav a:focus {
  color: #fff;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.footer-brand img {
  width: 36px;
  height: 36px;
}
.footer-brand span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.5px;
}

/*========================================
  MOBILE NAVIGATION (BURGER MENU)
========================================*/
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2222;
  font-size: 2.2rem;
  background: var(--clr-accent);
  color: var(--clr-primary);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--clr-shadow);
  border: none;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, transform 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #f9efb3;
  color: #222e35;
  outline: 0;
  transform: scale(1.07);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--clr-primary);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3333;
  transform: translateX(-100%);
  transition: transform 0.333s cubic-bezier(.77,.07,.41,.98);
  box-shadow: 8px 0 28px rgba(0,0,0,0.14);
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  margin: 36px 36px 0 0;
  background: var(--clr-accent);
  color: var(--clr-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--clr-shadow);
  transition: background 0.1s, color 0.1s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffe884;
  color: #182532;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 40px 0 0 36px;
  gap: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 16px 0;
  transition: color 0.15s, background 0.17s;
  width: 100%;
  border-radius: 8px;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--clr-accent);
  color: var(--clr-primary);
}

/* Hide nav and show burger in mobile */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}


/*========================================
  COOKIE CONSENT BANNER & MODAL
========================================*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffde0;
  box-shadow: 0 -8px 32px rgba(42,77,105,0.14);
  border-top: 6px solid var(--clr-accent);
  z-index: 7000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 30px 28px;
  animation: cookieBanner-in 0.77s cubic-bezier(.31,1.09,.44,.92);
}
@keyframes cookieBanner-in {
  0% { transform: translateY(100%); opacity: 0; }
  70% { transform: translateY(-12px); opacity: 1; }
  100% { transform: translateY(0%); opacity: 1; }
}
.cookie-banner .cookie-message {
  font-size: 1.1rem;
  color: #222e35;
  font-weight: 700;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-banner button, .cookie-banner .cookie-btn {
  padding: 10px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  box-shadow: 0 4px 16px var(--clr-shadow);
}
.cookie-banner .cookie-accept {
  background: var(--clr-accent);
  color: var(--clr-primary);
}
.cookie-banner .cookie-accept:hover {
  background: var(--clr-secondary);
  color: #fff;
}
.cookie-banner .cookie-reject {
  background: #fff;
  color: var(--clr-danger);
  border: 2px solid var(--clr-danger);
}
.cookie-banner .cookie-reject:hover {
  background: #ffe0e5;
  color: #a11229;
}
.cookie-banner .cookie-settings {
  background: var(--clr-primary);
  color: #fff;
}
.cookie-banner .cookie-settings:hover {
  background: var(--clr-accent);
  color: var(--clr-primary);
}

/* Cookie modal overlay + content */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,37,50, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieOverlay 0.2s;
}
@keyframes fadeInCookieOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 8px 40px rgba(42,77,105,0.18);
  max-width: 380px;
  width: 92vw;
  padding: 34px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideInCookieModal 0.333s cubic-bezier(.7,.3,.3,1);
}
@keyframes slideInCookieModal {
  from { transform: translateY(60px) scale(.92); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--clr-primary);
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
}
.cookie-toggle input[type=checkbox] {
  accent-color: var(--clr-accent);
  width: 22px;
  height: 22px;
}
.cookie-modal .category-essential {
  color: #00a36d;
  font-weight: 900;
  font-size: 1rem;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
}
.cookie-modal .close-cookie-modal {
  margin-top: 10px;
  background: #e5e7eb;
  color: #222e35;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal .close-cookie-modal:hover {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}

/* Responsive Cookie Banner */
@media (max-width: 576px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 12px;
    gap: 14px;
  }
  .cookie-banner .cookie-actions {
    gap: 10px;
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
  }
}

/*========================================
  Responsive DESIGN (Mobile First)
========================================*/
/* Pages structure changes for mobile */
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  header .container {
    flex-direction: row;
    padding: 0 10px;
    min-height: 58px;
    height: 58px;
  }
  header a img {
    height: 32px;
  }

  main {
    padding-bottom: 20px;
  }
  section {
    border-radius: 16px;
    margin-bottom: 35px;
    padding: 18px 6px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px 9px;
    font-size: 1rem;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .footer-nav {
    gap: 10px;
    flex-wrap: wrap;
  }
  .footer-brand {
    flex-direction: column;
    gap: 4px;
  }
}
@media (max-width: 1020px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
}

/* Section & Card Flexbox Gaps (redundant for clarity) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*========================================
  ACCESSIBILITY & VISUAL CLARITY
========================================*/
:focus {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

/* Ensure no content overlaps */
section, .container, .content-wrapper, .testimonial-card, .feature-grid > div, .card {
  margin-bottom: 20px;
}

/* Subtle Shadows & Rounded Corners */
section, .card, .testimonial-card, .feature-grid > div, .cookie-modal {
  box-shadow: 0 2px 16px var(--clr-shadow);
  border-radius: 18px;
}

/*========================================
  MICRO-ANIMATIONS
========================================*/
.cta-btn, .button, .btn, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: background 0.16s, color 0.15s, box-shadow 0.26s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(42,77,105, 0.18);
  transform: translateY(-2px) scale(1.015);
}

/*===============================
  End AlltagsMeister CSS
===============================*/
