/* 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,
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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #fff;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* BRAND VARIABLES (with fallbacks where used) */
:root {
  --color-primary: #19446b;
  --color-secondary: #7BAF8D;
  --color-accent: #F5F5F5;
  --color-warm-1: #ffeede;
  --color-warm-2: #ffdfc5;
  --color-warm-3: #ffe1b2;
  --color-attention: #fd9262;
  --color-neutral: #fff;
  --color-text: #23314b;
  --color-muted: #8b99aa;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}

/* TYPOGRAPHY & HEADINGS */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-accent);
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.16; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }
p, ul, ol, li {
  font-size: 1rem;
  color: var(--color-text);
  font-family: var(--font-body);
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 20px;
}
li {
  margin-bottom: 8px;
}
strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* LINKS */
a {
  color: var(--color-secondary);
  transition: color 0.2s;
  border-radius: 6px;
}
a:hover, a:focus {
  color: var(--color-primary);
  background: var(--color-warm-2);
  outline: none;
}

/* BUTTONS & CTA */
.cta-button,
button.cta-button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-neutral);
  background: var(--color-secondary);
  border-radius: 30px;
  padding: 12px 32px;
  margin-top: 16px;
  display: inline-block;
  box-shadow: 0 3px 10px rgba(123, 175, 141, 0.15);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.cta-button:hover,
button.cta-button:hover,
.cta-button:focus {
  background: var(--color-primary);
  color: var(--color-neutral);
  box-shadow: 0 6px 18px rgba(25, 68, 107, 0.20);
  transform: translateY(-2px) scale(1.03);
}

/* HEADER NAVIGATION */
header {
  background: var(--color-neutral);
  box-shadow: 0 4px 12px rgba(25,68,107,0.08);
  padding-top: 8px;
  padding-bottom: 8px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
}
header nav a {
  font-size: 1rem;
  font-family: var(--font-display);
  padding: 8px 16px;
  border-radius: 16px;
  color: var(--color-primary);
  transition: background 0.15s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-warm-3);
  color: var(--color-primary);
}
header nav a.cta-button {
  margin-left: auto;
}

/* HAMBURGER MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  margin-left: auto;
  z-index: 1021;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-warm-2);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-warm-3);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(0.48,0,0.52,1);
  box-shadow: 2px 0 16px rgba(25,68,107,0.14);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  margin: 20px;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  transition: background 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-warm-2);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0 0 24px;
}
.mobile-nav a {
  padding: 12px 0;
  font-size: 1.25rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 12px;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--color-warm-1);
  color: var(--color-secondary);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(to right, var(--color-warm-1), var(--color-warm-3), var(--color-accent));
  padding: 60px 0 30px 0;
  margin-bottom: 0;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 2px 34px rgba(245,177,107,0.09);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero .content-wrapper h1 {
  font-size: 2.2rem;
}
.hero .cta-button {
  margin-top: 28px;
}

/* SECTIONS SPACING - CRITICAL */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-neutral);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(245, 177, 107, 0.06);
}


/* CARDS & CARD CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-warm-1);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(25, 68, 107, 0.05);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  flex: 1;
  min-width: 260px;
  transition: transform 0.18s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 36px rgba(123, 175, 141, 0.23);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* CONTENT GRID PATTERNS (flex layouts only) */
.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;
}

/* FEATURE GRID AND FEATURE ITEMS */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-warm-2);
  border-radius: 20px;
  box-shadow: 0 1px 16px rgba(123, 175, 141, 0.09);
  padding: 24px 20px 20px 20px;
  min-width: 240px;
  flex: 1 1 230px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item img {
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
}
.feature-item:hover {
  box-shadow: 0 10px 36px rgba(123, 175, 141, 0.19);
  transform: scale(1.025);
}
.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}
.feature-item p {
  font-size: 1rem;
  color: var(--color-text);
}


/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 1px 16px rgba(25, 68, 107, 0.08);
  margin-bottom: 24px;
  margin-top: 20px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.13rem;
  border-left: 4px solid var(--color-secondary);
  transition: box-shadow 0.19s, border-color 0.19s;
}
.testimonial-card p {
  color: var(--color-text);
  font-style: italic;
  font-size: 1.13rem;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 10px 28px rgba(25, 68, 107, 0.18);
  border-left: 4px solid var(--color-attention);
}

/* CTA SECTION */
.cta {
  background: var(--color-secondary);
  background-image: none;
  color: var(--color-neutral);
  border-radius: 34px;
  box-shadow: 0 3px 32px rgba(25,68,107,0.08);
  margin-bottom: 0;
}
.cta .content-wrapper h2,
.cta .content-wrapper p {
  color: var(--color-neutral);
}
.cta .cta-button {
  background: var(--color-warm-2);
  color: var(--color-primary);
  font-weight: 600;
}
.cta .cta-button:hover, .cta .cta-button:focus {
  background: var(--color-neutral);
  color: var(--color-secondary);
}

/* SERVICE & SOLUTION LIST (Leistungen, Barrierefreiheit) */
.service-list,
.solution-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-item, .solution-item {
  background: var(--color-warm-3);
  border-radius: 16px;
  box-shadow: 0 1px 16px rgba(245, 177, 107, 0.07);
  padding: 24px 18px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.service-item:hover,
.solution-item:hover {
  box-shadow: 0 10px 32px rgba(25, 68, 107, 0.13);
  transform: scale(1.02);
}

/* USP Section (about.html) */
.usp ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin-top: 20px;
}
.usp ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-warm-2);
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 500;
  font-size: 1.02rem;
  flex: 1 1 240px;
  min-width: 180px;
}
.usp ul img {
  width: 32px; height: 32px;
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color: var(--color-neutral);
  padding: 36px 0 22px 0;
  border-radius: 36px 36px 0 0;
  margin-top: 56px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
footer nav a {
  color: var(--color-neutral);
  text-decoration: underline;
  opacity: 0.93;
  border-radius: 8px;
  padding: 3px 8px;
  transition: background 0.1s, color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
footer p {
  font-size: 0.98rem;
  margin-bottom: 4px;
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.99rem;
  margin-top: 8px;
}
.footer-contact img {
  width: 18px; height: 18px; margin-right: 5px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.footer-social img {
  width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 4px rgba(255,255,255,0.18);
  background: var(--color-warm-2);
  padding: 4px;
  transition: background 0.14s;
}
.footer-social img:hover {
  background: var(--color-warm-1);
}

/* CONTACT DETAILS (kontakt) */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 18px;
}
.contact-details strong {
  min-width: 90px;
  color: var(--color-primary);
  display: inline-block;
}
.cta-info {
  background: var(--color-warm-1);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 16px;
  font-size: 1.06rem;
}
.map-section .map {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-warm-2);
  border-radius: 12px;
  padding: 18px 18px;
  font-size: 1.07rem;
}

/* RESOURCES LINK */
.resources ul {
  font-size: 1.05rem;
  margin-top: 12px;
}
.resources ul li + li {
  margin-top: 7px;
}
.resources ul li a {
  font-family: var(--font-body);
  color: var(--color-primary);
  border-radius: 8px;
  padding: 4px 7px;
  transition: background 0.13s, color 0.18s;
}
.resources ul li a:hover, .resources ul li a:focus {
  color: var(--color-secondary);
  background: var(--color-warm-3);
}

/* PROCESS STEP (leistungen) */
.process ol {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: decimal inside;
  margin-top: 26px;
  font-size: 1.06rem;
}
.process ol li strong {
  color: var(--color-secondary);
  font-weight: 700;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1900;
  width: 100vw;
  background: var(--color-warm-3);
  color: var(--color-primary);
  box-shadow: 0 -3px 16px rgba(25,68,107,0.11);
  padding: 30px 12px 22px 12px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1.05rem;
  animation: banner-slide-up 0.37s cubic-bezier(0.48, 0, 0.52, 1);
}
@keyframes banner-slide-up {
  0% { transform: translateY(100%); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-consent-banner .consent-buttons {
  display: flex;
  gap: 18px;
}
.cookie-consent-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 24px;
  padding: 8px 22px;
  border: none;
  cursor: pointer;
  margin: 0 2px;
  box-shadow: 0 1px 12px rgba(123, 175, 141, 0.11);
  transition: background 0.14s, color 0.15s;
}
.cookie-consent-banner .accept-btn {
  background: var(--color-secondary);
  color: var(--color-neutral);
}
.cookie-consent-banner .accept-btn:hover {
  background: var(--color-primary);
}
.cookie-consent-banner .decline-btn {
  background: var(--color-warm-1);
  color: var(--color-primary);
}
.cookie-consent-banner .decline-btn:hover {
  background: var(--color-warm-2);
}
.cookie-consent-banner .settings-btn {
  background: var(--color-neutral);
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-consent-banner .settings-btn:hover {
  background: var(--color-warm-3);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(25,68,107,0.38);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.21s;
}
.cookie-modal {
  background: var(--color-neutral);
  color: var(--color-primary);
  border-radius: 18px;
  max-width: 400px;
  box-shadow: 0 6px 48px rgba(25,68,107,0.22);
  padding: 36px 28px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modal-appear 0.33s cubic-bezier(.77,0,.18,1);
}
@keyframes modal-appear {
  0%   { transform: translateY(30px) scale(0.94); opacity:0; }
  100% { transform: translateY(0)    scale(1);    opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-warm-2);
  border-radius: 8px;
  padding: 10px 14px;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 20px; height: 20px;
}
.cookie-category.essential {
  opacity: 0.68;
}
.cookie-modal .close-settings {
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  align-self: flex-end;
  cursor: pointer;
  border-radius: 50%;
  width: 36px; height: 36px;
  transition: background 0.14s;
  margin-top: -18px;
}
.cookie-modal .close-settings:hover { background: var(--color-warm-3); }
.cookie-modal .consent-buttons {
  margin-top: 16px;
}

/* UTILS */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.align-center { align-items: center; }


/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .hero .container {
    padding: 0 8px;
  }
  .card-container, .content-grid, .feature-grid, .usp ul, .service-list, .solution-list, .footer-contact {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .feature-grid, .service-list, .solution-list {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  html { font-size: 97%; }

  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  section, .section {
    padding: 24px 6px;
    margin-bottom: 46px;
    border-radius: 18px;
  }
  .hero {
    padding: 36px 0 12px 0;
    border-radius: 0 0 21px 21px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }

  .content-grid, .card-container, .feature-grid, .usp ul, .footer-contact {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    padding: 18px 8px;
  }
  .cta {
    border-radius: 20px;
  }
  .footer-social img { width: 28px; height: 28px; }

  /* Hamburger menu shows */
  .mobile-menu-toggle {
    display: flex;
  }
  header nav {
    display: none;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
}

/* Hamburger nav only active on mobile */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* Add subtle micro-interactions on focus for all buttons/links */
a:focus,
button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

::-webkit-input-placeholder { color: var(--color-muted); }
::-moz-placeholder { color: var(--color-muted); }
:-ms-input-placeholder { color: var(--color-muted); }
::placeholder { color: var(--color-muted); }

/* Hide cookie modal and menu when not open (optional - handle with JS with .open class if needed) */
.cookie-modal-overlay:not(.open),
.mobile-menu:not(.open),
.cookie-modal:not(.open)  {
  display: none !important;
}

/* CRITICAL - Spacing between all cards/sections */
.card, .testimonial-card, .feature-item, .service-item, .solution-item, .usp ul li {
  margin-bottom: 20px;
}

/* Remove absolute positioning of content elements (only decorative allowed; enforced elsewhere) */
/* No absolute positioning for .card, .testimonial-card, etc. */

/* Hide visually but accessible: generic [hidden] attribute */
[hidden] { display: none !important; }
