/* ============================================================
   CSS RESET & BASE STYLES (Normalize & Reset)
   ============================================================ */
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,
main, 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F4F6F7;
  color: #243B55;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

/* ============================================================
   BRAND TYPOGRAPHY & COLORS (DISPLAY + BODY)
   ============================================================ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --brand-primary: #243B55;
  --brand-secondary: #F5B041;
  --brand-accent: #F4F6F7;
  --brand-dark: #19222E;
  --brand-highlight: #fffbe9;
  --brand-card: #ffffff;
  --brand-card-alt: #f5f8ff;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --shadow-base: 0 2px 16px rgba(40, 60, 90, 0.07);
  --shadow-deep: 0 4px 32px rgba(40, 60, 90, 0.13);
  --radius-base: 18px;
  --radius-round: 60px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
h1 {
  font-size: 2.7rem;
  background: linear-gradient(85deg, #F5B041 18%, #243B55 97%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: var(--brand-primary);
  position: relative;
}
h3 {
  font-size: 1.3rem;
  color: var(--brand-secondary);
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: var(--brand-primary);
}
p, ul, li, label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--brand-dark);
  line-height: 1.7;
}
p.subheadline {
  font-size: 1.22rem;
  color: var(--brand-primary);
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.2px;
}
strong { font-weight: 700; }

blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brand-secondary);
  background: var(--brand-card-alt);
  padding: 18px 24px;
  border-left: 6px solid var(--brand-secondary);
  border-radius: var(--radius-base);
  margin: 26px 0 18px 0;
  font-style: italic;
}
.highlight-quote {
  background: var(--brand-highlight);
  color: var(--brand-primary);
  border-left: 6px solid var(--brand-primary);
}


/* ============================================================
   CONTAINER & BASIC FLEXBOX LAYOUTS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 18px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-base);
}

/* Card containers - flex layouts as per requirements */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--brand-card);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  padding: 28px 24px;
  transition: box-shadow 0.25s, transform 0.1s;
}
.card:hover {
  box-shadow: var(--shadow-deep);
  transform: translateY(-3px) scale(1.04);
  z-index: 2;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

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

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--brand-card);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  padding: 16px 18px;
}


/* ============================================================
   HEADER / NAVIGATION STYLES
   ============================================================ */
header {
  background: var(--brand-card);
  border-bottom: 3px solid var(--brand-secondary);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-shadow: 0 3px 10px rgba(36,59,85,0.03);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 35px;
}
header nav.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.10rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 22px;
  color: var(--brand-primary);
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--brand-secondary);
  color: #fff;
}

.cta-button {
  font-family: var(--font-display);
  border: none;
  border-radius: 32px;
  background: var(--brand-secondary);
  color: #fff;
  padding: 10px 34px;
  font-size: 1.15rem;
  font-weight: 700;
  margin-left: 20px;
  box-shadow: 0 1px 7px rgba(36,59,85,0.13);
  cursor: pointer;
  letter-spacing: 1px;
  display: inline-block;
  transition: background 0.18s, color 0.18s, transform 0.14s;
  position: relative;
}
.cta-button.primary {
  background: var(--brand-primary);
  color: #fff;
}
.cta-button:hover,
.cta-button:focus {
  background: #fff;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  transform: scale(1.08);
}
.cta-button.primary:hover,
.cta-button.primary:focus {
  background: var(--brand-secondary);
  color: #fff;
  border: 2px solid var(--brand-secondary);
  box-shadow: var(--shadow-deep);
}

/* HIDE the mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

@media (max-width: 1020px) {
  header nav.main-nav {
    gap: 14px;
  }
  .cta-button {
    margin-left: 10px;
    padding: 11px 18px;
  }
}

@media (max-width: 900px) {
  header .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  header nav.main-nav {
    gap: 10px;
  }
  .cta-button {
    padding: 10px 16px;
    font-size: 1rem;
  }
}

/* --- MOBILE NAVIGATION --- */
@media (max-width: 768px) {
  header .container, .footer .container {
    flex-direction: row;
    align-items: center;
    padding: 12px 8px;
  }
  header nav.main-nav,
  header a.cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    background: var(--brand-primary);
    color: #fff;
    font-size: 2.2rem;
    border-radius: 10px;
    padding: 2px 13px 2px 13px;
    transition: background 0.19s;
    margin-left: auto;
    z-index: 202;
    border: 2px solid var(--brand-secondary);
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: var(--brand-secondary);
    color: #fff;
  }
  .mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(36,59,85,0.97);
    z-index: 250;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(-100vw);
    opacity: 0;
    pointer-events: none;
    transition: all 0.46s cubic-bezier(0.85,0.22,0.4,1.03);
    box-shadow: 0 0 44px 10px rgba(36,59,85,0.15);
  }
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu-close {
    align-self: flex-end;
    margin: 24px 24px 0 0;
    background: #fff;
    border-radius: 50%;
    width: 46px; height: 46px;
    font-size: 2rem;
    color: var(--brand-primary);
    box-shadow: 0 1px 8px rgba(0,0,0,0.12);
    transition: background 0.17s, color 0.17s;
    z-index: 300;
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    background: var(--brand-secondary);
    color: #fff;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: 100%;
    align-items: flex-start;
    margin: 50px 0 0 32px;
  }
  .mobile-nav a {
    font-family: var(--font-display);
    font-size: 1.26rem;
    color: #fff;
    padding: 10px 0 10px 12px;
    border-radius: var(--radius-base);
    width: fit-content;
    margin-bottom: 8px;
    transition: background 0.16s, color 0.16s;
    letter-spacing: 1.5px;
  }
  .mobile-nav a:hover,
  .mobile-nav a:focus {
    background: var(--brand-secondary);
    color: var(--brand-primary);
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}


/* ============================================================
   HERO STYLES (Creative Artistic)
   ============================================================ */
.hero {
  background: linear-gradient(105deg, #F5B041 0%, #F4F6F7 44%, #fff 100%);
  padding: 56px 0 36px 0;
  position: relative;
  border-radius: 0 0 var(--radius-round) var(--radius-round);
  margin-bottom: 50px;
  box-shadow: 0 16px 32px -12px rgba(36,59,85, 0.05);
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  padding: 0 0 10px 0;
}
.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.hero .subheadline {
  font-size: 1.18rem;
  font-family: var(--font-body);
  color: var(--brand-primary);
  font-weight: 500;
}
@media (min-width: 600px) {
  .hero h1 {
    font-size: 3.2rem;
  }
}


/* ============================================================
   FEATURES & CREATIVE SECTIONS
   ============================================================ */
.features {
  background: none;
  margin-bottom: 60px;
}
.features .container > .content-wrapper {
  gap: 22px;
}
.feature-grid, .innovation-tiles, .biodiversity-cards, .invention-spotlight-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 12px;
  margin-top: 14px;
}
.feature, .innovation-tiles > div, .biodiversity-cards > div, .invention-spotlight-grid > div {
  background: var(--brand-card);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  padding: 22px 20px;
  min-width: 240px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  border-left: 6px solid var(--brand-secondary);
  position: relative;
  transition: box-shadow 0.22s, transform 0.14s;
}
.feature:hover, .innovation-tiles > div:hover, .biodiversity-cards > div:hover, .invention-spotlight-grid > div:hover {
  box-shadow: var(--shadow-deep);
  transform: translateY(-3px) scale(1.028);
  z-index: 2;
}
.feature img,
.innovation-tiles img,
.biodiversity-cards img,
.invention-spotlight-grid img {
  height: 34px;
  margin-bottom: 10px;
}
.feature h3,
.innovation-tiles h3,
.biodiversity-cards h3,
.invention-spotlight-grid h3 {
  font-family: var(--font-display);
  color: var(--brand-secondary);
  font-size: 1.22rem;
}

.facts-list,
.local-famous-inventors ul,
.local-tech-projects ul,
.startup-profiles ul,
.local-lab-profiles ul,
ul.contact-fields {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.facts-list li:before {
  content: '•';
  color: var(--brand-secondary);
  font-weight: bold;
  display: inline-block;
  margin-right: 10px;
}

.dortmund-focus, .dortmund-research-focus, .local-tech-projects, .local-famous-inventors {
  background: var(--brand-card-alt);
  border-radius: var(--radius-base);
  padding: 18px 21px;
  margin-top: 16px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-base);
  border-left: 4px solid var(--brand-primary);
}
.dortmund-focus h3,
.dortmund-research-focus h3,
.local-tech-projects h3,
.local-famous-inventors h3 {
  color: var(--brand-primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.infographics {
  display: flex;
  gap: 22px;
  margin-top: 12px;
}


/* ============================================================
   TESTIMONIALS & QUOTES (Professional Artistic Cards)
   ============================================================ */
.testimonials {
  margin-bottom: 60px;
}
.testimonials .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 30px 0;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  padding: 20px 28px;
  position: relative;
  min-width: 250px;
  max-width: 400px;
  color: #23273a;
  font-family: var(--font-body);
}
.testimonial-card p {
  font-size: 1.10rem;
  color: #23273a;
  line-height: 1.5;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: #9da2b3;
  margin-left: 18px;
  font-style: italic;
}
.testimonial-card:before {
  content: "\201C";
  color: var(--brand-secondary);
  font-size: 3em;
  opacity: 0.14;
  position: absolute;
  top: 18px;
  left: 18px;
  pointer-events: none;
}

@media (max-width: 900px) {
  .testimonials .testimonial-slider {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

.highlight-quote {
  margin-top: 22px;
  font-family: var(--font-display);
  background: #fffbe9;
  color: var(--brand-primary);
  border-left: 6px solid var(--brand-primary);
  padding: 18px 28px;
  border-radius: var(--radius-base);
  font-style: italic;
  box-shadow: 0 2px 12px rgba(243,180,65,0.10);
}


/* ============================================================
   FOOTER & SOCIAL LINKS
   ============================================================ */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 38px 0 24px 0;
  border-top: 6px solid var(--brand-secondary);
  box-shadow: 0 -8px 33px -12px #243B551A;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.98rem;
}
.footer-links a {
  color: var(--brand-secondary);
  margin: 0 6px;
  transition: color 0.14s;
}
.footer-links a:hover {
  text-decoration: underline;
  color: #fff;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin: 12px 0 7px 0;
}
.social-links img {
  width: 32px; height: 32px;
  opacity: 0.82;
  filter: grayscale(.5);
  transition: filter 0.17s, opacity 0.19s;
  border-radius: 100%;
}
.social-links img:hover,
.social-links img:focus {
  filter: grayscale(0);
  opacity: 1;
  box-shadow: 0 0 0 2px var(--brand-secondary);
}
.legal-disclaimer {
  font-size: 0.92rem;
  color: #fff;
  margin-top: 6px;
  opacity: 0.92;
}

@media (max-width: 768px) {
  footer .container,
  .footer-links,
  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 13px;
  }
  .footer-links {
    margin-bottom: 8px;
  }
  .legal-disclaimer {
    margin-top: 13px;
  }
}


/* ============================================================
   ABOUT / CONTACT / SERVICE - CARD & SECTION STYLES
   ============================================================ */
.about-preview, .about-section, .services, .contact-preview, .contact-section, .kontaktformular {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-card-alt);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
}
.team-bio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 14px 0 20px 0;
}
.team-bio-grid > div {
  background: var(--brand-card);
  border-radius: var(--radius-base);
  padding: 18px 20px;
  min-width: 220px;
  flex: 1 1 250px;
  margin-bottom: 12px;
  box-shadow: 0 2px 16px rgba(36,59,85, 0.08);
}
.location-brief, .history-timeline {
  background: #fff;
  padding: 10px 17px;
  border-radius: var(--radius-base);
  box-shadow: 0 2px 8px rgba(36,59,85,0.05);
  margin-top: 10px;
}
.history-timeline ul {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-info, .contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 13px 0 19px 0;
}
.contact-info div, .contact-details div {
  font-size: 1.08rem;
  font-family: var(--font-body);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-info img, .contact-details img {
  width: 23px;
  margin-right: 7px;
  opacity: 0.85;
}
.consent-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.97rem;
  background: #fffbe9;
  border-radius: 8px;
  padding: 7px 15px;
  margin: 14px 0 10px 0;
  color: var(--brand-primary);
}
.consent-checkbox img {
  width: 18px;
  opacity: 0.76;
}


/* ============================================================
   LEGAL PAGES STYLES (Cookie/Legal/GDPR)
   ============================================================ */
.legal {
  background: var(--brand-card-alt);
  padding: 36px 20px;
  margin-bottom: 60px;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
}
.legal .content-wrapper {
  gap: 18px;
}
.legal h1, .legal h2, .legal h3 {
  margin-bottom: 8px;
}
.legal ul {
  margin: 8px 0 12px 20px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.legal ul li::before {
  content: '•';
  color: var(--brand-secondary);
  margin-right: 7px;
}


/***************************************************************
 * RESPONSIVE DESIGN BREAKPOINTS
 ***************************************************************/
@media (max-width: 1100px) {
  .feature-grid, .innovation-tiles, .biodiversity-cards, .invention-spotlight-grid {
    gap: 22px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .innovation-tiles, .biodiversity-cards, .invention-spotlight-grid, .team-bio-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .section, .about-preview, .about-section, .services, .contact-preview, .contact-section, .kontaktformular, .legal {
    padding: 30px 7px;
    margin-bottom: 35px;
  }
  .hero {
    padding: 36px 0 20px 0;
    border-radius: 0 0 30px 30px;
  }
  .testimonial-card{
    min-width: 190px;
    padding: 18px 10px;
  }
}

/* Add white space between cards on mobile */
@media (max-width: 600px) {
  .feature, .innovation-tiles > div, .biodiversity-cards > div, .invention-spotlight-grid > div, .testimonial-card {
    margin-bottom: 18px;
    padding: 14px 10px;
  }
}


/***************************************************************
 * HOVER/ACTION STATES & MICRO-INTERACTIONS
 ***************************************************************/
a, button, .cta-button, .main-nav a, .feature, .testimonial-card {
  transition: background 0.18s, color 0.18s, box-shadow 0.17s, transform 0.14s;
}
.feature:active, .innovation-tiles > div:active, .biodiversity-cards > div:active, .invention-spotlight-grid > div:active {
  transform: scale(0.97);
}
.cta-button:active {
  transform: scale(0.96);
}

/***************************************************************
 * COOKIE CONSENT BANNER & MODAL STYLE (Creative Artistic)
 ***************************************************************/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--brand-card);
  box-shadow: 0 -2px 28px 0 rgba(36,59,85,0.08);
  padding: 18px 18px 21px 18px;
  z-index: 9000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  font-family: var(--font-body);
  font-size: 1rem;
  border-top: 5px solid var(--brand-secondary);
  animation: cookieSlideIn 0.76s cubic-bezier(0.85,0.22,0.4,1.03);
}
@keyframes cookieSlideIn {
  from { transform: translateY(120px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .banner-text {
  color: var(--brand-primary);
  font-size: 1.05rem;
  flex: 1 1 0;
  margin-right: 15px;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn-group button {
  font-family: var(--font-display);
  border: none;
  border-radius: 30px;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.08s;
}
.cookie-btn-group .accept {
  background: var(--brand-secondary);
  color: #fff;
  box-shadow: 0 2px 7px #f5b04130;
}
.cookie-btn-group .accept:hover {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-btn-group .reject {
  background: #fffbe9;
  color: var(--brand-primary);
  border: 2px solid var(--brand-secondary);
}
.cookie-btn-group .reject:hover {
  background: #f5b041;
  color: #fff;
}
.cookie-btn-group .settings {
  background: #fff;
  color: var(--brand-secondary);
  border: 2px solid var(--brand-secondary);
}
.cookie-btn-group .settings:hover {
  background: var(--brand-secondary);
  color: #fff;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 6px 21px 6px;
  }
  .cookie-banner .banner-text {
    margin-right: 0;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(36,59,85,0.54);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: cookieFadeIn .44s;
}
@keyframes cookieFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--brand-card);
  border-radius: var(--radius-base);
  box-shadow: 0 3px 24px 0 rgba(36,59,85,0.21);
  padding: 34px 26px 24px;
  max-width: 350px;
  width: 94vw;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalBumpIn .42s cubic-bezier(0.85,0.22,0.4,1.03);
  position: relative;
}
@keyframes modalBumpIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--brand-primary);
  margin-bottom: 13px;
}
.cookie-modal .modal-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal .modal-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-modal .modal-category strong {
  margin-right: 5px;
  font-family: var(--font-display);
  color: var(--brand-secondary);
}
.cookie-modal .switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #eee;
  border: 2px solid #ccd;
  position: relative;
  margin-left: auto;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-modal .switch[data-enabled="true"] {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
}
.cookie-modal .switch::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.16s;
}
.cookie-modal .switch[data-enabled="true"]::after {
  left: 22px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 18px;
}
.cookie-modal .modal-actions button {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 30px;
  border: none;
  padding: 9px 24px;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand-primary);
  color: #fff;
  transition: background 0.14s;
}
.cookie-modal .modal-actions button.back {
  background: var(--brand-secondary);
  color: #fff;
}
.cookie-modal .modal-actions button.back:hover {
  background: var(--brand-primary);
  color: #fff;
}
/* Close btn for modal */
.cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 22px;
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.38rem;
  color: var(--brand-primary);
  box-shadow: 0 1px 7px rgba(0,0,0,0.10);
  border: 2px solid #eee;
  z-index: 2;
  transition: background 0.17s, color 0.17s;
}
.cookie-modal .modal-close:hover {
  background: var(--brand-secondary);
  color: #fff;
}


/***************************************************************
 * CREATIVE/ARTISTIC FINISHES
 ***************************************************************/
/* Abstract creative accent on selected sections */
.section, .about-preview, .about-section, .services,
.contact-preview, .contact-section, .kontaktformular, .legal {
  position: relative;
  overflow: hidden;
}
.section::after, .about-preview::after, .about-section::after, .services::after,
.contact-preview::after, .contact-section::after, .legal::after {
  content: '';
  position: absolute;
  right: -85px; bottom: -55px;
  width: 170px; height: 120px;
  background: rgba(245,176,65,0.18);
  border-radius: 70px 110px 160px 110px;
  z-index: 0;
  filter: blur(7px) opacity(0.4);
  pointer-events: none;
}
.section::before, .about-preview::before, .about-section::before, .services::before,
.contact-preview::before, .contact-section::before, .legal::before {
  content: '';
  position: absolute;
  left: -82px; top: -46px;
  width: 120px; height: 70px;
  background: rgba(36,59,85,0.09);
  border-radius: 60px 90px 140px 90px;
  z-index: 0;
  filter: blur(10px) opacity(0.23);
  pointer-events: none;
}

/* Subtle artistic dash for h2 */
h2:after {
  content: '';
  display: block;
  margin: 10px 0 0 0;
  width: 65px;
  height: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-primary) 30%, var(--brand-secondary));
}

/***************************************************************
 * MISC/FORMS/UTILTIES
 ***************************************************************/
.contact-fields li:before {
  content: '✦';
  color: var(--brand-secondary);
  margin-right: 9px;
}

::-webkit-scrollbar { width: 12px; background: #f8f8f8; }
::-webkit-scrollbar-thumb { background: #F5B041; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #243B55; }

/* Hide outline for mouse users; keep it for keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
}

/***************************************************************
 * DARK REVERSE FOR PRINT
 ***************************************************************/
@media print {
  body, header, section, footer {
    background: #fff;
    color: #000;
    box-shadow: none !important;
  }
  header, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  .section, .about-preview, .about-section, .services, .contact-preview, .contact-section, .kontaktformular { box-shadow: none !important; }
}
