/* ============================================
   CSS RESET & NORMALIZE (Mobile-First)
=============================================== */
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;
  background: transparent;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,  
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-size: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F4E9DF;
  color: #3B2F2F;
  min-height: 100vh;
  position: relative;
}
ul, ol {
  padding-left: 1.5em;
}
a {
  color: #174C6F;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #37B87C;
  outline: none;
}
b, strong {
  font-weight: 700;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: 1em;
}

/* =========================================
   VINTAGE RETRO BRAND THEME
========================================== */
:root {
  --primary: #174C6F;
  --secondary: #37B87C;
  --accent: #F5F5F3;
  --retro-yellow: #F9DC5C;
  --retro-orange: #EE964B;
  --retro-red: #F95738;
  --retro-green: #88B04B;
  --retro-brown: #3B2F2F;
  --white: #fff;
  --light-bg: #F4E9DF;
  --border-radius: 16px;
  --shadow: 0 4px 26px rgba(30, 24, 19, 0.09), 0 3px 6px rgba(97, 80, 62, 0.05);
  --heading-font: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --body-font: 'Open Sans', Arial, sans-serif;
  --base-spacing: 20px;
  --transition-fast: 0.17s cubic-bezier(.5,1.7,.27,.93);
  --transition: 0.3s cubic-bezier(.68, -.6, .27, 1.5);
}

/* ==== TYPOGRAPHY - Vintage/Retro Flavors ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 2px 0 rgb(249 220 92 / 15%);
}
h1 {
  font-size: 2.125rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.6rem;
  margin-top: 26px;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.16rem;
  letter-spacing: 0.04em;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li, span, label {
  font-family: var(--body-font);
  font-size: 1em;
  color: var(--retro-brown);
}
ul li, ol li {
  margin-bottom: 8px;
}

blockquote {
  color: var(--retro-brown);
  border-left: 4px solid var(--retro-yellow);
  padding-left: 13px;
  margin-bottom: 20px;
  font-style: italic;
  background: rgba(249,220,92,0.10);
}

/* ==== Vintage Pattern Divider ==== */
hr {
  border: none;
  border-top: 2px dashed var(--retro-yellow);
  margin: 32px 0;
  opacity: 0.38;
}

/* Patterned background (subtle dots/lines for nostalgia) */
body::before {
  content: '';
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: repeating-linear-gradient(90deg, #F9DC5C 0px, #F9DC5C 2px, transparent 2px, transparent 12px),
    repeating-linear-gradient(180deg, #F9DC5C 0px, #F9DC5C 2px, transparent 2px, transparent 12px);
  z-index: 0;
}

/* =========================================
   LAYOUT & SPACING (FLEXBOX ONLY)
=========================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 2;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.feature-grid, .service-cards, .testimonial-slider, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.feature-grid > div, .service-cards > div, .faq-list > div {
  background: var(--white);
  border: 2.5px solid #E6CBAE;
  border-radius: var(--border-radius);
  padding: 28px 22px 20px 22px;
  margin-bottom: 20px;
  min-width: 235px;
  flex: 1 1 260px;
  box-shadow: 0 2px 10px rgba(60,44,28,0.06);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid > div:hover, .service-cards > div:hover, .faq-list > div:hover {
  box-shadow: 0 6px 24px rgba(160,112,29,0.15);
  transform: translateY(-2px) scale(1.025);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
}
.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-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 26px;
    background: #fffbe2;
    border-radius: var(--border-radius);
    border: 2px solid #EAC97A;
    box-shadow: 0 2px 12px rgba(98, 81, 23, 0.05);
    min-width: 250px;
    flex: 1 1 240px;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
    flex-direction: column;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(90, 77, 17, 0.10);
  border-color: var(--retro-yellow);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 1.04em;
  color: var(--retro-brown);
}

.faq-list > div {
  background: #fff;
  border: 2px solid #CED3A4;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 10px 0px rgba(127,114,30,0.07);
  padding: 22px 18px;
  min-width: 220px;
  margin-bottom: 20px;
}

/* ==============================
   HEADER & NAVIGATION
=============================== */
header {
  width: 100%;
  background-color: var(--primary);
  color: var(--accent);
  box-shadow: 0 2px 14px rgba(23,76,111,0.10);
  z-index: 30;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 76px;
  position: relative;
}
header img {
  max-height: 54px;
  width: auto;
}
nav {
  display: flex;
  gap: 18px;
  margin-left: 28px;
  align-items: center;
}
nav a {
  color: var(--accent);
  font-family: var(--heading-font);
  letter-spacing: 0.015em;
  font-size: 1.09em;
  position: relative;
  padding: 6px 9px;
  border-radius: 5px;
  transition: color var(--transition-fast), background var(--transition-fast);
}
nav a:hover, nav a:focus {
  color: #F9DC5C;
  background: rgba(255,217,98,0.14);
}
header .btn-primary {
  margin-left: auto;
}

/* ===============
   BUTTONS
=================*/
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: var(--heading-font);
  font-size: 1.09em;
  border: none;
  border-radius: 28px;
  padding: 12px 32px;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  text-align: center;
  box-shadow: 0 3px 18px rgba(249, 220, 92, 0.07);
}
.btn-primary {
  background: var(--retro-yellow);
  color: var(--primary);
  border: 2px solid #EAC97A;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--retro-orange);
  color: #fff;
  box-shadow: 0 4px 24px var(--retro-orange, #EE964B, 0.07);
}
.btn-secondary {
  background: var(--retro-red);
  color: #fff;
  border: 2px solid #FA9C77;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #d34625;
  color: #fffbe9;
  box-shadow: 0 4px 22px var(--retro-red, #F95738, 0.12);
}

/* ===============
   MOBILE MENU
=================*/
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: transparent;
  color: var(--retro-yellow);
  border: none;
  margin-left: 14px;
  cursor: pointer;
  z-index: 1001;
  transition: color var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--retro-red);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  height: 100vh;
  width: 88vw;
  max-width: 375px;
  background: var(--primary);
  position: fixed;
  top: 0;
  right: -100vw;
  z-index: 998;
  box-shadow: -7px 0 32px 0 rgba(30,40,60,0.22);
  padding: 37px 30px 26px 30px;
  transition: transform 0.34s cubic-bezier(.5,1.7,.27,.93);
  transform: translateX(100vw);
}
.mobile-menu.open {
  right: 0;
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--retro-yellow);
  font-size: 2.3rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  color: #fffbe9;
  background: none;
  font-family: var(--heading-font);
  font-size: 1.18em;
  padding: 10px;
  border-radius: 9px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-yellow);
  color: var(--primary);
}
.mobile-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.2s;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
/* Overlay backdrop when menu open */
.mobile-menu.open::after {
  content: '';
  display: block;
  position: fixed;
  z-index: 997;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(30,24,19, 0.18);
}

@media (max-width: 1024px) {
  nav {
    gap: 13px;
    margin-left: 10px;
  }
  header .container {
    flex-wrap: wrap;
    gap: 9px;
  }
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* ===========
   FOOTER
============*/
footer {
  background-color: #282211;
  color: #FFFCF5;
  padding: 32px 0 16px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.98em;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  color: #F9DC5C;
  text-decoration: underline dotted;
  transition: color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-orange);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  height: 36px;
  margin-bottom: 5px;
}
.footer-contact span {
  font-size: 0.98em;
  color: #F5F1D8;
}

/* ==================
   COOKIE CONSENT
=================== */
#cookie-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1100;
  min-height: 64px;
  background: #fffbe2;
  border-top: 3px solid #eedb81;
  box-shadow: 0 -5px 32px 0px rgba(230,201,174,0.11);
  font-size: 1em;
  padding: 18px 20px 12px 20px;
  animation: slideUp 0.45s cubic-bezier(.5,1.7,.27,.93);
}
@keyframes slideUp {
  from { transform: translateY(110px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-text {
  color: var(--retro-brown);
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  padding: 9px 24px;
  border-radius: 22px;
  font-family: var(--heading-font);
  font-size: 1em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--retro-yellow);
  color: var(--primary);
  transition: background var(--transition), color var(--transition);
}
.cookie-btn.accept {
  background: var(--retro-yellow);
  color: var(--primary);
  border: 2px solid #EAC97A;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--retro-orange);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--retro-red);
  color: #fff;
  border: 2px solid #FBB19B;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #dc4421;
  color: #fffbe9;
}
.cookie-btn.settings {
  background: var(--white);
  color: var(--primary);
  border: 2px solid #c8ceb3;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F5F4E9;
}

/* Cookie Modal */
#cookie-modal {
  display: none;
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.90);
  background: #fffbe2;
  border: 3px solid #eedb81;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 38px 0px rgba(249,205,67,0.13);
  padding: 33px 28px 25px 28px;
  z-index: 2001;
  min-width: 310px;
  max-width: 97vw;
  animation: modalIn 0.33s ease;
}
#cookie-modal.open {
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: modalIn 0.36s cubic-bezier(.5,1.7,.27,.93);
}
@keyframes modalIn {
  from { opacity:0; transform: translate(-50%,-60%) scale(0.82); }
  to { opacity:1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal-title {
  font-family: var(--heading-font);
  color: var(--primary);
  font-size: 1.29em;
  font-weight: bold;
  margin-bottom: 6px;
}
.cookie-preferences {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  font-size: 1em;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--retro-yellow);
}
.cookie-close-btn {
  position: absolute;
  top: 17px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 2em;
  color: var(--retro-yellow);
  cursor: pointer;
  z-index: 30;
}
.cookie-close-btn:hover, .cookie-close-btn:focus { color: var(--retro-red);}

#cookie-modal .cookie-btn {
  margin-top: 6px;
}

@media (max-width: 620px) {
  #cookie-modal {
    padding: 22px 7vw 18px 7vw;
    max-width: 98vw;
    min-width: 0;
  }
}

/* Prevent scroll when menu/modal open  */
body.menu-open, body.modal-open {
  overflow: hidden !important;
}

/* ====================
   RETRO DECORATIVE ELEMENTS
==================== */
.section {
  background: linear-gradient(135deg, #fffcf5 88%, #F9DC5C 100%);
  border: 2.9px solid #eedb81;
  box-shadow: 0 6px 36px 0px rgba(206,191,116,0.08), var(--shadow);
}
.section:nth-child(odd) {
  background: linear-gradient(124deg, #F4E9DF 90%, #fbecd2 100%);
  border-color: #eac97a;
}

/* Retro corners on feature cards */
.feature-grid > div, .service-cards > div, .testimonial-card, .faq-list > div {
  border-radius: 26px 26px 14px 14px/16px 22px 22px 12px;
  border-style: solid;
  border-width: 3px;
  border-color: #E6CBAE;
}

/* Subtle drop shadow on hovered interactive cards */
.service-cards > div:active, .feature-grid > div:active, .faq-list > div:active {
  box-shadow: 0 0px 40px 0px rgba(156,121,28,0.16);
}

/* =====================
   RESPONSIVENESS
====================== */
@media (max-width: 830px) {
  .feature-grid, .service-cards, .faq-list {
    gap: 18px;
  }
  .feature-grid > div, .service-cards > div, .faq-list > div {
    flex: 1 1 210px;
    min-width: 180px;
    padding: 15px 11px 13px 11px;
  }
  .section {
    padding: 27px 7px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 14px;
    padding: 0 0 0 0;
  }
  .feature-grid, .service-cards, .testimonial-slider, .faq-list {
    flex-direction: column;
    gap: 17px;
  }
  .feature-grid > div, .service-cards > div, .faq-list > div, .testimonial-card {
    min-width: unset;
    width: 100%;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
}
@media (max-width: 520px) {
  html {
    font-size: 15px;
  }
  h1{
    font-size: 1.18rem;
  }
  h2{
    font-size: 1.03rem;
  }
  header .container {
    min-height: 58px;
  }
  .footer-contact {
    font-size: 0.91em;
    gap: 3px;
  }
}

/* =====================
   TRANSITIONS & HOVER EFFECTS
======================== */
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
nav a, .mobile-nav a {
  transition: color 0.12s, background 0.12s;
}
.card, .faq-list > div, .feature-grid > div, .service-cards > div, .testimonial-card {
  transition: box-shadow 0.18s, border-color 0.11s, transform 0.15s;
}

/* Micro-interaction: scale for focused buttons */
.btn-primary:focus, .btn-secondary:focus, .cookie-btn:focus {
  transform: scale(1.052);
  outline: 2.5px dashed var(--retro-yellow);
  outline-offset: 2px;
}

/* =====================
   MISC: FORMATTING ETC.
======================== */
strong {
  font-weight: 700;
  color: var(--primary);
}
.section h2 {
  text-decoration: underline wavy #eedb81;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--retro-yellow);
  outline: none;
  box-shadow: 0 0 4px #eedb81;
}

.section:last-child, main > section:last-child {
  margin-bottom: 0;
}

/* ===============
   VISUAL HIERARCHY (spacing helpers)
=================*/
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* =====================
   CLASSES FROM HTML PAGES
======================== */
.feature-grid img, .service-cards img, .feature-item img, .text-section img, .testimonial-card img {
  max-height: 56px;
  margin-bottom: 8px;
  margin-right: 6px;
}
.text-image-section {
  gap: 30px;
  align-items: center;
}
@media (max-width: 768px) {
 .text-image-section { flex-direction: column; }
}

/* Hide section backgrounds for pages with only text (e.g., Datenschutz) */
main > section:only-child .section {
  background: transparent;
  box-shadow: none;
  border: none;
}

/* Hide mobile menu (outside burger mode) */
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* ===============
   ACCESSIBILITY CONTRAST
=================*/
.testimonial-card p, .testimonial-card strong, .testimonial-card span  {
  color: #453d19 !important;
}

/*******
END OF CSS
*******/
