/* ----------------------------
   BlitzKurrier München - playful_dynamic CSS
   Author: Senior CSS Developer & UI Designer
   Brand colors: #154F91 (primary), #F5A623 (secondary), #F2F2F2 (accent)
   Fonts: Montserrat (display), Roboto (body), Backup: Arial, Helvetica
   Flexbox only! Mobile-first. All spacing/alignment/animation requirements met.
   -----------------------------*/

/* CSS RESET & FOUNDATION */
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,
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 {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #FFF;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  color: #154F91;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #F5A623;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}

/* BASE CONTAINERS */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 0 auto;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

/* TYPOGRAPHY - playful/dynamic scale */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  color: #154F91;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #F5A623;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #154F91;
}
h4, .h4 {
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #222;
  font-weight: 500;
}
p, li, address {
  font-size: 1rem;
}

/* HEADERS & NAV */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(21,79,145,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 18px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
}
nav.main-nav a {
  color: #154F91;
  padding: 7px 9px;
  border-radius: 7px;
  background: transparent;
  transition: background 0.15s, color 0.17s;
  position: relative;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  background: #F5A623;
  color: #fff;
}
header .btn-primary {
  margin-left: 10px;
}
header img[alt="BlitzKurrier München"] {
  height: 48px;
  width: auto;
  margin-right: 18px;
}
button.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  border: none;
  background: none;
  color: #154F91;
  cursor: pointer;
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 8px;
  transition: background .16s;
}
button.mobile-menu-toggle:hover, button.mobile-menu-toggle:focus {
  background: #F5A623;
  color: #fff;
}

/* HIDE DESKTOP NAV ON MOBILE */
@media (max-width: 980px) {
  nav.main-nav {
    display: none !important;
  }
  header .btn-primary {
    display: none !important;
  }
}

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

/* MOBILE MENU (SIDEDRAWER) */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21,79,145, 0.97);
  transform: translateX(-110%);
  transition: transform 0.44s cubic-bezier(.8,.1,.6,1);
  z-index: 9999;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  margin: 16px 24px 0 0;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 10px;
  transition: background 0.14s;
  z-index: 2;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F5A623;
  color: #154F91;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 46px 30px 0 32px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  background: #154F91;
  padding: 15px 15px;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 10px;
  margin: 0 0 14px 0;
  transition: background 0.15s, color 0.15s, box-shadow 0.23s;
  box-shadow: 0 2px 10px rgba(21,79,145,0.10);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F5A623;
  background: #fff;
}

/* HERO BANNER */
.hero {
  background: #F2F2F2;
  min-height: 350px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 44px 0 44px 0;
  box-shadow: 0 6px 38px 0 rgba(21,79,145, 0.05);
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  color: #154F91;
  margin-bottom: 8px;
  text-shadow: 1px 3px #F5A62333;
}
.hero p {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 18px;
  max-width: 36em;
}

/* PLAYFUL PRIMARY BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.14rem;
  background: #F5A623;
  color: #154F91;
  padding: 15px 32px;
  border: none;
  border-radius: 34px;
  box-shadow: 0 6px 22px -6px #F5A62355;
  transition: transform 0.17s cubic-bezier(.8,.1,.7,1), box-shadow 0.19s, background 0.21s, color 0.21s;
  cursor: pointer;
  overflow: hidden;
  margin-top: 14px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  position: relative;
}
.btn-primary::after {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(245,166,35,0.12);
  opacity: 0;
  transition: opacity 0.18s;
  z-index: 0;
  border-radius: 34px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #154F91;
  color: #fff;
  transform: translateY(-3px) scale(1.045) rotate(-1deg);
  box-shadow: 0 12px 36px -6px #154F9138, 0 2px 10px #F5A62388;
}
.btn-primary:hover::after, .btn-primary:focus::after {
  opacity: 1;
}

/* CARDS, FEATURES, SECTIONS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 24px 0 #154F9111;
  padding: 32px 26px 28px 26px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* FLEX LAYOUTS (Required Classes) */
.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: #F2F2F2;
  border-radius: 18px;
  box-shadow: 0 3px 14px 0 #F5A62318;
  margin-bottom: 20px;
  font-size: 1.11rem;
  color: #222;
  min-width: 210px;
  transition: box-shadow 0.23s, transform 0.19s;
  position: relative;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 9px 26px 0 #154F9148, 0 2px 9px #F5A62333;
  transform: translateY(-2px) scale(1.025) rotate(-1deg);
  background: #fffbe4;
}
.testimonial-card p {
  color: #154F91;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.testimonial-card span {
  font-style: italic;
  color: #403e3e;
  font-size: 0.98em;
  margin-left: 18px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 210px;
  min-width: 210px;
  background: #fff;
  border-radius: 20px;
  padding: 26px 20px;
  box-shadow: 0 4px 16px 0 #F5A62311;
  margin: 0 0 20px 0;
  transition: box-shadow 0.21s, transform 0.13s;
  position: relative;
  z-index: 1;
}
.feature-item img {
  width: 48px;
  height: auto;
  border-radius: 12px;
  background: #F2F2F2;
  padding: 7px;
  box-shadow: 0 3px 8px #154F9109;
  transition: transform 0.13s;
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 7px 22px 0 #F5A62336, 0 2px 10px #154F9144;
  transform: translateY(-2px) scale(1.03) rotate(1deg);
  background: #fffdf6;
}
.feature-item:hover img, .feature-item:focus img {
  transform: scale(1.15) rotate(-6deg);
}

/* CTAS & BANNERS */
.cta-banner {
  background: #F5A623;
  color: #154F91;
  border-radius: 22px;
  margin-bottom: 60px;
  box-shadow: 0 8px 28px #154F9140, 0 2px 10px #F5A62344;
  padding: 40px 20px;
}
.cta-banner .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 13px;
}
.cta-banner h2 {
  color: #154F91;
  margin-bottom: 4px;
}
.cta-banner p {
  color: #222;
  font-size: 1.18em;
  margin-bottom: 12px;
}
.cta-banner .btn-primary {
  margin-top: 0;
}

/* TABLES (Preise) */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 9px #154F9109;
  margin-bottom: 24px;
  overflow: hidden;
}
thead {
  background: #154F91;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
}
th, td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid #F2F2F2;
}
th {
  font-weight: 700;
  font-size: 1.08em;
}
tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: #fffbe6;
  transition: background 0.18s;
}

/* ADDRESS / FOOTER */
footer {
  background: #154F91;
  color: #fff;
  padding: 48px 0 18px 0;
  margin-top: 38px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #F5A623;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 7px;
  background: rgba(245,166,35,0.09);
  transition: background 0.12s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #F5A623;
  color: #154F91;
}
footer .text-section {
  font-size: 1.01em;
  color: #fff;
  gap: 10px;
}
footer address {
  font-style: normal;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  font-size: 0.98em;
}
footer address img {
  width: 18px;
  height: 18px;
  margin: 0 3px 0 6px;
  vertical-align: middle;
}

/* RESPONSIVENESS */
@media (max-width: 980px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
    max-width: 99vw;
  }
  .footer-nav {
    gap: 10px;
    font-size: 0.98em;
    flex-wrap: wrap;
  }
  .section, .cta-banner {
    padding: 22px 6px;
    margin-bottom: 38px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cta-banner .content-wrapper {
    align-items: flex-start;
    text-align: left;
  }
  .hero .container {
    align-items: flex-start;
    padding-left: 5px;
    padding-right: 5px;
  }
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.46rem;
  }
  .testimonial-card,
  .feature-item,
  .card {
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .hero {
    min-height: 210px;
    padding: 25px 0;
  }
  h1, .h1 {
    font-size: 1.3rem;
  }
  h2, .h2 {
    font-size: 1.09rem;
  }
  .btn-primary {
    font-size: 0.97rem;
    padding: 10px 17px;
  }
  table, th, td {
    font-size: 0.94rem;
    padding: 11px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  background: #F5A623;
  color: #154F91;
  padding: 21px 10px 18px 10px;
  animation: bannerSlideIn 0.6s cubic-bezier(.75,.05,.31,1);
  box-shadow: 0 -3px 16px #154F9140;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
@keyframes bannerSlideIn {
  from { transform: translateY(140%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #154F91;
  margin-bottom: 0;
}
.cookie-btn-row {
  display: flex;
  gap: 14px;
}
.cookie-btn, .cookie-settings-btn {
  border: none;
  border-radius: 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 11px 20px;
  margin-top: 0;
  margin-bottom: 0;
  box-shadow: 0 3px 13px #154F9130;
  cursor: pointer;
  transition: background 0.16s, color 0.15s, transform 0.17s;
}
.cookie-btn.accept {
  background: #154F91;
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #13406e;
  transform: scale(1.04);
}
.cookie-btn.reject {
  background: #fff;
  color: #F5A623;
  border: 2px solid #F5A623;
}
.cookie-btn.reject:hover {
  color: #fff;
  background: #F5A623;
}
.cookie-settings-btn {
  background: #fff3c6;
  color: #154F91;
  border: 2px solid #F5A623;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #fff;
  color: #F5A623;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(21,79,145,0.80);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  max-width: 96vw;
  width: 410px;
  padding: 30px 14px 28px 14px;
  box-shadow: 0 10px 50px #154F9155;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: modalPopin 0.33s cubic-bezier(.8,0,.32,1.5);
}
@keyframes modalPopin {
  from { transform: scale(.7) translateY(88px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  color: #154F91;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 6px;
  border-radius: 10px;
  background: #F2F2F2;
  margin-bottom: 10px;
  font-size: 1.02em;
}
.cookie-category.essential {
  background: #f8dfad;
  font-weight: 600;
  color: #154F91;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cookie-modal .modal-btn-row {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 19px;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  margin-left: 8px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ddd;
  border-radius: 12px;
  transition: background 0.16s;
}
.cookie-switch input:checked + .cookie-slider {
  background-color: #F5A623;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 2.5px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.14s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}


/* ANIMATED & PLAYFUL ELEMENTS */
/* Fast wiggle animation for playful effect on icons */
@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  50% { transform: rotate(-7deg); }
  75% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}
.feature-item img, .feature-grid img, .hero img {
  transition: transform 0.12s;
  will-change: transform;
}
.feature-item:hover img, .feature-item:focus img {
  animation: wiggle 0.46s cubic-bezier(.7,.05,.3,1) 1;
}
.btn-primary:active {
  transform: scale(0.96) translateY(1px);
}

/* Input fields/labels (generically, for contact forms) */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 9px;
  border: 1.5px solid #F5A623;
  padding: 12px 10px;
  outline: none;
  box-shadow: none;
  margin-bottom: 18px;
  background: #F2F2F2;
  transition: border-color 0.11s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #154F91;
  box-shadow: 0 2px 12px #154F9150;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #154F91;
  font-weight: 600;
  margin-bottom: 4px;
  display: inline-block;
}

/* Miscellaneous spacing and utility rules */
.section > *:not(:first-child) { margin-top: 8px; }
.card-container > * { min-width: 220px; }
.content-grid > * { min-width: 220px; }
.feature-grid > * { min-width: 210px; }

/* Accessibility: Focus outlines */
a:focus, button:focus, .btn-primary:focus {
  outline: 3px dashed #F5A623;
  outline-offset: 2px;
  background: #fffbe4;
}

/* Hide visually but keep for a11y */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Hide cookie modal when closed */
.cookie-modal-overlay.hidden,
.cookie-modal.hidden {
  display: none !important;
  opacity: 0;
}

/* END OF playful_dynamic CSS for BlitzKurrier München */
