/* ==========================================================
   CSS Reset & Normalize (mobile-first)
========================================================== */
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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  background: #F6F9FB;
  color: #263238;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, .footer-menu a:hover {
  color: #B71C1C;
}
ul, ol {
  margin-left: 18px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ===============================
   Brand Fonts
   =============================== */
@import url('https://fonts.googleapis.com/css?family=Oswald:400,500,700|Source+Sans+Pro:400,600,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  color: #263238;
  font-weight: 500;
  line-height: 1.15;
}
h1 { font-size: 2.25rem; margin-bottom: 16px; }
h2 { font-size: 1.65rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.08rem; }
p, .text-section {
  font-size: 1rem;
  color: #37474F;
  margin-bottom: 18px;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
}
blockquote {
  font-style: italic;
  color: #37474F;
  border-left: 4px solid #263238;
  padding: 8px 0 8px 18px;
  margin: 18px 0;
  background: #eef3f7;
}
strong {
  font-weight: 700;
  color: #263238;
}

/* ===============================
   Layout Containers
   =============================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(70, 90, 125, 0.05);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #f5f8fa;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(40,50,60,0.08);
  padding: 28px 22px;
  flex: 1 1 255px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 2px 14px rgba(38,50,56,0.16);
  transform: translateY(-3px) scale(1.01);
}

.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;
  background: #F6F9FB;
  color: #263238;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(38, 50, 56, 0.07);
  margin-bottom: 18px;
  font-style: italic;
  border-left: 4px solid #FFD600;
  font-size: 1rem;
  transition: box-shadow 0.2s;
}
.testimonial-card strong { font-style: normal; color: #263238; }
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(38, 50, 56, 0.16);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* Feature Grid (Home Index) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  background: #F5F8FA;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(38,50,56,0.07);
  padding: 24px 20px 20px 20px;
  flex: 1 1 230px;
  min-width: 190px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 2px 14px rgba(38,50,56,0.15);
  transform: translateY(-2px);
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  filter: grayscale(25%) contrast(1.02);
}

/* Latest Stories Grid */
.latest-stories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 2px;
}
.latest-stories-grid > div {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(38,50,56,0.06);
  padding: 20px 18px;
  flex: 1 1 256px;
  min-width: 206px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.18s;
  margin-bottom: 12px;
}
.latest-stories-grid > div:hover {
  box-shadow: 0 2px 14px rgba(38,50,56,0.14);
  transform: translateY(-2px) scale(1.01);
}

/* Stories, Articles & Content Previews (Testberichte, Fahrberichte, Geschichten, Tipps) */
.test-article-list,
.fahrbericht-list,
.story-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.test-article-list > div, 
.fahrbericht-list > div,
.story-list > div {
  background: #fbfcfd;
  border-radius: 9px;
  box-shadow: 0 1px 6px rgba(38,50,56,0.06);
  padding: 24px 18px 18px 18px;
  flex: 1 1 260px;
  min-width: 200px;
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.story-list small {
  color: #607D8B;
  font-size: 0.99rem;
}
.test-article-list > div:hover, 
.fahrbericht-list > div:hover, 
.story-list > div:hover {
  box-shadow: 0 3px 14px rgba(38,50,56,0.13);
  transform: translateY(-3px) scale(1.01);
}

/* Filter and Sort Buttons */
.filter-tags, .sort-options {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.filter-tags button, .sort-options button {
  padding: 5px 16px;
  background: #F5F8FA;
  border: 1px solid #B0BEC5;
  color: #263238;
  border-radius: 7px;
  font-size: 0.99rem;
  transition: background 0.17s, border 0.16s, color 0.2s;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}
.filter-tags button:hover, .sort-options button:hover {
  background: #263238;
  color: #fff;
  border-color: #263238;
}

/* Quick Facts, Download Guides */
.quick-facts, .downloadable-guides {
  margin: 32px 0 18px 0;
  background: #F4F7FA;
  padding: 17px 18px 10px 18px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(38,50,56,0.06);
}
.quick-facts ul, .downloadable-guides ul {
  margin-left: 14px;
}

/* Callout (e.g. in auto-geschichten) */
.callout {
  margin: 26px 0 0 0;
  background: #e3edf7;
  border-radius: 10px;
  padding: 22px 18px;
  box-shadow: 0 1px 8px rgba(38,50,56,0.10);
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
}

/* =====================================
   Header & Navigation
   ===================================== */
header {
  background: #fff;
  box-shadow: 0 2px 13px rgba(38,50,56,0.05);
  padding: 0;
  position: relative;
  z-index: 200;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 12px;
  padding: 0 16px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  color: #263238;
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 7px;
  border-radius: 5px;
  transition: background 0.15s, color 0.13s;
}
header nav a:hover, .footer-menu a:focus {
  background: #E3EDF7;
  color: #B71C1C;
}
header img {
  height: 44px;
  width: auto;
}
.cta-btn {
  background: #263238;
  color: #fff !important;
  padding: 12px 28px;
  border: none;
  border-radius: 25px;
  font-size: 1.13rem;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 12px rgba(38,50,56,0.10);
  transition: background 0.16s, box-shadow 0.21s, transform 0.16s;
  cursor: pointer;
  outline: none;
  margin-left: 18px;
  margin-bottom: 0;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #B71C1C;
  color: #fff;
  box-shadow: 0 4px 18px rgba(38,50,56,0.16);
  transform: translateY(-1px) scale(1.01);
}

/* Hide cta on mobile if desired with class */
@media (max-width: 600px) {
  .cta-btn {
    padding: 11px 17px;
    font-size: 1rem;
    margin-left: 6px;
  }
}

/* =========================
   MOBILE NAVIGATION
   ========================= */
.mobile-menu-toggle {
  background: #263238;
  color: #fff;
  font-size: 2em;
  border: none;
  border-radius: 7px;
  padding: 5px 14px;
  margin-left: 10px;
  display: none;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(38,50,56,0.14);
  z-index: 210;
}
/* Mobile menu overlay/base */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(38,50,56,0.92);
  color: #fff;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-110vw);
  transition: transform 0.42s cubic-bezier(0.52,0,0.34,1), opacity 0.31s;
  opacity: 0;
  pointer-events: none;
}
body.mobile-menu-open .mobile-menu {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  align-self: flex-end;
  margin: 18px 20px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 320;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #FFD600;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px 0 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.17rem;
  letter-spacing: 0.02em;
  padding: 9px 0;
  border-radius: 5px;
  font-family: 'Oswald', Arial, sans-serif;
  transition: background 0.14s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD600;
  color: #263238;
}
/* Show mobile burger on small screens, hide desktop nav */
@media (max-width: 992px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 600px) {
  header .container {
    padding: 0 7px;
  }
  .mobile-nav a {
    font-size: 1.04rem;
    padding: 8px 0;
  }
  .cta-btn {
    font-size: 0.98rem;
  }
}

/* Main & Section Headings */
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section, main > section {
    padding: 28px 11px;
    margin-bottom: 34px;
    border-radius: 8px;
  }
  .feature-grid, .latest-stories-grid, .test-article-list, .fahrbericht-list, .story-list {
    gap: 17px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.13rem; }
}

/* =====================================
   Footer
   ===================================== */
footer {
  background: #263238;
  color: #fff;
  padding: 32px 0 16px 0;
  margin-top: 12px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.footer-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  justify-content: center;
}
.footer-menu a {
  color: #fff;
  opacity: 0.8;
  font-size: 0.98rem;
  transition: color 0.2s, opacity 0.15s, background 0.13s;
  padding: 5px 0;
}
.footer-menu a:hover {
  color: #FFD600;
  opacity: 1;
}
.footer-credits {
  color: #B0BEC5;
  font-size: 0.99rem;
  text-align: center;
  margin-bottom: 2px;
}

/* =====================================
   Cookie Consent Banner
   ===================================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #263238;
  color: #fff;
  padding: 26px 16px 20px 16px;
  z-index: 5000;
  box-shadow: 0 -2px 18px rgba(38,50,56,0.19);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.34s, opacity 0.24s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120px);
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  margin: 0 5px;
  padding: 8px 24px;
  border-radius: 21px;
  border: 0;
  font-size: 1rem;
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 500;
  background: #1976D2;
  transition: background 0.16s, color 0.12s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(38,50,56,0.12);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #FFD600;
  color: #263238;
}
.cookie-banner .cookie-btn.cookie-reject {
  background: #B71C1C;
}
.cookie-banner .cookie-btn.cookie-reject:hover {
  background: #FFD600;
  color: #B71C1C;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: #607D8B;
}
.cookie-banner .cookie-btn.cookie-settings:hover {
  background: #FFD600;
  color: #607D8B;
}
.cookie-banner .cookie-policy-link {
  color: #FFD600;
  text-decoration: underline;
  margin-left: 5px;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 7100;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,50,56,0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #263238;
  border-radius: 14px;
  min-width: 310px;
  max-width: 94vw;
  width: 420px;
  box-shadow: 0 6px 32px rgba(38,50,56,0.25);
  padding: 34px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalIn 0.34s 1 cubic-bezier(0.61,0,0.42,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(42px) scale(0.92); opacity: 0.7; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #263238;
  margin-bottom: 8px;
}
.cookie-modal ul {
  list-style: none;
  margin: 15px 0 15px 0;
  padding: 0;
}
.cookie-modal ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #37474F;
  font-weight: 500;
  margin-left: 7px;
}
.cookie-modal .cookie-toggle {
  position: relative;
  appearance: none;
  width: 36px;
  height: 20px;
  background: #B0BEC5;
  border-radius: 15px;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .cookie-toggle:checked {
  background: #263238;
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  top: 2.5px; left: 2.5px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(38,50,56,0.12);
  transition: left 0.2s;
}
.cookie-modal .cookie-toggle:checked:before {
  left: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  background: transparent;
  color: #B71C1C;
  border: none;
  font-size: 2em;
  cursor: pointer;
  padding: 0;
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-end;
}
/* Essential always enabled */
.cookie-modal .cookie-essential {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width:470px) {
  .cookie-modal {
    padding: 19px 6px 18px 14px;
    min-width: 200px;
    width: 95vw;
  }
}

/* =====================================
   Forms (Kontakt, Suchfelder, etc.)
   ===================================== */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #B0BEC5;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: #F6F9FB;
  color: #263238;
  outline: none;
  width: 100%;
  transition: border-color 0.16s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #263238;
  box-shadow: 0 2px 14px rgba(38,50,56,0.09);
}
label {
  font-weight: 600;
  margin-bottom: 4px;
  color: #263238;
}

/* =====================================
   Utilities & Helpers
   ===================================== */
.hide { display: none !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }

/* =====================================
   Responsive Adjustments (Mobile First)
   ===================================== */
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
  }
  .feature-grid, .latest-stories-grid, .test-article-list, .story-list, .fahrbericht-list {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 17px;
  }
}
@media (max-width: 600px) {
  .footer-menu {
    flex-direction: column;
    gap: 9px;
    align-items: center;
  }
  .section, main > section {
    padding: 15px 2px 18px 2px;
    margin-bottom: 18px;
  }
  .testimonial-card, .card, .feature-grid > div, .latest-stories-grid > div, .story-list > div {
    padding: 13px 7px 13px 11px;
    font-size: 0.97rem;
    border-radius: 8px;
  }
}

/* ================================
   Animations & Micro-Interactions
 ================================ */
.cta-btn, button, .card, .feature-grid > div, .story-list > div, .test-article-list > div, .fahrbericht-list > div {
  transition: box-shadow 0.18s, transform 0.19s, background 0.16s, color 0.13s;
}

/* ================================
   Accessibility Focus Visuals
 ================================ */
a:focus, button:focus, .cta-btn:focus {
  outline: 3px solid #FFD600;
  outline-offset: 2px;
  background: #FAFAFA;
}

/* ================================
   Contact Details Icons
 ================================ */
.contact-details img {
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin-right: 9px;
  filter: grayscale(35%) contrast(1.2);
}

/* ================================
   Customizations For Section Spacing
 ================================ */
main > section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  main > section, .section {
    margin-bottom: 34px;
    padding: 24px 7px;
  }
}

/* ================================
   Misc
 ================================ */
::-webkit-input-placeholder { color: #90A4AE; }
:-moz-placeholder { color: #90A4AE; }
::-moz-placeholder { color: #90A4AE; }
:-ms-input-placeholder { color: #90A4AE; }
::placeholder { color: #90A4AE; }

hr {
  border: none;
  border-top: 1px solid #ececec;
  margin: 36px 0;
}

/* END */
