/* =======================================================
   RESET, VARIABLES & BASE TYPOGRAPHY
======================================================= */
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, 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;
}
article, aside, details, figcaption, figure,footer,header,hgroup,main,menu,nav,section { display: block; }
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
:root {
  --color-primary: #20689A;
  --color-secondary: #5E8E3E;
  --color-accent: #F5F7FA;
  --color-neutral: #ffffff;
  --color-text: #1c2541;
  --color-muted: #6C7886;
  --color-shadow: rgba(32,104,154,0.10);
  --radius-base: 10px;
  --shadow-card: 0 2px 16px var(--color-shadow);
  --shadow-hover: 0 4px 24px var(--color-shadow);
  --transition-base: 0.24s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-accent);
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  text-transform: none;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p, ul, ol, li { color: var(--color-text); font-size: 1rem; }
strong { font-weight: 700; color: var(--color-primary); }

.subheadline {
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
}
a { transition: color var(--transition-base); }
a:hover, a:focus { color: var(--color-secondary); }

/* ============= FLEX & CONTAINMENT ============= */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============= SECTIONS & SPACING ============= */
section {
  background: var(--color-neutral);
  border-radius: var(--radius-base);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 16px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (max-width: 768px) {
  section { padding: 28px 6px; margin-bottom: 40px; }
  .container { padding: 0 8px; }
  .content-wrapper { gap: 24px; }
}

/* ============= HEADER ======================== */
header {
  width: 100%;
  background: var(--color-accent);
  border-bottom: 1.5px solid #d7e0e7;
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  height: 72px;
}
.logo img { height: 48px; }
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 0;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition-base);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}
.main-nav .btn-primary {
  margin-left: 10px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 18px;
  z-index: 20;
  transition: color var(--transition-base);
}
.mobile-menu-toggle:focus {
  color: var(--color-secondary);
}
/* ============= MOBILE MENU ============== */
.mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  width: 310px;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-neutral);
  box-shadow: -4px 0 20px rgba(32,104,154,0.10);
  z-index: 129;
  display: flex;
  flex-direction: column;
  padding: 32px 22px 22px 22px;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.62,.2,.2,1), opacity 0.28s ease;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 14px;
  cursor: pointer;
  transition: color var(--transition-base);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--color-primary);
  font-weight: 500;
  padding: 12px 0;
  border-radius: 6px;
  transition: background var(--transition-base), color var(--transition-base);
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

@media (max-width: 990px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 991px) {
  .mobile-menu { display: none !important; }
}

/* ============= BUTTONS =================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 30px 8px 30px 8px;
  padding: 12px 32px;
  background: var(--color-primary);
  border: none;
  color: #fff !important;
  box-shadow: 0 2px 6px var(--color-shadow);
  cursor: pointer;
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  letter-spacing: 0.02em;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 20px var(--color-shadow);
}

/* ============= ICONS ============= */
img[alt^="Öffnungszeiten"], img[alt^="E-Mail"], img[alt^="Telefon"], img[alt^="Adresse"], img[alt^="icon-"] {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}

/* ============= FEATURE GRID =================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-item {
  background: var(--color-accent);
  border-radius: var(--radius-base);
  box-shadow: 0 2px 16px var(--color-shadow);
  flex: 1 1 260px;
  max-width: 340px;
  min-width: 240px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.feature-item:hover {
  box-shadow: 0 6px 30px var(--color-shadow);
  transform: translateY(-4px) scale(1.03);
}
.feature-item img {
  height: 40px;
  width: 40px;
}

@media (max-width: 970px) {
  .feature-grid { flex-direction: column; gap: 20px; }
  .feature-item { min-width: 0; max-width: 100%; width: 100%; }
}

/* ============= SERVICE GRID ================ */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-item {
  flex: 1 1 300px;
  min-width: 270px;
  max-width: 350px;
  background: var(--color-accent);
  border-radius: var(--radius-base);
  box-shadow: 0 2px 16px var(--color-shadow);
  margin-bottom: 20px;
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid var(--color-primary);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.service-item:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 6px 30px var(--color-shadow);
  transform: translateY(-2px) scale(1.03);
}
@media (max-width: 970px) {
  .service-grid { flex-direction: column; gap: 20px; }
  .service-item { min-width: 0; max-width: 100%; width: 100%; }
}

/* ============ TESTIMONIAL CARDS ============== */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: 0 2px 16px var(--color-shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-secondary);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #222639;
  flex: 1 1 auto;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--color-secondary);
  font-family: var(--font-display);
}
.testimonial-card:hover {
  border-color: var(--color-primary);
  transform: scale(1.02);
  box-shadow: 0 8px 28px var(--color-shadow);
}
@media (max-width: 768px) {
  .testimonial-card { flex-direction: column; padding: 16px 10px; gap: 10px; }
}

/* =========== CARDS CONTAINER STANDARDIZATION ============= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-accent);
  border-radius: var(--radius-base);
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 28px 18px;
}

/* ============= TABLE STYLES =================== */
table {
  width: 100%;
  border-radius: var(--radius-base);
  overflow: hidden;
  background: var(--color-accent);
  margin-bottom: 18px;
  box-shadow: 0 2px 14px var(--color-shadow);
}
thead th {
  font-family: var(--font-display);
  background: var(--color-primary);
  color: #fff;
  font-size: 1.1rem;
  padding: 12px 10px;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--color-secondary);
}
tbody td {
  padding: 13px 10px;
  font-size: 1rem;
  border-bottom: 1px solid #e1e7ee;
  color: var(--color-text);
}
tbody tr:last-child td { border-bottom: none; }
@media (max-width: 670px) {
  table, thead, tbody, th, td, tr {
    display: block; width: 100%;
  }
  thead { display: none; }
  tbody td {
    border: none;
    padding: 11px 6px;
    position: relative;
  }
  tbody td:before {
    content: attr(data-label);
    font-family: var(--font-display);
    color: var(--color-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
  }
}

/* =========== FAQ LISTS ============== */
.faq-list h2 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  margin-top: 18px;
  color: var(--color-secondary);
  font-weight: 600;
  font-family: var(--font-display);
}
.faq-list p {
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 10px;
}

/* ============ ULS / OLS ============== */
ul, ol {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 16px;
}
ul li, ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}
ul li:before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 14px; height: 14px;
  background: var(--color-primary);
  border-radius: 3px;
  display: inline-block;
}
ol li:before {
  content: counter(item) ". ";
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  position: absolute;
  left: 0; top: 10px;
}
ol { counter-reset: item; }
ol li { counter-increment: item; }

/* ============= CONTACT BLOCK ================ */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
  font-size: 1.06rem;
  color: var(--color-text);
}
.contact-block div {
  display: flex;
  align-items: center;
}
.contact-methods {
  margin-top: 20px;
}
.contact-methods h2 { color: var(--color-primary); font-size: 1.18rem; margin-bottom: 8px; }

/* =========== FOOTER ============== */
footer {
  background: var(--color-accent);
  border-top: 1.5px solid #d7e0e7;
  padding-top: 32px;
  padding-bottom: 18px;
  margin-top: 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.footer-menu, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-menu a {
  font-size: 0.98rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  position: relative;
  padding-right: 8px;
  padding-left: 8px;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--color-secondary);
}
.footer-contact span {
  font-size: 0.93rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  margin-right: 18px;
  margin-bottom: 4px;
}
.brand-footer {
  font-size: 0.98rem;
  color: var(--color-secondary);
  font-family: var(--font-display);
  margin-top: 6px;
}
@media (max-width: 600px) {
  .footer-menu, .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-menu a { padding-right: 0; padding-left: 0; }
}

/* ============= CTA - SPECIAL SECTIONS ============= */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ============= COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: var(--color-neutral);
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 -2px 24px var(--color-shadow);
  padding: 24px 16px 24px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  animation: cookie-banner-in 0.55s cubic-bezier(.4,0,.2,1);
}
@keyframes cookie-banner-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner .cookie-message {
  color: var(--color-text);
  font-size: 1.02rem;
  flex: 1 0 180px;
  margin-right: 16px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 8px 28px 8px 28px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-primary);
  color: #fff;
  margin-left: 0;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}
.cookie-btn.secondary {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  transform: scale(1.05);
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-primary);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 8px; }
  .cookie-banner .cookie-message { margin-right: 0; }
  .cookie-banner .cookie-actions { justify-content: flex-start; }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(28,37,65,0.34);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s ease;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: var(--color-neutral);
  border-radius: var(--radius-base);
  box-shadow: 0 4px 40px var(--color-shadow);
  padding: 36px 28px 28px 28px;
  max-width: 420px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: cookie-modal-in 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(32px); }
  to { opacity: 1; transform: none; }
}
.cookie-modal-content h3 {
  font-size: 1.22rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.cookie-modal-content .modal-section {
  margin-bottom: 20px;
}
.cookie-modal-content label {
  font-size: 1rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal-close {
  position: absolute;
  right: 32px;
  top: 20px;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: color var(--transition-base);
}
.cookie-modal-close:hover {
  color: var(--color-primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* ============= ANIMATIONS MICRO INTERACTIONS ============= */
.btn-primary, .card, .feature-item, .service-item, .testimonial-card, .cookie-btn, .mobile-nav a {
  transition: box-shadow 0.24s cubic-bezier(.4,0,.2,1), background 0.22s, color 0.19s, transform 0.19s;
}

/* =========== RESPONSIVE MEDIA & SPACING RULES ============ */
@media (max-width: 768px) {
  .content-wrapper {
    gap: 16px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .section, section { padding: 18px 4px; margin-bottom: 32px; }
}

/* =========== CRITICAL LAYOUTS ============ */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { 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; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width: 768px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .section { padding: 20px 4px; margin-bottom: 22px; }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 10px; background: #e8eeef; border-radius: 6px; }
::-webkit-scrollbar-thumb { background: var(--color-secondary); border-radius: 6px; }

/* ==== UTILS === */
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.text-center { text-align: center; }
.rounded { border-radius: var(--radius-base); }
.shadow { box-shadow: 0 2px 12px var(--color-shadow); }

/* ==== BACKGROUND GEOMETRIC SHAPE DECORATION – purely decorative, not for main content ==== */
.geometric-shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

/* =============== PRINT, SELECTION & FOCUS ============ */
::selection {
  background: var(--color-secondary);
  color: #fff;
}
a:focus, button:focus, input:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ======= END GEOMETRIC STRUCTURED STYLE ======== */
