/* =====================================================
   CSS RESET & BASELINE NORMALIZATION
====================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  scroll-behavior: smooth;
  background: #F6F4F2;
  color: #145961;
  font-family: 'Roboto', Arial, sans-serif;
}

img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s;
}
input, button, textarea, select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
ul, ol {
  list-style-position: inside;
}
table {
  border-collapse: collapse;
  width: 100%;
}

/* =====================================================
   COLOR SCHEME & BRAND CSS VARIABLES (w/ fallback)
====================================================== */
:root {
  --primary: #145961;
  --secondary: #FFFFFF;
  --background: #F6F4F2;
  --accent: #C28725;
  --primary-dark: #105055;
  --accent-light: #F0B23D;
}

/* =====================================================
   GLOBAL TYPOGRAPHY
====================================================== */
body, .body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
}
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 6px;
}
p, ul, ol, address, li, span {
  font-size: 1rem;
  color: var(--primary);
}
.subheadline {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 24px;
}

/* Typography scale for smaller screens */
@media (max-width: 600px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.4rem; }
  h3, .h3 { font-size: 1.1rem; }
}

strong, b {
  font-weight: 600;
  color: var(--primary);
}

/* =====================================================
   LAYOUT: CONTAINER & FLEXBOX
====================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--background);
  border-radius: 16px;
}

/* =====================================================
   FLEXBOX LAYOUTS - MANDATORY PATTERNS
====================================================== */
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--secondary);
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(20, 89, 97, 0.06);
  border-left: 4px solid var(--primary);
}
.testimonial-card p {
  color: #23393A;
  font-size: 1.1rem;
  line-height: 1.6;
}
.testimonial-card span {
  color: #4B6164;
  font-size: 1rem;
  font-style: italic;
  font-family: 'Montserrat', Arial, sans-serif;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive gap adjustments */
@media (max-width: 600px) {
  .content-grid, .card-container { gap: 12px; }
  .section { padding: 30px 10px; }
}

/* =====================================================
   HEADER, NAVIGATION & MOBILE MENU
====================================================== */
header {
  background: linear-gradient(89deg, var(--primary) 60%, var(--accent-light) 150%);
  color: var(--secondary);
  width: 100%;
  box-shadow: 0 4px 10px 0 rgba(20, 89, 97, 0.09);
  position: sticky;
  top: 0;
  z-index: 990;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  min-height: 56px;
}
.brand-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
  display: inline-block;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent-light);
  color: var(--primary);
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 28px;
  border-radius: 25px;
  margin-left: 18px;
  box-shadow: 0 2px 10px rgba(243, 187, 58, 0.18);
  transition: background 0.22s, transform 0.13s, box-shadow 0.22s;
  letter-spacing: 0.05em;
  border: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #F0B23D;
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 22px rgba(243, 187, 58, 0.22);
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  color: var(--secondary);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: transparent;
  transition: background 0.14s;
  margin-left: 12px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(255,255,255,0.13);
}

/* Mobile nav overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,89,97,0.95);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.38,.61,.41,1.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 25px 10px 0;
  color: var(--secondary);
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--accent-light);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 20px 0 0 38px;
}
.mobile-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.37rem;
  padding: 12px 0;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent-light);
  color: var(--primary);
}

@media (max-width: 950px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .mobile-nav {
    margin-left: 18px;
  }
}

/* =====================================================
   HERO SECTION
====================================================== */
.hero {
  width: 100%;
  /* Modern gradient look */
  background: linear-gradient(120deg, var(--primary) 46%, var(--background) 180%);
  color: var(--secondary);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 44px;
  padding-bottom: 18px;
}
.hero .container {
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
}
.hero h1 {
  color: var(--secondary);
  margin-bottom: 12px;
  font-size: 2.5rem;
}
.hero .subheadline {
  color: var(--accent-light);
  font-size: 1.2rem;
}
.hero .cta-btn {
  margin-top: 30px;
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.32rem; }
  .hero .subheadline { font-size: 1rem; }
  .hero .container { padding-top: 8px; padding-bottom: 16px; }
}

/* =====================================================
   HIGHLIGHTS / FEATURES GRID
====================================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 30px 0 0 0;
  padding: 0;
  align-items: stretch;
}
.feature-grid li {
  flex: 1 1 200px;
  background: var(--secondary);
  padding: 22px 20px;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(20, 89, 97, 0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 180px;
  max-width: 280px;
  transition: box-shadow 0.18s, transform 0.18s;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 8px 28px rgba(20, 89, 97, 0.14);
  transform: translateY(-2px) scale(1.025);
}
.feature-grid img {
  height: 38px;
  width: 38px;
  margin-bottom: 3px;
}
.feature-grid h3 {
  font-size: 1.1rem;
  color: var(--primary);
}
.feature-grid p {
  color: #314548;
  font-size: 1rem;
}
@media (max-width: 800px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .feature-grid li { max-width: none; width: 100%; }
}

/* =====================================================
   SERVICE CARDS
====================================================== */
.service-cards, .offer-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 18px 0;
  justify-content: flex-start;
}
.service-card {
  background: var(--secondary);
  border-radius: 14px;
  padding: 26px 22px 20px 22px;
  flex: 1 1 235px;
  min-width: 220px;
  max-width: 340px;
  box-shadow: 0 2px 14px rgba(20, 89, 97, 0.09);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 4px solid var(--accent);
  transition: box-shadow 0.19s, transform 0.15s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 8px 32px rgba(20, 89, 97, 0.12);
  transform: translateY(-2px) scale(1.03);
}
.service-card h3 {
  font-size: 1.17rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 3px;
}
.service-card p {
  color: #314548;
  font-size: 1rem;
  margin-bottom: 4px;
}
.service-card .price {
  font-size: 1.07rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}
@media (max-width: 700px) {
  .service-cards, .offer-cards {
    flex-direction: column;
    gap: 12px;
  }
  .service-card { max-width: none; width: 100%; }
}

/* =====================================================
   PRICING TABLES
====================================================== */
.pricing-table {
  width: 100%;
  margin-top: 18px;
  margin-bottom: 18px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--secondary);
  box-shadow: 0 2px 10px rgba(20, 89, 97, 0.06);
  color: var(--primary);
}
.pricing-table caption {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  background: var(--background);
  padding: 14px 8px;
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 12px 10px;
}
.pricing-table th {
  background: var(--primary);
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.pricing-table tr:nth-child(even) td {
  background: #fafdfe;
}

/* =====================================================
   REGION MAPS - FLEX SETTINGS
====================================================== */
.region-map {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}
.region-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.region-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.region-details h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
}
.highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 600px) {
  .region-map { margin-bottom: 18px; }
}

/* =====================================================
   FOOTER
====================================================== */
footer {
  padding: 32px 0 20px 0;
  background: linear-gradient(97deg, var(--primary-dark) 70%, var(--accent-light) 170%);
  color: var(--secondary);
  border-top-left-radius: 34px;
  border-top-right-radius: 34px;
  box-shadow: 0 -2px 16px rgba(20,89,97,0.07);
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
footer img {
  height: 48px;
  width: auto;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  transition: color 0.15s;
  padding: 6px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent-light);
}
.copyright {
  color: #e5e7ea;
  font-size: 0.93rem;
  margin-top: 8px;
  flex: 1 1 100%;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-nav {
    gap: 11px;
  }
}

/* =====================================================
   COOKIE CONSENT BANNER & MODAL
====================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--secondary);
  color: var(--primary);
  z-index: 9999;
  padding: 22px 19px 20px 19px;
  box-shadow: 0 -4px 16px rgba(20,89,97,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 1rem;
  animation: slideUpBanner 0.38s cubic-bezier(.38,1.18,.76,1.04);
}
@keyframes slideUpBanner {
  0% { transform: translateY(70px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-banner button {
  min-width: 114px;
  border-radius: 19px;
  padding: 8px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
  border: none;
  transition: background 0.14s, color 0.16s, box-shadow 0.19s;
  margin-right: 4px;
}
.cookie-banner .accept-btn {
  background: var(--accent);
  color: var(--secondary);
}
.cookie-banner .accept-btn:hover, .cookie-banner .accept-btn:focus { 
  background: var(--accent-light);
  color: var(--primary);
}
.cookie-banner .settings-btn {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: var(--accent);
}
.cookie-banner .reject-btn {
  background: #e6e4e1;
  color: var(--primary);
}
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus {
  background: #faa843;
  color: var(--secondary);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 8px;
    text-align: left;
    padding: 16px 8px;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    gap: 9px;
  }
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(31,61,65,0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.23s ease;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--secondary);
  border-radius: 17px;
  max-width: 410px;
  width: 93vw;
  padding: 34px 20px 24px 20px;
  box-shadow: 0 4px 28px rgba(20,89,97,0.13);
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: modalPop 0.28s cubic-bezier(.37,1.43,.6,0.99);
}
@keyframes modalPop {
  0% { transform: translateY(60px) scale(0.95); opacity: 0; }
  85% { transform: scale(1.045); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 8px;
}
.cookie-switch {
  width: 38px; height: 22px; border-radius: 13px;
  background: #e7eef1;
  position: relative;
  transition: background 0.17s;
  flex-shrink: 0;
}
.cookie-switch input {
  display: none;
}
.cookie-switch .slider {
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #b0b9bc;
  transition: left 0.18s, background 0.20s;
}
.cookie-switch input:checked + .slider {
  left: 19px;
  background: var(--accent);
}
.cookie-category.essential .cookie-switch {
  background: #ddebe5;
}
.cookie-category.essential label {
  color: var(--primary-dark);
}
.cookie-category.essential .cookie-switch .slider {
  background: var(--primary);
}

/* =====================================================
   GENERAL FORMS (Contact/Frequently Asked Questions)
====================================================== */
address {
  font-style: normal;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* FAQ & Lists */
ul, ol {
  margin-left: 0;
  padding-left: 18px;
  margin-top: 5px;
  margin-bottom: 12px;
}
li {
  margin-bottom: 7px;
}

ol {
  list-style-type: decimal;
}

@media (max-width: 600px) {
  ul, ol { margin-left: 6px; padding-left: 14px; }
}

/* =====================================================
   RESPONSIVE FLEX-DIRECTION FOR .text-image-section, ETC.
====================================================== */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }
  .section { margin-bottom: 32px; padding: 28px 8px; }
}

/* Ensure all sections/cards have enough margin between them */
section, .section, .card, .testimonial-card, .feature-grid li, .service-card {
  margin-bottom: 20px;
}

/* =====================================================
   TABLES: LEGAL TEXT-PAGES & DATENSCHUTZ, ETC.
====================================================== */
.text-section h2, .text-section h3 {
  margin-top: 20px;
}
.text-section ul, .text-section ol {
  margin-bottom: 16px;
}
.text-section p {
  margin-bottom: 14px;
}

/* =====================================================
   ACCESSIBILITY OUTLINES
====================================================== */
a:focus, button:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  z-index: 10;
}

/* =====================================================
   SHADOWS, EFFECTS, HIERARCHY
====================================================== */
.card, .testimonial-card, .service-card, .feature-grid li, .pricing-table {
  box-shadow: 0 2px 10px rgba(20, 89, 97, 0.048);
}

/* Microinteractions: For all interactive (hoverable) elements */
button, .cta-btn, .service-card, .feature-grid li {
  transition: background 0.18s, color 0.18s, box-shadow 0.14s, transform 0.13s;
}

/* =====================================================
   SPECIAL: THANK-YOU PAGE
====================================================== */
.thank-you-page .content-wrapper.text-section {
  align-items: center;
  text-align: center;
  gap: 12px;
}
.thank-you-page h1 {
  color: var(--primary);
  margin-bottom: 16px;
}

/* =====================================================
   PRINT/PDF OPTIMIZATION (hide irrelevant UI)
====================================================== */
@media print {
  header, nav, .mobile-menu, .cookie-banner, footer {
    display: none !important;
  }
  section, .content-section, main, .container { box-shadow: none; background: #fff !important; }
}
