/* ===================================================
   SoftCrest Mobilität – Geometric Structured CSS Style
   =================================================== */
/* --- 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.5;
  box-sizing: border-box;
  background: #F1F3F6;
  color: #173A5E;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  text-decoration: none;
}
img {
  border-style: none;
  max-width: 100%;
  display: block;
}
*, *:before, *:after {
  box-sizing: inherit;
}


/* =============================
   ROOT VARIABLES & FONT IMPORTS
   ============================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --color-primary: #173A5E;
  --color-secondary: #F1F3F6;
  --color-accent: #FAB242;
  --color-dark: #122744;
  --color-white: #fff;
  --color-grey: #E3E7EF;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}
/* Fallbacks for custom props */
body {
  font-family: 'Roboto', Arial, sans-serif;
}


/* =============================
   TYPOGRAPHY & HIERARCHY
   ============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: 0.03em;
  font-weight: 900;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; text-transform: uppercase; }
h2 { font-size: 2rem; margin-bottom: 18px; text-transform: uppercase; }
h3 { font-size: 1.4rem; margin-bottom: 13px; text-transform: uppercase; }
h4 { font-size: 1.1rem; margin-bottom: 12px; }

p, ul, ol, li, a, span, em, strong {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.7;
}
p { margin-bottom: 20px; }
strong { font-weight: 700; }
em { font-style: italic; }

ul, ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
li { margin-bottom: 10px; list-style-type: disc; }
ul li, ol li {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-dark);
}

/* --- Links --- */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.7,.3,.4,1);
}
a:hover, a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}


/* =============================
   STRUCTURED LAYOUT CONTAINERS
   ============================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(23,58,94,0.07), 0 1px 3px rgba(23,58,94,0.06);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative; /* for possible deco elements */
  background: var(--color-secondary);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(23,58,94,0.07), 0 1px 3px rgba(23,58,94,0.08);
  padding: 28px 20px;
  transition: transform 0.18s cubic-bezier(.7,.3,.4,1), box-shadow 0.2s cubic-bezier(.7,.3,.4,1);
}
.card:hover {
  transform: translateY(-6px) scale(1.019);
  box-shadow: 0 12px 24px rgba(23,58,94,0.11), 0 2px 8px rgba(23,58,94,0.11);
}
.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;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(23,58,94,0.11);
  padding: 20px 28px 20px 24px;
  margin-bottom: 20px;
  border-left: 6px solid var(--color-accent);
  min-width: 280px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-secondary);
  border-radius: 12px;
  padding: 20px 16px;
  min-width: 250px;
}

/* --- Specific Feature/Benefit Layouts (for index, transportloesungen) --- */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 24px;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 32px;
  justify-content: flex-start;
  margin-top: 32px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-secondary);
  border-radius: 14px;
  padding: 28px 22px 22px 22px;
  min-width: 250px;
  max-width: 340px;
  box-shadow: 0 1px 7px rgba(23,58,94,0.06);
}
.feature img {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}
.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 30px;
  margin-bottom: 18px;
}
.benefits > div {
  background: var(--color-secondary);
  border-radius: 10px;
  padding: 12px 16px 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(23,58,94,0.06);
}
.benefits img {
  width: 30px;
  height: 30px;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  justify-content: flex-start;
}
.service-card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(23,58,94,0.07);
  padding: 28px 20px 20px 20px;
  width: 320px;
  min-width: 270px;
  position: relative;
  transition:transform 0.23s cubic-bezier(.7,.3,.4,1), box-shadow 0.15s cubic-bezier(.7,.3,.4,1);
}
.service-card:hover {
  transform: translateY(-7px) scale(1.025);
  box-shadow: 0 8px 28px rgba(23,58,94,0.14);
}

.case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 30px;
  margin-top: 16px;
  margin-bottom: 18px;
}
.case-study {
  background: var(--color-secondary);
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(23,58,94,0.08);
  padding: 24px 20px 20px 20px;
  min-width: 280px;
  flex: 1 1 270px;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 18px;
  align-items: center;
  margin-bottom: 14px;
}
.partner-logos img {
  width: 104px;
  max-width: 120px;
  height: auto;
  filter: grayscale(0.16);
  opacity: 0.9;
  transition: filter 0.2s, opacity 0.2s;
}
.partner-logos img:hover {
  filter: grayscale(0) drop-shadow(0px 1px 6px #fab24255);
  opacity: 1;
}

/* =============================
   HEADER, NAVBAR & LOGO
   ============================= */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 12px 0 rgba(23,58,94,0.04);
  position: relative;
  z-index: 60;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding-top: 8px;
  padding-bottom: 8px;
}
/* Logo */
header img {
  height: 44px;
  width: auto;
  margin-right: 22px;
}
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 30px;
  align-items: center;
  font-family: var(--font-display);
}
.main-nav a {
  padding: 6px 0;
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  position: relative;
  letter-spacing: 0.04em;
  transition: color 0.16s cubic-bezier(.7,.3,.4,1);
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
}
.main-nav .btn-primary {
  margin-left: 24px;
}

/* =========== MOBILE NAV =========== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  border-radius: 9px;
  padding: 8px 16px;
  margin-left: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(23,58,94,0.09);
  transition: background .19s, color .19s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-secondary);
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.7,.3,.4,1);
  box-shadow: 0 8px 44px 0 rgba(23,58,94,0.12);
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  z-index: 202;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-accent);
  color: var(--color-white);
}
nav.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 80px;
  gap: 16px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-dark);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 16px 24px;
  border-radius: 10px;
  margin: 0 18px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 0 0 36px 36px;
  min-height: 340px;
  padding: 50px 0 48px 0;
  position: relative;
  box-shadow: 0 8px 32px rgba(23,58,94,0.09);
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 690px;
  text-align: center;
}
.hero h1, .hero h2, .hero h3 {
  color: var(--color-white);
}
.hero p {
  color: var(--color-grey);
  font-size: 1.18rem;
  margin-bottom: 36px;
}
.hero .btn-primary {
  font-size: 1.12rem;
  padding: 14px 38px;
}

/* =============================
   BUTTONS & CALLS-TO-ACTION
   ============================= */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.07em;
  padding: 12px 28px;
  border: none;
  border-radius: 9px;
  box-shadow: 0 2px 12px 0 rgba(250,178,66,0.11);
  margin-top: 13px;
  margin-bottom: 10px;
  transition: background 0.22s cubic-bezier(.7,.3,.4,1), color 0.18s cubic-bezier(.7,.3,.4,1), box-shadow 0.18s;
  cursor: pointer;
  outline: none;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 7px 24px 0 rgba(23,58,94,0.16);
}

/* Secondary styled action buttons for cookie/modal */
.btn-secondary, .cookie-settings-btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  border: none;
  border-radius: 9px;
  box-shadow: 0 1px 7px 0 rgba(23,58,94,0.10);
  margin: 10px 7px 0 0;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.btn-secondary:hover, .btn-secondary:focus,
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2px 14px 0 rgba(250,178,66,0.18);
}

/* =============================
   TESTIMONIALS/REVIEWS CARDS
   ============================= */
.testimonials {
  padding: 50px 0 35px 0;
  margin-bottom: 34px;
}
.testimonial-card p {
  color: var(--color-dark);
  font-size: 1.06rem;
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card img[alt="Bewertung"] {
  width: 26px;
  height: 26px;
}

/* =============================
   FOOTER & CONTACT AREA
   ============================= */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 40px 40px 0 0;
  margin-top: 65px;
  padding: 40px 0 18px 0;
  box-shadow: 0 -8px 34px 0 rgba(23,58,94,0.12);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 42px 90px;
  width: 100%;
  max-width: 1100px;
  justify-content: space-between;
}
footer img {
  height: 48px;
  width: auto;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 14px;
  align-items: flex-start;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 0;
  transition: color 0.16s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-white);
  text-decoration: underline;
}
.footer-contact {
  color: var(--color-white);
  font-size: 0.96rem;
  margin-top: 8px;
}
.footer-contact a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 500;
}
.footer-contact a:hover {
  color: var(--color-white);
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-dark);
  color: var(--color-white);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 32px 20px 30px;
  box-shadow: 0 -4px 24px 0 rgba(23,58,94,0.14);
  transition: transform 0.34s cubic-bezier(.7,.3,.4,1), opacity 0.32s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.closed {
  opacity: 0;
  transform: translateY(130px);
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--color-white);
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary,
.cookie-banner .cookie-settings-btn {
  min-width: 135px;
  min-height: 43px;
  font-size: 1rem;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 3300;
  inset: 0;
  background: rgba(23,58,94, 0.68);
  justify-content: center;
  align-items: center;
  transition: opacity .24s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 15px;
  min-width: 335px;
  max-width: 98vw;
  box-shadow: 0 8px 32px rgba(23,58,94,0.21);
  padding: 34px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: modalPopIn 0.29s cubic-bezier(.7,.3,.4,1);
  position: relative;
}
@keyframes modalPopIn {
  0% { transform: scale(0.87) translateY(60px); opacity:0; }
  100% { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.42rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.cookie-categories {
  margin: 22px 0 8px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-grey);
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-accent);
  width: 21px;
  height: 21px;
  border-radius: 7px;
}
.cookie-category .always-on {
  color: var(--color-accent);
  font-size: 0.98rem;
  font-weight: 600;
  margin-left: 12px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  font-size: 0.98rem;
  padding: 9px 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 2px 7px;
  transition: background 0.14s;
  border-radius: 4px;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* =============================
   UTILITIES
   ============================= */
.text-section {
  margin-bottom: 28px;
}

/* =============================
   RESPONSIVE DESIGN
   ============================= */
@media (max-width: 1100px) {
  .features, .feature-grid, .case-studies, .service-cards, .partner-logos, .footer-nav, .footer .content-wrapper {
    gap: 20px 12px;
  }
  .footer .content-wrapper {
    flex-wrap: wrap;
    gap: 30px 20px;
  }
}

@media (max-width: 900px) {
  .feature-grid, .service-cards, .case-studies {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .footer .content-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0px 0px;
  }
  .feature, .service-card, .case-study {
    max-width: 100%;
    min-width: 160px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
    min-width: 0;
  }
  .section {
    padding: 28px 9px;
    margin-bottom: 37px;
  }
  .content-grid {
    gap: 17px;
    flex-direction: column;
  }
  .feature-grid, .benefits {
    flex-direction: column;
    gap: 19px;
    align-items: stretch;
  }
  .hero {
    min-height: 220px;
    padding: 30px 0 23px 0;
    border-radius: 0 0 28px 28px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px 0px;
  }
  .footer-nav, .partner-logos {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .testimonial-card, .feature, .service-card, .case-study {
    min-width: 0;
    width: 100%;
    margin-bottom: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 460px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }
  .btn-primary { font-size: 0.96rem; padding: 10px 18px; }
  .hero .content-wrapper { padding: 0 2px; }
  .cookie-modal { min-width: 95vw; padding: 18px 7px; }
}

/* Hide cookie-modal on mobile if needed for smaller screens */
@media (max-width:360px) {
  .cookie-modal { min-width: 99vw!important; padding:4px 1px; }
}

/* =============================
   GEOMETRIC DECORATIONS (THEMATIC)
   ============================= */
/* Example: Angular and geometric accents for brand personality */
.feature, .testimonial-card, .card, .service-card, .case-study {
  border-radius: 14px 40px 14px 14px;
}
.section {
  border-radius: 24px 60px 24px 24px;
}
.btn-primary, .btn-secondary, .cookie-settings-btn {
  border-radius: 8px 18px 8px 8px;
}

/* Subtle geometric accent: triangle top-left (decorative only, not in content, but shows theme) */
.section:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-left: 40px solid var(--color-accent);
  border-bottom: 40px solid transparent;
  z-index: 0;
  opacity: 0.09;
  pointer-events: none;
}
.section {
  position: relative;
  overflow: hidden;
}

/* =============================
   FOCUS STATES & ACCESSIBILITY
   ============================= */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}


/* =============================
   PRINT STYLES (SAFETY)
   ============================= */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  main { padding: 0; }
  .section, .container, .content-wrapper { box-shadow: none !important; background: #fff !important; }
}
