/* =========================
   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, 
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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #F5F5F5;
  color: #22313F;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #7E5B3B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #b67216;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1.5em;
}
li { margin-bottom: 0.5em; }
input, button, textarea, select {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  outline: none;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}

/* =========================
   RETRO/VINTAGE COLOR SCHEME
========================= */
:root {
  --primary: #22313F;
  --secondary: #C3B299;
  --accent: #F5F5F5;
  --retro-red: #c1440e;
  --retro-mustard: #E1A948;
  --retro-green: #85A179;
  --retro-blue: #698EA0;
  --retro-brown: #7E5B3B;
  --retro-bg: #FAF3E3;
  --retro-cream: #EFE3CA;
  --shadow: rgba(34, 49, 63, 0.10);
}

/* =========================
    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,700&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: var(--retro-bg);
  color: var(--primary);
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  text-shadow: 0px 1px 0px #E1A94822;
  letter-spacing: 1.5px;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  font-weight: 900;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
  font-weight: 700;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
}
h4 {
  font-size: 1rem;
  font-weight: 600;
}
p, ul, ol {
  font-size: 1rem;
  line-height: 1.6;
  color: #22313F;
}
strong {
  font-weight: 700;
}

/* Decorative retro touches */
h1, h2, h3 {
  font-style: italic;
}

/* =========================
   LAYOUT & CONTAINERS
========================= */
.container {
  width: 100%;
  max-width: 1140px;
  padding-right: 24px;
  padding-left: 24px;
  margin: 0 auto;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.text-section {
  background: var(--retro-cream);
  border-radius: 12px;
  box-shadow: 0 2px 16px var(--shadow);
  padding: 32px 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 13px;
  box-shadow: 0 2px 16px var(--shadow);
}

/* Spacing helpers */
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }

/* =========================
   HEADER
========================= */
header {
  background: var(--primary);
  padding: 0;
  box-shadow: 0 3px 16px var(--shadow);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo img {
  height: 52px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--retro-mustard);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  padding: 2px 0;
  transition: color 0.2s, border-bottom 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--retro-red);
  border-bottom: 2px solid var(--retro-red);
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--retro-red);
  color: #fff;
  font-weight: 900;
  font-size: 1.09rem;
  letter-spacing: 0.8px;
  padding: 12px 32px;
  border-radius: 30px;
  box-shadow: 0 4px 20px var(--shadow);
  margin-left: 16px;
  display: inline-block;
  border: 2px solid var(--retro-red);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-shadow: 0 1px 4px #0001;
}
.cta-btn:hover, .cta-btn:focus {
  background: #fff;
  color: var(--retro-red);
  border: 2px solid var(--retro-red);
  transform: translateY(-2px) scale(1.04);
}

/* =========================
   MOBILE MENU
========================= */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-mustard);
  position: fixed;
  right: 24px;
  top: 20px;
  z-index: 1020;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  color: var(--primary);
  box-shadow: 0 2px 12px var(--shadow);
  border: 2px solid var(--retro-brown);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-red);
  color: #fff;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-width: 360px;
  background: var(--retro-cream);
  box-shadow: -2px 0 40px var(--shadow);
  z-index: 1040;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.6,.1,.2,1);
  padding: 32px 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 8px 18px 24px 0;
  font-size: 2rem;
  color: var(--primary);
  background: var(--retro-bg);
  border: 2px solid var(--retro-mustard);
  border-radius: 100px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-red);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding-left: 24px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: bold;
  padding: 16px 0;
  border-bottom: 1px solid var(--retro-mustard);
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--retro-red);
  color: #fff;
}

@media (max-width: 1023px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* =========================
   SECTION SPACING & LAYOUT
========================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    padding: 30px 10px;
    margin-bottom: 36px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 330px;
  background: #fffbe5;
  border-radius: 10px;
  box-shadow: 0 2px 16px var(--shadow);
  padding: 22px 20px;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid: retro cards! */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: stretch;
}
.feature-grid > div {
  background: linear-gradient(90deg, var(--retro-cream) 95%, #ece1bc 100%);
  border: 2.5px dashed var(--retro-mustard);
  border-radius: 18px;
  box-shadow: 0 4px 14px var(--shadow);
  padding: 26px 22px;
  flex: 1 1 233px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.18s, box-shadow 0.2s;
}
.feature-grid > div:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 8px 28px var(--shadow);
  border-color: var(--retro-red);
}
.feature-grid img {
  height: 48px;
  width: 48px;
  margin-bottom: 8px;
}

/* Blog list */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.blog-post {
  background: #fffbe5;
  border: 2.5px double var(--retro-mustard);
  border-radius: 18px;
  box-shadow: 0 4px 12px var(--shadow);
  padding: 24px 20px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  transition: box-shadow 0.14s, border-color 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-post:hover {
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--retro-red);
}
.blog-category {
  background: var(--retro-green);
  color: #fff;
  font-size: 0.95em;
  letter-spacing: .035em;
  border-radius: 5px;
  padding: 4px 14px;
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
}
.blog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.blog-search input {
  padding: 9px 16px;
  border: 2px solid var(--retro-mustard);
  border-radius: 8px;
  font-size: 1em;
  background: #fff;
  font-family: inherit;
  margin-left: 8px;
}

/* Service cards */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-card {
  background: var(--retro-cream);
  border: 2px dashed var(--retro-green);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 26px 22px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.15s, transform 0.17s;
}
.service-card:hover {
  border-color: var(--retro-brown);
  box-shadow: 0 6px 22px var(--shadow);
  transform: scale(1.025);
}
.service-price {
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
  color: var(--retro-red);
  background: #fff;
  padding: 4px 13px;
  border-radius: 8px;
  border: 1.5px solid var(--retro-mustard);
  box-shadow: 0 1px 4px #0000000b;
  margin-top: 2px;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-left: 7px solid var(--retro-mustard);
  border-radius: 16px;
  box-shadow: 0 4px 28px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  max-width: 650px;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 30px var(--shadow);
}
.testimonial-card img {
  width: 36px;
  height: 36px;
  margin-right: 6px;
  filter: sepia(0.4) contrast(1.2);
  opacity: 0.85;
}
.testimonial-card p {
  font-size: 1.12rem;
  font-style: italic;
  color: var(--primary);
}
.testimonial-card strong {
  font-size: 0.98rem;
  color: var(--retro-brown);
  margin-top: 8px;
  display: block;
}
.stars {
  font-size: 1.25rem;
  letter-spacing: 0.07em;
  color: var(--retro-mustard);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 4px;
  text-shadow: 0 1px 3px #0000000d;
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--primary);
  color: var(--retro-cream);
  padding: 42px 0 24px 0;
  box-shadow: 0 -4px 32px var(--shadow);
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  margin-bottom: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--retro-mustard);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: .03em;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-red);
}
.footer-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.footer-info img {
  width: 52px;
  height: 52px;
}
.footer-info p {
  color: var(--retro-cream);
  margin-bottom: 4px;
}
.copyright {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 12px;
  color: #E1A948;
  letter-spacing: .04em;
}

@media (max-width: 768px) {
  footer .container {
    gap: 20px;
  }
  .footer-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 16px;
  }
}

/* =========================
   MISC STRUCTURAL CLASSES
========================= */
.map-placeholder {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  border-radius: 12px;
  background: var(--accent);
  padding: 13px 20px;
  box-shadow: 0 2px 10px var(--shadow);
  margin-top: 16px;
  margin-bottom: 10px;
}
.map-placeholder img {
  width: 30px;
  height: 30px;
}

/* =========================
   BUTTONS
========================= */
button,
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
}
button:focus, .cta-btn:focus {
  outline: 2px dashed var(--retro-mustard);
  outline-offset: 2px;
}

/* =========================
   COOKIE CONSENT BANNER
========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9700;
  background: var(--retro-brown);
  color: #fffcec;
  font-size: 1.01em;
  padding: 20px 18px;
  box-shadow: 0 -4px 20px var(--primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: fadeInUp 0.5s;
}
.cookie-banner strong { color: var(--retro-mustard); }
.cookie-buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 20px;
  font-size: 1em;
  font-weight: 700;
  border-radius: 8px;
  margin-bottom: 0;
  margin-top: 0;
  border: 2px solid var(--retro-mustard);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.cookie-btn.accept {
  background: var(--retro-green);
  color: #fff;
  border-color: var(--retro-green);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--retro-red);
  border-color: var(--retro-red);
}
.cookie-settings-btn {
  background: var(--retro-mustard);
  color: #22313F;
  border-color: var(--retro-brown);
}
.cookie-btn.accept:hover { background: #67935b; }
.cookie-btn.reject:hover { background: var(--retro-red); color: #fff; }
.cookie-settings-btn:hover { background: var(--retro-red); color: #fff; border-color: var(--retro-red); }

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(45px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9720;
  background: rgba(34,49,63,0.77);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s;
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fffbe5;
  border-radius: 18px;
  padding: 32px 24px 26px 24px;
  min-width: 92vw;
  max-width: 420px;
  box-shadow: 0 8px 44px var(--primary), 0 0 8px #00000019;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: modalIn 0.28s;
}
@keyframes modalIn {
  from { transform: scale(0.98) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.37rem;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--retro-red);
  font-style: italic;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 8px;
}
.cookie-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 6px 0;
}
.cookie-option-category {
  font-weight: 700;
  color: var(--primary);
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  background: var(--retro-mustard);
  border-radius: 22px;
  display: flex;
  align-items: center;
  padding: 3px;
  box-sizing: border-box;
  transition: background 0.22s;
  cursor: pointer;
  border: 2px solid var(--retro-red);
  position: relative;
}
.cookie-toggle[aria-checked="true"] {
  background: var(--retro-green);
}
.cookie-toggle-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s;
  box-shadow: 0 1px 4px #00000013;
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%) translateX(0);
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-circle {
  transform: translateY(-50%) translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  right: 12px;
  top: 14px;
  font-size: 1.5em;
  color: #c1440e;
  background: none;
  border: none;
  z-index: 2;
}
.cookie-modal-close:hover { color: #000; }

/* ===========================
   RESPONSIVENESS
=========================== */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
  .service-cards { gap: 14px; }
  .blog-list { gap: 14px; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.2rem; }
  .feature-grid > div, .service-card, .blog-post {
    flex: 1 1 100%;
    padding: 18px 10px;
  }
  .feature-grid { gap: 8px; }
  .service-cards, .blog-list { gap: 8px; }
}
@media (max-width: 600px) {
  .footer-info {
    gap: 12px;
  }
  .feature-grid > div, .service-card, .blog-post {
    border-radius: 10px;
    padding: 11px 6px;
  }
}

/* ===========================
   RETRO VINTAGE ACCENTS
=========================== */
/* Dotted vintage background accent for hero sections */
section:first-of-type {
  position: relative;
}
section:first-of-type::after {
  content: '';
  display: block;
  position: absolute;
  top: -18px; left: -18px;
  width: 130px; height: 80px;
  background: repeating-linear-gradient(135deg, var(--retro-mustard), var(--retro-mustard) 3px, transparent 3px, transparent 12px);
  opacity: 0.22;
  pointer-events: none;
  border-radius: 0 0 25px 0;
}

/* Thin brown retro border for some asides and images */
img[alt^="Karte"], img[alt^="icon"] {
  border: 2px solid var(--retro-brown);
  border-radius: 6px;
  box-shadow: 0 2px 8px #cfa16133;
  background: #fffbe5;
}

/* ===========================
   FORMS / FIELDS (if present)
=========================== */
input[type="text"], input[type="email"], textarea {
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px solid var(--retro-mustard);
  font-size: 1rem;
  background: #fffbe5;
  color: var(--primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--retro-red);
  box-shadow: 0 2px 12px var(--shadow);
}

label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ===========================
   ACCESSIBILITY:
=========================== */
:focus {
  outline: 2px dashed var(--retro-mustard) !important;
  outline-offset: 2px;
}

/* ===========================
   HIDE SCROLL WHEN MOBILE MENU/COOKIE MODAL OPEN
=========================== */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* ===========================
   HELPERS
=========================== */
.hidden { display: none !important; }

/* Cleanup bottom margin for last section */
section:last-child {
  margin-bottom: 0 !important;
}

/* Make sure no elements overlap (fix stacking context) */
header, main, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  isolation: isolate;
}
