/* ---------------- CSS RESET & 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, main, 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #faf6ed;
  -webkit-font-smoothing: antialiased;
  color: #203245;
}
*, *::before, *::after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
table {
  border-collapse: collapse;
}
input, button, textarea, select {
  font: inherit;
  outline: none;
}

/* ------------------ CUSTOM FONT IMPORTS ----------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Vintage Retro Brand Palette */
  --primary: #183959;
  --secondary: #A2B49D;
  --accent: #F4EFE6;
  --head-dark: #222e3a;
  --vintage-yellow: #edd260;
  --vintage-teal: #2f7778;
  --vintage-rust: #c76d3a;
  --vintage-cream: #fff8ed;
  --vintage-brown: #6b4e2f;
  --retro-pattern-bg: repeating-linear-gradient(135deg, #e1dbc7 0 12px, #f6f2e9 12px 24px);

  --border-radius: 17px;
  --shadow-md: 0 2px 14px 0 rgba(60,34,11,0.08), 0 1px 3px rgba(30,23,13,.08);
  --shadow-lg: 0 8px 24px rgba(30,23,13,0.09);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: var(--accent);
  color: #333325;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* --------- HEADERS AND TEXT TYPOGRAPHY (vintage retro flavor) ------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.13;
  text-shadow: 2px 2px 0 rgba(234,200,117,0.09);
}
h1 {
  font-size: 2.6rem;
  color: var(--vintage-rust);
  margin-top: 24px;
}
h2 {
  font-size: 2rem;
  color: var(--vintage-teal);
  margin-top: 12px;
}
h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 7px;
}
strong {
  font-weight: 700;
}
p, ul li, ol li, dl dd {
  font-size: 1rem;
  color: #433c2e;
  line-height: 1.7;
  margin-bottom: 12px;
  font-family: 'Roboto', Arial, sans-serif;
}
ul, ol {
  margin-left: 20px;
  margin-bottom: 12px;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 1rem;
}
ul li::before {
  content: '\2022';
  color: var(--secondary);
  position: absolute;
  left: 0;
  font-size: 1.1em;
  line-height: 1.4;
  font-weight: bold;
}
h1, h2, h3, h4, h5 {
  margin-top: 0;
}
.text-link {
  color: var(--vintage-rust);
  font-weight: 600;
  text-decoration: underline dotted;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 3px 0;
  transition: color .21s;
}
.text-link:hover, .text-link:focus {
  color: var(--vintage-teal);
  text-decoration: underline solid;
}

hr {
  border: 0;
  border-top: 1.5px dashed var(--secondary);
  margin: 28px 0;
}

/* ------------------- NAVIGATION & LOGO ---------------------- */
header {
  background: var(--retro-pattern-bg);
  border-bottom: 5px solid var(--vintage-yellow);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.logo img {
  height: 56px;
}
nav.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--vintage-brown);
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  font-weight: 700;
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border .18s;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
  color: var(--vintage-rust);
  border-bottom: 2px solid var(--vintage-yellow);
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--vintage-rust);
  color: #fff;
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: 1px;
  border-radius: 24px;
  border: none;
  padding: 13px 28px;
  box-shadow: var(--shadow-md);
  margin-left: 16px;
  cursor: pointer;
  transition: background .22s, box-shadow .18s, transform .13s;
  outline: none;
  position: relative;
  z-index: 2;
}
.cta-btn:hover, .cta-btn:active, .cta-btn:focus {
  background: var(--vintage-teal);
  color: #fff;
  transform: translateY(-1.5px) scale(1.026);
  box-shadow: var(--shadow-lg);
}

/* ------------------ FLEXBOX LAYOUTS & SPACING ---------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff6ea;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: relative;
  padding: 28px 22px;
  min-width: 240px;
  flex: 1 1 310px;
  transition: transform .17s, box-shadow .19s;
}
.card:hover {
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 12px 30px rgba(30,23,13,0.13);
}
.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;
}

/* For testimonials and feature items */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
  border-radius: 16px;
  margin-bottom: 28px;
  border-left: 7px solid var(--vintage-teal);
  position: relative;
}
.testimonial-card .stars {
  color: #ebae4a;
  font-size: 1.2em;
  letter-spacing: 1.5px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 0;
}
.star-rating-overview {
  background: var(--accent);
  border: 2px dashed var(--vintage-brown);
  padding: 16px 22px;
  border-radius: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
  margin-top: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff6ea;
  border-radius: 13px;
  box-shadow: var(--shadow-md);
  padding: 18px 18px 17px 25px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 18px;
  margin-bottom: 12px;
}
.feature-grid li {
  flex: 1 1 249px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 24px 18px 17px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 210px;
  position: relative;
  transition: box-shadow .14s, transform .14s;
}
.feature-grid li img {
  height: 40px;
  width: 40px;
  margin-bottom: 3px;
}
.feature-grid li:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px) scale(1.01);
  background: #fffef8;
}
.content-wrapper {
  width: 100%;
}
.section:last-child {
  margin-bottom: 35px;
}

/* ------------------- HERO / PROMINENT SECTIONS ------------- */
.hero {
  background-color: var(--vintage-yellow);
  background-image: repeating-linear-gradient(45deg, #f7eab6, #f7eab6 9px, #edd260 9px, #edd260 18px);
  padding: 54px 0 54px 0;
  border-bottom-left-radius: 44px;
  border-bottom-right-radius: 44px;
  box-shadow: 0 9px 30px rgba(190,168,88,0.11);
  margin-bottom: 54px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--vintage-brown);
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 2px;
  margin-bottom: 11px;
}
.hero p {
  color: var(--primary);
  font-size: 1.18rem;
  margin-bottom: 19px;
}

/* ---------- Services card styles ---------- */
.service-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  margin-bottom: 38px;
}
.service-categories li {
  flex: 1 1 295px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 23px 26px 20px 22px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .16s, transform .16s;
}
.service-categories li img {
  height: 44px;
  width: 44px;
  margin-bottom: 7px;
}
.service-categories li:hover {
  background: #fffef6;
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* ----------- Process/Workflow Section ---------- */
.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
}
.workflow-steps li {
  background: var(--vintage-cream);
  border-left: 7px solid var(--vintage-teal);
  padding: 20px 28px;
  border-radius: 10px;
  font-size: 1.038rem;
  box-shadow: 0 2px 7px rgba(46,53,63,0.03);
  margin-bottom: 7px;
  color: #303234;
}

/* ------------ Footer Retro -------------- */
footer {
  background: var(--vintage-brown);
  color: #fff8e0;
  padding: 50px 0 20px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: 96px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img {
  height: 44px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #ffe1b1;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.05rem;
  padding: 2px 0;
  border-bottom: 2px dashed transparent;
  transition: color .16s, border .16s;
}
.footer-nav a:hover {
  color: var(--vintage-yellow);
  border-bottom: 2px dashed var(--vintage-yellow);
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  color: #fffce1;
  font-size: 1rem;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  filter: brightness(87%) sepia(41%) hue-rotate(12deg);
}

/* ---------- Kontakt-Informationen DL ----------- */
.contact-information {
  margin-bottom: 20px;
}
.contact-information dt {
  font-weight: 700;
  color: var(--vintage-brown);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
}
.contact-information dd {
  color: #233354;
  margin-left: 22px;
  margin-bottom: 5px;
}
.contact-information a {
  color: var(--vintage-brown);
  text-decoration: underline;
  font-size: 1rem;
}

/* --------- SPECIALS: Certifications --------- */
.certifications {
  margin-top: 14px;
  color: var(--vintage-teal);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.07em;
  background: #f7fcf9;
  border-radius: 11px;
  padding: 7px 19px;
  display: inline-block;
  border: 2px dashed var(--vintage-teal);
}

/* --------- ADDRESS MAP SECTION ------ */
.address-map {
  background: var(--accent);
  border-left: 7px solid var(--vintage-rust);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

/* ------------------- MOBILE BURGER MENU ----------------- */
.mobile-menu-toggle {
  background: var(--vintage-brown);
  color: #fff9e4;
  font-size: 2.1rem;
  border: none;
  outline: none;
  padding: 7px 15px;
  border-radius: 21px;
  display: none;
  cursor: pointer;
  transition: background .14s, transform .13s;
  z-index: 2001;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--vintage-rust);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  height: 100vh;
  max-width: 360px;
  background: #f6e6c0;
  box-shadow: -2px 0 25px rgba(30, 23, 13, 0.13);
  z-index: 2022;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.67,.03,.29,1.19);
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 24px 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--vintage-brown);
  color: #fff9e4;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 2.2rem;
  align-self: flex-end;
  margin-right: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background .15s;
  z-index: 2023;
}
.mobile-menu-close:hover {
  background: var(--vintage-rust);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 0 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  padding: 10px 3px;
  letter-spacing: 1.1px;
  color: var(--vintage-brown);
  border-bottom: 2px dotted transparent;
  transition: color .16s, border .16s;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--vintage-teal);
  border-bottom: 2px dotted var(--vintage-teal);
  background: #fff6ea;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 15px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 7px;
  }
  .footer-contact p {
    font-size: 0.98rem;
  }
}
@media (max-width: 880px) {
  .container {
    max-width: 99vw;
    padding: 0 9px;
  }
  .hero {
    padding: 44px 0;
  }
  .section {
    padding: 30px 8px;
  }
}
@media (max-width: 800px) {
  .footer-nav {
    gap: 10px;
  }
  .footer-logo img {
    height: 34px;
  }
}
@media (max-width: 768px) {
  header .container, .footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  nav.main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    margin-top: 12px;
  }
  .mobile-menu-toggle {
    display: inline-block;
    position: absolute;
    right: 20px;
    top: 29px;
  }
  .service-categories, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    width: 98%;
    box-sizing: border-box;
  }
  .text-image-section, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .about-preview .content-wrapper > ul, .about .content-wrapper > ul {
    margin-left: 0;
  }
  .footer-logo img {
    margin-bottom: 0;
  }
  .footer-contact p {
    font-size: 0.95rem;
  }
}
@media (max-width: 540px) {
  html, body {
    font-size: 15px;
  }
  .container {
    padding: 0 3px;
  }
  .footer-logo img {
    height: 29px;
  }
  .section, .hero {
    border-radius: 13px;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 1.3rem; }
  .section { padding: 18px 2px; }
  .feature-grid li, .card { padding: 13px 7px 13px 11px; }
}

/* --------------- COOKIE CONSENT BANNER ------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffaef;
  color: #463609;
  padding: 27px 12px 21px 19px;
  box-shadow: 0 -2px 20px 0 rgba(110,82,42,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5020;
  font-size: 0.99rem;
  border-top: 3px solid var(--vintage-yellow);
  animation: bannerFadeIn .68s;
}
@keyframes bannerFadeIn {
  from { opacity: 0; transform: translateY(33px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 13px;
  align-items: center;
}
.cookie-banner button {
  border: none;
  border-radius: 17px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 23px;
  margin: 0 3px;
  font-weight: 700;
  cursor: pointer;
  transition: background .17s, color .15s, box-shadow .14s;
  box-shadow: var(--shadow-md);
}
.cookie-banner .accept-cookie {
  background: var(--vintage-teal);
  color: #fff;
}
.cookie-banner .accept-cookie:hover {
  background: var(--vintage-rust);
}
.cookie-banner .reject-cookie {
  background: #fff;
  color: var(--vintage-brown);
  border: 2px solid var(--vintage-rust);
}
.cookie-banner .reject-cookie:hover {
  background: var(--vintage-yellow);
  color: #534026;
}
.cookie-banner .settings-cookie {
  background: var(--vintage-yellow);
  color: var(--vintage-brown);
}
.cookie-banner .settings-cookie:hover {
  background: var(--accent);
  color: var(--vintage-brown);
}

/* ---------- COOKIE PREFERENCES MODAL POPUP ----------- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(30, 35, 35, 0.8);
  z-index: 5050;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .33s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fffaf2;
  border-radius: 22px;
  min-width: 330px;
  max-width: 97vw;
  padding: 36px 30px 26px 30px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  align-items: flex-start;
  animation: slideInUp .44s;
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(64px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--vintage-brown);
  margin-bottom: 9px;
}
.cookie-modal .category {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--vintage-teal);
  font-size: 1rem;
  margin-bottom: 6px;
}
.cookie-modal .category-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 6px;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--vintage-rust);
  width: 20px;
  height: 20px;
}
.cookie-modal .essential {
  color: var(--vintage-brown);
  font-style: italic;
}
.cookie-modal .footer {
  width: 100%;
  margin-top: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  color: var(--vintage-brown);
  font-size: 2rem;
  position: absolute;
  right: 13px;
  top: 11px;
  cursor: pointer;
  padding: 9px;
  border-radius: 11px;
  transition: background .13s, color .15s;
}
.cookie-modal .modal-close:hover {
  background: var(--vintage-yellow);
  color: var(--vintage-teal);
}
.cookie-modal button {
  min-width: 117px;
}

/* ------------------ ANIMATIONS & TRANSITIONS --------------- */
a, button, .cta-btn, .text-link, .main-nav a, .mobile-nav a {
  transition: color .16s, background .17s, border .16s, box-shadow .14s, transform .13s;
}

/* ------------ Shadows, Borders, Patterns: Nostalgic Touches --- */
.section, .feature-grid li, .card, .testimonial-card {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  background: #fffef8;
  border: 1.5px solid #f0e2bc;
}

.hero, .cta, .contact-cta {
  background: linear-gradient(135deg, #ead380 89%, #fff5d8 100%);
  border-bottom: 9px solid #f7eab6;
}

.text-section {
  margin-bottom: 18px;
}

/* ------------- UTILITY: Hide for accessibility --------------- */
.sr-only {
  position:absolute;
  left: -9000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------------------- PRINT ---------------------- */
@media print {
  header, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .footer, footer {
    display: none !important;
  }
}
