/* =============================
   AMPERESTREAM ERLEBEN - VINTAGE RETRO STYLE
   ============================= */
/* ---- RESET & BASE ---- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #FFF9F0;
  color: #2A3327;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  border: 0;
  display: block;
  height: auto;
}
a {
  color: #23513B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D47127;
  outline: none;
}
strong {
  font-weight: 700;
}
hr {
  border: none;
  border-top: 1px dashed #BFA66A;
  margin: 32px 0;
}
ul, ol {
  padding-left: 24px;
  margin: 16px 0 16px 0;
}
li {
  margin-bottom: 10px;
}
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #23513B;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 1px 2px 0 #F9EEDE;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  border-bottom: 3px dotted #BFA66A;
  display: inline-block;
  padding-bottom: 4px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #913A00;
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  color: #795B14;
  background: #FFF3D9;
  border-radius: 18px;
  padding: 12px 22px;
  display: inline-block;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
p {
  margin-bottom: 16px;
}
.text-section h3 {
  color: #432901;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}
.confirmation-message {
  background: #FFF7E0;
  border-left: 5px solid #23513B;
  padding: 14px 22px;
  border-radius: 16px;
  color: #35301E;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* ---- VINTAGE RETRO COLORS ---- */
:root {
  --color-bg: #FFF9F0;
  --color-primary: #23513B;
  --color-primary-dark: #163A29;
  --color-secondary: #8DD7C4;
  --color-accent: #FFDCA9;
  --color-accent-dark: #BFA66A;
  --color-link: #23513B;
  --color-link-hover: #D47127;
  --color-card-bg: #FAEEDB;
  --color-btn: #F5C16C;
  --color-btn-text: #462908;
  --color-btn-secondary: #8DD7C4;
  --color-btn-secondary-text: #23513B;
  --color-shadow: rgba(130,94,45,0.10);
  --color-border: #DBB069;
  --color-footer-bg: #F9E3CC;
  --color-footer-brand: #23513B;
  --color-footer-accent: #FFF7E5;
  --color-contrast: #FFF;
  --color-warning: #E25822;
  --color-cookie-bg: #312514;
}

body {
  background: var(--color-bg);
  color: #373019;
}

/* ---- HEADER ---- */
header {
  background: var(--color-footer-bg);
  border-bottom: 4px double var(--color-border);
  padding: 0;
  box-shadow: 0 6px 16px -7px var(--color-shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 12px;
}
header img {
  height: 42px;
  width: auto;
  margin-right: 8px;
}
.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
  background: transparent;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-btn);
  color: var(--color-btn-text);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-btn);
  color: var(--color-btn-text);
  font-size: 1.5rem;
  border: none;
  border-radius: 50%;
  padding: 9px 17px 9px 15px;
  margin-left: 8px;
  box-shadow: 0 1px 4px var(--color-shadow);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent-dark);
  transform: scale(1.07);
}

.cta.primary {
  background: var(--color-btn);
  color: var(--color-btn-text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.08rem;
  padding: 13px 30px;
  border: none;
  border-radius: 24px;
  box-shadow: 1px 2px 10px var(--color-shadow);
  margin-left: 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.cta.primary:hover, .cta.primary:focus {
  background: #FFF3D9;
  color: #913A00;
  box-shadow: 0 4px 18px var(--color-shadow);
  transform: translateY(-2px) scale(1.03);
}
.cta.secondary {
  background: var(--color-btn-secondary);
  color: var(--color-btn-secondary-text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1rem;
  padding: 11px 28px;
  border: solid 2px var(--color-primary);
  border-radius: 22px;
  box-shadow: 0 2px 8px var(--color-shadow);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s,transform 0.16s;
  margin-top: 24px;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-accent);
  color: var(--color-btn-text);
  border: solid 2px #E5BA67;
  transform: translateY(-2px) scale(1.04);
}


/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-cookie-bg);
  color: var(--color-contrast);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  transform: translateX(-110vw);
  transition: transform 0.32s cubic-bezier(.68,-0.55,.27,1.55);
  box-shadow: 6px 0 38px rgba(54,20,7,0.14);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: var(--color-accent);
  font-size: 2.2rem;
  border: none;
  padding: 16px 34px 10px 0;
  margin-bottom: 16px;
  cursor: pointer;
  z-index: 3010;
  transition: color 0.2s, transform 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-btn);
  transform: scale(1.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}
.mobile-nav a {
  color: var(--color-contrast);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 11px 0;
  width: 80vw;
  text-align: left;
  border-bottom: 1px solid #4C3C1C;
  transition: background 0.22s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent-dark);
  color: var(--color-btn-text);
  border-radius: 0 22px 22px 0;
}

/* ---- HERO & SECTION STYLES ---- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 18px;
}
.hero {
  background: linear-gradient(90deg, #FFF9F0 65%, #EDE2D3 100%);
  border-bottom: 3px dashed var(--color-accent-dark);
  margin-bottom: 60px;
  padding-bottom: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.features {
  background: var(--color-accent);
  border-radius: 32px;
  border: 2px dotted var(--color-border);
  box-shadow: 0 3px 16px var(--color-shadow);
}
.features .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.feature-grid, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.feature-grid > div, .feature-list > div {
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 5px 24px var(--color-shadow);
  padding: 28px 22px 18px 22px;
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 340px;
  text-align: center;
  border: 1.5px solid #F4E3C3;
  transition: box-shadow 0.18s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .feature-list > div:hover {
  box-shadow: 0 8px 40px #61410925;
  transform: scale(1.04) translateY(-3px);
}
.feature-grid img, .feature-list img {
  height: 48px;
  margin-bottom: 12px;
}
.feature-grid h3, .feature-list h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: #79420f;
}

.services .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-cards, .service-highlight, .service-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.service-card {
  background: #FAEEDB;
  border-radius: 16px;
  border: 1.5px solid #EAD9B2;
  box-shadow: 0 6px 24px var(--color-shadow);
  padding: 26px 20px 16px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 380px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.17s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card:hover {
  box-shadow: 0 9px 45px #865b0b20;
  transform: translateY(-5px) scale(1.045);
}
.service-card h3 {
  color: #9E2E1A;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.service-card strong {
  font-size: 1.01rem;
  color: #23513B;
  background: #FFF7E0;
  padding: 2px 5px;
  border-radius: 7px;
}

/* --- Testimonial cards --- */
.testimonials {
  background: #FFF7E0;
  border-radius: 32px 32px 8px 8px;
  border: 2px dashed #DBB069;
  margin-bottom: 64px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid #E2CF9F;
  box-shadow: 0 4px 20px #BFA66A1e;
  padding: 24px 22px;
  min-width: 250px;
  max-width: 330px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 46px #A9862712;
  transform: scale(1.04) translateY(-3px);
}
.testimonial-card p {
  color: #322706;
  font-family: 'Roboto', sans-serif;
  font-size: 1.03rem;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.testimonial-card span {
  color: #592B03;
  font-size: 0.98rem;
  text-align: right;
  align-self: flex-end;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* ----- Content Wrappers & Flex Utilities ----- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 9px var(--color-shadow);
  border: 1px solid #E2CF9F;
  padding: 25px 20px 18px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 200px;
  max-width: 360px;
}

.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;
}
.text-section {
  background: #FFF9ED;
  border-radius: 18px;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 3px 12px #E2CF9F33;
  border-left: 5px solid #BFA66A;
  margin-bottom: 22px;
  font-size: 1.05rem;
}


/* ---- LEGAL, MAP, CONFIRMATION ---- */
.legal .text-section, .confirmation .content-wrapper {
  align-items: flex-start;
}
.map-embed {
  background: #FFF7E3;
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed #DBB069;
  font-size: 1.06rem;
  margin-bottom: 11px;
}
.confirmation .content-wrapper {
  align-items: center;
  text-align: center;
}
.confirmation ul {
  list-style: disc;
  margin-bottom: 32px;
}

/* ---- CONTACT ---- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #F5EEE2;
  padding: 21px 15px;
  border-radius: 16px;
  margin-bottom: 16px;
  border-left: 4px dotted #BFA66A;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.03rem;
}

/* ---- FOOTER ---- */
footer {
  background: var(--color-footer-bg);
  border-top: 3px double #EAC372;
  color: #765B2B;
  padding: 0 0 0 0;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}
footer .container {
  padding: 0 18px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px 0 24px 0;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}
.footer-brand img {
  height: 44px;
  margin-bottom: 5px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 170px;
}
.footer-nav a {
  color: #613804;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 8px;
  padding: 3px 0 3px 7px;
  transition: background 0.15s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #913A00;
  background: #FBE3D3;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  font-size: 1rem;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4D5645;
}
.footer-contact img {
  height: 21px;
}
.footer-social {
  display: flex;
  gap: 17px;
  align-items: center;
  margin-top: 5px;
}
.footer-social a {
  border-radius: 50%;
  padding: 5px;
  background: #FFF9ED;
  display: inline-block;
  transition: background 0.18s, transform 0.14s;
}
.footer-social a:hover, .footer-social a:focus {
  background: #23513B22;
  transform: scale(1.11);
}
.footer-social img {
  height: 25px;
}


/* ---- BUTTONS, INPUTS ---- */
button, .cta {
  font-family: inherit;
  border: none;
  cursor: pointer;
  outline: none;
}
button:focus-visible {
  outline: 2px dashed #BFA66A;
  outline-offset: 2px;
}
/* Custom checkboxes/toggles could be here for cookie modal */

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-cookie-bg);
  color: var(--color-contrast);
  z-index: 4900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  box-shadow: 0 -4px 28px #9e6a1925;
  gap: 20px;
  transition: transform 0.35s;
  font-size: 1.04rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  border-radius: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 18px;
  border: none;
  transition: background 0.18s, color 0.17s;
}
.cookie-banner .accept {
  background: var(--color-btn);
  color: var(--color-btn-text);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-accent-dark);
  color: #fff;
}
.cookie-banner .reject {
  background: #DBB069;
  color: #613804;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #CC7722;
  color: #fff;
}
.cookie-banner .settings {
  background: var(--color-btn-secondary);
  color: var(--color-btn-secondary-text);
}
.cookie-banner .settings:hover,  .cookie-banner .settings:focus {
  background: var(--color-accent);
  color: #653C03;
}

/* -- COOKIE MODAL -- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(60,33,5,0.65);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.show {
  display: flex;
}
.cookie-modal {
  background: #fff8ec;
  max-width: 398px;
  width: 90vw;
  border-radius: 20px;
  box-shadow: 0 8px 32px #4C3C1C45;
  padding: 32px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: popIn 0.21s cubic-bezier(.49,.36,.68,1.3) 1;
  color: #2A2415;
}
@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: #8D5A15;
  font-size: 1.28rem;
  margin-bottom: 9px;
  letter-spacing: 0.03em;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 7px;
}
.cookie-category label {
  font-size: 1.05rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #BFA66A;
  height: 19px;
  width: 19px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 6px;
}
.cookie-modal button {
  border-radius: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 18px;
  border: none;
  transition: background 0.18s, color 0.14s;
}
.cookie-modal .close-modal {
  background: #eee1c3;
  color: #614109;
}
.cookie-modal .close-modal:hover {
  background: #e5ba67;
  color: #2A2415;
}
.cookie-modal .save-modal {
  background: #BFA66A;
  color: #fff;
}
.cookie-modal .save-modal:hover {
  background: #EAB866;
  color: #433001;
}

/* ----- Retro Details & Decorations ----- */
section, .card, .feature-grid > div, .feature-list > div, .testimonial-card, .service-card {
  background-image: repeating-linear-gradient(135deg,#F7EDD4 0 4px,transparent 4px 12px);
  background-size: 16px 16px;
}

/* --- Patterned Borders for Retro Feel --- */
.features, .testimonials, .services, .legal {
  border-style: dashed !important;
  border-width: 2.5px !important;
  border-color: #DBB069 !important;
}

/* --- Animations / Microinteractions --- */
.card, .service-card, .feature-grid > div, .feature-list > div, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.17s;
}
.card:active, .feature-grid > div:active, .feature-list > div:active, .testimonial-card:active {
  transform: scale(0.96) translateY(1px);
}

.cta.primary:active, .cta.secondary:active, .cookie-banner button:active {
  transform: scale(0.97) !important;
}

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 1160px) {
  .footer-content {
    flex-wrap: wrap;
    gap: 23px;
  }
  .feature-grid, .service-cards, .service-highlight, .service-overview, .testimonial-slider {
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 23px;
  }
  .feature-grid, .service-cards, .service-highlight, .service-overview, .testimonial-slider {
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-start;
  }
}
@media (max-width: 820px) {
  .feature-grid, .service-cards, .service-highlight, .service-overview, .testimonial-slider, .feature-list {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .feature-grid > div, .feature-list > div, .service-card, .testimonial-card {
    max-width: 100%;
    min-width: 96%;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.03rem; }
  h2 { font-size: 1.48rem; }
  .main-nav, .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .content-wrapper, .container {
    padding: 0 2vw;
  }
  .hero .content-wrapper {
    align-items: flex-start;
    text-align: left;
  }
  section, .features, .testimonials {
    border-radius: 16px;
    margin-bottom: 43px;
    padding: 32px 7px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .footer-content {
    flex-direction: column;
    gap: 17px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 16px 10px;
    gap: 17px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.03rem; }
  .feature-grid > div, .feature-list > div, .service-card, .testimonial-card, .card {
    padding: 17px 9px 14px 9px;
    min-width: 88vw;
  }
  .cookie-modal {
    padding: 19px 7px 18px 9px;
  }
  .container {
    max-width: 100vw;
    padding: 0 2px;
  }
}

/* ---- ACCESSIBILITY & PRINT ---- */
@media print {
  .cta, .main-nav, .footer-nav, .footer-social, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
}

/* ---- END CSS ---- */
