/* ========================================================== */
/* CSS Reset & Normalize                                       */
/* ========================================================== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
html, body { height: 100%; }
body { min-height: 100vh; line-height: 1.6; background: #FDF6ED; color: #222112; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; background: none; border: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { padding-left: 1.5em; }

/* ========================================================== */
/* Fonts: Retro + Vintage                                      */
/* ========================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Open+Sans:400,700&display=swap');
@font-face {
  font-family: 'QuicksandRetro';
  src: local('Quicksand'), local('Montserrat'),
    url('https://fonts.gstatic.com/s/montserrat/v24/JTUHjIg1_i6t8kCHKm459WxZ.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}
:root {
  --primary: #222733;
  --secondary: #A2ADB6;
  --accent: #FDF6ED;
  --retro-red: #D5502A;
  --retro-yellow: #ECD671;
  --retro-blue: #548CA8;
  --retro-green: #93BFA3;
  --retro-orange: #F3B562;
  --retro-bg: #FDF6ED;
  --retro-border: #D1B595;
  --font-display: 'Montserrat', 'QuicksandRetro', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

body {
  background: var(--retro-bg);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 16px;
  padding-bottom: 60px; /* For cookie banner spacing */
  letter-spacing: 0.01em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 1px rgba(221,192,140,0.07);
}
h1 { font-size: 2.5rem; font-weight: 900; letter-spacing: 0.07em; }
h2 { font-size: 2rem; font-weight: 900; color: var(--retro-red); }
h3 { font-size: 1.5rem; font-weight: 700; color: var(--retro-blue); }
h4 { font-size: 1.2rem; font-weight: 700; color: var(--retro-green); }

p, li, ul, ol, em {
  font-family: var(--font-body);
  font-size: 1rem;
}
strong { font-weight: bold; color: var(--primary); }
subheadline, .subheadline {color: var(--retro-orange); font-size: 1.2rem; font-family: var(--font-display); margin-bottom: 12px; display:block;}
blockquote {
  border-left: 4px solid var(--retro-orange);
  margin: 24px 0 24px 0;
  padding: 10px 24px;
  font-family: var(--font-display);
  background: #f7e1b2;
  color: var(--primary);
  font-style: italic;
  border-radius: 8px;
  box-shadow: 1px 4px 16px rgba(233, 151, 46, 0.04);
}

/* ========================================================== */
/* Structure: Containers, Spacing, Section Patterns           */
/* ========================================================== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fcf6e8;
  border-radius: 23px;
  box-shadow: 0 4px 28px 0 rgba(221,192,140,0.09);
  border: 2.5px solid var(--retro-border);
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section { max-width: 720px; }
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff6d7;
  border-radius: 16px;
  border: 2.5px solid var(--retro-border);
  box-shadow: 0 2px 10px rgba(170, 82, 46, 0.06), 0 0.5px 2px rgba(105,83,28,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 20px 18px 20px;
  min-width: 210px;
  flex: 1 1 240px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-5px) scale(1.025); box-shadow: 0 8px 36px rgba(222, 94, 21, 0.11);} 
.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;
  margin-bottom: 20px;
  background: #fff4e9;
  border-radius: 15px;
  border: 2px solid var(--retro-orange);
  box-shadow: 0 2px 8px rgba(142, 65, 25, 0.10);
  min-width: 225px;
  max-width: 420px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 34px rgba(255,172,67,0.12);
  transform: translateY(-4px) scale(1.015);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Core Spacing & Alignment (mandated) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; 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 { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Remove list styles for presentation, use retro bullets */
ul { list-style: none; }
ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
ul li::before {
  content: '\25CF';
  position: absolute;
  left: 0px;
  color: var(--retro-yellow);
  font-size:1.2em;
  top: 1px;
}
ol {
  list-style: decimal inside;
  padding-left: 18px;
}

hr {
  border: none;
  border-top: 1.5px dashed #d7c6aa;
  margin: 28px 0;
}

/* ========================================================== */
/* Header & Navigation                                         */
/* ========================================================== */
header {
  background: var(--retro-bg);
  border-bottom: 3.5px double var(--retro-border);
  padding: 0;
  z-index: 104;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 10px 0 6px 0;
  font-family: var(--font-display);
  font-size: 1rem;
}
.main-nav a {
  color: var(--primary);
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 8px;
  transition: background 0.17s, color 0.15s, box-shadow 0.16s;
}
.main-nav a.btn-primary {
  margin-left: 12px;
}
.main-nav a:hover:not(.btn-primary), .main-nav a:focus:not(.btn-primary) {
  background: #ece3d2;
  color: var(--retro-red);
  text-decoration: underline;
}
.main-nav img {
  height: 36px;
  width: auto;
  margin-right: 12px;
}

/* Primary Buttons */
.btn-primary {
  background: var(--retro-red);
  color: #fffefd !important;
  font-family: var(--font-display);
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 900;
  font-size: 1.12em;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 16px rgba(197, 84, 43, 0.09);
  border: 2px solid var(--retro-orange);
  cursor: pointer;
  transition: background 0.21s, box-shadow 0.16s, color 0.16s;
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--retro-orange);
  color: var(--primary) !important;
  box-shadow: 0 4px 18px rgba(214,180,56,.15);
  border-color: var(--retro-yellow);
  text-decoration: none;
  outline: none;
}

/* Responsive Main Navigation */
.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  line-height: 1;
  cursor: pointer;
  background: var(--retro-red);
  border-radius: 50%;
  padding: 5px 14px;
  color: #fff;
  border: 2.5px solid var(--retro-orange);
  margin-right: 7px;
  margin-left: auto;
  transition: background 0.16s, color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--retro-orange);
  color: var(--primary);
}
/* Hide on desktop, show on mobile */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 19px;
    z-index: 110;
  }
}

/* Mobile Navigation Styles */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #f6eed8;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.9,-0.01,.18,1.36);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 24px 18px 28px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: var(--retro-red);
  color: #fff;
  border-radius: 50%;
  border: 2px solid var(--retro-orange);
  cursor: pointer;
  margin-bottom: 20px;
  padding: 3px 15px 4px 15px;
  transition: background 0.2s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-orange);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  background: #ecddbb;
  border-radius: 16px;
  padding: 15px 12px;
  margin-bottom: 2px;
  box-shadow: 0 2px 0 rgb(232,181,16,0.06);
  transition: background 0.18s, color 0.14s;
}
.mobile-nav a:hover {
  background: var(--retro-yellow);
  color: var(--retro-red);
}

/* Ensure mobile menu always covers above all */
.mobile-menu { box-shadow: 0 12px 54px rgba(70,49,17,0.12); }

/* ========================================================== */
/* Footer                                                     */
/* ========================================================== */
footer {
  background: #f2ebd7;
  border-top: 3px double var(--retro-border);
  padding: 32px 0 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  margin-top: 44px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08em;
  letter-spacing: 0.02em;
  border-bottom: 2px dashed var(--retro-border);
  transition: color 0.12s, border-bottom 0.17s;
}
.footer-nav a:hover {
  color: var(--retro-red);
  border-bottom: 2px solid var(--retro-yellow);
}
footer p {
  color: var(--secondary);
  opacity: 0.72;
  font-size: 0.98em;
  margin-top: 8px;
  font-family: var(--font-body);
}

/* ========================================================== */
/* Cookie Consent Banner                                      */
/* ========================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: #493d2b;
  color: #fdf6ed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 16px 18px 16px;
  box-shadow: 0 -4px 22px 0 rgba(70,49,19,0.13);
  animation: slidein-bottom 0.7s cubic-bezier(.8,-0.01,.17,1.29);
  border-top: 3px solid var(--retro-yellow);
  font-family: var(--font-body);
}
.cookie-banner.hide {
  display: none;
}
.cookie-banner-content {
  max-width: 740px;
  margin-bottom: 14px;
}
.cookie-buttons {
  display: flex;
  gap: 18px;
  margin-top: 4px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1.02em;
  font-weight: 900;
  letter-spacing: 0.03em;
  border-radius: 25px;
  padding: 9px 25px;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.11s;
  margin-bottom: 2px;
}
.cookie-btn.accept { background: var(--retro-green); color: var(--primary); border: 2px solid var(--retro-yellow); }
.cookie-btn.reject { background: #e95c30; color: #fff; border: 2px solid var(--retro-orange); }
.cookie-btn.settings { background: #f8eebd; color: var(--primary); border: 2px solid var(--retro-border); }
.cookie-btn.accept:hover { background: var(--retro-yellow); color: var(--primary); }
.cookie-btn.reject:hover { background: #ea804a; }
.cookie-btn.settings:hover { background: var(--retro-yellow); }

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 5000;
  background: rgba(65,53,21,0.53);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  animation: fadein 0.19s;
}
.cookie-modal.hide { display: none; }
.cookie-modal-dialog {
  background: #fcf6e8;
  border-radius: 28px;
  max-width: 420px;
  width: 93vw;
  padding: 37px 24px 22px 24px;
  border: 2.7px solid var(--retro-yellow);
  box-shadow: 0 12px 61px rgba(116,88,36,0.19);
  font-family: var(--font-body);
  animation: popin 0.22s cubic-bezier(.56,1.52,.38,1.31);
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.cookie-modal-close {
  font-size: 2rem;
  background: var(--retro-orange);
  color: var(--primary);
  border-radius: 50%;
  border: 2.3px solid var(--retro-red);
  cursor: pointer;
  padding: 0 13px;
  transition: background 0.21s;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 19px;
}
.cookie-category label {
  font-family: var(--font-display);
  font-size: 1.1em;
  font-weight: bold;
  color: var(--primary);
  margin-left: 0.5em;
}
.cookie-toggle {
  width: 38px;
  height: 21px;
  border-radius: 14px;
  background: #E6C873;
  position: relative;
  cursor: pointer;
  border: 1.8px solid #DAA84A;
  transition: background 0.17s;
}
.cookie-toggle[data-active="true"] {
  background: var(--retro-green);
  border-color: #6fa876;
}
.cookie-toggle-knob {
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1.5px;
  left: 2px;
  box-shadow: 0 2px 5px rgba(193,162,67,0.16);
  transition: left 0.17s;
}
.cookie-toggle[data-active="true"] .cookie-toggle-knob {
  left: 18px;
}
.cookie-category .always-on {
  background: var(--retro-yellow);
  color: var(--retro-red);
  font-size: 0.97em;
  border-radius: 12px;
  padding: 2px 8px;
  margin-left: 11px;
  font-family: var(--font-display);
  font-weight: bold;
  letter-spacing: 0.01em;
}

@keyframes slidein-bottom {
  from { transform: translateY(100%);}
  to { transform: translateY(0); }
}
@keyframes fadein {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes popin {
  0% { transform: scale(.9) translateY(21px); opacity:0.6;}
  60% { opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity:1;}
}

/* ========================================================== */
/* Forms, Contact, etc. (for Kontakt and future forms)        */
/* ========================================================== */
input[type="text"],
input[type="email"],
textarea {
  border-radius: 13px;
  border: 2px solid var(--retro-border);
  background: #fffefa;
  padding: 11px 12px;
  font-family: var(--font-body);
  width: 100%;
  transition: border 0.14s, box-shadow 0.13s;
  font-size: 1rem;
  margin-bottom: 14px;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--retro-orange);
  box-shadow: 0 0 5px var(--retro-yellow), 0 2px 10px rgba(197, 84, 43, 0.06);
}
label {
  font-family: var(--font-display);
  font-size: 1.02em;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 6px;
  display: block;
}

/* ========================================================== */
/* Misc Retro Effects & Patterns (subtle)                     */
/* ========================================================== */
.section {
  background: repeating-linear-gradient(135deg, #fdf6ed, #fdf6ed 42px, #faebd7 44px, #fdf6ed 54px);
  border: 2.4px solid var(--retro-border);
  position: relative;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  top:10px; right:15px;
  width: 52px; height: 15px;
  background: repeating-linear-gradient(90deg,#F3B562,#ECD671 7px,#FDF6ED 14px);
  opacity: .17;
  border-radius: 11px;
  pointer-events: none;
  z-index: 2;
}
.card:before {
  content: '';
  display: block;
  position: absolute;
  left: 20px; top: -12px;
  width: 32px; height: 7px;
  background: repeating-linear-gradient(90deg,#548CA8,#93BFA3 12px,#fdf6ed 17px);
  border-radius: 4px;
  opacity: .31;
  pointer-events: none;
}

/* Card Icon Adjustments (Leistungen etc.) */
.card img,
.content-wrapper img {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 9px;
  vertical-align: middle;
  opacity: 0.88;
}

/* Special fine-art price highlight */
em {
  color: var(--retro-red);
  background: #faebd7;
  font-style: normal;
  border-radius: 5px;
  padding: 1px 8px;
  margin-left: 8px;
  font-size: 1.02em;
}

/* ========================================================== */
/* Responsive, Mobile-first                                   */
/* ========================================================== */
@media (max-width: 1100px) { .container { max-width: 98vw; } }
@media (max-width: 900px) {
  header, footer { padding-left: 0; padding-right: 0; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.54rem; }
  h2 { font-size: 1.21rem; }
  h3 { font-size: 1.03rem; }
  .section { padding: 30px 7px; }
  .main-nav { font-size: 1em; }
  .container { padding: 0 4px; }
  .content-wrapper { gap: 13px; }
  .footer-nav { gap: 14px; }
  .text-image-section,
  .content-grid {
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
    align-items: stretch;
  }
  .testimonial-card {
    max-width: 99vw; min-width:0;
    font-size: 1em;
  }
}
@media (max-width: 550px) {
  .section { padding: 16px 1px; margin-bottom: 44px;}
  .card { padding: 13px 6px 7px 6px; font-size:0.96em;}
}
@media (max-width: 480px) {
  h1, h2, h3, h4 { text-align: left !important;}
  .footer-nav { flex-direction: column; gap:7px; text-align:left; }
  .testimonial-card { font-size: 0.95em;}
  .card { font-size: 0.91em; padding:9px 5px 5px 7px; }
}

/* ========================================================== */
/* Micro-interactions, Hover, Focus                           */
/* ========================================================== */
.card, .testimonial-card, .btn-primary, .cookie-btn {
  transition: box-shadow 0.18s, background 0.14s, color 0.14s, border 0.12s;
}
.card:active {
  transform: scale(0.98);
}
.btn-primary:active, .cookie-btn:active {
  transform: scale(0.97);
  filter: brightness(0.97);
}
a:focus-visible {
  outline: 3px dashed var(--retro-yellow);
  outline-offset: 2px;
}

/* ========================================================== */
/* Utility & Helper Classes                                   */
/* ========================================================== */
.text-center { text-align: center; }
.d-flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mb-20 { margin-bottom: 20px !important; }

/* ========================================================== */
/* Accessibility Contrast for Testimonials                    */
/* ========================================================== */
.testimonial-card {
  background: #fff4e9;
  color: #222733;
  border-color: #eea248;
}
.testimonial-card strong {
  color: #D5502A;
}

/* ========================================================== */
/* Map Snippet & Contact Info Box                             */
/* ========================================================== */
.contact-info {
  background: #faebd7;
  border: 2px solid var(--retro-border);
  border-radius: 10px;
  padding: 16px 12px;
  margin-bottom: 15px;
  font-size: 1.04em;
  box-shadow: 0 2px 10px rgba(241,196,87,0.09);
}
.map-snippet {
  border-left: 5px dotted var(--retro-yellow);
  background: #faf6e1;
  padding: 8px 16px;
  margin-top: 12px;
  color: var(--retro-blue);
  border-radius: 8px;
  font-size: 1em;
}

/* ========================================================== */
/* Icon Styling in Features/Leistungen List                   */
/* ========================================================== */
.content-wrapper img[src$='.svg'] {
  height: 26px;
  width: 26px;
  vertical-align: middle;
  margin-right: 7px;
  opacity: 0.95;
}

/* ========================================================== */
/* Retro Patterns on Section Borders                          */
/* ========================================================== */
.section {
  border-style: double;
  border-width: 2.5px;
  border-color: var(--retro-border);
  box-shadow: 0 6px 24px rgba(216,195,126,0.13);
}

/* ========================================================== */
/* Hide scrollbars in mobile-menu & cookie modal              */
/* ========================================================== */
.mobile-menu, .cookie-modal-dialog {
  scrollbar-width: thin;
  scrollbar-color: var(--retro-yellow) #f6eed8;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal-dialog::-webkit-scrollbar {
  width: 5px;
  background: #f6eed8;
}
.mobile-menu::-webkit-scrollbar-thumb, .cookie-modal-dialog::-webkit-scrollbar-thumb {
  background: var(--retro-yellow);
  border-radius: 12px;
}

/* ========================================================== */
/* End of CSS                                                 */
/* ========================================================== */
