/* =============================================================
   ÖlVergleich24 – Elegant Classic Stylesheet (Flexbox only)
================================================================
*/
/* 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;
}
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; background-color: transparent; }
img { border-style: none; max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; outline: none; border: none; background: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* =============================================================
   FONT IMPORTS – Elegant Classic
   Display: 'Georgia', 'Oswald', serif fallback
   Body: 'Roboto', 'Times New Roman', serif fallback
============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-primary: #1B232A;
  --color-secondary: #376785;
  --color-accent: #F3F4F6;
  --color-bg: #fcfcfc;
  --color-bg-muted: #f3f4f6;
  --color-muted: #D3D6DA;
  --color-shadow: rgba(27,35,42,0.07);
  --color-white: #fff;
  --color-black: #121212;

  /* Elegant Classic Typography */
  --font-display: 'Oswald', Georgia, serif;
  --font-body: 'Roboto', Times New Roman, serif;

  /* Typography Sizes */
  --fs-xs: 14px;
  --fs-s: 16px;
  --fs-base: 18px;
  --fs-md: 24px;
  --fs-lg: 32px;
  --fs-xl: 48px;
  --fs-hero: 2.4rem;

  --radius-card: 14px;
  --radius-section: 20px;
  --shadow-card: 0 6px 24px var(--color-shadow);
  --shadow-soft: 0 2px 12px var(--color-shadow);
}

body {
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1.65;
  min-height: 100vh;
}

/* =============================================================
   LAYOUT CONTAINERS & SECTIONS
==============================================================*/
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-section);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* =============================================================
   HEADER + NAVIGATION
==============================================================*/
header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-muted);
  box-shadow: 0 2px 12px var(--color-shadow);
  position: relative;
  z-index: 29;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 0;
}
header a img {
  height: 40px;
  width: auto;
  margin-right: 32px;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}
nav.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-s);
  letter-spacing: 0.02em;
  padding: 5px 0;
  color: var(--color-primary);
  transition: color .19s;
  position: relative;
}
nav.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-secondary);
  border-radius: 2px;
  margin-top: 2px;
  transition: width .25s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  color: var(--color-secondary);
}
nav.main-nav a:hover:after, nav.main-nav a:focus:after {
  width: 100%;
}

.btn-primary {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--fs-s);
  font-weight: 700;
  border-radius: 22px;
  padding: 10px 28px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background .18s, box-shadow .22s, color .16s;
  margin-left: 26px;
  margin-right: 0;
  cursor: pointer;
  border: none;
  outline: none;
  text-align: center;
  letter-spacing: 0.01em;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 5px 22px var(--color-shadow);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  border-radius: 6px;
  font-size: 2rem;
  color: var(--color-secondary);
  border: none;
  margin-left: 18px;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background .18s, color .18s;
  z-index: 103;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-bg-muted);
  z-index: 101;
  padding: 0 0 0 0;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.77,.18,.34,1.09);
  box-shadow: -8px 0 32px var(--color-shadow);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 20px 0 0;
  font-size: 1.7rem;
  color: var(--color-secondary);
  background: var(--color-accent);
  border: none;
  border-radius: 6px;
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.mobile-menu-close:active,
.mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  margin: 52px 0 0 0;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  padding: 8px 0;
  font-size: 1.17rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: 3px;
  transition: color .19s, background .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
  padding-left: 8px;
}

/* Hide desktop nav/menu on small screens, show burger */
@media (max-width: 992px) {
  nav.main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

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

/* =============================================================
   TYPOGRAPHY – ELEGANT CLASSIC STYLE
==============================================================*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5em;
  line-height: 1.15;
}
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); font-weight: 600; }
h4 { font-size: 20px; font-weight: 500; }
p, li, ul, ol, article, .text-section {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
}
a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color .16s;
}
a:hover { color: var(--color-primary); }
strong, b { font-weight: bold; }
.italic, em, i { font-style: italic; }

/* =============================================================
   HERO + CTA BLOCKS
==============================================================*/
.hero {
  background: var(--color-accent);
  padding: 48px 0 32px 0;
  border-radius: 0 0 var(--radius-section) var(--radius-section);
  box-shadow: 0 12px 32px var(--color-shadow);
  margin-bottom: 60px;
}
.hero .container {
  align-items: flex-start;
}
.hero h1 {
  font-size: var(--fs-xl);
  margin-bottom: 0.45em;
  color: var(--color-primary);
}
.hero p {
  font-size: var(--fs-base);
  color: var(--color-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.cta {
  background: var(--color-bg-muted);
  border-radius: var(--radius-section);
  box-shadow: 0 4px 18px var(--color-shadow);
  padding: 40px 0;
  margin-bottom: 60px;
}
.cta h2 {
  color: var(--color-secondary);
  margin-bottom: 12px;
}

/* =============================================================
   FLEXBOX LAYOUT CONTAINERS (MANDATORY)
==============================================================*/
/* Flex spacing patterns dictated by brief */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius-card);
  background: var(--color-accent);
  padding: 26px 22px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: box-shadow .18s, transform .18s;
  margin-right: 12px;
  min-width: 220px;
  max-width: 380px;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 4px 22px var(--color-shadow);
  transform: translateY(-3px) scale(1.012);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Other relevant flex containers */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 10px;
  width: 100%;
  justify-content: flex-start;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
  flex-direction: column;
}
.company-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 12px;
  background: var(--color-accent);
  border-radius: 10px;
  box-shadow: 0 1px 4px var(--color-shadow);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  margin-bottom: 28px;
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 23px 0 32px 0;
  align-items: center;
}
.charts, .trend-charts, .infographic {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0 0 0;
}
.article-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.key-figures ul, .factor-list ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.year-select button {
  margin-left: 6px;
  margin-right: 6px;
  padding: 4px 16px;
  border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-muted);
  font-size: var(--fs-xs);
  transition: background .15s, border .15s;
  cursor: pointer;
}
.year-select button:focus,
.year-select button:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-color: var(--color-secondary);
}

/* =============================================================
   TESTIMONIALS SLIDER + STARS
==============================================================*/
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 20px;
}
.star-rating {
  color: #E2B007;
  font-size: 1.45em;
  letter-spacing: 2px;
  font-family: var(--font-display);
  margin-bottom: 0.7em;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: var(--fs-base);
  font-style: italic;
  margin-bottom: 0.9em;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-weight: 600;
}

/* =============================================================
   FOOTER
==============================================================*/
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding-top: 34px;
  padding-bottom: 10px;
  border-top: 3px solid var(--color-secondary);
  margin-top: 60px;
  font-size: 15px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  min-width: 220px;
  max-width: 320px;
}
.footer-brand img {
  height: 42px;
  margin-bottom: 6px;
}
.footer-brand p {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--fs-s);
  margin: 0;
  font-weight: 500;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 230px;
  max-width: 320px;
  font-size: var(--fs-xs);
}
.footer-contact img {
  height: 17px;
  width: auto;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-contact h3 {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 16px;
  margin-bottom: 9px;
  letter-spacing: .02em;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 170px;
}
.footer-nav a {
  color: var(--color-accent);
  font-size: var(--fs-xs);
  line-height: 1.6;
  transition: color .14s;
  letter-spacing: 0.01em;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
footer p {
  color: var(--color-accent);
  margin-top: 0.3em;
  font-size: var(--fs-xs);
}

/* =============================================================
   COOKIE CONSENT BANNER + MODAL
==============================================================*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--color-white);
  border-top: 1px solid var(--color-muted);
  box-shadow: 0 -4px 28px var(--color-shadow);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: center;
  font-size: var(--fs-s);
  font-family: var(--font-body);
}
.cookie-banner p {
  flex-grow: 2;
  color: var(--color-primary);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 17px;
}
.cookie-banner button {
  border-radius: 20px;
  padding: 7px 22px;
  font-size: var(--fs-xs);
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  transition: background .18s, color .17s, box-shadow .14s;
  cursor: pointer;
  outline: none;
}
.cookie-banner .accept {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-banner .reject {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-banner .settings {
  background: var(--color-white);
  color: var(--color-secondary);
  border: 1px solid var(--color-muted);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 10001;
  inset: 0;
  background: rgba(27,35,42,0.3);
  pointer-events: all;
  animation: fadein .22s;
}
@keyframes fadein { from {opacity:0} to {opacity:1} }
.cookie-modal {
  position: fixed;
  left: 0; right: 0;
  bottom: 0; top: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.cookie-modal .cookie-modal-content {
  background: var(--color-white);
  border-radius: var(--radius-section);
  box-shadow: 0 4px 22px var(--color-shadow);
  padding: 38px 32px 28px 32px;
  min-width: 320px;
  max-width: 96vw;
  pointer-events: all;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideUp .32s cubic-bezier(.38,1.01,.45,1.07);
}
@keyframes slideUp { from { transform:translateY(50px); opacity:0.2} to {transform:translateY(0);opacity:1;}}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--color-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.9em;
}
.cookie-modal label {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-primary);
}
.cookie-modal .cookie-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-secondary);
}
.cookie-modal-actions {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  border-radius: 18px;
  padding: 7px 20px;
  border: none;
  font-family: var(--font-display);
  font-size: var(--fs-s);
  font-weight: 600;
  cursor: pointer;
  transition: background .13s, color .12s;
}
.cookie-modal-actions .accept {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.cookie-modal-actions .reject {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.cookie-modal-actions .close {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-muted);
}
.cookie-modal-actions .accept:hover, .cookie-modal-actions .accept:focus {
  background: var(--color-primary);
}
.cookie-modal-actions .reject:hover, .cookie-modal-actions .reject:focus,
.cookie-modal-actions .close:hover, .cookie-modal-actions .close:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* Hide modal by default */
.cookie-modal, .cookie-modal-backdrop { display: none; }
.cookie-modal.open, .cookie-modal-backdrop.open { display: block; }

/* =============================================================
   COMMON ELEMENTS, TABLES, ARTIFACTS
==============================================================*/
table, .company-table, .trend-charts, .charts, .infographic {
  margin-bottom: 18px;
}
.company-table > div {
  padding: 9px 0;
  border-bottom: 1px solid var(--color-muted);
}
.company-table > div:last-child {
  border-bottom: none;
}
.filter-options button {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 8px;
  padding: 7px 20px;
  border: 1px solid var(--color-muted);
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 500;
  transition: background .16s, color .14s, border .14s;
  cursor: pointer;
}
.filter-options button:hover, .filter-options button:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-color: var(--color-secondary);
}

.equipment-icons {
  display: flex; gap: 18px; margin-top: 28px; align-items: center;
}
.equipment-icons img {
  filter: grayscale(0.18) contrast(0.8) brightness(0.95);
  height: 40px;
  width: auto;
  opacity: 0.94;
}

/* Confirmation Message */
.confirmation-message {
  background: var(--color-bg-muted);
  border-radius: 11px;
  padding: 18px 20px;
  font-family: var(--font-body);
  box-shadow: 0 0.5px 9px var(--color-shadow);
  margin: 16px 0;
}

.about-block, .text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* =============================================================
   RESPONSIVE / MOBILE-FIRST ADAPTATIONS
==============================================================*/
@media (max-width: 992px) {
  .container,
  .footer-contact, .footer-brand, .footer-nav {
    max-width: 100%;
    flex: 1 1 100%;
  }
  header .container,
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  footer {
    padding-top: 28px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .hero {
    padding: 40px 0 18px 0;
    margin-bottom: 35px;
  }
  .section, .cta {
    padding: 28px 8px;
    margin-bottom: 34px;
    border-radius: 12px;
  }
  .feature-grid, .service-list, .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .footer-brand img {
    height: 36px;
  }
}
@media (max-width: 540px) {
  html { font-size: 16px; }
  .container { padding: 0 6px; }
  .company-table,
  .charts, .trend-charts, .infographic { padding: 8px 0; }
  .section, .cta { padding: 14px 4px; }
}

/* =============================================================
   MICRO-INTERACTIONS / ANIMATIONS
==============================================================*/
.btn-primary, .feature-grid div, .card, .testimonial-card, button, a {
  transition: box-shadow .19s, background .23s, color .15s, transform .19s;
}
.feature-grid div:hover, .card:hover {
  box-shadow: 0 6px 28px var(--color-shadow);
  transform: translateY(-2px) scale(1.01);
}
a:active, .btn-primary:active, button:active {
  transform: scale(0.98);
}

/* =============================================================
   MISC/HIDDEN: Accessibility, print
==============================================================*/
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, .cookie-modal {
    display: none !important;
  }
  .container, .section, .cta, .card, .content-wrapper, .feature-grid, .testimonial-card {
    box-shadow: none !important;
    background: #fff !important;
  }
}
/* =============================================================
   END OF ELEGANT CLASSIC FLEXBOX CSS
==============================================================*/
