/* --- 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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F1F3F8;
  color: #13315C;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
  box-sizing: border-box;
}

/* --- BRANDS AND FONTS --- */
@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: #13315C;
  --color-primary-rgb: 19,49,92;
  --color-secondary: #38AECC;
  --color-secondary-dark: #21899C;
  --color-accent: #F1F3F8;
  --color-electric-yellow: #FFDE00;
  --color-electric-pink: #FF5A5F;
  --color-electric-orange: #FF8500;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow-base: 0 4px 24px 2px rgba(56, 174, 204, 0.14);
  --section-padding: 40px 20px;
  --section-margin: 60px;
  --radius-xl: 36px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 6px;
}

/* --- LAYOUT CONTAINER --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.text-section, .content-wrapper.text-section {
  gap: 20px;
}

/* --- SPACING & FLEX PATTERNS (MANDATORY) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  padding: 24px 20px;
}
.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;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(255, 90, 95, 0.03);
  word-break: break-word;
}
h1 {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem;
  color: var(--color-primary);
}
h3 {
  font-size: 1.33rem;
  color: var(--color-electric-orange);
}
h4, h5 {
  font-size: 1.1rem;
  font-weight: 700;
}

p, li, blockquote, .testimonial-info {
  font-family: var(--font-body);
  color: #202539;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}
p {
  margin-bottom: 10px;
}
ul, ol {
  margin-left: 0;
  margin-bottom: 10px;
}
li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 22px;
}
ul li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-electric-pink) 60%, var(--color-secondary) 100%);
  box-shadow: 0 0 3px #13315C33;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

blockquote {
  font-size: 1.08rem;
  font-family: var(--font-body);
  color: #13315C;
  font-style: italic;
  background: #f8fbff;
  border-left: 7px solid var(--color-secondary);
  padding: 15px 24px;
  border-radius: var(--radius-md);
  margin: 0;
  margin-bottom: 8px;
}

.testimonial-info {
  font-size: 1rem;
  font-weight: 500;
  color: #13315C;
  margin-left: 12px;
}

/* --- NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 6px 32px -22px rgba(56, 174, 204, 0.2);
  z-index: 10;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 16px;
}
.logo img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background: transparent;
  transition: background 0.18s, color 0.22s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-electric-pink);
  color: #fff;
}
.cta-button.primary {
  padding: 12px 36px;
  font-family: var(--font-display);
  background: var(--color-electric-yellow);
  color: var(--color-primary);
  font-weight: 900;
  font-size: 1.06rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px 0 rgba(255, 94, 0, 0.17);
  text-transform: uppercase;
  margin-left: 20px;
  letter-spacing: 0.03em;
  min-width: 156px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.18s, color 0.22s, transform 0.15s;
}
.cta-button.primary:hover, .cta-button.primary:focus {
  background: var(--color-electric-pink);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 16px 0 rgba(255,90,95,0.20);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-electric-pink);
  color: #fff;
  font-size: 2rem;
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  margin-left: 20px;
  cursor: pointer;
  border: none;
  transition: background 0.18s, color 0.22s;
  z-index: 210;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary-dark);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 87vw;
  max-width: 370px;
  background: #fff;
  box-shadow: -2px 0 36px 0 rgba(56,174,204,0.15);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.44s cubic-bezier(.7,.3,.3,1);
  display: flex;
  flex-direction: column;
  padding: 38px 32px 16px 32px;
  gap: 30px;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  transition: transform 0.42s cubic-bezier(.7,.3,.3,1),opacity 0.34s;
}
.mobile-menu-close {
  background: var(--color-secondary);
  color: #fff;
  font-size: 2rem;
  border-radius: 24px;
  border: none;
  padding: 6px 22px 6px 18px;
  align-self: flex-end;
  margin-bottom: 10px;
  transition: background 0.18s, color 0.22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-electric-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary);
  padding: 10px 0 9px 2px;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: background 0.18s, color 0.22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-electric-pink);
  color: #fff;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 13px;
  }
  header .container {
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px;
  }
  .cta-button.primary {
    padding: 10px 22px;
    font-size: 0.99rem;
    min-width: 115px;
  }
}
@media (max-width: 900px) {
  .cta-button.primary {margin-left: 10px;}
  .main-nav {gap: 9px;}
}
@media (max-width: 800px) {
  .container {padding-left:8px; padding-right:8px;}
}
@media (max-width: 640px) {
  h1 {font-size:2rem;}
  h2 {font-size:1.33rem;}
  .cta-button.primary{font-size:0.93rem;padding:9px 16px;}
}

@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 851px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- HERO & SECTION STYLES --- */
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
  display: flex;
  flex-direction: row;
}
section:nth-child(even) {
  background: #fff;
}
section .container {
  gap: 0;
}
.content-wrapper {
  background: none;
  border-radius: 0;
}

/* --- FEATURE GRID (see index & angebote etc.) --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 10px;
}
.features-grid > div {
  flex: 1 1 240px;
  min-width: 210px;
  max-width: 320px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: box-shadow 0.2s, transform 0.18s;
  border: 2.5px solid var(--color-secondary);
  gap: 16px;
}
.features-grid > div:hover, .features-grid > div:focus {
  box-shadow: 0 2px 40px 0 rgba(56,174,204,0.23);
  transform: translateY(-7px) scale(1.03) rotate(-1deg);
  border-color: var(--color-electric-pink);
}
.features-grid img {
  width: 54px;
  height: 54px;
  margin-bottom: 7px;
  object-fit: contain;
}
.features-grid h3 {
  margin-bottom: 0;
  margin-top: 0;
  color: var(--color-electric-orange);
  font-size: 1.25rem;
  font-weight: 800;
}
.features-grid p {
  color: #113;
  font-size: 1rem;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: #fff;
  box-shadow: var(--shadow-base);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  padding: 20px 28px 23px 24px;
  border: 2px solid var(--color-accent);
  transition: box-shadow 0.19s, border 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 7px 45px 0 rgba(56,174,204,0.19);
  border-color: var(--color-secondary);
}
.testimonial-card blockquote {
  font-size: 1.13rem;
  line-height: 1.6;
  color: #142;
  margin-right: 4px;
  background: none;
  border-left: 6px solid var(--color-electric-yellow);
  box-shadow: none;
}
.testimonial-info {
  font-weight: 700;
  color: #13315C;
  background: var(--color-accent);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

/* --- CARDS FOR OFFERS / PRICES --- */
.card {
  border: 2.5px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-base);
  padding: 28px 24px;
  transition: box-shadow 0.16s, transform 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 7px 43px 0 rgba(255,94,0,0.17);
  transform: translateY(-5px) scale(1.02);
}

/* --- FOOTER --- */
footer {
  background: #13315C;
  color: #fff;
  padding: 56px 0 14px 0;
  box-shadow: 0 -6px 28px -18px rgba(56,174,204,0.09);
  position: relative;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.22rem;
  margin-bottom: 0;
}
.footer-brand img {
  height: 35px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-bottom: 6px;
  align-items: center;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  transition: background 0.19s, color 0.21s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-electric-yellow);
  color: var(--color-primary);
}
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 19px;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: 1rem;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  height: 19px;
  width: auto;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.footer-social a {
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  box-shadow: 0 2px 8px 0 rgba(19,49,92,0.09);
  transition: background 0.15s;
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--color-electric-yellow);
}
.footer-legal {
  font-size: 1rem;
  color: #ccc;
  font-family: var(--font-body);
  margin-top: 18px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #13315C;
  box-shadow: 0 -2px 22px 0 rgba(56,174,204,0.12);
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  gap: 32px;
  animation: cookieFadeIn 0.7s cubic-bezier(.45,.40,.39,1.24);
}
.cookie-banner p {
  flex: 3 1 220px;
  margin-bottom: 0;
  color: #13315C;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
  flex: 1 0 auto;
}
.cookie-banner button {
  padding: 10px 26px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: background 0.14s, color 0.16s, box-shadow 0.18s;
}
.cookie-banner .accept {
  background: var(--color-electric-yellow);
  color: #111;
}
.cookie-banner .accept:hover {
  background: var(--color-electric-pink);
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-electric-pink);
  border: 2.2px solid var(--color-electric-pink);
}
.cookie-banner .reject:hover {
  background: var(--color-electric-pink);
  color: #fff;
}
.cookie-banner .settings {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .settings:hover {
  background: var(--color-secondary-dark);
}
@keyframes cookieFadeIn {
  from { opacity:0; transform:translateY(80px); }
  to { opacity:1; transform:translateY(0); }
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9000;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(19,49,92,.41);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #13315C;
  border-radius: var(--radius-xl);
  max-width: 420px;
  width: 92vw;
  box-shadow: 0 6px 48px 0 rgba(56,174,204,0.18);
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 38px 34px 26px 34px;
  position: relative;
  animation: cookieModalPop 0.48s cubic-bezier(.76,-0.01,.45,1.21);
}
@keyframes cookieModalPop {
  from { transform: scale(0.91) translateY(40px); opacity:0; }
  to { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h2 {
  color: var(--color-secondary);
  font-size: 1.33rem;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-weight: 900;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px; right: 24px;
  background: none;
  color: var(--color-electric-pink);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .cookie-modal-close:hover, 
.cookie-modal .cookie-modal-close:focus {
  color: var(--color-secondary-dark);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.01rem;
  margin-bottom: 11px;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #E0E9F3;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
  border: 1.2px solid #b1c3d2;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.19s cubic-bezier(.65,.14,.5,1.6);
  box-shadow: 0 2px 6px 0 rgba(56,174,204,0.17);
}
.cookie-toggle:checked:before {
  transform: translateX(18px);
  background: var(--color-electric-yellow);
}
.cookie-category .cookie-status {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-electric-pink);
  margin-left: 7px;
}
.cookie-modal .cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 17px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-footer button {
  padding: 8px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: var(--color-electric-yellow);
  color: #111;
  border: none;
  transition: background 0.15s, color 0.13s;
}
.cookie-modal .cookie-modal-footer button:hover {
  background: var(--color-electric-pink);
  color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .features-grid > div {max-width: 100%;}
  .features-grid {gap:18px;}
  .testimonial-card {padding:16px 12px; gap:9px;}
}
@media (max-width: 900px) {
  section {padding:28px 0;}
  .card {padding:18px 10px;}
  .footer-contact {flex-direction:column;gap:7px;}
}
@media (max-width: 700px) {
  .features-grid {flex-direction:column;}
  .features-grid > div {width:100%;max-width:100%;}
}
@media (max-width: 650px) {
  section {padding:12px 0;}
  .section {padding:28px 3px;}
  .card-container {gap:13px;}
  .content-grid {gap:12px;}
  .testimonial-card {flex-direction:column; align-items:flex-start;}
  .cookie-banner {
    flex-direction:column;
    gap:18px;
    padding:16px 8px;
    align-items:flex-start;
  }
  .cookie-banner .cookie-buttons {
    width:100%;
    justify-content:flex-start;
    gap:8px;
  }
}
@media (max-width:520px) {
  .container {padding-left:3px; padding-right:3px;}
  h1,h2{font-size:1.13rem;}
  .footer-brand span{font-size:0.99rem;}
  .footer-social{gap:6px;}
}

/* --- CUSTOM FLEX-DIRECTION FOR SECTIONS --- */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column !important;
    gap: 20px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .features-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
}

/* --- WHITE SPACE UTILITIES --- */
.mt-8 {margin-top: 8px;}
.mb-8 {margin-bottom: 8px;}
.mt-16 {margin-top: 16px;}
.mb-16 {margin-bottom: 16px;}
.mt-24 {margin-top: 24px;}
.mb-24 {margin-bottom: 24px;}
.gap-20 {gap: 20px;}
.gap-30 {gap: 30px;}

/* --- MICRO-INTERACTIONS / EFFECTS --- */
.cta-button.primary, .footer-nav a, .main-nav a, .features-grid > div, .card, .testimonial-card {
  transition: box-shadow 0.17s, background 0.18s, color 0.16s, border 0.14s, transform 0.18s;
}
.cta-button.primary:active {
  transform: scale(0.98);
}
.features-grid > div:active, .card:active, .testimonial-card:active {
  transform: scale(0.98);
}
.mobile-menu-toggle:active, .mobile-menu-close:active {
  transform: scale(0.92);
}

/* --- HIDE OUTLINE ON MOUSE, SHOW FOR KEYBOARD NAVIGATION --- */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-secondary-dark);
  outline-offset: 2px;
}

/* --- GENERAL UTILITIES --- */
.d-flex {display: flex !important;}
.flex-row {flex-direction: row !important;}
.flex-col {flex-direction: column !important;}
.ai-center {align-items: center !important;}
.ai-start {align-items: flex-start !important;}
.jc-center {justify-content: center !important;}
.jc-between {justify-content: space-between !important;}
.nowrap {flex-wrap: nowrap !important;}
.w-100 {width: 100% !important;}

/* --- END --- */
