/* =============================
   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%;font:inherit;vertical-align:baseline;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{
  display:block;
}
body{line-height:1;background:#F1F1F1;font-family:'Open Sans', Arial, sans-serif;color:#333;}
*, *:before, *:after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul { list-style: inside disc; margin-left: 1.2em; }
ol { list-style: decimal inside; margin-left: 1.2em; }
img { max-width:100%; display:block; }

/* ==============
   BASE TYPOGRAPHY
   ============== */
:root {
--color-primary: #22577E;
--color-secondary: #A7C957;
--color-accent: #F1F1F1;
--color-dark: #19355B;
--color-black: #181818;
--color-error: #CA2E55;
--font-display: 'Roboto Slab', serif;
--font-body: 'Open Sans', Arial, sans-serif;
--radius-lg: 20px;
--radius-md: 14px;
--radius-sm: 8px;
--shadow-main: 0 4px 24px 0 rgba(34,87,126,0.10), 0 2px 4px 0 rgba(34,87,126,0.05);
--shadow-card: 0 2px 12px 0 rgba(167,201,87,0.12), 0 1px 2px 0 rgba(34,87,126,0.09);
--shadow-hover: 0 6px 32px 0 rgba(34,87,126,0.18), 0 2px 8px 0 rgba(34,87,126,0.09);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 14px;
  line-height: 1.18;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4, h5, h6 { font-size: 1.1rem; font-weight: 600; }
@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
}

p,li,blockquote,ol,ul { font-size: 1rem; line-height: 1.7; margin-bottom: 12px; }
.subheadline {
  font-style: italic;
  color: var(--color-secondary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}
strong { font-weight: bold; }
blockquote {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-dark);
  padding-left: 24px;
  margin-bottom: 10px;
}
blockquote:before {
  content: "\201C";
  position: absolute;
  left: 0; top: -6px;
  font-size: 2.5em;
  color: var(--color-secondary);
  opacity: 0.4;
}
cite {
  display: block;
  color: var(--color-black);
  font-size: 0.95em;
  margin-top: 6px;
  font-style: italic;
}

/* ==================
   LAYOUT CONTAINERS
   ================== */

.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  transition: box-shadow 0.25s;
}
.section:hover {
  box-shadow: var(--shadow-hover);
}

@media (max-width: 600px) {
  .section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
}

.text-section {
  margin-bottom: 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

/* ======================
   FLEXBOX PATTERNS (MANDATORY)
   ====================== */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s, transform .22s;
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 calc(33% - 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.02);
}

.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;
}

@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .card {
    flex-basis: 100%;
    min-width: 0;
    width: 100%;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-left: 6px solid var(--color-secondary);
  min-width: 240px;
  max-width: 600px;
  transition: box-shadow .25s;
}
.testimonial-card blockquote {
  font-size: 1.1rem;
  color: var(--color-dark);
  padding-left: 0;
}
.testimonial-card cite {
  color: var(--color-primary);
  font-size: 0.95em;
}

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

/* ================
   FEATURE GRID
   ================ */

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px 18px 18px 18px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .25s, transform .18s;
  margin-bottom: 20px;
  gap: 12px;
  position: relative;
}
.feature-grid > div img {
  width: 38px; height: 38px; margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(34,87,126,0.12));
  background: var(--color-accent);
  padding: 8px;
  border-radius: 50%;
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.045);
}

/* ================
   HEADER & NAVIGATION
   ================ */
header {
  background: var(--color-primary);
  box-shadow: 0 2px 20px 0 rgba(34,87,126,0.11);
  padding: 0 0 0 0;
}
header .container {
  min-height:65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 10px 20px;
}
header img[alt="VeloWegweiser"] {
  height: 48px; width: auto;
  margin-right: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-body);
  font-size: 1.07em;
}
.main-nav a {
  color: #fff;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: background .18s, color .18s;
  line-height: 1.25;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.main-nav .cta-button.primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 1.09em;
  margin-left: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.main-nav .cta-button.primary:hover {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-hover);
}

/* Burger Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  border-radius: 16px;
  padding: 7px 14px;
  margin-left: 18px;
  cursor: pointer;
  transition: background .21s, color .21s;
  box-shadow: 0 1px 6px 0 rgba(34,87,126,0.13);
  z-index: 24;
}
.mobile-menu-toggle:hover { background: #fff; color: var(--color-primary); }

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===============
   MOBILE MENU STYLES
   =============== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(34,87,126,0.95);
  z-index: 99;
  width: 100vw; height: 100vh;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(0.4,0,0.2,1), opacity .28s;
  opacity: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  border-radius: 16px;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 110;
  transition: background .20s, color .20s;
}
.mobile-menu-close:hover { background: #fff; color: var(--color-primary); }
.mobile-nav {
  margin-top: 84px;
  display: flex;
  flex-direction: column;
  width: 75vw;
  max-width: 360px;
  gap: 24px;
  padding: 22px 34px 22px 20px;
  background: #fff;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  min-height: 72vh;
  box-shadow: var(--shadow-main);
}
.mobile-nav a {
  color: var(--color-primary);
  padding: 17px 8px 11px 12px;
  border-radius: 8px;
  font-size: 1.17rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-align: left;
  transition: background .21s, color .16s;
  margin-bottom: 6px;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--color-secondary);
  color: #fff;
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle { display: none; }
}

/* ===========
   CTA BUTTONS
   =========== */
.cta-button {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05em;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 11px 28px;
  margin-top: 12px;
  letter-spacing: 0.02em;
  transition: background .19s, color .18s, box-shadow .18s, transform .18s;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: var(--shadow-main);
  border: none;
  cursor: pointer;
  border-bottom: 3px solid #e9f5e3;
}
.cta-button.primary:hover,
.cta-button:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.035);
}

/* ================
   LINKS
   ================ */
a { transition: color .20s; }
a:focus { outline: 2px dashed var(--color-secondary); }
a:hover {
  color: var(--color-secondary);
}
a:active { opacity: 0.82; }

/* ================
   FOOTER
   ================ */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 34px 0 14px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: 500;
  opacity: 0.9;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background .17s, color .18s;
}
.footer-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05em;
  opacity: 0.90;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(167,201,87,0.16));
}
.footer-impressum {
  font-size: .98em;
  color: #e2eaef;
  text-align: center;
}

@media (max-width: 600px) {
  footer .container { gap: 12px; }
  .footer-nav { gap: 9px; }
}

/* ================
   ARTISTIC VISUALS
   ================ */
section {
  margin-bottom: 60px;
  padding: 40px 0px;
}
@media (max-width:600px) { section { padding: 24px 0;} }

hr {
  margin: 32px 0;
  border: none;
  border-top: 2px dashed var(--color-secondary);
  opacity: 0.67;
}
/* Fun geometric SVG dots and paint-splash backgrounds for section contrast */
.section {
  position: relative;
  overflow: hidden;
}
.section:before{
  content: "";
  position: absolute;
  z-index: 1;
  left: -42px; top: -40px;
  width: 120px;height: 100px;
  background: radial-gradient(circle at 50px 30px, #A7C95720 60%, transparent 100%);
  pointer-events: none;
}
.section:after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -46px; bottom: -42px;
  width: 110px;height: 80px;
  background: radial-gradient(circle at 40px 20px, #22577E15 50%, transparent 100%);
  pointer-events: none;
}

/* ================
   FORM & TABLE STYLES (future proofing)
   ================ */
input[type=text],
input[type=email],
input[type=password],
input[type=number],
select, textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #D0E2D8;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  margin-bottom: 18px;
  background: #fff;
  font-family: var(--font-body);
  transition: border-color .18s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-secondary);
  outline: none;
}
button, input[type=submit] {
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 9px 22px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  transition: background .19s, color .17s, box-shadow .14s;
  box-shadow: var(--shadow-card); 
}
button:hover, input[type=submit]:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

/* ================
   RESPONSIVE
   ================ */
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    align-items: center;
  }
}
@media (max-width: 600px) {
  .container { padding: 0 6px; }
  footer .container { padding: 0 6px; }
  .main-nav, .footer-nav { gap: 8px; }
  .feature-grid { gap: 14px; }
}

/* ================
   COOKIE CONSENT BANNER
   ================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 18px 0 rgba(34,87,126,0.09);
  border-top: 6px solid var(--color-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 18px 8vw 18px 8vw;
  z-index: 120;
  animation: slideUpCookie .56s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUpCookie {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--color-primary);
  margin: 0;
  font-family: var(--font-body);
}
.cookie-banner .cookie-btn {
  margin-left: 18px;
  font-size: 1em;
  font-family: var(--font-display);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  border: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  margin-right: 8px;
  transition: background .17s, color .17s, box-shadow .16s;
}
.cookie-banner .cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 700;
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  border: 2px solid var(--color-error);
  color: var(--color-error);
  font-weight: 600;
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.cookie-banner .cookie-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 16px;}
  .cookie-banner .cookie-btn {margin: 10px 0 0 0;}
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(34,87,126,0.78);
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal .23s;
}
@keyframes fadeInCookieModal { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 36px 0 rgba(34,87,126,0.18);
  padding: 38px 32px 28px 32px;
  min-width: 330px;
  max-width: 92vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: scaleInCookieModal .24s cubic-bezier(0.4,0,0.2,1);
}
@keyframes scaleInCookieModal { from { transform: scale(.93) translateY(30px); opacity:0; } to { transform: scale(1) translateY(0); opacity:1; } }
.cookie-modal h2 { font-size:1.25rem; font-family: var(--font-display); color: var(--color-primary); margin-bottom: 8px; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 9px;
  font-family: var(--font-body);
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1em;
}
.cookie-modal .cookie-category input[type=checkbox] {
  width: 19px; height: 19px;
  accent-color: var(--color-secondary);
}
.cookie-modal .cookie-category .always-on {
  font-size: .97em;
  color: #889a99;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 8px 18px;
  font-size: 1em;
}
.cookie-modal .cookie-close-btn {
  position: absolute; top: 14px; right: 18px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.35em;
  cursor: pointer;
  transition: background .13s,color .17s;
}
.cookie-modal .cookie-close-btn:hover {background: var(--color-primary); color: #fff;}

@media(max-width:500px) {
  .cookie-modal { padding: 18px 8px 8px 8px; min-width: 0;}
}

/* ================
   ARTISTIC FONTS
   ================ */
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:700,400,900|Open+Sans:400,600,700&display=swap');

/* ================
   MISCELLANEOUS
   ================ */
::-webkit-scrollbar {
  width: 10px;
  background: #E9F5E3;
}
::-webkit-scrollbar-thumb {
  border-radius: 7px;
  background: #A7C95777;
}

/* Artistic list dots, colorful accents */
ul li:before {
  content: '';
  display: inline-block;
  margin-right: 9px;
  width: 13px; height: 13px;
  background: var(--color-secondary);
  border-radius: 50%;
  vertical-align: middle;
}
ul li { margin-bottom: 10px; }
ol li { margin-bottom: 10px; }

/* ================
   VISUAL MICRO-INTERACTIONS
   ================ */
section, .section, .feature-grid > div, .testimonial-card, .card {
  transition: box-shadow .19s, transform .17s;
}
section:hover, .section:hover, .feature-grid > div:hover, .testimonial-card:hover, .card:hover {
  box-shadow: 0 6px 32px 0 rgba(34,87,126,0.11), 0 3px 7px 0 rgba(34,87,126,0.07);
  transform: translateY(-3px) scale(1.012);
}

/* ================
   ACCESSIBILITY
   ================ */
*:focus-visible {
  outline: 2px solid var(--color-secondary); outline-offset: 3px;
}

/* ================
   Z-INDEX STACKING
   ================ */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 100;
}

/* ==================
   PRINT (optional)
   ================== */
@media print {
  * { box-shadow: none !important; background: #fff !important; }
  header, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  .feature-grid > div { border: 1px solid #A7C957; }
}
