/* CSS RESET & BASELINE NORMALIZATION */
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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #171717;
  -webkit-font-smoothing: antialiased;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}
*:focus {
  outline: 2px solid #214488;
  outline-offset: 2px;
  z-index: 2;
}

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  background: #fff;
  color: #171717;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  color: #111;
  line-height: 1.13;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 18px;
  color: #111;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #191919;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul li, ol li {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
  margin-bottom: 12px;
  color: #252525;
}
strong {
  font-weight: 700;
  color: #1a1a1a;
}
.subheadline {
  font-size: 1.25rem;
  color: #454545;
  font-weight: 600;
  margin-bottom: 22px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
}
.text-section {
  margin-bottom: 28px;
}

/* SPACING & MAIN LAYOUT */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

main {
  min-height: 60vh;
  width: 100%;
  flex: 1 1 auto;
}

/* ---------- HEADER ---------- */
header {
  background: #fff;
  border-bottom: 1px solid #eceeef;
  padding-top: 0;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 20px;
  min-height: 64px;
}
header img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  position: relative;
  font-weight: 500;
  font-size: 1rem;
  color: #272727;
  padding: 4px 0;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #214488;
}
.main-nav a.active {
  color: #FFD426;
}

header .cta.primary {
  margin-left: 22px;
}

/* ---------- CTA BUTTONS ---------- */
.cta {
  display: inline-block;
  padding: 11px 32px;
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 30px;
  font-weight: 700;
  background: #fff;
  border: 2px solid #111;
  color: #111;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 6px rgba(26,28,32,0.04), 0 1.5px 6px rgba(26,28,32,0.06);
  margin-top: 14px;
  margin-bottom: 10px;
  transition: background .22s, color .22s, border .22s, box-shadow .22s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cta.primary {
  background: #191c20;
  color: #FFD426;
  border: 2px solid #191c20;
}
.cta.primary:hover, .cta.primary:focus {
  background: #FFD426;
  color: #191c20;
  border: 2px solid #FFD426;
}
.cta.secondary {
  background: #fff;
  color: #191c20;
  border: 2px solid #191c20;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #191c20;
  color: #FFD426;
  border: 2px solid #FFD426;
}

/* ------ HERO SECTION ------ */
.hero {
  background: #212121;
  color: #fff;
  padding: 58px 0 60px 0;
  margin-bottom: 54px;
  display: flex;
  align-items: center;
}
.hero h1,
.hero h2 {
  color: #fff;
  text-shadow: 0 3px 20px rgba(10,10,10,.10);
}
.hero .subheadline {
  color: #f5f5f5;
}
.hero .cta {
  margin-top: 24px;
}

/* ---------- FEATURES SECTION ---------- */
.features {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.features .content-wrapper > h2,
.features .content-wrapper > ul,
.features .content-wrapper > .feature-grid {
  margin-bottom: 24px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 0 0;
}
.feature-grid li {
  flex: 1 1 min(220px, 100%);
  min-width: 220px;
  max-width: 270px;
  background: #fafbfc;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(23,23,23,0.07), 0 2px 12px rgba(33,68,136,0.03);
  padding: 26px 22px 32px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .21s;
  border: 1px solid #ededed;
  margin-bottom: 20px;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 12px 32px rgba(17,22,27,0.18), 0 2px 12px rgba(33,68,136,0.09);
  border-color: #214488;
  z-index: 2;
}
.feature-grid img {
  height: 38px;
  width: 38px;
  margin-bottom: 12px;
}
.feature-grid h3 {
  margin-bottom: 6px;
  margin-top: 6px;
  font-size: 1.06rem;
  color: #1a1a1a;
}
.features ul, .features ol {
  margin: 18px 0 10px 0;
}
.features ul li, .features ol li {
  margin-bottom: 16px;}
.features ul li strong {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #111;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- SERVICES SECTION ---------- */
.services {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 36px 0 34px 0;
}
.service-list li {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 18px 24px;
  box-shadow: 0 2px 20px rgba(41,42,44,0.07), 0 1.5px 4px rgba(17,17,16,0.02);
  border: 1px solid #eaeaea;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list h3 {
  color: #1a1a1a;
  font-size: 1.18rem;
}
.service-list strong {
  font-weight: 700;
  color: #214488;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.services .cta {
  margin-top: 16px;
  align-self: flex-start;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: #f6f6f9;
  padding: 38px 0 40px 0;
}
.testimonials h2 {
  margin-bottom: 28px;
  color: #111;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 0;
}
.testimonial-card {
  background: #fff;
  color: #181818;
  border-radius: 16px;
  padding: 20px 28px;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 46%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 2px 12px rgba(34,34,34,0.13), 0 4px 32px rgba(17,17,17,0.08);
  border: 1px solid #ececec;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #181818;
  margin-bottom: 8px;
  margin-top: 0;
}
.testimonial-card .name {
  font-size: 0.96rem;
  color: #666;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ---------- CARDS/CONTENT GRID UTILITY CLASSES ---------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(4,10,33,.09);
  border: 1px solid #ececec;
  padding: 26px 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---------- FOOTER ---------- */
footer {
  background: #161616;
  color: #FFF;
  padding: 45px 0 30px 0;
  border-top: 1.5px solid #222;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #d7d7d7;
  font-size: 1.03rem;
  font-weight: 400;
  letter-spacing: .02em;
  transition: color .22s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFD426;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.brand img {
  height: 36px;
  width: 36px;
  filter: invert(95%);
}
.brand span {
  font-size: 1rem;
  color: #e0e0e0;
  font-weight: 400;
}

/* ---------- CONTACT (KONTAKT) PAGE SPECIALS ---------- */
.address-block {
  margin-bottom: 22px;
  padding: 20px 18px;
  background: #F7F7F8;
  border-radius: 12px;
  border: 1px solid #EEEEF0;
}
.address-block h2, .address-block h3 {
  margin: 0 0 6px 0;
  color: #111;
  font-weight: 700;
}
.address-block a {
  color: #214488;
  word-break: break-all;
  font-weight: 700;
  transition: color .18s;
}
.address-block a:hover, .address-block a:focus {
  color: #191c20;
}

/* ---------- LEGAL PAGES (DATENSCHUTZERKLÄRUNG, ETC.) ---------- */
.legal, .contact, .about {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.legal h1, .about h1, .contact h1 {
  color: #19191a;
  margin-bottom: 22px;
}
.legal h2 {
  color: #222;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.legal ul li {
  margin-bottom: 14px;
  list-style-type: disc;
  margin-left: 32px;
}

/* ---------- MOBILE NAVIGATION STYLES ---------- */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: 2px solid #222;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2.1rem;
  color: #111;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 22px;
  top: 16px;
  z-index: 40;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #191c20;
  color: #FFD426;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29,30,32,0.97);
  z-index: 100;
  display: flex;
  flex-direction: column;
  /* Fully hidden by default */
  transform: translateX(-100vw);
  transition: transform .32s cubic-bezier(.68,-0.55,0.27,1.55);
  box-shadow: 0 7px 32px rgba(33,42,80,0.07);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 21px 22px 14px 0;
  background: #222;
  color: #FFD426;
  font-size: 2.2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .14s, color .14s;
  z-index: 101;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFD426;
  color: #111;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 34px 28px 0 38px;
  margin-top: 40px;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.28rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 0;
  border-radius: 6px;
  margin-right: 0;
  transition: background 0.15s, color 0.15s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD426;
  color: #161616;
}
/* Hide desktop nav on mobile, show burger */
@media (max-width: 1024px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .cta.primary {
    display: none;
  }
}
/* Show main-nav & cta on desktop */
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  z-index: 9999;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #191c20;
  color: #FFF;
  padding: 32px 30px 24px 30px;
  box-shadow: 0 -1.5px 20px rgba(21,21,24,0.09),0 0.5px 4px rgba(18,18,28,.03);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  transition: transform .36s cubic-bezier(.86,0,0.07,1),opacity .36s;
  font-size: 1rem;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-content {
  flex: 1 1 300px;
  margin-bottom: 10px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button {
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 1.06rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background .18s, color .18s;
  margin-right: 8px;
}
.cookie-banner .cookie-accept {
  background: #FFD426;
  color: #191c20;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #191c20;
  color: #FFD426;
}
.cookie-banner .cookie-reject {
  background: #fff;
  color: #191c20;
  border: 1.5px solid #FFD426;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #FFD426;
  color: #191c20;
}
.cookie-banner .cookie-settings {
  background: #222;
  color: #FFD426;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #FFD426;
  color: #222;
}

/* Cookie Modal Overlay */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 17, 17, 0.82);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .32s cubic-bezier(.86,0,0.07,1);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  color: #101012;
  border-radius: 16px;
  padding: 36px 30px 28px 30px;
  max-width: 450px;
  width: 94vw;
  box-shadow: 0 16px 64px 6px rgba(28,28,36,.18);
  font-size: 1.08rem;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 {
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.24rem;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px 0;
  font-size: 1.06rem;
}
.cookie-modal .cookie-toggle {
  display: inline-block;
  width: 40px;
  height: 22px;
  background: #e6e6ea;
  border-radius: 24px;
  position: relative;
  cursor: pointer;
  transition: background .17s;
}
.cookie-modal .cookie-toggle[data-on="true"] {
  background: #214488;
}
.cookie-modal .cookie-toggle[data-disabled="true"] {
  background: #bdbdbd;
  opacity: 0.68;
  pointer-events: none;
}
.cookie-modal .cookie-toggle-circle {
  position: absolute;
  top: 3px; left: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1.5px 6px rgba(7,11,25,0.09);
  transition: left .22s cubic-bezier(.64,.03,0,1);
}
.cookie-modal .cookie-toggle[data-on="true"] .cookie-toggle-circle {
  left: 20px;
  background: #FFD426 !important;
}
.cookie-modal .btn-row {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 9px 22px;
  border-radius: 26px;
  font-size: 1.02rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background .18s, color .18s;
  background: #FFD426;
  color: #181826;
}
.cookie-modal button.secondary-btn {
  background: #222;
  color: #FFD426;
}
.cookie-modal button.secondary-btn:hover, .cookie-modal button.secondary-btn:focus {
  background: #FFD426;
  color: #222;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #214488;
  color: #fff;
}
.cookie-modal .cookie-category span {
  font-weight: 600;
}
.cookie-modal .cookie-category[data-essential="true"] span {
  color: #214488;
}

/* ---------- UTILITY CLASSES ---------- */
.hide { display: none !important; }
.visible { display: block !important; }

/* ---------- FLEXBOX RESPONSIVE RULES ---------- */
@media (max-width: 900px) {
  .container, .content-wrapper { max-width: 100%; }
  .feature-grid, .card-container, .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid li, .testimonial-card {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .section, main > section {
    margin-bottom: 38px;
    padding: 22px 8px 22px 8px;
  }
  .hero {
    padding: 34px 0 38px 0;
    flex-direction: column;
  }
  .content-wrapper {
    padding: 0 2px;
  }
  .feature-grid, .service-list, .testimonial-list, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid li, .service-list li, .testimonial-card {
    max-width: 100%;
    padding: 18px 12px 22px 12px;
  }
  .testimonial-card {
    padding: 16px 10px;
  }
  .brand span {
    font-size: 0.92rem;
  }
  .footer-nav a {
    font-size: 0.98rem;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px;
  }
  .container {
    padding: 0 8px;
  }
  header .container {
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
    min-height: 56px;
  }
  .mobile-nav {
    padding: 16px 12px 0 22px;
    gap: 22px;
  }
}

/* HIDE MOBILE MENU & BANNER PRINT */
@media print {
  .cookie-banner, .mobile-menu { display: none !important; }
}
