/* ====== CSS RESET & NORMALIZE ====== */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F3EFE3;
  color: #2C2A27;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  font-weight: 700;
  color: #222140;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.375rem;
  margin-bottom: 20px;
  text-shadow: 1px 2px 0px #e6d8b8;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  text-shadow: 1px 1px 0px #e6d8b8;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  color: #274472;
  text-shadow: 1px 1px 0px #F3EFE3;
}
p {
  margin-bottom: 14px;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
a {
  text-decoration: none;
  color: #274472;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #b06d3d;
}

/* ====== VINTAGE RETRO BRAND PALETTE ====== */
:root {
  --primary: #274472;
  --secondary: #99B2DD;
  --accent: #F3EFE3;
  --heading: #222140;
  --subtle: #E6D8B8;
  --brown: #b06d3d;
  --shadow: rgba(76,56,5,0.12);
  --white: #fff;
  --black: #222;
  --nav-bg: #efe5ce;
  --footer-bg: #ede4cc;
}

/* ====== STRUCTURAL LAYOUTS ====== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--shadow);
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* FLEXBOX CARDS, GRIDS, ETC */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--white);
  border: 1.5px solid var(--subtle);
  border-radius: 15px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 24px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-3px) scale(1.011);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: 14px;
  border: 2px solid var(--subtle);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px var(--shadow);
  min-width: 0;
  max-width: 740px;
  box-sizing: border-box;
  font-size: 1.05em;
}
.testimonial-card p {
  color: var(--primary);
  font-style: italic;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.testimonial-name {
  color: #604c2c;
  font-weight: 700;
  letter-spacing: 0.015em;
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ====== NAVIGATION STYLES ====== */
header {
  background: var(--nav-bg);
  border-bottom: 3px solid var(--subtle);
  padding: 0 0 8px 0;
  position: sticky;
  top: 0;
  z-index: 120;
}
.logo {
  display: flex;
  align-items: center;
  height: 60px;
  margin-right: 32px;
}
header .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--primary);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--subtle);
  color: var(--brown);
}
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 7px;
  padding: 10px 22px;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  margin-left: 10px;
  box-shadow: 0 1px 5px var(--shadow);
  cursor: pointer;
  text-transform: none;
  transition: background 0.23s, color 0.23s, box-shadow 0.18s, transform 0.18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 2px 10px var(--shadow);
  transform: translateY(-2px) scale(1.02);
}
.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--secondary);
  border-radius: 7px;
  padding: 7px 16px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-left: 10px;
  transition: background 0.22s, color 0.23s, border 0.22s, transform 0.18s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px) scale(1.015);
}

/* HAMBURGER AND MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.1rem;
  border: none;
  border-radius: 8px;
  padding: 4px 14px;
  margin-left: 16px;
  cursor: pointer;
  z-index: 901;
  transition: background 0.22s, color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 84vw;
  max-width: 340px;
  background: var(--accent);
  box-shadow: -8px 0 32px rgba(39, 68, 114, 0.13);
  transform: translateX(110%);
  transition: transform 0.38s cubic-bezier(.77,0,.175,1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 34px 26px 24px 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  border: none;
  color: var(--primary);
  font-size: 2rem;
  align-self: flex-end;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--primary);
  padding: 12px 4px;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--subtle);
  color: var(--brown);
}

/* Main nav & mobile nav switch */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ====== HERO SECTION ====== */
.hero {
  background: repeating-linear-gradient(45deg, #efe5ce 0 18px, #dec99a 18px 36px);
  border-radius: 0 0 34px 34px;
  margin-bottom: 40px;
  box-shadow: 0 5px 36px var(--shadow);
  border-bottom: 4px double #b06d3d;
  padding: 44px 0 52px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  font-size: 2.6rem;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-shadow: 2px 3px 0px #dec99a;
}
.hero .subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #614f33;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

/* ====== FEATURES LIST ====== */
.features-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}
.features-list li, .service-list li {
  background: var(--footer-bg);
  border-radius: 13px;
  box-shadow: 0 1px 8px var(--shadow);
  padding: 22px 18px;
  flex: 1 1 250px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 1.5px solid var(--subtle);
  transition: transform 0.22s, box-shadow 0.22s;
}
.features-list li img, .service-list li img {
  height: 46px; width: 46px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #fff1d1;
  border: 1px solid #e6d8b8;
  box-shadow: 0 1px 5px rgba(210,180,100,0.08);
}
.features-list li:hover, .service-list li:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px var(--shadow);
  border-color: var(--brown);
}
.features-list li h3, .service-list li h3 {
  color: var(--primary);
  margin-bottom: 7px;
  font-size: 1.13rem;
}
.features-list li p, .service-list li p {
  color: #56492A;
  font-size: 0.99rem;
}

/* ====== FAQ ITEMS ====== */
.faq-item {
  background: var(--footer-bg);
  border-radius: 13px;
  padding: 20px 18px;
  margin-bottom: 22px;
  box-shadow: 0 0.5px 8px rgba(212,180,120,0.08);
  border-left: 5px solid var(--primary);
  border-right: 3px dashed #b06d3d;
  font-size: 1rem;
  transition: box-shadow 0.18s;
}
.faq-item h2, .faq-item h3 {
  color: var(--brown);
  margin-bottom: 8px;
}

.faq-item:hover {
  box-shadow: 0 4px 18px var(--shadow);
}

/* ====== CTA BOXES & CONTACT HINTS ====== */
.contact-hint {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 16px 14px;
  margin: 16px 0 8px 0;
  border-radius: 8px;
  font-size: 1rem;
  border-left: 4px solid var(--brown);
  box-shadow: 0 2px 10px rgba(39,68,114,0.09);
}

/* ====== FOOTER STYLES ====== */
footer {
  padding: 30px 0 22px 0;
  background: var(--footer-bg);
  border-top: 3.5px solid var(--subtle);
  font-size: 1rem;
  margin-top: 40px;
  box-shadow: 0 -2px 18px var(--shadow);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--primary);
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  transition: background 0.18s, color 0.15s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--subtle);
  color: var(--brown);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: #75653b;
  font-size: 0.98rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.005em;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  margin-right: 3px;
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
  color: var(--primary);
  border-top: 3px solid var(--subtle);
  box-shadow: 0 -2px 24px var(--shadow);
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  z-index: 99999;
  animation: fadeInUp 0.7s cubic-bezier(.7,0,.23,1);
}
.cookie-banner.hide {
  display: none;
}
.cookie-banner-text {
  font-size: 1.03rem;
  color: var(--primary);
  margin-bottom: 4px;
  text-align: center;
}
.cookie-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: var(--secondary);
  color: var(--primary);
  transition: background 0.21s, color 0.2s, transform 0.18s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.015);
}
.cookie-settings-btn {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--secondary);
}
.cookie-settings-btn:hover {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary);
}

/* COOKIE MODAL */
.cookie-modal-wrap {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(39,68,114,0.22);
  z-index: 100021;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-wrap.active {
  display: flex;
  animation: fadeIn .3s cubic-bezier(.77,0,.175,1);
}
.cookie-modal {
  background: var(--accent);
  border-radius: 14px;
  padding: 34px 24px 24px 24px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 4px 32px rgba(39,68,114,0.21);
  border: 2px solid var(--subtle);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  animation: popInScale .45s cubic-bezier(.7,0,.23,1);
}

.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.28rem;
  margin-bottom: 6px;
}
.cookie-cat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-cat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-cat label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  color: var(--primary);
}
.cookie-cat input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary);
}
.cookie-cat.essential label::after {
  content: '(immer aktiviert)';
  color: #988b75;
  font-size: 0.93em;
  margin-left: 0.7em;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-modal .cookie-btn {
  padding: 8px 20px;
  font-size: 1.02rem;
}
.cookie-modal-close {
  background: transparent;
  color: var(--brown);
  border: none;
  font-size: 2.3rem;
  position: absolute;
  top: 10px; right: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes popInScale {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* ====== TYPOGRAPHY ====== */
body, p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #544942;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
}

/* ====== RETRO DETAILS, COLORS & ELEMENTS ====== */
/* Use repeating background stripes where retro */
.section {
  background-image: repeating-linear-gradient(135deg,#fff8e6 0 12px,#efe5ce 12px 24px);
}
.features-list li, .service-list li {
  background-image: repeating-linear-gradient(90deg, #efe5ce 0 12px, #f3efe3 12px 24px);
}

/* Retro dashes & accent lines on headings */
h2:before {
  content: '';
  display: inline-block;
  width: 38px;
  height: 3px;
  background: var(--brown);
  border-radius: 2px;
  margin-right: 13px;
  margin-bottom: 7px;
}
h2 {
  position: relative;
}
h2:after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  margin-left: 10px;
  margin-bottom: 8px;
}

/* ====== VISUAL HIERARCHY & SPACING ====== */
section {
  margin-bottom: 60px;
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}
.content-wrapper > * + * {
  margin-top: 14px;
}
.text-section > * + * {
  margin-top: 13px;
}

/* --- Retro micro-decorative lines on testimonials, cards --- */
.testimonial-card:before {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: var(--secondary);
  margin-bottom: 14px;
  border-radius: 2px;
  opacity: 0.80;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding: 0 9px;
  }
  .main-nav {
    display: none;
  }
  .footer-contact {
    gap: 9px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 97%;
  }
  .hero {
    padding: 36px 0 30px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .section {
    padding: 24px 4px;
    border-radius: 10px;
  }
  .content-wrapper {
    gap: 17px;
  }
  .card-container, .features-list, .service-list, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    font-size: 1em;
  }
  .footer-nav {
    gap: 12px;
    flex-wrap: wrap;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 1.36rem;
  }
  h2 {
    font-size: 1.10rem;
  }
  .btn-primary,
  .btn-secondary {
    font-size: 1em;
    padding: 8px 14px;
  }
  .section {
    padding-left: 2px; padding-right: 2px;
  }
  .card {
    padding: 12px 4px;
  }
}

/* ====== ACCESSIBILITY ====== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 0.7px;
}

/* ====== UTILITY CLASSES ====== */
.hide { display: none !important;}
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

/* ====== RETRO EFFECTS & MICROINTERACTIONS ====== */
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
  box-shadow: 0 0 0 rgba(39,68,114,0);
}
.testimonial-card {
  transition: box-shadow 0.19s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 28px var(--shadow);
  transform: scale(1.015);
}
.features-list li, .service-list li {
  animation: floatIn 0.8s cubic-bezier(.66,0,.32,1);
}
@keyframes floatIn {
  0% { opacity:0;transform:translateY(39px) scale(0.93); }
  100%{opacity:1;transform:translateY(0) scale(1); }
}

/* ====== PRINT STYLES FOR RETRO LOOK (OPTIONAL) ====== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-wrap { display: none !important; }
  .section, body, .container { background: #fff !important; color: #222 !important; }
  a { color: #222 !important; text-decoration: underline; }
}
