/* ========================================== */
/* 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  background: #FFF7EC;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #32322f;
  background: #FFF7EC;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  margin-left: 1.5em;
}
a {
  color: #11565b;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #EB8F4A;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}
button {
  cursor: pointer;
}

/* ========================================== */
/* BRAND COLORS & FONTS (VINTAGE RETRO)       */
/* ========================================== */
:root {
  --vintage-blue: #184d72;
  --vintage-green: #43b79f;
  --vintage-bg: #fff7ec;
  --vintage-accent: #F7F7F8;
  --vintage-orange: #EB8F4A;
  --vintage-mustard: #F5C964;
  --vintage-brown: #6D4C3F;
  --vintage-red: #e66850;
  --vintage-light-brown: #ECD9C6;
  --vintage-shadow: 0 2px 14px rgba(73, 36, 15, 0.11);
  --radius-main: 20px;
  --radius-full: 50px;
  --main-font: 'Roboto', Arial, sans-serif;
  --display-font: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

/* ========================================== */
/* VINTAGE RETRO TYPOGRAPHY                   */
/* ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  color: var(--vintage-blue);
  font-weight: 900;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 0 #ecd9c6, 0 1.5px 12px rgba(32,28,0,0.06);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--vintage-orange);
}
h4 {
  font-size: 1.1rem;
  color: var(--vintage-blue);
}
p, ul li, ol li {
  font-family: var(--main-font);
  font-size: 1.08rem;
  color: #32322f;
  margin-bottom: 12px;
}
.lead {
  font-size: 1.25rem;
  color: var(--vintage-brown);
  font-weight: 700;
  margin-bottom: 22px;
}
strong {
  color: var(--vintage-red);
  font-weight: 700;
}

/* ========================================== */
/* STRUCTURE & LAYOUT                         */
/* ========================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  margin: 0 auto 32px auto;
  padding: 0 0 0 0;
}
.text-section {
  background: #fff7ec;
  border-radius: var(--radius-main);
  box-shadow: var(--vintage-shadow);
  padding: 40px 26px 32px 26px;
  margin-bottom: 34px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container, .feature-grid, .service-list, .testimonial-grid, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--vintage-accent);
  border-radius: var(--radius-main);
  box-shadow: var(--vintage-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 25px 24px 25px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 32px rgba(73, 36, 15, 0.19);
  transform: translateY(-5px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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,
  .content-grid,
  .feature-grid,
  .testimonial-grid,
  .card-container,
  .service-list {
    flex-direction: column;
    gap: 16px;
  }
  .container {
    padding: 0 9px;
  }
  .card, .text-section {
    padding: 26px 12px 20px 12px;
  }
}

/* =============== HEADER ============== */
header {
  background: var(--vintage-bg);
  padding: 0;
  border-bottom: 7px dotted var(--vintage-mustard);
  margin-bottom: 2px;
}
header .container {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  padding: 16px 2vw 13px 2vw;
  position: relative;
}
header img {
  width: 172px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--vintage-blue);
  font-size: 1.08rem;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
  transition: color 0.19s, border-color 0.19s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--vintage-orange);
  border-bottom: 3px solid var(--vintage-orange);
  background: #feefd6;
}

.cta-button {
  font-family: var(--display-font);
  background: var(--vintage-mustard);
  color: var(--vintage-blue);
  border-radius: var(--radius-full);
  padding: 12px 34px;
  font-size: 1.07rem;
  font-weight: 700;
  box-shadow: 0 2px 12px 0 #fbe0c2;
  border: 2px solid var(--vintage-orange);
  letter-spacing: 1px;
  text-shadow: 0 1px 0 #fff6e2;
  margin-left: 18px;
  margin-top: 0;
  position: relative;
  transition: background 0.22s, color 0.12s, box-shadow 0.22s, transform 0.22s;
}
.cta-button.primary {
  background: var(--vintage-blue);
  color: #fff7ec;
  border: 2px solid var(--vintage-orange);
  text-shadow: 0 1px 0 #446299;
}
.cta-button:hover, .cta-button:focus {
  background: var(--vintage-orange);
  color: #11475d;
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 6px 28px 0 #f5c96433;
  border-color: #ba7841;
  outline: none;
}

/* HIDE CTA BUTTON on narrow screens */
@media (max-width: 960px) {
  .cta-button {
    padding: 10px 22px;
    font-size: 1rem;
    margin-left: 10px;
  }
}
@media (max-width: 768px) {
  header img {
    width: 124px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
}

/* ============= MOBILE MENU ============= */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    background: var(--vintage-blue);
    color: #fff7ec;
    border-radius: var(--radius-full);
    font-size: 2.2rem;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    margin-left: 8px;
    border: 2px solid #f5c964;
    box-shadow: 0 2px 8px #fff5cc;
    transition: background 0.18s, color 0.18s;
    z-index: 1502;
    position: relative;
  }
  .mobile-menu-toggle:focus {
    outline: 2px solid var(--vintage-orange);
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #f5c964ee;
  box-shadow: 0 18px 44px 0 #184d7251;
  z-index: 1500;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.26s, transform 0.33s cubic-bezier(0.43,0.13,0.2,1.01);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  margin: 22px 32px 0 0;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--vintage-blue);
  background: #ffe9c7;
  border-radius: var(--radius-full);
  padding: 2px 14px 2px 14px;
  border: 2px solid var(--vintage-orange);
  box-shadow: 0 2px 10px 0 #ecd9c6;
  cursor: pointer;
  transition: background 0.16s, color 0.14s;
  z-index: 1550;
}
.mobile-menu-close:focus {
  background: var(--vintage-orange);
  color: #fff7ec;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 24px 0 0 0;
  width: 100vw;
  align-items: center;
}
.mobile-nav a {
  font-family: var(--display-font);
  font-size: 1.28rem;
  color: var(--vintage-blue);
  background: #fff7ec;
  border-radius: var(--radius-main);
  padding: 13px 50px;
  border: 2px solid var(--vintage-orange);
  font-weight: 900;
  letter-spacing: 1.3px;
  margin: 0 14px;
  box-shadow: 0 2px 6px #f7f5e1, 0 6px 36px #184d7217;
  transition: background 0.18s, color 0.18s, border-color 0.17s;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--vintage-orange);
  color: #fff7ec;
  border-color: var(--vintage-blue);
}

/* Hide main nav and show mobile toggle on mobile */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
  }
}

/* ========================================== */
/* MAIN PAGE STYLES & FLEXBOX CARDS           */
/* ========================================== */
.feature-grid > div,
.service-list > div {
  background: var(--vintage-accent);
  border-radius: var(--radius-main);
  box-shadow: var(--vintage-shadow);
  padding: 26px 18px 22px 18px;
  min-width: 220px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 2.5px dashed var(--vintage-brown);
  transition: box-shadow 0.18s, border-color 0.14s, transform 0.22s;
}
.feature-grid > div:hover,
.service-list > div:hover {
  box-shadow: 0 10px 30px #ecd9c655;
  border-color: var(--vintage-orange);
  transform: translateY(-3px) scale(1.021);
}
.feature-grid img,
.service-list img {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .feature-grid > div, .service-list > div {
    flex-basis: 100%;
    min-width: unset;
    padding: 17px 10px 14px 10px;
  }
}

/* ========================================== */
/* TESTIMONIALS & REVIEW CARDS                */
/* ========================================== */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  margin-bottom: 18px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  border-radius: var(--radius-main);
  box-shadow: 0 6px 20px 0 #eed3be22;
  padding: 20px 24px 18px 26px;
  margin-bottom: 22px;
  border-left: 7px solid var(--vintage-blue);
  min-width: 220px; max-width: 385px;
  color: #222116;
  font-size: 1rem;
  font-family: var(--main-font);
  position: relative;
  transition: box-shadow 0.17s, border-color 0.19s, transform 0.22s;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #2c2731;
  line-height: 1.55;
}
.testimonial-card span {
  font-family: var(--main-font);
  font-weight: 600;
  color: #565058;
  font-size: 0.95rem;
}
.testimonial-card span:last-child {
  color: var(--vintage-orange);
  font-size: 1.13rem;
}
.testimonial-card:hover {
  box-shadow: 0 12px 36px #eadfb746;
  border-color: var(--vintage-orange);
  transform: translateY(-3px) scale(1.02);
}
@media (max-width: 850px) {
  .testimonial-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}

/* ========================================== */
/* FOOTER                                    */
/* ========================================== */
footer {
  background: var(--vintage-blue);
  padding: 36px 0 14px 0;
  color: #fff7ec;
  box-shadow: 0 -2px 12px #2b383a11;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-nav a {
  font-family: var(--display-font);
  font-size: 1rem;
  color: var(--vintage-mustard);
  margin-bottom: 0;
  font-weight: 700;
  border-bottom: 2px dotted transparent;
  transition: color 0.14s, border-color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--vintage-orange);
  border-bottom: 2px dotted var(--vintage-orange);
  background: #53635c17;
}
footer p {
  color: #fff;
  opacity: 0.89;
  font-family: var(--main-font);
  font-size: 1rem;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .footer-nav {
    gap: 12px;
  }
  footer .container {
    gap: 10px;
  }
}

/* ========================================== */
/* LISTS                                      */
/* ========================================== */
ul {
  margin-bottom: 12px;
}
ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 22px;
  list-style: none;
  font-size: 1rem;
}
ul li:before {
  content: '\25A1';
  color: var(--vintage-orange);
  font-size: 1.1rem;
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: serif;
}
ol {
  margin-bottom: 12px;
  padding-left: 22px;
}
ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  list-style: decimal inside;
}

/* ========================================== */
/* SPACING & FLEXBOX PATTERNS (MANDATORY)      */
/* ========================================== */
.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; }

/* ========================================== */
/* FORMS (for Kontakt or similar)              */
/* ========================================== */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  background: #fff7ec;
  border-radius: var(--radius-main);
  border: 2px solid var(--vintage-blue);
  box-shadow: 0 2px 9px #e7be8b13;
  padding: 14px 14px;
  font-size: 1rem;
  margin-bottom: 18px;
  width: 100%;
  color: #363333;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input[type="text"]:hover, input[type="email"]:hover, textarea:hover,
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--vintage-orange);
  box-shadow: 0 2px 20px #f5c96433;
  outline: none;
}
label {
  display: block;
  margin-bottom: 4px;
  color: var(--vintage-blue);
  font-weight: 700;
  font-size: 1rem;
}

/* ========================================== */
/* COOKIE BANNER + PREFERENCES MODAL           */
/* ========================================== */
.cookie-banner {
  position: fixed;
  left: 7px;
  right: 7px;
  bottom: 17px;
  background: #fff7ec;
  border-radius: var(--radius-main);
  box-shadow: 0 7px 32px #184d7265;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  z-index: 2000;
  padding: 18px 31px 15px 26px;
  font-size: 1.03rem;
  border: 3px dotted var(--vintage-mustard);
  animation: cookie-banner-in 0.54s cubic-bezier(0.43,0.13,0.2,1.01);
}
@keyframes cookie-banner-in {
  from {opacity:0;transform: translateY(40px);}
  to {opacity: 1;transform: none;}
}
.cookie-banner__text {
  flex: 2 1 280px;
  color: #14354a;
}
.cookie-banner__actions {
  display: flex;
  gap: 19px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-button {
  font-family: var(--display-font);
  border-radius: var(--radius-full);
  padding: 8px 23px;
  font-size: 1.01rem;
  border: 2.2px solid var(--vintage-orange);
  background: var(--vintage-mustard);
  color: var(--vintage-blue);
  font-weight: 800;
  margin-right: 0;
  margin-bottom: 0;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1.5px 7px #ecd9c6;
}
.cookie-button:focus, .cookie-button:hover {
  background: var(--vintage-orange);
  color: #fff7ec;
  border-color: var(--vintage-blue);
}
.cookie-button.settings {
  background: #fff7ec;
  border-color: var(--vintage-blue);
  color: var(--vintage-blue);
}
.cookie-button.settings:hover {
  background: var(--vintage-blue);
  color: #fff7ec;
  border-color: var(--vintage-orange);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 8px 13px 12px;
  }
  .cookie-banner__actions {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* Cookie preferences modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right:0; bottom: 0;
  z-index: 2222;
  align-items: center;
  justify-content: center;
  background: rgba(76, 74, 61, 0.76);
}
.cookie-modal.open {
  display: flex;
  animation: modal-in 0.2s;
}
@keyframes modal-in {
  from {opacity:0;}
  to {opacity: 1;}
}
.cookie-modal__content {
  background: #fffdf9;
  border-radius: var(--radius-main);
  padding: 39px 31px 33px 31px;
  max-width: 390px;
  margin: 0 auto;
  box-shadow: 0 20px 70px #184d7288, 0 1.5px 12px #ecd9c6;
  color: #26231e;
  position: relative;
}
.cookie-modal__content h2 {
  margin-bottom: 16px;
  color: var(--vintage-blue);
  font-family: var(--display-font);
  font-size: 1.33rem;
}
.cookie-modal__label {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 9px;
  font-size: 1rem;
}
.cookie-modal__label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--vintage-orange);
  cursor: pointer;
}
.cookie-modal__close {
  display: block;
  position: absolute;
  right: 18px; top: 22px;
  background: #fff7ec;
  border-radius: var(--radius-full);
  border: 2px solid var(--vintage-brown);
  color: var(--vintage-blue);
  width: 34px; height: 34px;
  font-size: 1.33rem;
  text-align: center;
  line-height: 32px;
  cursor: pointer;
  font-family: var(--display-font);
  padding: 0;
  transition: background 0.14s, color 0.18s;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: var(--vintage-orange);
  color: #fff7ec;
}

@media (max-width: 500px) {
  .cookie-modal__content {
    padding: 13px 9px 15px 9px;
    width: 98vw;
  }
}

/* ========================================== */
/* MISCELLANEOUS & DECORATIVE                 */
/* ========================================== */
hr {
  border: 0;
  height: 2px;
  background: var(--vintage-orange);
  border-radius: 2px;
  margin: 32px 0 28px 0;
}

blockquote {
  border-left: 6px solid var(--vintage-orange);
  margin-left: 0;
  margin-right: 0;
  padding: 18px 22px 12px 18px;
  background: #fffbe9;
  border-radius: var(--radius-main);
  font-style: italic;
  color: var(--vintage-brown);
  font-size: 1.1rem;
  margin-bottom: 23px;
}

/* =========== ANIMATIONS & TRANSITIONS ============= */
.card, .feature-grid > div, .service-list > div,
.cta-button, .mobile-nav a,
.testimonial-card, .cookie-banner, .cookie-button, .cookie-modal__content {
  transition: box-shadow 0.21s, border-color 0.21s, background 0.22s, color 0.15s, transform 0.17s;
}

/* ===== Scrollbar retro style === */
::-webkit-scrollbar {
  width: 12px;
  background: #fde8b7;
}
::-webkit-scrollbar-thumb {
  background: #d6aa77;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: #eba537;
}

/* =========== RESPONSIVE ALIGNMENTS ============ */
@media (max-width: 1200px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 990px) {
  .feature-grid,.service-list,.card-container,.testimonial-grid {
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.67rem; }
  h2 { font-size: 1.17rem; }
  h3 { font-size: 1rem; }
}

/* =========== RETRO VINTAGE DECOR ============ */
section {
  background: #fff7ec;
  border-radius: var(--radius-main);
  margin-bottom: 42px;
  box-shadow: 0 2px 15px #ebc59111;
  position: relative;
  overflow: visible;
}
section:before {
  /* Polka dot or retro pattern accent */
  content: '';
  display: block;
  position: absolute;
  left: -22px;
  top: -13px;
  width: 33px;
  height: 60px;
  border-radius: 30px;
  background: repeating-linear-gradient(
    110deg,
    #f5c964 0 7px, transparent 7px 14px
  );
  opacity: 0.23;
  z-index: 0;
}
section:after {
  content: '';
  display: block;
  position: absolute;
  right: -20px;
  bottom: -13px;
  width: 33px;
  height: 60px;
  border-radius: 30px;
  background: repeating-linear-gradient(
    70deg,
    #e66850 0 7px, transparent 7px 14px
  );
  opacity: 0.18;
  z-index: 0;
}

/* Only add retro pattern on larger screens */
@media (max-width: 700px) {
  section:before, section:after {
    display: none;
  }
}

/* Polaroid photo style for science images */
.card img, .feature-grid img, .service-list img {
  border-radius: 7px;
  box-shadow: 0 4px 19px #573f1d0a, 0 1.5px 7px #ecd9c6cc;
  border: 3px solid #ECD9C6;
  background: #fff7ec;
  margin-bottom: 10px;
}

/* ========== Accessibility ========== */
:focus {
  outline: 2px dashed var(--vintage-blue);
  outline-offset: 2px;
}

@media (max-width: 450px) {
  .cookie-banner {
    padding: 8px 4px 8px 6px;
    gap: 4px;
  }
  .cookie-modal__content {
    min-width: none;
    max-width: 98vw;
  }
}