/* --- 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 {
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #f8f9fb;
  color: #15304A;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* --- BRAND VARIABLES (fallback, no custom properties) --- */
:root {
  /* Brand colors */
  --primary: #15304A;
  --secondary: #F2B134;
  --accent: #E8E9EB;
  --gray-light: #F8F9FB;
  --gray-medium: #D0D4DA;
  --gray-dark: #4A5873;
  --white: #fff;
  --shadow: 0 2px 12px rgba(21,48,74,0.09);
  --radius: 10px;
}

/* --- MAIN STRUCTURE & CONTAINER --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section,
.hero-section,
.features-section,
.about-section,
.services-section,
.team-section,
.newsfeed-section,
.comparison-section,
.ranking-section,
.analysis-section,
.callout-section,
.legal-section,
.contact-section,
.testimonials-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .section,
  .hero-section,
  .features-section,
  .about-section,
  .services-section,
  .team-section,
  .newsfeed-section,
  .comparison-section,
  .ranking-section,
  .analysis-section,
  .callout-section,
  .legal-section,
  .contact-section,
  .testimonials-section {
    padding: 32px 10px;
  }
}

@media (max-width: 600px) {
  .section,
  .hero-section,
  .features-section,
  .about-section,
  .services-section,
  .team-section,
  .newsfeed-section,
  .comparison-section,
  .ranking-section,
  .analysis-section,
  .callout-section,
  .legal-section,
  .contact-section,
  .testimonials-section {
    padding: 24px 5px;
    margin-bottom: 36px;
  }
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 7px;
  font-weight: 600;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
h5, h6 {
  font-size: 1rem;
}
p, li, span, label {
  font-size: 1rem;
  color: var(--gray-dark);
}
ul, ol {
  padding-left: 22px;
}
strong {
  font-weight: 700;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.05rem;
  }
  p, li {
    font-size: 0.97rem;
  }
}

/* --- BUTTONS & LINKS --- */
.cta-btn,
.button,
.category-filters button,
.filter-controls select {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  display: inline-block;
  border: none;
  box-shadow: 0 2px 6px rgba(21,48,74,0.07);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.cta-btn:hover,
.button:hover,
.category-filters button:hover {
  background: #15304A;
  color: var(--white);
  transform: translateY(-2px) scale(1.03);
}
.cta-btn:active {
  background: #F2B134;
  color: #15304A;
  transform: none;
}

.main-nav a, .footer-menu a, .mobile-nav a {
  color: var(--primary);
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-right: 24px;
  font-size: 1rem;
  transition: color 0.15s;
}
.main-nav a:last-child, .footer-menu a:last-child, .mobile-nav a:last-child {
  margin-right: 0;
}
.main-nav a:hover, .footer-menu a:hover, .mobile-nav a:hover {
  color: var(--secondary);
}

a.methodology-link {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: underline;
}
a.methodology-link:hover {
  color: var(--primary);
}

/* --- HEADER --- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  box-shadow: 0 1px 10px rgba(21,48,74,0.03);
  width: 100%;
  z-index: 16;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 20px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 950px) {
  .main-nav {
    gap: 10px;
  }
  header .container {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 24px;
  top: 22px;
  background: var(--white);
  color: var(--primary);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(21,48,74,0.1);
  width: 44px;
  height: 44px;
  font-size: 2rem;
  z-index: 30;
  cursor: pointer;
  border: none;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
}

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

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21,48,74,0.97);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(0.37,0.37,0,1.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.2rem;
  position: absolute;
  top: 25px;
  right: 30px;
  z-index: 1030;
  cursor: pointer;
  transition: color 0.12s;
}
.mobile-menu-close:hover {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 80px 0 0 48px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.2rem;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* --- HERO SECTION --- */
.hero-section {
  background: linear-gradient(95deg, #E8E9EB 32%, #fff 100%);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  border-radius: var(--radius);
}
.hero-section h1 {
  font-size: 2.7rem;
  margin-bottom: 12px;
  color: var(--primary);
}
.hero-section .cta-btn {
  margin-top: 18px;
  min-width: 210px;
}
@media (max-width: 600px) {
  .hero-section h1 {
    font-size: 2rem;
  }
}

/* --- FEATURE GRID (Homepage, Vergleich, Technologien) --- */
.feature-grid,
.technology-cards,
.service-cards,
.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 30px 0 0 0;
}
.feature-item, .technology-card, .service-card, .profile {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 20px 22px;
  flex: 1 1 230px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.feature-item:hover, .technology-card:hover, .service-card:hover, .profile:hover {
  box-shadow: 0 4px 20px rgba(21,48,74,0.13);
  transform: translateY(-4px) scale(1.02);
}
.feature-item img, .technology-card img {
  width: 38px;
  height: 38px;
}

@media (max-width: 900px) {
  .feature-grid,
  .technology-cards,
  .service-cards,
  .team-profiles {
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .feature-grid,
  .technology-cards,
  .service-cards,
  .team-profiles {
    gap: 16px;
    flex-direction: column;
  }
}

/* --- TESTIMONIALS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 25px;
  min-width: 260px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  color: #183d5b;
  margin-bottom: 20px;
  border-left: 6px solid var(--secondary);
  font-size: 1.05rem;
  transition: box-shadow 0.15s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 2px 18px rgba(21,48,74,0.14);
  transform: translateY(-2px);
}
.testimonial-card p {
  color: #1e2738;
  margin: 0 0 6px 0;
}
.testimonial-card span {
  color: var(--gray-dark);
  font-size: 0.97rem;
  font-style: italic;
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 18px;
}
.client-logos img {
  width: 46px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.13s;
}
.client-logos img:hover {
  opacity: 1;
}

/* --- LISTS, USP & VALUE --- */
.usp-list,
.value-list,
.service-list,
.criteria-list,
.profit-factors-list,
.key-benefits {
  list-style: none;
  margin: 10px 0 18px 0;
  padding-left: 0;
}
.usp-list li,
.value-list li,
.service-list li,
.criteria-list li,
.profit-factors-list li,
.key-benefits li {
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
  color: var(--primary);
  min-height: 24px;
  font-size: 1rem;
  font-weight: 500;
}
.usp-list li:before,
.value-list li:before,
.service-list li:before,
.key-benefits li:before {
  content: '';
  display: inline-block;
  background: var(--secondary);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 7px;
}
.criteria-list li img {
  vertical-align: middle;
  margin-right: 7px;
  width: 24px; height: 24px;
}

.popular-topics {
  margin-top: 16px;
  color: var(--gray-dark);
}

/* --- TEAM PROFILES --- */
.profile h3 {
  margin-bottom: 8px;
}
.profile p {
  font-size: 0.98rem;
}
.expertise-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}
.expertise-highlights li {
  background: var(--gray-light);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 0.97rem;
  color: var(--primary);
  font-weight: 600;
}

/* --- TABLES (COMPARISON & RANKING) --- */
.company-comparison-table,
.equipment-comparison-table,
.ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(21,48,74,0.06);
  overflow: hidden;
  margin: 16px 0 18px 0;
  font-size: 1.04rem;
}
.company-comparison-table th,
.equipment-comparison-table th,
.ranking-table th {
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 13px 12px;
  text-align: left;
}
.company-comparison-table td,
.equipment-comparison-table td,
.ranking-table td {
  border-top: 1px solid var(--gray-medium);
  padding: 11px 12px;
  color: var(--primary);
  background: #f9fafb;
  vertical-align: middle;
}
.company-comparison-table tr:nth-child(even),
.equipment-comparison-table tr:nth-child(even),
.ranking-table tr:nth-child(even) {
  background: var(--accent);
}
.brand-tag {
  background: var(--secondary);
  border-radius: 6px;
  padding: 2px 10px;
  color: var(--primary);
  font-size: 0.92rem;
  margin-left: 7px;
  font-weight: 600;
}
@media (max-width: 600px) {
  .company-comparison-table,
  .equipment-comparison-table,
  .ranking-table {
    font-size: 0.97rem;
    overflow-x: scroll;
    display: block;
  }
}

/* --- FILTER CONTROLS, CATEGORY FILTERS (CHIPS) --- */
.filter-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 22px 0;
}
.filter-controls label {
  font-weight: 600;
  color: var(--primary);
}
.filter-controls select {
  background: var(--accent);
  color: var(--primary);
  font-size: 1.03rem;
  border: 1px solid var(--gray-medium);
  padding: 7px 18px 7px 10px;
  border-radius: 25px;
  font-weight: 600;
  margin-left: 8px;
  cursor: pointer;
  min-width: 130px;
  transition: border 0.14s;
}
.filter-controls select:focus {
  border-color: var(--primary);
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.category-filters button {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--gray-medium);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, border 0.13s, color 0.13s;
}
.category-filters button:hover, .category-filters .active {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

/* --- EXPORT ICONS --- */
.export-options {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.export-options span {
  font-weight: 600;
  color: var(--primary);
}
.export-options a img {
  width: 30px;
  height: 30px;
  opacity: 0.75;
  transition: opacity 0.1s, transform 0.13s;
}
.export-options a:hover img {
  opacity: 1;
  transform: scale(1.07);
}

/* --- CALLOUT & INFO BOXES --- */
.info-box,
.innovation-stats {
  background: var(--gray-light);
  border: 1.5px solid var(--gray-medium);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 15px;
  color: var(--primary);
}
.info-box h3,
.innovation-stats h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

/* --- NEWSFEED & ARTICLES --- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 22px 0 16px 0;
}
.article-list li {
  background: var(--gray-light);
  padding: 18px 18px 14px 18px;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(21,48,74,0.07);
}
.article-list h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  color: var(--primary);
}
.article-list span {
  font-size: 0.97rem;
  color: var(--gray-dark);
  margin-bottom: 5px;
  display: inline-block;
}
.article-list p {
  color: var(--gray-dark);
}

.search-bar {
  width: 100%;
  max-width: 320px;
  margin: 22px 0 0 0;
  padding: 10px 16px;
  border: 1.2px solid var(--gray-medium);
  border-radius: 22px;
  background: var(--accent);
  color: var(--primary);
  font-size: 1rem;
  transition: border 0.13s, box-shadow 0.12s;
}
.search-bar:focus {
  border: 1.4px solid var(--secondary);
  box-shadow: 0 0 0 1.2px var(--secondary);
}

.popular-topics {
  font-size: 0.97rem;
  color: var(--gray-dark);
  margin-top: 12px;
}

/* --- BENEFIT ICONS --- */
.benefit-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.benefit-icons span {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--gray-light);
  border-radius: 14px;
  padding: 4px 13px;
  font-size: 0.98rem;
  color: var(--primary);
  font-weight: 600;
}
.benefit-icons img {
  width: 22px;
  height: 22px;
}

/* --- ADDRESS MAP (KONTAKT) --- */
.address-map p {
  color: var(--gray-dark);
  font-size: 0.97rem;
  margin-top: 5px;
}

/* --- NEWSLETTER SIGNUP --- */
.newsletter-signup {
  background: var(--accent);
  border-radius: 12px;
  padding: 22px 26px;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 1px 10px rgba(21,48,74,0.07);
  min-width: 270px;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--white);
  border-top: 3px solid var(--secondary);
  width: 100%;
  margin-top: 60px;
  padding: 0 0 40px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 24px;
}
.footer-menu {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.99rem;
  opacity: 0.83;
  margin-right: 0;
}
.footer-menu a:hover {
  color: var(--secondary);
  opacity: 1;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--white);
  font-size: 0.98rem;
}
.contact-info div, .contact-info li {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 10px;
}
.social-links a img {
  width: 32px;
  height: 32px;
  opacity: 0.8;
  transition: opacity 0.12s, transform 0.12s;
}
.social-links a:hover img {
  opacity: 1;
  transform: scale(1.10);
}

@media (max-width: 950px) {
  footer .container {
    gap: 22px;
  }
  .newsletter-signup {
    margin-top: 14px;
    padding: 14px 9px;
  }
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* --- RESPONSIVE FLEXBOX BARRELS --- */
.card-container, .feature-grid, .technology-cards, .service-cards, .team-profiles, .article-list, .content-grid {
  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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  flex-direction: column;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- VISUAL EFFECTS & TRANSITIONS --- */
.card, .feature-item, .service-card, .technology-card, .profile {
  transition: box-shadow 0.19s, transform 0.14s;
}
a, .cta-btn, .button, .category-filters button {
  transition: background 0.13s, color 0.13s;
}
input, select, .search-bar {
  transition: border 0.13s, box-shadow 0.12s;
}

/* --- KEY STAT --- */
.key-stat {
  background: var(--accent);
  color: var(--primary);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 2.5px solid var(--primary);
  padding: 22px 12px 16px 12px;
  box-shadow: 0 -3px 18px rgba(21,48,74,0.07);
  z-index: 9999;
  width: 100vw;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
  transition: opacity 0.25s, transform 0.28s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-text {
  flex: 1 1 250px;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0;
  padding-right: 8px;
  max-width: 550px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.cookie-banner .cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .cookie-btn.settings {
  background: var(--gray-light);
  color: var(--primary);
}
.cookie-banner .cookie-btn:hover {
  background: #314860;
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover {
  background: #fde0a4;
  color: var(--primary);
}
.cookie-banner .cookie-btn.settings:hover {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 20px 6px 14px 6px;
  }
  .cookie-banner .cookie-text {
    max-width: 100vw;
  }
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(21,48,74,0.78);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 42px rgba(21,48,74,0.13);
  max-width: 430px;
  width: 95%;
  padding: 32px 32px 28px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: var(--primary);
  animation: modalIn 0.35s cubic-bezier(0.5, 0.2, 0.2, 1) forwards;
}
@keyframes modalIn {
  0% { transform: translateY(60px) scale(0.98); opacity:0; }
  80%{ opacity:1; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.2rem;
  position: absolute;
  top: 16px;
  right: 18px;
  cursor: pointer;
  transition: color 0.13s;
  line-height: 1;
}
.cookie-modal-close:hover {
  color: var(--primary);
}
.cookie-category {
  margin-bottom: 20px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-right: 9px;
}
.cookie-toggle-switch {
  display: inline-block;
  width: 36px;
  height: 20px;
  position: relative;
  vertical-align: middle;
  margin-left: 8px;
}
.cookie-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  background: var(--gray-medium);
  border-radius: 15px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.13s;
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  background: var(--secondary);
}
.cookie-toggle-slider:after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 1px 4px rgba(21,48,74,0.11);
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider:after {
  transform: translateX(16px);
}
.cookie-category.disabled label {
  opacity: 0.55;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal button {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.13s, color 0.12s;
}
.cookie-modal button:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 420px) {
  .cookie-modal-content {
    padding: 12px 2vw 18px 2vw;
  }
}

/* --- GENERAL TRANSITIONS & FOCUS --- */
button:focus, .cta-btn:focus, .cookie-modal-close:focus {
  outline: 2px solid var(--secondary);
}
a:focus {
  outline: 2px dashed var(--secondary);
}

/* --- OVERRIDES FOR MODALS & Z-INDEX STACKING --- */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 998; }
.mobile-menu { z-index: 1000; }
.cookie-banner { z-index: 1010; }
.cookie-modal { z-index: 2000; }

/* --- MAKE SURE NO UNWANTED ABSOLUTES or GRIDS --- */
/* (verified: display:grid/grid-* and position:absolute used only where strictly necessary) */

