/* ========================================================
   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;
  font-size: 16px;
}
body {
  font-family: 'Roboto', Times, 'Times New Roman', serif;
  line-height: 1.6;
  background: #FAF7F2;
  min-height: 100vh;
  color: #263238;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
a {
  color: #20405A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #3EBF7C;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 2em;
}
li + li {
  margin-top: 0.4em;
}
button {
  font-family: inherit;
  font-size: 1em;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  outline: none;
  transition: background .2s, color .2s;
}

/* Font Face Fall-back for Elegant Classic (Serif + Modern) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

/* ================= Brand Variables (fallbacks) ================ */
:root {
  --color-primary: #20405A;
  --color-secondary: #3EBF7C;
  --color-accent: #F7E56B;
  --color-light-bg: #FAF7F2;
  --color-card-bg: #fff;
  --color-text: #263238;
  --color-muted: #88898B;
  --color-footer-bg: #F3F1EA;
  --color-border: #E6E0D5;
  --color-shadow: rgba(32, 64, 90, 0.06);
  --font-display: 'Montserrat', 'Georgia', serif;
  --font-body: 'Roboto', 'Georgia', serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-main: 0 2px 16px 0 var(--color-shadow);
}

/* ==============================================================
   Layout Containers & Spacing (Mobile-first)
============================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  box-shadow: 0 2px 16px 0 var(--color-shadow);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-width: 260px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 32px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 14px -2px var(--color-shadow);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  min-width: 260px;
  max-width: 380px;
  font-size: 1.13em;
}
.testimonial-card p {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--color-primary);
}
.testimonial-card strong {
  font-size: 1em;
  color: var(--color-secondary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.usp-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.kontakt-details {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.kontakt-details > div {
  min-width: 180px;
  font-size: 1em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px 0 var(--color-shadow);
}
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #F3F1EA;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  gap: 8px;
}
.footer-contact {
  font-size: 1em;
  color: var(--color-muted);
  margin-right: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 4px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
}

/* ============================================
   Typography & Hierarchy
============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.1;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4 { font-size: 1.1rem; margin-bottom: 8px; }
h5 { font-size: 1rem; margin-bottom: 8px; }
h6 { font-size: 0.94rem; margin-bottom: 8px; }
p {
  font-size: 1.06rem;
  color: var(--color-text);
  margin-bottom: 8px;
  margin-top: 0;
}
ul, ol {
  font-size: 1.06rem;
  color: var(--color-text);
  margin-bottom: 12px;
  margin-top: 0;
  padding-left: 1.6em;
}
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}
li {
  margin-bottom: 6px;
  margin-top: 0;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
.text-section {
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text);
}

/* =============================================
   Header & Navigation
============================================= */
header {
  background: var(--color-card-bg);
  box-shadow: 0 2px 6px 0 var(--color-shadow);
  border-bottom: 1px solid var(--color-border);
  z-index: 1001;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}
header img[alt="Neon Shadow"] {
  height: 44px;
  margin-right: 24px;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}
nav.main-nav a {
  font-family: var(--font-display);
  font-size: 1.07rem;
  color: var(--color-primary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
nav.main-nav a.cta-primary {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: bold;
  padding: 10px 22px;
  margin-left: 18px;
  box-shadow: 0 2px 10px 0 var(--color-shadow);
  transition: background 0.2s, box-shadow 0.2s;
}
nav.main-nav a.cta-primary:hover,
nav.main-nav a.cta-primary:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 18px -3px var(--color-shadow);
}
nav.main-nav a:hover,
nav.main-nav a:focus {
  background: #E8F6EF;
  color: var(--color-secondary);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: background 0.2s, color 0.2s;
  z-index: 1601;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E8F6EF;
  color: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(250,247,242,0.98);
  z-index: 1600;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.82,.02,.4,.99);
  will-change: transform;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 30px 0 var(--color-shadow);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 28px 0 0;
  font-size: 2.2rem;
  color: var(--color-primary);
  background: none;
  border-radius: var(--radius-md);
  z-index: 1800;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #E8F6EF;
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 48px 38px 24px 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  padding: 12px 0;
  border-radius: var(--radius-sm);
  width: 100%;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E8F6EF;
  color: var(--color-secondary);
}

/* Hide nav and show burger on mobile */
@media (max-width: 990px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =============================================
   Main & Hero Section
============================================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
section > .container {
  padding-left: 0;
  padding-right: 0;
}
.hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #FAF7F2 63%, #fff 100%);
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.8rem;
  margin-bottom: 18px;
}

/* =============================================
   Cards, Features, Info Blocks
============================================= */
.feature-grid > div,
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px 0 var(--color-shadow);
  border: 1px solid var(--color-border);
  padding: 22px 18px;
  min-width: 230px;
  flex: 1 0 220px;
  max-width: 370px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.23s, transform 0.23s;
}
.feature-grid > div:hover,
.card:hover {
  box-shadow: 0 6px 30px -5px var(--color-shadow);
  transform: translateY(-6px) scale(1.025);
}
.feature-grid img,
.card img {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========================================
   Buttons & CTA
======================================== */
.cta-primary {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 14px 0 var(--color-shadow), 0 1.5px 0 var(--color-accent) inset;
  letter-spacing: 0.03em;
  margin-top: 14px;
  transition: background 0.18s, box-shadow 0.19s, color 0.18s, transform 0.18s;
  outline: none;
  display: inline-block;
  border: none;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 24px -6px var(--color-shadow);
  transform: translateY(-2px) scale(1.03);
}

/* ============================================
   Footer
============================================ */
footer {
  background: var(--color-footer-bg);
  padding: 56px 0 26px 0;
  border-top: 1.5px solid var(--color-border);
  font-size: 1em;
  margin-top: 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  width: 100%;
  max-width: 1150px;
  justify-content: space-between;
}
footer nav.footer-nav a {
  font-family: var(--font-display);
  font-size: 1em;
  color: var(--color-muted);
  transition: color .21s;
}
footer nav.footer-nav a:hover,
footer nav.footer-nav a:focus {
  color: var(--color-primary);
  text-decoration: underline dotted;
}
footer .footer-social a img {
  width: 30px;
  height: 30px;
  filter: grayscale(18%);
  opacity: 0.85;
  transition: opacity 0.15s, filter 0.15s;
}
footer .footer-social a:hover img {
  opacity: 1;
  filter: grayscale(0%) drop-shadow(0 1px 3px #bfd0b8);
}

/* ==============================
   Cookie Consent Banner & Modal
============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fffdfa;
  color: var(--color-text);
  box-shadow: 0 -2px 16px 0 var(--color-shadow);
  border-top: 2px solid var(--color-accent);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px 18px;
  font-size: 1.03em;
  animation: slideUp 0.6s cubic-bezier(.92,.13,.37,1.18);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  gap: 14px;
  margin-top: 7px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.cookie-btn {
  border-radius: var(--radius-lg);
  border: none;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 600;
  margin: 0 3px;
  box-shadow: 0 1.5px 6px 0 var(--color-shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cookie-btn--accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn--accept:hover, .cookie-btn--accept:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn--reject {
  background: #F9F6ED;
  color: var(--color-primary);
  border: 1.3px solid var(--color-border);
}
.cookie-btn--reject:hover, .cookie-btn--reject:focus {
  background: #ece0ac;
  color: #2d311a;
}
.cookie-btn--settings {
  background: #fff;
  color: var(--color-secondary);
  border: 1.2px solid var(--color-secondary);
}
.cookie-btn--settings:hover, .cookie-btn--settings:focus {
  background: #E8F6EF;
  color: var(--color-primary);
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,64,90,0.32);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.41s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffdfa;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 36px 0 var(--color-shadow);
  padding: 38px 28px 30px 28px;
  min-width: 320px;
  max-width: 400px;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: popIn 0.35s cubic-bezier(.72,.02,.42,1.17);
}
@keyframes popIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.48em;
  color: var(--color-primary);
  margin-bottom: 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1.05em;
}
.cookie-category label {
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-toggle-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #ece9df;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-toggle-switch:checked {
  background: var(--color-secondary);
}
.cookie-toggle-switch::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.13s;
}
.cookie-toggle-switch:checked::before {
  left: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 17px;
  right: 22px;
  font-size: 1.38em;
  color: var(--color-primary);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: background 0.17s;
  cursor: pointer;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #F3F1EA;
  color: var(--color-secondary);
}

/* ================
   Responsive Design
================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-wrapper, .usp-grid {
    gap: 14px;
  }
  .feature-grid {
    gap: 14px;
    flex-direction: column;
  }
  .testimonials {
    flex-direction: column;
    gap: 14px;
  }
  .card-container {
    gap: 14px;
  }
  .content-grid {
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .kontakt-details {
    gap: 14px;
  }
  .testimonial-card {
    padding: 18px 14px;
    max-width: 98vw;
    min-width: 0;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.80rem; }
  h2 { font-size: 1.30rem; }
  .footer-nav,
  .footer-social {
    gap: 10px;
  }
}

/* Utility for Elegant Classic White Space */
.mt-32 { margin-top: 32px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* =============================
   Miscellaneous
============================== */
::-webkit-input-placeholder, ::placeholder { color: #b6babd; opacity: 1; }
*[tabindex]:focus { outline: 2px solid var(--color-accent); }

/* Prevent overlapping for all flexboxes */
.card, .feature-grid > div, .card-container > *, .testimonials > * {
  min-width: 0;
  max-width: 100%;
}

/* Accessibility: Focus Visible */
a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 1px;
}

/* ==============================
   Micro-interactions & Transitions
============================== */
.feature-grid > div, .card,
.cta-primary, .cookie-btn {
  transition: box-shadow 0.22s, transform 0.20s, background 0.15s, color 0.15s;
}
nav.main-nav a, .mobile-nav a {
  transition: color 0.17s, background 0.15s;
}
img, .footer-social img {
  transition: opacity 0.14s, filter 0.26s;
}

/* =============================
   Hide Cookie Modal by default
============================== */
.cookie-banner, .cookie-modal-overlay {
  display: none;
}
body.cookie-banner-visible .cookie-banner {
  display: flex;
}
body.cookie-modal-active .cookie-modal-overlay {
  display: flex;
}
