/* =======================================
   CSS RESET & BASE 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 16px;
  background: #F6F7F9;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F6F7F9;
  color: #2F3B46;
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
}

/* =======================================
   VINTAGE RETRO COLOR PALETTE
   ======================================= */
:root {
  --primary: #2F3B46;
  --secondary: #D8A84F;
  --accent: #F6F7F9;
  --retro-green: #859F94;
  --retro-red: #BF665E;
  --retro-blue: #52819B;
  --retro-orange: #E1A87F;
  --retro-beige: #F1E0C5;
  --card-bg: #FFF6EB;
  --shadow-color: rgba(48, 58, 70, 0.08);
}

/* =======================================
   TYPOGRAPHY
   ======================================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--primary);
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p, ul, ol, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.7;
}
strong { font-weight: 600; }

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}
ul li, ol li {
  margin-bottom: 12px;
}
a {
  color: var(--retro-blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--retro-red);
  text-decoration: underline;
}
hr {
  border: none;
  border-top: 1px dashed var(--secondary);
  margin: 32px 0;
}

/* =======================================
   VINTAGE/RETRO VISUAL ELEMENTS
   ======================================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 20px;
  box-shadow: 0 4px 24px var(--shadow-color);
  position: relative;
  z-index: 1;
}
section:nth-child(even) {
  background: var(--card-bg);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding-top: 0;
}

/* =======================================
   FLEXBOX PATTERNS & CARDS
   ======================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  flex: 1 1 260px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 2px solid var(--secondary);
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 20px rgba(191,102,94,0.12);
  transform: translateY(-4px) scale(1.02);
}

.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: 20px;
  padding: 20px;
  background: var(--card-bg);
  border: 2px solid var(--retro-blue);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px var(--shadow-color);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--primary);
  transition: border-color 0.2s;
}
.testimonial-card span {
  font-style: normal;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-top: 4px;
  color: var(--retro-blue);
}
.testimonial-card:hover {
  border-color: var(--secondary);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--shadow-color);
  padding: 24px 20px;
  min-width: 240px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 2px solid var(--retro-green);
  transition: border-color 0.2s, transform 0.18s;
}
.feature-grid > div img {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  filter: none;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  border-color: var(--retro-orange);
  transform: translateY(-3px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =======================================
   HEADER, NAVIGATION & CTAs
   ======================================= */
header {
  background: var(--primary);
  color: #fff;
  width: 100%;
  padding: 0;
  box-shadow: 0 6px 24px rgba(47,59,70,0.10);
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 18px;
  height: 76px;
  gap: 20px;
  position: relative;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.07em;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
header nav a:not(:first-child):hover, header nav a:not(:first-child):focus {
  background: var(--secondary);
  color: var(--primary);
}
header nav a.cta {
  background: var(--secondary);
  color: var(--primary);
  padding: 12px 20px;
  border-radius: 20px 6px 20px 6px;
  box-shadow: 0 4px 12px rgba(216,168,79,0.10);
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-left: 16px;
  border: 2px solid var(--secondary);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--retro-red);
  box-shadow: 0 6px 20px rgba(216,168,79,0.18);
}
header nav img {
  height: 38px;
  width: auto;
  margin-right: 16px;
  display: block;
}

/* ========= MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 19px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.1rem;
  padding: 8px 14px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow-color);
  z-index: 111;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-red);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--primary);
  z-index: 200;
  transform: translateX(-100vw);
  display: flex;
  flex-direction: column;
  transition: transform 0.33s cubic-bezier(.7,1.3,.6,1);
  opacity: 0.995;
  box-shadow: 0 0 0 4000px rgba(47,59,70,0.45);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.1rem;
  align-self: flex-end;
  padding: 18px 30px 4px 0;
  border: none;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 30px 36px;
  margin-top: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 16px 0;
  text-decoration: none;
  border-bottom: 1px solid #46546533;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}

/* Hide mobile nav on desktop, show toggle on mobile */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* ---------- BREADCRUMBS (if present) ---------- */
.breadcrumbs {
  font-size: 0.92rem;
  color: var(--retro-blue);
  margin-bottom: 20px;
  font-family: 'Open Sans', sans-serif;
}
.breadcrumbs a {
  color: var(--retro-green);
}
.breadcrumbs a:hover {
  color: var(--secondary);
}

/* =======================================
   BUTTONS, LINKS & MICROINTERACTIONS
   ======================================= */
.cta, .btn {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 12px 26px;
  border-radius: 20px 6px 20px 6px;
  border: 2px solid var(--secondary);
  text-decoration: none;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, border-color 0.17s, transform 0.13s;
  box-shadow: 0 2px 10px var(--shadow-color);
  position: relative;
}
.cta:hover, .cta:focus, .btn:hover, .btn:focus {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--retro-red);
  box-shadow: 0 6px 22px rgba(216,168,79,0.16);
  transform: translateY(-2px) scale(1.03);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: background 0.13s, color 0.13s;
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--secondary);
}

/* =======================================
   LISTS, DETAILS, OTHER ELEMENTS
   ======================================= */
details, summary {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
}
summary {
  cursor: pointer;
  font-weight: 700;
}

/* =======================================
   FOOTER & CONTACT INFO
   ======================================= */
footer {
  background: var(--primary);
  color: #fff;
  width: 100%;
  padding: 42px 0 0 0;
  box-shadow: 0 -2px 24px rgba(47,59,70,0.07);
}
footer > div {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 0 20px 34px 20px;
}
footer img {
  width: 52px;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
footer nav a {
  color: var(--secondary);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.07em;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer div > div p {
  color: #EEE;
  font-size: 0.99rem;
  margin: 2px 0;
}

/* =======================================
   RESPONSIVE DESIGN & FLEX ADJUSTMENTS
   ======================================= */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .feature-grid { gap: 20px; }
}
@media (max-width: 900px) {
  .feature-grid { flex-direction: column; gap: 20px; }
  .feature-grid > div { min-width: 0; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 26px 7vw; margin-bottom: 40px; }
  .container { gap: 8px; }
  .content-wrapper { gap: 16px; }
  .feature-grid { flex-direction: column; gap: 16px; }
  .card-container { gap: 16px; }
  .testimonial-card { padding: 16px; gap: 12px; }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  footer > div { padding-left: 7vw; padding-right: 7vw; }
}
@media (max-width: 500px) {
  html { font-size: 14px; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.11rem; }
  section { padding: 16px 3vw; }
  .container { padding-left: 1vw; padding-right: 1vw; }
  .feature-grid > div, .card {
    padding: 12px 8px;
  }
  .testimonial-card {
    padding: 10px;
    font-size: 0.97rem;
  }
}

/* =======================================
   COOKIE CONSENT BANNER & MODAL
   ======================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--retro-beige);
  box-shadow: 0 -8px 20px rgba(47,59,70,0.12);
  z-index: 3333;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 28px 12vw 22px 12vw;
  border-top: 4px solid var(--secondary);
  font-size: 1rem;
  animation: fadeInUp 0.4s cubic-bezier(.67,1.41,.7,1);
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 0 0 0;
}
.cookie-banner .cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 16px 6px 16px 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 20px;
  margin: 0 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
  cursor: pointer;
  transition: background 0.14s, color 0.13s, box-shadow 0.16s;
  outline: none;
}
.cookie-banner .cookie-btn:hover,.cookie-banner .cookie-btn:focus {
  background: var(--retro-blue);
  color: #fff;
}
.cookie-banner .cookie-btn-outline {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  border: 2px solid var(--primary);
}
.cookie-banner .cookie-btn-outline:hover, .cookie-banner .cookie-btn-outline:focus {
  background: var(--retro-red);
  color: #fff;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px);} to { opacity: 1; transform: translateY(0);} }

/* --- Cookie preferences modal --- */
.cookie-modal {
  position: fixed;
  z-index: 4444;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(47,59,70,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: modalFadeIn 0.3s cubic-bezier(.67,1.41,.7,1);
}
.cookie-modal-content {
  background: var(--retro-beige);
  padding: 40px 34px 30px 34px;
  border-radius: 16px;
  max-width: 400px;
  min-width: 270px;
  box-shadow: 0 10px 40px rgba(47,59,70,0.18);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-content h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  font-size: 1.03rem;
  color: var(--primary);
  gap: 10px;
  margin-bottom: 10px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-modal-content input[type="checkbox"],
.cookie-modal-content input[type="radio"] {
  width: 20px; height: 20px;
  accent-color: var(--secondary);
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 10px 0;
  font-size: .99rem;
}
.cookie-modal-content .cookie-btn {
  width: 100%;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  background: transparent;
  color: var(--primary);
  border: none;
  font-size: 2rem;
  top: 16px;
  right: 24px;
  cursor: pointer;
  padding: 0;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--retro-red);
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 736px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    font-size: 1rem;
    padding: 20px 6vw 14px 6vw;
    text-align: left;
  }
  .cookie-modal-content {
    max-width: 98vw;
    min-width: 0;
    padding: 24px 4vw 22px 4vw;
  }
}

/* =======================================
   DECORATIVE & RETRO-NOSTALGIC ELEMENTS
   ======================================= */
section:before {
  content: "";
  display: block;
  position: absolute;
  left: -32px;
  top: -22px;
  width: 70px;
  height: 68px;
  border-radius: 50%;
  background: var(--retro-orange);
  opacity: 0.14;
  z-index: 0;
}
section:after {
  content: "";
  display: block;
  position: absolute;
  right: -48px;
  bottom: -24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--retro-green);
  opacity: 0.13;
  z-index: 0;
}
section:nth-child(even):before {
  background: var(--retro-blue);
}
section:nth-child(odd):after {
  background: var(--retro-red);
}
@media (max-width: 700px) {
  section:before, section:after {
    left: -7px; right: -7px;
    top: -8px; bottom: -8px;
    width: 28px;
    height: 28px;
  }
}

/* Subtle border pattern */
section, .card, .feature-grid > div, .testimonial-card {
  border-style: solid;
  border-width: 2px;
  background-clip: padding-box;
}

/* Thin horizontal retro line */
.retro-line {
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--retro-blue), var(--retro-blue) 8px, var(--retro-orange) 8px, var(--retro-orange) 12px);
  border-radius: 2px;
  margin: 16px 0 20px 0;
}

/* RETRO PATTERNED BG ON HEADER/FOOTER */
header, footer {
  position: relative;
  overflow-x: hidden;
}
header:before, footer:after {
  content: " ";
  display: block;
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--secondary), var(--secondary) 32px,
    var(--primary) 32px, var(--primary) 48px);
  opacity: 0.19;
  z-index: 2;
}
header:before { top: 0; }
footer:after { bottom: 0; }

/* =======================================
   IMAGES, ICONS & RESPONSIVE IMAGES
   ======================================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Icon style for contact */
.content-wrapper img[alt^="Adresse"],
.content-wrapper img[alt^="Telefon"],
.content-wrapper img[alt^="E-Mail"] {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

/* =======================================
   ACCESSIBILITY & FOCUS STATES
   ======================================= */
:focus {
  outline: 2px dashed var(--secondary);
  outline-offset: 2px;
}

/* Visually hidden utility */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* =======================================
   PRINT STYLES
   ======================================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .container, .content-wrapper, .text-section, .card, .feature-grid > div {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
