/* --- CSS RESET & BASE STYLES --- */
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, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, 
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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FCF7E3;
  color: #3E2C1E;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #1C3842;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B0673A;
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin: 16px 0 16px 20px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  color: #2D2622;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
h1 { font-size: 2.5rem; margin-bottom: 12px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.35rem; margin-bottom: 8px; }
h4 { font-size: 1.18rem; }
p, li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
strong { font-weight: 700; }

/* --- VINTAGE RETRO THEME COLORS --- */
:root {
  --primary: #20517A;
  --secondary: #22BABB;
  --accent: #FFFFFF;
  --vintage-navy: #20517A;
  --vintage-teal: #22BABB;
  --vintage-ivory: #FCF7E3;
  --vintage-mustard: #E9B44C;
  --vintage-orange: #B0673A;
  --vintage-brown: #3E2C1E;
  --vintage-cast: #CEAA7B;
  --vintage-shadow: rgba(62,44,30,0.07);
}

/* --- GENERAL CONTAINER & LAYOUT --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  margin-bottom: 60px;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 4px 32px var(--vintage-shadow);
  padding: 40px 24px; /* mobile first, adjust on desktop below */
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* --- FLEXBOX LAYOUTS --- */
.feature-grid, .card-container, .content-grid, .team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #FFF8E5;
  border-radius: 16px;
  padding: 28px 18px;
  box-shadow: 0 2px 12px var(--vintage-shadow);
  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{
  background: #FFF8E5;
  color: #3E2C1E;
  border-radius: 18px;
  border: 2px solid var(--vintage-cast);
  box-shadow: 0 1px 8px var(--vintage-shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px var(--vintage-shadow);
  border-color: var(--vintage-brown);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  background: #FCF7E3;
  border-radius: 12px;
  padding: 22px 16px;
  margin-bottom: 22px;
}
.timeline ul,
.timeline ol {
  padding-left: 20px;
}
.timeline li {
  margin-bottom: 10px;
  font-size: 1rem;
  border-left: 5px solid var(--vintage-mustard);
  padding-left: 12px;
  color: #573A19;
  background: #FFFAED;
  border-radius: 3px;
}
.map-box {
  background: #E9B44C11;
  border: 1px dashed var(--vintage-mustard);
  border-radius: 9px;
  padding: 14px 18px;
  margin-top: 14px;
  color: var(--vintage-brown);
}

/* --- HERO HEADER --- */
.hero {
  background: linear-gradient(120deg, #F9E4BC 60%, #F2B56B 120%);
  border-bottom: 4px solid var(--vintage-brown);
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero h1 {
  color: var(--vintage-navy);
  font-size: 2rem;
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  margin-bottom: 8px;
  text-shadow: 1px 1px 0 #DEB887aa;
  letter-spacing: 2px;
}
.hero p {
  color: #4B321E;
  font-size: 1.15rem;
  max-width: 620px;
  border-left: 4px solid var(--vintage-mustard);
  padding-left: 12px;
  margin-bottom: 20px;
  background: #FFFBE7;
  border-radius: 4px;
}
.hero .btn-primary {
  font-size: 1.14rem;
  margin-top: 12px;
}

/* --- BUTTONS --- */
.btn-primary {
  background: var(--vintage-mustard);
  color: var(--vintage-navy);
  font-family: 'Montserrat', Arial Black, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 28px;
  padding: 14px 32px;
  cursor: pointer;
  box-shadow: 0 2px 6px var(--vintage-shadow);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  font-size: 1.13rem;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--vintage-orange);
  color: #FFF;
  box-shadow: 0 4px 12px var(--vintage-shadow);
  outline: none;
}

/* --- NAVIGATION BAR --- */
header {
  background: #F7E2BD;
  border-bottom: 3px solid var(--vintage-orange);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 8px var(--vintage-shadow);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 20px;
}
header a img {
  height: 46px;
  margin-right: 12px;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 1rem;
  margin-left: 12px;
}
.main-nav a {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  color: #3E2C1E;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--vintage-mustard);
  color: var(--vintage-navy);
  text-decoration: none;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #72531e;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  margin-left: 10px;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 100vw;
  background: #FCF7E3dd;
  backdrop-filter: blur(2px);
  z-index: 99;
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.85,0,.15,1), opacity 0.25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--vintage-orange);
  color: #FFF;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  align-self: flex-end;
  margin: 18px 24px 0 0;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 2px 6px var(--vintage-shadow);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--vintage-brown);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-top: 32px;
  margin-left: 48px;
}
.mobile-nav a {
  color: #3E2C1E;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial Black, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 0;
  transition: color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--vintage-orange);
}

/* --- FOOTER --- */
footer {
  background: #F7E2BD;
  color: #3E2C1E;
  border-top: 3px solid var(--vintage-orange);
  padding: 40px 0 30px 0;
  margin-top: 60px;
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 34px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-menu a {
  color: #72531e;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: .7px;
  transition: color 0.2s;
}
.footer-menu a:hover {
  color: var(--vintage-mustard);
}
.footer-contact {
  line-height: 1.6;
  color: #5E492F;
  margin-bottom: 6px;
}
.footer-brand {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  gap: 10px;
  margin-top: 6px;
}
.footer-brand img {
  height: 30px;
  margin-right: 4px;
}

/* --- CARDS & FEATURE BLOCKS --- */
.feature-grid > div {
  background: #FFF8E5;
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 2px 10px var(--vintage-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 210px;
  flex: 1 1 260px;
  min-height: 265px;
  transition: box-shadow 0.22s, transform 0.22s;
  margin-bottom: 20px;
  border: 2px solid var(--vintage-cast);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 18px var(--vintage-shadow);
  border-color: var(--vintage-mustard);
  transform: translateY(-4px) scale(1.04);
}
.feature-grid img {
  height: 52px;
  margin-bottom: 12px;
  filter: sepia(.45) hue-rotate(-17deg) brightness(1.10);
}
.feature-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 7px;
  color: var(--vintage-orange);
  text-align: center;
  font-family: 'Montserrat', Arial Black, Arial, sans-serif;
}
.feature-grid p {
  font-size: 1rem;
  color: #3E2C1E;
  text-align: center;
}

/* --- TYPOGRAPHY HIERARCHY --- */
.text-section h3 {
  margin-top: 12px;
  font-size: 1.10rem;
  color: var(--vintage-navy);
  font-family: 'Montserrat', Arial Black, Arial, sans-serif;
  letter-spacing: 1px;
}
.text-section ul {
  margin-left: 22px;
}
.text-section li {
  margin-bottom: 6px;
  list-style-type: disc;
  font-size: 1rem;
  color: #3E2C1E;
}
.text-section ol {
  list-style-type: decimal;
}
.text-section ol li {
  background: none;
  border: none;
  padding: 0 0 0 7px;
}

/* --- LIST STYLES --- */
ul li {
  margin-bottom: 8px;
}
/* Icon in Kontaktseite */
.text-section ul li img {
  width: 21px;
  vertical-align: middle;
  margin-right: 8px;
  margin-top: -3px;
}

/* --- ANIMATIONS AND MICROINTERACTIONS --- */
.btn-primary, .mobile-menu-close {
  transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.15s;
}
.feature-grid > div, .testimonial-card {
  transition: box-shadow 0.22s, border 0.22s, transform 0.21s;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #E9B44C;
  color: #20413F;
  z-index: 200;
  box-shadow: 0 -2px 16px var(--vintage-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 24px 18px;
  justify-content: center;
  font-family: 'Montserrat', Arial Black, Arial, sans-serif;
  font-size: 1.07rem;
  animation: slideUpCookie .6s cubic-bezier(.87,0,.13,1);
}
@keyframes slideUpCookie {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  margin-left: 8px;
  margin-right: 8px;
  background: #20517A;
  color: #FFF;
  border: none;
  border-radius: 24px;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial Black, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 4px var(--vintage-shadow);
  transition: background 0.16s, color 0.16s;
}
.cookie-banner .btn-accept {
  background: #22BABB;
  color: #2B333B;
}
.cookie-banner .btn-accept:hover { background: #14aea9; }
.cookie-banner .btn-reject {
  background: #B0673A;
  color: #fffbe7;
}
.cookie-banner .btn-reject:hover { background: #573A19; }
.cookie-banner .btn-settings {
  background: #FCF7E3;
  color: #3E2C1E;
  border: 1.7px solid #22BABB;
}
.cookie-banner .btn-settings:hover { background: #fffbe7; }

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 210;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(31,23,12,0.56);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.45s cubic-bezier(.7,0,.15,1);
}
.cookie-modal.open {
  display: flex;
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #FEF9EA;
  color: #3E2C1E;
  border-radius: 23px;
  box-shadow: 0 8px 46px var(--vintage-shadow);
  padding: 36px 32px 32px 32px;
  min-width: 320px;
  max-width: 95vw;
  font-family: 'Montserrat', Arial Black, Arial, sans-serif;
}
.cookie-modal-content h2 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}
.cookie-category {
  font-size: 1rem;
  margin: 7px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: #D3C5AA;
  position: relative;
  transition: background .21s;
  margin-left: 8px;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 1px; top: 1px;
  border-radius: 50%;
  background: #FFF;
  box-shadow: 0 1px 3px var(--vintage-shadow);
  transition: left .19s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 17px;
  background: #22BABB;
}
.cookie-modal-buttons {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-buttons button {
  font-size: 1rem;
  padding: 9px 24px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1130px) {
  .container {
    max-width: 100%;
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .feature-grid > div, .card {
    min-width: 170px;
    flex: 1 1 180px;
  }
  .content-wrapper {
    padding: 32px 8px;
  }
}
@media (max-width: 768px) {
  .content-wrapper,.section {
    padding: 24px 5px;
  }
  .feature-grid, .card-container, .content-grid, .team-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .footer-brand {
    justify-content: flex-start;
    font-size: 1rem;
  }
  .footer-menu {
    gap: 8px;
  }
  .container {
    flex-direction: column;
    gap: 18px;
  }
  .hero {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 18px 12px;
    gap: 12px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 5px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.42rem; }
  h2 { font-size: 1.11rem; }
  h3 { font-size: 1.08rem; }
  .btn-primary, .cookie-banner button {
    font-size: .97rem;
    padding: 10px 18px;
  }
  .footer-brand img {
    height: 22px;
  }
  .footer-brand, .footer-menu {
    font-size: .91rem;
  }
}

/* --- MISC STYLES & MICRODETAILS --- */
::-webkit-scrollbar {
  width: 8px;
  background: #E9B44C11;
}
::-webkit-scrollbar-thumb {
  background: #E9B44C;
  border-radius: 8px;
}

section:last-child, .content-wrapper:last-child {
  margin-bottom: 0;
}

/* -- accessibility for focus -- */
a:focus, button:focus {
  outline: 2.5px dashed #B0673A;
  outline-offset: 2px;
}

/* --- PRINT STYLES --- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  .container, .content-wrapper {
    box-shadow: none !important;
    background: #FFF;
  }
}
