/* ====================================================================
   CSS RESET & NORMALIZATION
   ==================================================================== */
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 {
  -webkit-text-size-adjust: 100%;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f6f8fa;
  color: #263238;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
a {
  color: #009688;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #00585a;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol { padding-left: 24px; margin-bottom: 16px; }
li { margin-bottom: 8px; }
table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 6px; box-shadow: 0 2px 7px rgba(38,50,56,0.07); overflow: hidden; margin-bottom: 32px; }
th, td { padding: 16px 10px; text-align: left; border-bottom: 1px solid #e3e6ea; font-size: 16px; }
th { background: #e3e6ea; font-family: 'Montserrat', Arial, sans-serif; }
tr:last-child td { border-bottom: none; }

/* ====================================================================
   BRANDING: COLORS, FONTS
   ==================================================================== */
:root {
  --primary: #263238;
  --secondary: #009688;
  --secondary-dark: #00585a;
  --accent: #FFE082;
  --gray-100: #f6f8fa;
  --gray-200: #e3e6ea;
  --gray-300: #cfd8dc;
  --gray-700: #455a64;
  --white: #fff;
  --shadow-light: 0 2px 8px rgba(38,50,56,0.11);
  --shadow-card: 0 4px 24px -2px rgba(38,50,56, 0.08);
  --input-bg: #f6f8fa;
  --input-border: #cfd8dc;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

body, input, textarea, select, button {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 600; }

p, ul, ol {
  color: var(--gray-700);
  font-size: 1.05em;
  margin-bottom: 18px;
}
strong { font-weight: 600; color: var(--primary); }

/* ====================================================================
   LAYOUT BASICS
   ==================================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--gray-100);
  border-radius: 14px;
  box-shadow: var(--shadow-light);
}
@media (max-width: 768px) {
  .section {
    padding: 30px 6vw;
    margin-bottom: 40px;
  }
}

/* ====================================================================
   HEADER, NAVIGATION, MOBILE MENU
   ==================================================================== */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(38,50,56,0.03);
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 32px;
}
header img {
  height: 36px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 500;
  font-size: 16px;
  padding: 4px 8px;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
  text-decoration: none;
}

.button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  padding: 12px 28px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.18s, transform 0.12s;
}
.button.primary:hover, .button.primary:focus {
  background: var(--secondary-dark);
  box-shadow: 0 2px 14px rgba(0,62,59,0.11);
  transform: translateY(-2px) scale(1.02);
  color: var(--accent);
}
.button {
  text-decoration: none;
  border: none;
}

header .button.primary {
  margin-left: 22px;
  height: 40px;
}

/* Hamburger Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  margin-left: auto;
  cursor: pointer;
  z-index: 21;
  padding: 4px 18px;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.17s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--gray-200);
}

/* Overlay Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 25;
  background: rgba(38,50,56, 0.97);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.77,0,0.18,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 44px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  z-index: 30;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fffbe9;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  margin-top: 36px;
}
.mobile-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  padding: 18px 0;
  width: 100vw;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

@media (max-width: 1024px) {
  .main-nav { gap: 16px; }
  header .button.primary { margin-left: 12px; padding: 11px 18px; }
}
@media (max-width: 900px) {
  header .container { gap: 10px; }
}
@media (max-width: 768px) {
  header .main-nav, header .button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  padding: 0;
  box-shadow: 0 -1px 8px rgba(38,50,56,0.03);
}
footer .container {
  padding: 42px 20px 22px 20px;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  justify-content: flex-start;
}
footer .footer-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  font-size: 15px;
}
footer .footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.17s;
}
footer .footer-nav a:hover,
footer .footer-nav a:focus {
  color: var(--secondary-dark);
}
footer .legal-info {
  margin-left: auto;
  color: var(--gray-700);
  font-size: 14px;
}
@media (max-width: 600px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 36px 10px 18px 10px;
  }
  .footer-nav { gap: 18px; font-size: 14px; }
  .legal-info { margin-left: 0; }
}

/* ====================================================================
   HERO/CTA/TEXT SECTIONS (default .section is applied)
   ==================================================================== */
.text-section {
  background: #fff;
  box-shadow: var(--shadow-light);
  border-radius: 12px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .text-section { padding: 22px 8px; }
}

.notice {
  background: var(--accent);
  color: var(--primary);
  padding: 10px 18px;
  border-radius: 5px;
  font-size: 15px;
  margin: 16px 0;
  box-shadow: 0 1px 8px rgba(255,224,130,0.13);
}

/* ====================================================================
   FLEXBOX STRUCTURES (MANDATORY CLASSES)
   ==================================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 400px;
  padding: 26px 22px;
  transition: box-shadow 0.17s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px -2px rgba(0,110,101,0.13);
  transform: translateY(-2px) scale(1.012);
}
.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: stretch;
    gap: 16px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: 12px;
  margin-bottom: 20px;
  max-width: 540px;
  width: 100%;
  transition: box-shadow 0.16s;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 600;
  align-self: flex-end;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 10px 32px -4px rgba(0,58,101,0.09);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 24px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  min-width: 180px;
  margin-bottom: 20px;
}
/* For FAQ, Team, Blog posts, etc. */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.team-intros {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-intros > div {
  background: #fff;
  border-radius: 9px;
  box-shadow: var(--shadow-light);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 160px;
}
.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.post-list article {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 18px 16px;
  max-width: 340px;
  min-width: 210px;
  flex: 1 1 200px;
  transition: box-shadow 0.15s;
}
.post-list article:hover {
  box-shadow: 0 8px 26px -4px rgba(0,96,101,0.13);
}
.categories-overview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  padding: 12px 18px;
  margin-bottom: 18px;
}
.categories-overview ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-bottom: 0; padding-left: 0; }
.categories-overview li {
  background: var(--accent);
  color: var(--primary);
  border-radius: 3px;
  font-size: 15px;
  padding: 3px 7px;
  font-weight: 500;
}

/* Feature grid for Vorteile, Highlights, etc. */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 6px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 11px;
  box-shadow: var(--shadow-card);
  padding: 24px 16px 18px 16px;
  min-width: 200px;
  max-width: 310px;
  flex: 1 1 200px;
  text-align: left;
  transition: box-shadow 0.14s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid > div:hover {
  box-shadow: 0 10px 24px -2px rgba(38,50,56,0.12);
}
.feature-grid img {
  width: 46px; height: 46px;
  margin-bottom: 15px;
}

@media (max-width: 910px) {
  .feature-grid, .team-intros, .post-list {
    gap: 16px;
  }
  .feature-grid > div, .team-intros > div, .post-list article {
    min-width: 170px;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .feature-grid, .post-list, .team-intros {
    flex-direction: column;
    gap: 12px;
  }
}

/* Primary buttons also inside cards, and extra button styles */
.button {
  cursor: pointer;
  border-radius: 5px;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  transition: background 0.18s, color 0.16s, box-shadow 0.10s, transform 0.10s;
  background: var(--secondary);
  color: #fff;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button.primary:active { background: var(--secondary-dark); }
.button.secondary {
  background: var(--accent);
  color: var(--primary);
}
.button.secondary:hover {
  background: #ffe69d;
  color: var(--primary);
}
.button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Legal Pages formatting */
.text-section h2 {
  margin-top: 28px;
}
.text-section ul {
  margin-bottom: 16px;
}
.text-section ul li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* ====================================================================
   SPACING & TYPOGRAPHIC SCALE
   ==================================================================== */
.section:not(:last-child), .text-section:not(:last-child) {
  margin-bottom: 60px;
}
@media (max-width: 768px) {
  .section:not(:last-child), .text-section:not(:last-child) {
    margin-bottom: 36px;
  }
}
.card:not(:last-child),
.feature-item:not(:last-child),
.team-intros > div:not(:last-child),
.post-list article:not(:last-child),
.testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}

/* ====================================================================
   ANIMATIONS, MICRO-INTERACTIONS
   ==================================================================== */
.button, .card, .feature-item, .post-list article, .testimonial-card, .feature-grid > div {
  transition: box-shadow 0.18s, background 0.16s, color 0.16s, transform 0.16s;
}

/* ====================================================================
   COOKIE CONSENT BANNER
   ==================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -4px 28px -4px rgba(38,50,56,0.09);
  border-top: 2px solid var(--secondary);
  padding: 24px 10vw 24px 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  z-index: 199;
  font-size: 15px;
  color: var(--primary);
  opacity: 0;
  pointer-events: none;
  transform: translateY(32px);
  transition: opacity 0.26s, transform 0.26s;
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner .button {
  min-width: 120px;
  padding: 10px 18px;
  font-size: 15px;
  margin: 0 6px;
}
.cookie-banner .button.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .button.accept:hover {
  background: var(--secondary-dark);
  color: var(--accent);
}
.cookie-banner .button.reject {
  background: var(--gray-200);
  color: var(--primary);
}
.cookie-banner .button.reject:hover {
  background: #e3f9f7;
}
.cookie-banner .button.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .button.settings:hover {
  background: #ffe9a4;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 8px 22px 8px;
    gap: 15px;
    font-size: 14px;
  }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38,50,56, 0.80);
  opacity: 0; pointer-events: none;
  transition: opacity 0.20s;
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 95vw;
  padding: 36px 24px 28px 24px;
  box-shadow: 0 10px 38px -10px rgba(38,50,56,0.30);
  font-size: 1.0rem;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: cookie-modal-in 0.28s cubic-bezier(0.5,1.4,0.6,1);
  gap: 18px;
}
@keyframes cookie-modal-in {
  from { transform: scale(0.9) translateY(40px); opacity: .45; }
  to   { transform: scale(1) translateY(0);     opacity: 1;   }
}
.cookie-modal .close {
  position: absolute;
  top: 12px; right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--secondary);
  cursor: pointer;
}
.cookie-modal-content h3 {
  font-size: 1.3rem; margin-bottom: 12px;
  color: var(--primary);
}
.cookie-modal-content ul {
  margin-bottom: 14px;
}
.cookie-preference {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-preference input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 20px; height: 20px;
}
.cookie-preference label {
  font-size: 1rem; color: var(--primary);
}
.cookie-preference .always-on {
  color: var(--gray-700);
  font-size: 0.98em;
  margin-left: 6px;
}
.cookie-modal-content .button {
  margin-top: 18px;
}

/* ====================================================================
   RESPONSIVE TABLE OVERRIDE (for Preise)
   ==================================================================== */
@media (max-width: 700px) {
  table, thead, tbody, th, tr, td {
    display: block;
    width: 100%;
  }
  thead { display: none; }
  tr {
    margin-bottom: 14px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    background: #fff;
    border-bottom: none;
    padding: 12px 0;
  }
  td {
    padding: 10px 10px;
    border: none;
    position: relative;
    font-size: 16px;
    text-align: left;
  }
  tr:last-child td { border-bottom: none; }
}

/* ====================================================================
   FORM STYLES (for future extensibility)
   ==================================================================== */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 5px;
  outline: none;
  font-size: 1em;
  padding: 10px 13px;
  color: var(--primary);
  transition: border-color 0.17s, box-shadow 0.12s;
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 2px 9px -7px var(--secondary);
}
label { font-weight: 600; margin-bottom: 8px; color: var(--primary); }

/* ====================================================================
   UTILITIES (spacing helpers)
   ==================================================================== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 8px !important; }
.mt-4 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-4 { margin-bottom: 16px !important; }

/* ====================================================================
   GENERAL RESPONSIVE
   ==================================================================== */
@media (max-width: 1060px) {
  .container { max-width: 92vw; }
}
@media (max-width: 900px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.6rem; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }
  .card, .feature-grid > div, .testimonial-card { padding: 12px 7px; }
  .button, .button.primary { padding: 11px 10px; min-width: 70px; font-size: 15px; }
}



/* End of comprehensive, professional, mobile-first corporate CSS using only flexbox layout. */
