/* =============================================================
   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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { -webkit-text-size-adjust: 100%; box-sizing: border-box; }
body { line-height: 1; }
ul, ol { list-style: none; }
img { border: 0; max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
*, *:before, *:after { box-sizing: inherit; }
:focus-visible { outline: 2px dashed #FFD372; outline-offset: 2px; }

/* =============================================================
   CSS VARIABLES (Soft Pastel Palette + Brand)
   ============================================================= */
:root {
  --primary: #1A3556;
  --secondary: #4FB6A7;
  --accent: #FFD372;
  /* Soft pastels */
  --pastel-blue: #E4F0FF;
  --pastel-pink: #FFEBF2;
  --pastel-green: #E7FFF8;
  --pastel-yellow: #FFF9E5;
  --pastel-lavender: #F8F4FF;
  --surface-light: #FFF;
  --surface-card: #FAFAFF;
  --surface-footer: #F5F8FA;
  --text-strong: #172C47;
  --text-body: #24344D;
  --text-soft: #5B6E87;
  --border-soft: #DFE6EA;
  --shadow-base: 0 2px 16px 0 rgba(60, 104, 109, 0.09);
}

/* =============================================================
   BASE TYPOGRAPHY (Montserrat & Roboto)
   ============================================================= */
html {
  font-size: 16px;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--text-body);
  background: linear-gradient(120deg, #F8F4FF 0%, #E4F0FF 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  line-height: 1.15;
}
h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 { font-size: 1rem; font-weight: 500; }
p, li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
}
strong { color: var(--primary); font-weight: 600; }
.subheadline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 18px;
  font-weight: 500;
  letter-spacing: .02em;
}

/* =============================================================
   CONTAINER & LAYOUT FLEXBOX SYSTEM
   ============================================================= */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--surface-card);
  border-radius: 22px;
  box-shadow: var(--shadow-base);
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .container { padding: 0 8px; }
}

/* =============================================================
   HEADER & MAIN NAVIGATION
   ============================================================= */
header {
  background: var(--surface-light);
  box-shadow: 0 1px 8px rgba(26,53,86,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 18px 20px;
}
header img {
  max-height: 38px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
  background: var(--pastel-lavender);
  color: var(--secondary);
}
.cta.primary {
  background: var(--accent);
  color: var(--primary);
  border-radius: 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 11px 32px;
  margin-left: 14px;
  box-shadow: 0 2px 8px rgba(79,182,167,0.13);
  transition: background 0.2s, transform 0.18s;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--secondary);
  color: var(--surface-light);
  transform: translateY(-2px) scale(1.045);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  padding: 8px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(26,53,86,.07);
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--surface-light);
}

/* Responsive Header & Nav */
@media (max-width: 1020px) {
  header nav { gap: 10px; }
  .cta.primary { padding: 10px 16px; font-size: 1rem; margin-left: 4px; }
}

@media (max-width: 850px) {
  header .container {
    flex-wrap: wrap;
    gap: 16px;
    padding: 13px 8px;
  }
}

@media (max-width: 768px) {
  header nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =============================================================
   MOBILE MENU OVERLAY & ANIMATION
   ============================================================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;  
  width: 100vw;
  height: 100vh;
  background: rgba(228,240,255,.92);
  backdrop-filter: blur(6px);
  z-index: 2000;
  transform: translateX(-110vw);
  transition: transform .35s cubic-bezier(.6,0,.3,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding: 24px 24px 0 20px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--primary);
  background: var(--accent);
  border-radius: 10px;
  padding: 6px 14px;
  border: none;
  align-self: flex-end;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(26,53,86,.08);
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--primary);
  background: var(--pastel-yellow);
  padding: 13px 0 13px 18px;
  border-radius: 10px;
  font-size: 1.09rem;
  box-shadow: 0 1px 8px rgba(79,182,167,.09);
  transition: background 0.18s, color 0.19s;
  z-index: 2;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--surface-light);
}

/* Hide on Desktop */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* =============================================================
   FLEXBOX UTILITY LAYOUT PATTERNS
   ============================================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--surface-card);
  border-radius: 18px;
  box-shadow: var(--shadow-base);
  padding: 32px 18px;
  min-width: 260px;
  max-width: 350px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .2s, transform .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(26,53,86,.13);
  transform: translateY(-2px) 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: var(--pastel-green);
  border-left: 4px solid var(--secondary);
  border-radius: 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-base);
}
.testimonial-card p {
  color: var(--text-body);
  font-size: 1.13rem;
  font-style: italic;
  margin-bottom: 2px;
}
.testimonial-card span {
  display: block;
  color: var(--primary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* List features in grid-form using flex only */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--pastel-yellow);
  border-radius: 14px;
  box-shadow: var(--shadow-base);
  padding: 24px 20px 20px 20px;
  min-width: 220px;
  max-width: 330px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.14s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 8px 20px rgba(79,182,167,.13);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img {
  max-height: 40px;
  margin-bottom: 4px;
}

ul, ol { margin-left: 20px; margin-bottom: 12px; }
ul > li, ol > li { margin-bottom: 8px; padding-left: 0; }

/* Tip-list & FAQ styling */
.tip-list, .faq-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.tip-list li, .faq-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--pastel-blue);
  border-radius: 11px;
  padding: 12px 16px;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(26,53,86,.07);
  font-size: 1rem;
}
.tip-list img, .faq-list img {
  width: 28px;
  flex-shrink: 0;
}

/* =============================================================
   SEARCH-BAR & INPUT STYLES
   ============================================================= */
.search-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  width: 100%;
}
.search-bar input[type="text"] {
  border: 1.5px solid var(--secondary);
  border-radius: 13px;
  padding: 12px 18px;
  font-size: 1.06rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: var(--surface-light);
  color: var(--primary);
  width: 70%;
  box-shadow: 0 1px 5px rgba(79,182,167,.07);
  transition: border .16s;
}
.search-bar input[type="text"]:focus {
  border-color: var(--primary);
}
.search-bar .cta {
  background: var(--secondary);
  color: #fff;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 10px 24px;
  font-weight: 500;
  font-size: 1.05rem;
  box-shadow: 0 1px 6px rgba(79,182,167,.08);
  transition: background .18s, transform .18s;
}
.search-bar .cta:hover, .search-bar .cta:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.03);
}

/* =============================================================
   BUTTONS & LINK CTAs
   ============================================================= */
.cta {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  border-radius: 14px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.03rem;
  padding: 9px 22px;
  font-weight: 500;
  transition: background .18s, color .19s, transform .18s;
  box-shadow: 0 1px 4px rgba(26,53,86,.06);
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.04);
}

/* =============================================================
   FOOTER DESIGN
   ============================================================= */
footer {
  background: var(--surface-footer);
  border-top: 1.5px solid var(--border-soft);
  padding: 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: flex-start;
  padding: 28px 20px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  color: var(--text-soft);
  padding: 5px 0;
  border-radius: 6px;
  transition: color .15s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary);
  background: var(--pastel-yellow);
}
footer .text-section {
  font-size: 0.97rem;
  color: var(--text-soft);
  margin-top: 3px;
}
footer img[alt*='StadtKompass'] {
  max-width: 48px;
  margin-bottom: 13px;
}
footer img[alt*='icon-'] {
  display: inline;
  vertical-align: middle;
  width: 22px;
  margin-right: 6px;
  margin-left: 5px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    padding: 20px 10px;
  }
}

/* =============================================================
   RESPONSIVE FLEX LAYOUTS
   ============================================================= */
@media (max-width: 900px) {
  .content-grid, .feature-grid, .card-container, .testimonial-card {
    flex-direction: column !important;
    gap: 20px 0;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .text-image-section, .feature-grid, .card-container {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px;
    gap: 10px;
  }
  .feature-grid > div {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
}

/* =============================================================
   DREAMY, PASTEL VISUAL EFFECTS
   ============================================================= */
.section {
  background: linear-gradient(120deg, #FFEBF2 55%, #E7FFF8 100%);
  box-shadow: 0 2px 16px 0 rgba(90,110,130,0.06);
}
.card,
.feature-grid > div, .testimonial-card, .tip-list li, .faq-list li {
  border-radius: 14px;
  box-shadow: var(--shadow-base);
  background: linear-gradient(120deg, #FFFFFF 75%, #F8F4FF 100%);
}

/* Subtle micro-interactions */
.card, .feature-grid > div, .testimonial-card, .tip-list li, .faq-list li, .cta, .cta.primary {
  transition: box-shadow 0.19s cubic-bezier(.6,0,.3,1), transform 0.18s cubic-bezier(.6,0,.3,1), background 0.16s, color 0.14s;
}
.card:active,
.feature-grid > div:active,
.cta:active,
.cta.primary:active {
  transform: translateY(1px) scale(0.99);
}

/* =============================================================
   COOKIE CONSENT STYLES
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, #FFF9E5 0%, #FFEBF2 85%);
  box-shadow: 0 -2px 18px rgba(26,53,86,.12);
  z-index: 3000;
  padding: 24px 16px 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.cookie-banner p {
  flex: 1 1 auto;
  color: var(--primary);
  font-size: 1.03rem;
  margin-right: 18px;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-actions button {
  padding: 8px 22px;
  background: var(--secondary);
  color: #fff;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(79,182,167,0.10);
  transition: background 0.2s, color 0.18s, transform .14s;
}
.cookie-actions button.accept {
  background: var(--secondary);
}
.cookie-actions button.accept:hover, .cookie-actions button.accept:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-actions button.reject {
  background: #ffb6b6;
  color: var(--primary);
}
.cookie-actions button.reject:hover, .cookie-actions button.reject:focus {
  background: #ea95a0;
  color: #fff;
}
.cookie-actions button.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-actions button.settings:hover, .cookie-actions button.settings:focus {
  background: var(--secondary);
  color: #fff;
}
@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 18px;
    padding: 16px 8px 16px 8px;
  }
  .cookie-banner p { margin-right: 0; }
}

/* Cookie Modal Styles */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(230,226,245,0.86);
  backdrop-filter: blur(4px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .24s cubic-bezier(.63,0,.3,1);
}
.cookie-modal-overlay.open {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal {
  background: var(--surface-light);
  border-radius: 22px;
  box-shadow: 0 4px 38px rgba(26,53,86,0.16);
  padding: 30px 32px 22px 32px;
  min-width: 300px;
  max-width: 95vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-size: 1.32rem;
  margin-bottom: 12px;
  text-align: left;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 10px; right: 13px;
  color: var(--primary);
  background: #f6e9ff;
  border-radius: 8px;
  border: none;
  font-size: 1.6rem;
  padding: 2px 15px 3px 15px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.13s, color .11s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--primary);
}
.cookie-cat input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.3px solid var(--primary);
  margin-right: 3px;
}
.cookie-cat.essential label {
  color: var(--text-soft);
  font-weight: 500;
  opacity: .7;
  cursor: not-allowed;
}
.cookie-modal .cookie-actions {
  justify-content: flex-end;
}
@media (max-width: 520px) {
  .cookie-modal {
    padding: 14px 4vw 14px 4vw;
    width: 97vw;
  }
}

/* =============================================================
   OTHER MISC. UTILITY STYLES
   ============================================================= */
::-webkit-scrollbar { width: 12px; background: var(--pastel-blue); }
::-webkit-scrollbar-thumb {
  background: var(--pastel-yellow);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

mark { background: var(--accent); color: var(--primary); border-radius: 3px; padding: 1px 4px; }

/* Error and Alert */
.alert {
  background: #fff9e5;
  color: #1a3556;
  border-left: 4px solid #FFD372;
  padding: 12px 18px;
  border-radius: 9px;
  margin: 18px 0;
}

/* Images and Inline SVGs */
img, svg {
  display: block;
  max-width: 100%;
}

/* Decorative absolute – use only for flair (never for cards/text!) */
.decorative { position: absolute; pointer-events: none; z-index: 0; }

/* Helper: Remove margin for last child */
.content-wrapper > *:last-child { margin-bottom: 0; }
.card-container > *:last-child { margin-bottom: 0; }

/* Address/Contact in Footer styles */
.text-section {
  color: var(--text-soft);
  font-size: 0.98rem;
  margin-top: 6px;
}

/* =============================================================
   ANIMATIONS AND TRANSITIONS
   ============================================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section, .card, .feature-grid > div, .testimonial-card {
  animation: fadeIn 0.6s cubic-bezier(.6,0,.3,1) 0.05s both;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* =============================================================
   ACCESSIBILITY, SELECT STATES, MISC
   ============================================================= */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2.5px;
}
a:active { color: var(--secondary); }

/* Non-selectable for icons */
img[alt*='icon-'] { user-select: none; }

/* Improve tap targets on mobile */
@media (max-width: 768px) {
  a, button, .mobile-nav a {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }
}

/* =============================================================
   END OF STYLE.CSS
   ============================================================= */
