/* -----------------------------
   Zeitreise Autokultur CSS
   Modern Bold • Flexbox Only Design System
   ------------------------------ */

/* 1. 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,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 { box-sizing: border-box; scroll-behavior: smooth; }
*,*:before,*:after { box-sizing: inherit; }
body { line-height:1.55; background: #F4F2EE; color: #1C2833; }
img { max-width:100%; height:auto; display:block; }
figure { margin:0; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* Font Face (Google Fonts import if needed) */
@import url('https://fonts.googleapis.com/css?family=Oswald:700|Roboto:400,500,700&display=swap');

:root {
  --primary: #1C2833;
  --secondary: #D5A021;
  --accent: #F4F2EE;
  --danger: #be2c2c;
  --success: #2ecc71;
  --font-display: 'Oswald', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow-md: 0 3px 18px 0 rgba(32,32,32,.11);
  --shadow-card: 0 8px 22px 0 rgba(32,32,32,0.12);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--accent);
  color: var(--primary);
}

/* Headings - bold and geometric */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  line-height:1.15;
}
h1 { font-size: 2.75rem; letter-spacing: -.02em; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.05rem; margin-bottom: 10px; }
p, ul, ol, li, blockquote { color: #2c313a; }
p { margin-bottom: 16px; font-size: 1.1em; }

/* 2. Flex Containers (per requirements) */
.container {
  width: 100%;
  max-width: 1200px;
  margin:0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Section spacing & patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 18px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: 14px;
  margin-bottom: 20px;
  padding: 28px;
  position: relative;
  transition: box-shadow .19s cubic-bezier(.8,.3,.3,1), transform .19s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card:hover {
  box-shadow: 0 15px 36px 0 rgba(32,32,32,0.17);
  transform: translateY(-3px) scale(1.016);
}

.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;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .16s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 30px 0 rgba(32,32,32,0.2);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 3. Header & Navigation */
header {
  background: #fff;
  box-shadow: 0 3px 10px 0 rgba(40,40,55,0.07);
  position: sticky;
  top: 0; left: 0; z-index: 202;
  width: 100%;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}
.logo img {
  height: 42px;
  width: auto;
  margin-right: 20px;
}
nav {
  display: flex;
  gap: 24px;
}
header nav a {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
header nav a:hover, header nav a.active {
  color: var(--secondary);
  border-bottom: 2.5px solid var(--secondary);
}

.cta.primary {
  background-color: var(--secondary);
  color: #fff;
  border-radius: 30px;
  padding: 14px 34px;
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing:.04em;
  box-shadow: 0 6px 18px 0 rgba(213,160,33,0.09), 0 2px 4px 0 rgba(28,40,51,.07);
  display: inline-block;
  transition: background .23s, color .2s, box-shadow .21s;
  border: none;
  cursor: pointer;
}
.cta.primary:hover, .cta.primary:focus {
  background: #1C2833;
  color: #fff;
  box-shadow: 0 3px 25px 0 rgba(28,40,51,0.16);
}

/* Hamburger Button Styles */
.mobile-menu-toggle {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 2rem;
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  transition: background .2s, color .2s;
  z-index: 301;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: #fff;
}

/* Hide nav/CTA on mobile, show hamburger */
@media (max-width: 1000px) {
  header nav, header .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1001px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* 4. Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(28,40,51,.98);
  z-index: 9000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.69,.01,.21,.99);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  visibility: hidden;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  margin: 24px 0 0 24px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 9200;
  transition: color .2s;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  margin: 32px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 16px 32px;
  width: 100vw;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  padding: 12px 0;
  color: #fff;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
  transition: color .22s, background .18s, border-color .22s;
}
.mobile-nav a:hover {
  color: var(--secondary);
  background: rgba(213,160,33, 0.07);
  border-bottom: 2px solid var(--secondary);
}

@media (min-width: 1001px) {
  .mobile-menu { display: none !important; }
}


/* 5. Hero Sections */
.hero {
  background: linear-gradient(90deg, var(--accent) 60%, #fff 100%);
  padding: 70px 0 50px 0;
  min-height: 350px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1.08;
}
.hero p {
  color: #343744;
  font-size: 1.21rem;
  margin-bottom: 30px;
  max-width: 600px;
}

/* 6. Features, About, Card-Lists */
.features, .about, .contact, .services {
  margin-bottom: 60px;
  padding: 40px 0;
  display: flex;
}
.features .container,
.about .container,
.contact .container,
.services .container {
  display: flex;
  flex-direction: column;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top:32px;
}
.feature-grid li {
  background: #fff;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 330px;
  padding: 30px 30px 20px 30px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: box-shadow .18s, transform .15s;
  border: 2.5px solid transparent;
}
.feature-grid li img {
  height: 42px; width: 42px;
  margin-bottom: 12px;
}
.feature-grid li:hover {
  box-shadow: 0 10px 28px 0 rgba(28,40,51,0.13);
  transform: translateY(-2px) scale(1.025);
  border: 2.5px solid var(--secondary);
  cursor:pointer;
}

/* About / Info blocks */
.about ul, .services ul, .contact-info {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 12px;
}
.about ul li, .services ul li, .contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size:1.07rem;
  font-family: var(--font-body);
  background: none;
  color: #2d3136;
}
.contact-info img {
  width: 26px; height: 26px;
  margin-right: 8px;
  filter: grayscale(.25) contrast(150%);
}
.quick-links {
  display: flex;
  gap: 22px;
  margin-top: 18px;
}
.quick-links a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 700;
  font-family: var(--font-display);
  font-size:1.03rem;
  transition: color .2s;
}
.quick-links a:hover { color: var(--primary); }

/* 7. Testimonials - Cards */
.testimonials .testimonial-card {
  background: #fff;
  color: #1C2833;
  box-shadow: var(--shadow-card);
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  max-width: 750px;
}
.testimonial-card img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eee;
  object-fit: cover;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.27;
  color: var(--primary);
  margin: 0 0 7px 0;
}
.testimonial-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #314254;
}

/* Ensure contrast: testimonials on light backgrounds only!
Dark text on white, never white on dark. */

/* 8. Footer */
footer {
  background: #1C2833;
  color: #fff;
  padding: 36px 0 18px 0;
  border-top: 6px solid var(--secondary);
  margin-top: 88px;
  width:100%;
}
footer .container {
  display: flex;
  flex-direction: column; /* mobile first */
  gap: 20px;
  align-items: center;
  justify-content: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 6px;
}
footer nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size:1.09rem;
  padding: 2px 0;
  border-bottom:2px solid transparent;
  transition: color .19s, border-color .19s;
}
footer nav a:hover {
  color: #fff;
  border-bottom:2px solid #fff;
}
.footer-info {
  display: flex;
  align-items: center;
  gap:20px;
  margin-top: 8px;
}
.footer-info img {
  height: 42px; width:auto;
  filter: grayscale(.2) brightness(135%);
}
.footer-info p {
  color: #AAA;
  font-size:.97rem;
  font-family: var(--font-body);
}

/* 9. Cookie Consent Banner & Modal */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: #fff;
  color: #1C2833;
  border-top: 3.5px solid var(--secondary);
  box-shadow: 0 -2px 35px 0 rgba(28,40,51,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  z-index: 10530;
  padding: 22px 30px;
  font-size:1.09rem;
  animation: cookie-in .7s cubic-bezier(.65,.02,.26,.97);
  min-height: 64px;
}
@keyframes cookie-in { from { transform: translateY(80px); opacity:.35; } to { transform: none; opacity:1; } }
#cookie-banner p {
  flex: 1 1 auto;
  margin: 0;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 29px;
  border: none;
  background: var(--secondary);
  color: #fff;
  cursor: pointer;
  margin-left: 10px;
  font-size:1rem;
  box-shadow: 0 2px 7px 0 rgba(213,160,33,.07);
  transition: background .19s, color .19s, box-shadow .19s;
}
.cookie-btn:hover {
  background: #1C2833;
  color: #fff;
}
.cookie-btn.settings {
  background: none;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  box-shadow: none;
}
.cookie-btn.settings:hover {
  background: var(--secondary);
  color: #fff;
}

#cookie-modal-overlay {
  display:none;
  position: fixed;
  background: rgba(28,40,51,0.82);
  z-index:9999;
  inset:0 0 0 0;
  align-items:center;
  justify-content:center;
}
#cookie-modal-overlay.active {
  display: flex;
  animation: fade-in-cookie-modal .42s cubic-bezier(.65,.02,.26,.97);
}
@keyframes fade-in-cookie-modal { from { opacity: 0;} to {opacity:1;} }
#cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 95vw;
  padding: 40px 34px 32px 34px;
  box-shadow: 0 9px 36px 0 rgba(28,40,51,0.23);
  border: 3px solid var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: slideup-cookie .4s cubic-bezier(.62,.01,.21,.99);
}
@keyframes slideup-cookie { from { transform: translateY(120px); opacity:.3; } to {transform:none; opacity:1;} }
#cookie-modal h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius:9px;
  background: #f6f6fa;
  padding: 13px 16px;
  margin-bottom: 10px;
  font-size:1rem;
}
#cookie-modal .cookie-toggle {
  width: 46px; height: 26px;
  background: #e8eaef;
  border-radius:14px;
  position: relative;
  cursor:pointer;
}
#cookie-modal .cookie-toggle input {
  opacity: 0; width: 0; height: 0; position:absolute;
}
#cookie-modal .cookie-slider {
  position: absolute; left: 2px; top: 2px;
  width: 22px; height: 22px;
  background: var(--secondary);
  border-radius:50%;
  transition: left .23s cubic-bezier(.83,0,.21,1);
}
#cookie-modal .cookie-toggle input:checked + .cookie-slider {
  left: 22px;
  background: var(--primary);
}
#cookie-modal .cookie-toggle[aria-disabled=true] {
  opacity:.55; pointer-events:none;
}
#cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}
#cookie-modal .cookie-modal-actions .cookie-btn {
  margin-left:0;
}
#cookie-modal .cookie-close {
  background:none;
  border:none;
  color: var(--primary);
  font-size: 2.1rem;
  position: absolute;
  top: 17px; right: 22px;
  cursor:pointer;
  transition:color .2s;
}
#cookie-modal .cookie-close:hover { color: var(--danger); }

/* 10. Extra UI styles: Forms, Inputs, Misc */
input,button,select,textarea {
  font-family: var(--font-body);
}
input, textarea, select {
  border: 2px solid #d4d6dc;
  border-radius: 10px;
  padding: 10px 14px;
  font-size:1.08rem;
  margin-bottom: 13px;
  transition: border-color .16s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--secondary);
}

button, .button, .cta, .cookie-btn {
  cursor: pointer;
  outline: none;
  transition: filter .15s, box-shadow .15s;
}
button:active, .cta:active, .cookie-btn:active, .button:active {
  filter: brightness(.92);
}

/* 11. Responsive Design (Mobile first) */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 12px; }
  .feature-grid { gap:16px; }
  .feature-grid li { min-width: 48vw; }
}
@media (max-width: 768px) {
  .section, .features, .about, .contact, .services {
    padding: 28px 0 10px 0;
    margin-bottom: 38px;
  }
  .container, footer .container { padding: 0 5vw; }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid li {
    width: 100%; min-width:0;
    padding: 22px 14px 16px 16px;
  }
  .testimonials .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }
  nav { gap: 10px; }
  .footer-info {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .hero { padding: 42px 0 28px 0; }
}
@media (max-width: 650px) {
  .card-container, .content-grid { gap: 12px; }
  .card { padding: 13px; }
  h1 { font-size: 1.49rem; }
  h2 { font-size: 1.16rem; }
  .footer-info img { height:28px; }
}
/* Responsive: text-image-section */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* 12. Utility classes */
.text-center { text-align: center; }
.mt-0 { margin-top:0 !important; }
.mb-0 { margin-bottom:0 !important; }
.mb-10 { margin-bottom:10px !important; }
.mt-20 { margin-top:20px !important; }
.rounded { border-radius: 18px; }
.bold { font-weight:700; }
.upper { text-transform: uppercase; letter-spacing:.11em; font-weight:700; }

/* 13. Geometric Shapes for Modern Bold look */
.hero:before {
  content: '';
  display: block;
  position: absolute;
  right: -60px; top: 56px;
  width: 160px; height: 160px;
  background: var(--secondary);
  opacity: .08;
  border-radius: 40px 120px 50px 130px;
  filter: blur(1px);
  z-index: 0;
}
.hero {
  position: relative;
  overflow:hidden;
  z-index:1;
}

/* 14. Visual Hierarchy for page sections */
.section > h1, .section > h2, .section > h3 {
  margin-bottom: 18px;
  letter-spacing: -.011em;
}

/* 15. Misc: Lists and blockquotes */
ol, ul {
  margin: 0 0 16px 0;
  padding:0;
}
li { margin-bottom: 8px; }
blockquote {
  border-left: 4px solid var(--secondary);
  margin: 0;
  padding: 6px 0 6px 17px;
  font-style:italic;
  color: #1c2833;
}

/* 16. Animations on hover, focus, buttons etc */
.cta.primary, .feature-grid li, .card, .testimonial-card, button, a {
  transition: box-shadow .17s, background .20s, color .16s, transform .17s;
}

/*  17. Ensure no overlap (critical)  */
.card, .testimonial-card, .feature-grid li {
  margin-bottom:20px;
}
.section, .features, .about, .contact, .services {
  margin-bottom:60px;
}

/* 18. Remove default scroll on mobile menu open */
body.mobile-menu-open {
  overflow: hidden;
}

/* 19. Accessibility*/
:focus-visible {
  outline:2.5px dashed var(--secondary);
  outline-offset:2px;
}

/* END Zeitreise Autokultur Styles */