/*
  Ampere Line Forschungslabor – Vintage Retro Style CSS
  ---------------------------------------------------
  Author: CSS & UI Design Senior
  Description: Responsive, flexbox-only, unmistakably vintage/retro, following brand guidelines
  Fonts used: Roboto Slab, Open Sans. (Use Google Fonts in production or proper @font-face.)
*/

/* RESET & NORMALIZE (Mobile first, safe, compatible) */
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, menu, 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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #F2E8C4;
}
body {
  color: #232323;
  background: #F2E8C4;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
ul, ol {
  list-style: none;
}
a {
  color: #19304D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #7DB0E2;
  outline: none;
}
button, .btn-primary {
  font-family: 'Roboto Slab', 'Open Sans', Arial, sans-serif;
  font-size: 18px;
  padding: 12px 32px;
  border-radius: 28px;
  border: none;
  outline: none;
  background: #19304D;
  color: #F2E8C4;
  letter-spacing: 0.09em;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 4px 18px 0 rgba(25, 48, 77,0.11);
  cursor: pointer;
  text-shadow: 1px 1px 0 #7DB0E222, 2px 2px 0 #fff5cd22;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus, button:hover, button:focus {
  background: #7DB0E2;
  color: #19304D;
  box-shadow: 0 8px 32px 0 rgba(25, 48, 77,0.18);
  transform: translateY(-2px) scale(1.05) rotate(-2deg);
}

/* Vintage font faces recommendations (via Google Fonts in production):
   - Roboto Slab for display (h1-h3, logo)
   - Open Sans for text
*/
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: #2b1910;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-shadow: 1px 2px 0 #f2e8c445, 1px 4px 8px #7db0e210;
}
h1 {
  font-size: 2.75rem;
  border-bottom: 3px double #7DB0E2;
  padding-bottom: 10px;
  margin-bottom: 28px;
  background: linear-gradient(90deg,#F2E8C4 80%,#7DB0E230 100%);
  border-radius: 0 0 48px 48px/0 0 28px 28px;
  display: inline-block;
}
h2 {
  font-size: 2rem;
  margin-bottom: 22px;
  font-weight: 700;
}
h3 {
  font-size: 1.35rem;
  color: #19304D;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.08rem;
  font-weight: 600;
}
p, li, ul, ol, blockquote {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}
blockquote {
  font-style: italic;
  color: #19304D;
  border-left: 6px solid #7DB0E2;
  background: #f6efd6;
  margin: 0 0 16px 0;
  padding: 16px 24px 16px 28px;
  border-radius: 16px 32px 32px 16px/14px 32px 24px 12px;
  font-size: 1.18rem;
  box-shadow: 0 1px 6px 0 #7db0e218;
}

strong {
  font-weight: bold;
  color: #19304D;
}

/************ CONTAINER & LAYOUT VINTAGE RETRO STYLES ************/
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  background: #fff6ef;
  border-radius: 36px;
  box-shadow: 0 8px 48px 0 rgba(189,153,79,0.10), 0 2px 8px #7db0e215;
  padding: 32px 24px;
  margin-bottom: 24px;
}

/************ HEADER & NAVIGATION *************/
header {
  background: #19304D;
  color: #F2E8C4;
  padding: 0;
  border-bottom: 8px double #F2E8C4;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 18px;
}
.logo img {
  height: 56px;
  width: auto;
  filter: sepia(0.15) contrast(1.05);
  display: block;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-left: 22px;
}
.main-nav a {
  font-family: 'Roboto Slab', serif;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: #F2E8C4;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.18s, color 0.16s, box-shadow 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #7DB0E2;
  color: #19304D;
  box-shadow: 0 0 6px 2px #F2E8C4bb;
  outline: none;
}
.btn-primary {
  margin-left: 18px;
  box-shadow: 0 1px 12px #7db0e218;
}

/************ MOBILE NAVIGATION (HAMBURGER) *************/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 26px;
  top: 26px;
  z-index: 120;
  background: #F2E8C4;
  border: 2px solid #7DB0E2;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2.2rem;
  color: #19304D;
  box-shadow: 0 2px 18px #7db0e21b;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #7DB0E2;
  color: #19304D;
  box-shadow: 0 4px 26px #19304d22;
}

.mobile-menu {
  display: flex;
  position: fixed;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #19304D;
  color: #F2E8C4;
  padding: 32px 32px 16px 32px;
  z-index: 3000;
  transition: transform 0.3s cubic-bezier(.8,0,.61,1), opacity 0.22s;
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.2rem;
  border: none;
  background: #F2E8C4;
  color: #19304D;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 14px #7db0e218;
  cursor: pointer;
  transition: background 0.2s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #7DB0E2;
  color: #19304D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  color: #F2E8C4;
  padding: 8px 0;
  border-radius: 0 18px 18px 0;
  transition: background 0.16s, color 0.13s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #7DB0E2;
  color: #19304D;
}

/************ HERO SECTIONS ************/
.hero {
  background: #F2E8C4 url('../assets/bg-retro-pattern.svg') repeat center top;
  border-bottom: 3px double #7DB0E2;
  padding: 58px 0 38px 0;
}
.hero .container {
  min-height: 160px;
  align-items: flex-start;
  justify-content: flex-start;
  background: none;
  gap: 22px;
}
.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 18px;
  color: #19304D;
  background: none;
  border: none;
}
.hero p {
  color: #4C3B2F;
  margin-bottom: 28px;
  font-size: 1.15rem;
}

/************ FEATURES, SERVICES, CARDS, FLEX PATTERNS ************/
.feature-grid,
.research-fields-list,
.technique-list,
.workshop-list,
.event-list,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0;
  justify-content: flex-start;
}
.feature-item, .equipment-descriptions, .workshop-levels, .service-highlights {
  background: #fffaf4;
  border-radius: 24px 48px 20px 28px/28px 48px 18px 14px;
  border: 3px double #ebdbab;
  box-shadow: 0 2px 16px #7db0e210;
  padding: 22px 18px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 355px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.15s, transform 0.15s;
}
.feature-item img, .technique-list img, .research-fields-list img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  filter: sepia(0.18) contrast(1.1);
  border-radius: 10px;
  border:2px solid #ebdbab;
  background: #F2E8C4;
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 4px 26px 0 #7DB0E233,0 1.5px 6px #7db0e217;
  transform: translateY(-2px) scale(1.04) rotate(-1.5deg);
  z-index: 2;
}

.content-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container .card,
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  background: #fffaf4;
  border-radius: 18px 34px 14px 28px/20px 34px 12px 14px;
  border: 3px double #ebdbab;
  box-shadow: 0 2px 16px #7db0e212;
  padding: 24px 18px 22px 18px;
  transition: box-shadow 0.15s, transform 0.14s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 26px 0 #7DB0E233,0 1.5px 6px #7db0e217;
  transform: translateY(-2px) scale(1.02) rotate(-1.5deg);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/************ TIMELINE ************/
.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 10px;
  border-left: 3px dashed #7DB0E2;
  margin-bottom: 20px;
}
.timeline li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.08rem;
}

/************ LIST STYLE ************/
ul, ol {
  margin-bottom: 18px;
  margin-top: 8px;
  padding-left: 1.08em;
}
ul li, ol li {
  list-style: none;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.65;
  padding-left: 26px;
}
ul li::before, ol li::before {
  content: "\25A1 ";
  color: #7DB0E2;
  font-size: 1.1em;
  position: absolute;
  left: 0;
  top: 2px;
}
.service-list li::before { content: "\2666 "; color: #BF6B04; }
.research-fields-list li::before { content: none; }
.technique-list li::before { content: none; }
.event-list li::before { content: "\2734 "; color: #7DB0E2; }
.timeline li::before { content: none; }

/************ TESTIMONIALS ************/
.testimonials {
  background: #f6efd6;
  padding: 40px 0 32px 0;
  margin-bottom: 60px;
  border-top: 5px double #ebdbabaa;
  border-bottom: 5px double #7DB0E2cc;
}
.testimonials .content-wrapper {
  background: #fff7e5;
  border-radius: 32px;
  box-shadow: 0 2px 16px #7db0e217;
  padding: 34px 24px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 22px 38px 22px 10px/16px 38px 18px 10px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 12px #7db0e21b;
  margin-bottom: 24px;
  margin-top: 12px;
  border-left: 7px solid #7DB0E2;
  transition: transform 0.18s, box-shadow 0.15s;
}
.testimonial-card blockquote {
  font-size: 1.14rem;
  color: #19304D;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.testimonial-card p {
  margin: 0;
  font-size: 1rem;
  color: #2b1910;
  font-weight: bold;
}
.testimonial-card:hover, .testimonial-card:focus {
  background: #f6efd6;
  box-shadow: 0 4px 24px #7db0e228;
  transform: scale(1.02) rotate(-1deg);
  z-index: 10;
}

/***** CONTACT DETAILS FLEXBOX *****/
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 8px;
}
.contact-details img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 12px;
}

/***** FOOTER *****/
footer {
  background: #19304D;
  color: #F2E8C4;
  border-top: 8px double #F2E8C4;
  margin-top: 40px;
  padding-top: 10px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  padding-top: 25px;
  padding-bottom: 15px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-nav a {
  color: #F2E8C4;
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.12s;
  padding: 2px 8px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #7DB0E2;
  color: #19304D;
}
.footer-contact p {
  margin-bottom: 9px;
  color: #F2E8C4;
  font-size: 1.02rem;
  font-family: 'Open Sans', Arial, sans-serif;
  letter-spacing: 0.02em;
}
.footer-contact a {
  color: #F2E8C4;
  text-decoration: underline;
  font-weight: bold;
}
.footer-contact a:hover {
  color: #7DB0E2;
}

/***** COOKIE CONSENT BANNER & MODAL *****/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  box-sizing: border-box;
  background: #fff5e2;
  color: #2b1910;
  border-top: 4px double #7DB0E2;
  box-shadow: 0 -4px 44px #19304d13;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 18px 20px 22px;
  z-index: 5000;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  animation: popInUp 0.38s cubic-bezier(.21,1.03,.82,1.07);
}
@keyframes popInUp {
  0% {transform: translateY(80px); opacity:0;}
  100% {transform: translateY(0); opacity: 1;}
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-size: 1.02rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  padding: 8px 20px;
  margin-left: 0;
  font-family: 'Roboto Slab', serif;
  font-weight: bold;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 10px #7DB0E216;
}
.cookie-btn--accept {
  background: #19304D;
  color: #F2E8C4;
}
.cookie-btn--accept:hover { background: #7DB0E2; color: #19304D; }
.cookie-btn--decline {
  background: #F2E8C4;
  color: #19304D;
  border: 1.5px solid #19304D;
}
.cookie-btn--decline:hover { background: #7DB0E2; color: #19304D; border: 1.5px solid #7DB0E2;}
.cookie-btn--settings {
  background: #7DB0E2;
  color: #19304D;
  border: 1.5px solid #19304D;
}
.cookie-btn--settings:hover { background: #19304D; color: #F2E8C4; }

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.96);
  background: #fffaf4;
  border-radius: 36px;
  box-shadow: 0 12px 75px #19304d29, 0 1.5px 10px #7db0e215;
  padding: 48px 32px 34px 32px;
  z-index: 5010;
  min-width: 330px;
  max-width: 95vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.2s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  color: #19304D;
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.cookie-modal__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.cookie-modal__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-size: 1.06rem;
  background: #f6efd6;
  padding: 12px 16px;
  border-radius: 22px;
  border: 2px dashed #ebdbab;
}
.cookie-modal__item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #7DB0E2;
  margin-right: 8px;
}
.cookie-modal__item--essential label::after {
  content: " (immer aktiv)";
  font-size: 0.94em;
  color: #7DB0E2;
}
.cookie-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/************ RESPONSIVE DESIGN ************/
@media (max-width: 1220px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 991px) {
  .main-nav {
    gap: 18px;
  }
  .footer-nav {
    gap: 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-wrapper,
  .testimonials .content-wrapper {
    padding: 20px 8px;
  }
  .feature-grid,
  .card-container,
  .content-grid,
  .workshop-list,
  .event-list,
  .research-fields-list,
  .technique-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-item, .equipment-descriptions, .workshop-levels, .service-highlights, .card {
    min-width: 0;
    max-width: 100%;
    padding: 18px 12px;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.97rem;
    padding: 20px 8px 17px 8px;
  }
  .cookie-modal {
    padding: 24px 8px 18px 8px;
    min-width: 0;
  }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.21rem; }
}
/* Hide mobile menu on desktop */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav,
  .btn-primary {
    display: flex !important;
  }
}

/************ UTILS & ANIMATIONS ************/
.fadein {
  opacity: 0;
  animation: fadeInAnim 1.2s forwards;
}
@keyframes fadeInAnim {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

::-webkit-scrollbar {
  width: 10px;
  background: #f2e8c4;
}
::-webkit-scrollbar-thumb {
  background: #7DB0E2;
  border-radius: 8px;
}
::-webkit-selection, ::selection {
  background: #7DB0E2;
  color: #fff;
}

/************ MISC. VINTAGE & RETRO DECORATION ************/
.section {
  border-radius: 40px 90px 40px 90px/32px 64px 12px 48px;
  background: repeating-linear-gradient(135deg,#f2e8c4 0 16px,#ebdbab 16px 28px);
  box-shadow: 0 2px 12px #ebdbab25, 0 1px 7px #7db0e220;
}

/**************************************/
/*  END OF CSS                        */
/**************************************/
