/* ---- 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,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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { background: #0E1B2A; color: #F4F6FA; min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---- FONT SETTINGS ---- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
  color: #fff;
}
h1 { font-size: 2.4rem; margin-bottom: 16px; }
h2 { font-size: 1.8rem; margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 600; color: #FFBF3B; }
h4 { font-size: 1.1rem; }
p, ul, ol, table, small { color: #F4F6FA; }
strong { font-weight: 700; }

/* ---- BRAND COLORS ---- */
:root {
  --color-primary: #174175;
  --color-secondary: #FFBF3B;
  --color-accent: #F4F6FA;
  --color-bg: #0E1B2A;
  --color-card-bg: #192538;
  --color-card-accent: #22345a;
  --color-focus: #37E6FF;
  --color-danger: #FF665B;
}

/* ---- LAYOUT HELPERS ---- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 0;
}

/* ---- GENERAL SECTIONS ---- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
main section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}

/* ---- HERO ---- */
.hero {
  padding: 60px 0 40px 0;
  background: linear-gradient(90deg, #174175 0%, #1b5ca7 100%);
  box-shadow: 0 8px 28px 0 rgba(23,65,117,0.10);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  color: #fff;
  font-size: 2.4rem;
  text-shadow: 0 2px 24px #17417550;
}
.hero p {
  color: #F4F6FA;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .hero {
    padding: 36px 0 20px 0;
  }
  .hero h1 { font-size: 1.7rem; }
}


/* ---- BUTTONS & LINKS ---- */
.btn-primary, .btn-secondary, .mobile-menu .mobile-nav a, .cta-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 28px;
  margin: 0 10px 0 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 28px;
  background: linear-gradient(90deg, #174175, #1e98e7);
  color: #fff;
  box-shadow: 0 2px 12px #1741753a;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: background 0.24s, box-shadow 0.19s, letter-spacing 0.18s;
}
.btn-primary:hover, .btn-primary:focus, .cta-header:hover, .cta-header:focus {
  background: linear-gradient(90deg, #1e98e7 0%, #174175 100%);
  box-shadow: 0 4px 24px #37E6FF44, 0 1px 2px #17417544;
  letter-spacing: 0.04em;
  outline: none;
}
.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  box-shadow: 0 2px 12px #FFBF3B24;
  min-width: 120px;
  margin: 12px 10px 0 0;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: #22345a;
  border-color: var(--color-secondary);
  letter-spacing: 0.03em;
}

/* ---- HEADER ---- */
header {
  width: 100%;
  background: var(--color-bg);
  border-bottom: 2px solid #22345a55;
  box-shadow: 0 4px 16px 0 #101d3040;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 16px;
}
.logo img {
  height: 40px;
  transition: filter 0.2s;
}
.logo:hover img {
  filter: drop-shadow(0 0 6px #37E6FF);
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 7px;
  position: relative;
  transition: background 0.18s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #17417544;
  color: var(--color-secondary);
  outline: none;
}
.cta-header {
  background: linear-gradient(90deg, #FFBF3B 0%, #f9e08a 100%);
  color: #22345a;
  margin-left: 24px;
  font-size: 1rem;
  border-radius: 26px;
  box-shadow: 0 2px 12px #FFBF3B44;
  transition: background 0.2s, color 0.2s;
}
.cta-header:hover, .cta-header:focus {
  background: linear-gradient(90deg, #f9e08a 0%, #FFBF3B 100%);
  color: #174175;
  outline: none;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: var(--color-secondary);
  font-size: 2rem;
  border: none;
  margin-left: 20px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #fff;
  outline: none;
}

/* ---- MOBILE NAVIGATION ---- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14,27,42,0.95);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(110%);
  transition: transform 0.33s cubic-bezier(0.6,0,0.4,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-secondary);
  font-size: 2.4em;
  border: none;
  margin: 28px 28px 0 0;
  cursor: pointer;
  z-index: 250;
  outline: none;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #37E6FF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  gap: 0;
  margin-top: 25px;
  padding: 20px 38px 38px 38px;
}
.mobile-nav a {
  background: none;
  color: var(--color-accent);
  padding: 18px 0 17px 0;
  margin: 0;
  border-bottom: 1px solid #20324e55;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 0;
  width: 100%;
  text-align: left;
  transition: color 0.19s, background 0.16s;
  box-shadow: none;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #174175;
  color: var(--color-secondary);
}
@media (max-width: 1100px) {
  .main-nav { gap: 12px; }
  .cta-header { margin-left: 12px; }
}
@media (max-width: 900px) {
  .main-nav a { font-size: 0.96rem; }
  .cta-header { font-size: 0.97rem; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
  }
  .main-nav, .cta-header {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ---- CARDS & GRID FLEX LAYOUTS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 40px #151f3e44;
  margin-bottom: 20px;
  padding: 32px 28px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.16s;
}
.card:hover, .card:focus-within {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 12px 36px #37E6FF22,0 2px 6px #22345a14;
}

.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: 900px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .content-grid { flex-direction: column; gap: 12px; }
  .card-container { gap: 20px; }
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  background: var(--color-card-accent);
  border-radius: 15px;
  padding: 24px 20px 20px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px #17417522;
  transition: box-shadow 0.18s, transform 0.17s;
}
.feature-item img {
  width: 44px; height: 44px;
  filter: drop-shadow(0 0 10px #37E6FF22);
  margin-bottom: 5px;
  transition: filter 0.19s, transform 0.17s;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 2px 36px #37E6FF22;
  transform: translateY(-2px) scale(1.022);
}
.feature-item:hover img,
.feature-item:focus-within img {
  filter: drop-shadow(0 0 17px #37E6FF50);
  transform: scale(1.1) rotate(-5deg);
}
@media (max-width: 700px) {
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* ---- PRICING TABLE (preise page) ---- */
.pricing-table {
  width: 100%;
  overflow-x: auto;
  background: #212c44;
  border-radius: 13px;
  margin-bottom: 28px;
  box-shadow: 0 2px 22px #37E6FF11;
  padding: 1px 0 20px 0;
}
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  font-size: 1.02rem;
}
.pricing-table thead th {
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 700;
  padding: 16px 12px;
  border-bottom: 2px solid #37E6FF44;
}
.pricing-table tbody td {
  background: transparent;
  padding: 14px 12px;
  border-bottom: 1px solid #3a4e7766;
  color: #F4F6FA;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
.pricing-table small {
  font-size: 0.88em;
  color: #b5bff6;
  margin-top: 8px;
  display: block;
  padding-left: 10px;
}

/* ---- LISTS ---- */
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  font-size: 1em;
  line-height: 1.6;
}
li img { vertical-align: middle; margin-right: 7px; width: 22px; height: 22px; }

/* ---- TESTIMONIALS ---- */
.testimonials {
  background: linear-gradient(90deg, #16274b 0%, #253c63 100%);
  padding: 40px 0 50px 0;
  border-radius: 38px 38px 16px 16px;
  margin-bottom: 60px;
}
.testimonials h2 {
  color: var(--color-secondary);
}
.testimonial-slider {
  display: flex;
  gap: 24px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #F4F6FA;
  border-radius: 18px;
  box-shadow: 0 2px 32px #17417522;
  min-width: 280px;
  max-width: 390px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  position: relative;
  color: #263159;
  transition: box-shadow 0.15s, transform 0.16s;
}
.testimonial-card p {
  color: #22345a;
  font-weight: 500;
  font-size: 1.08em;
  letter-spacing: 0.01em;
  line-height: 1.6;
  text-align: center;
}
.testimonial-meta {
  font-size: 0.97em;
  color: #6e7c8b;
  text-align: center;
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}
.star-rating img {
  width: 21px;
  height: 21px;
  filter: drop-shadow(0 0 5px #FFBF3B22);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 36px #FFBF3B44, 0 1px 6px #22345a22;
  transform: translateY(-4px);
}
@media (max-width: 700px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
}

/* ---- CONTACT DETAILS ---- */
.contact-short, .contact-details, .contact-row, .map-location {
  width: 100%;
}
.contact-short .contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 24px 0;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  font-size: 1.02em;
}
.contact-row img {
  width: 27px;
  height: 27px;
}
.map-location {
  margin: 10px 0 18px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-location img {
  width: 24px; height: 24px;
}
@media (max-width: 600px) {
  .contact-row, .map-location {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ---- CTA SECTION ---- */
.cta {
  background: linear-gradient(90deg, #174175 0%, #0E1B2A 100%);
  padding: 34px 0;
  border-radius: 22px;
}
.cta .content-wrapper {
  align-items: center;
  justify-content: center;
}

/* ---- FOOTER ---- */
footer {
  background: #131e35;
  border-top: 2px solid #22345a66;
  color: #b7c6df;
  padding: 40px 0 0 0;
}

.footer-nav {
  border-bottom: 1px solid #22345a44;
  margin-bottom: 20px;
  padding-bottom: 18px;
}
.footer-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-nav nav a {
  color: #b7c6df;
  font-size: 0.96rem;
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 5px;
  transition: color 0.15s, background 0.18s;
}
.footer-nav nav a:hover, .footer-nav nav a:focus {
  background: #22345a22;
  color: #FFBF3B;
}
.impressum {
  margin: 18px 0 12px 0;
  font-size: 1rem;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin: 9px 0 18px 0;
}
.footer-social a img {
  width: 30px; height: 30px;
  filter: brightness(1.2) drop-shadow(0 0 9px #37E6FF11);
  transition: filter 0.16s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: brightness(1.8) drop-shadow(0 0 10px #37E6FF);
}
.footer-claim {
  width: 100%;
  font-size: 0.97em;
  text-align: center;
  margin: 0 auto 20px auto;
  color: #899ab3;
}
@media (max-width:900px) {
  .footer-nav nav { flex-direction: column; gap: 10px; }
}

/* ---- TEXT SECTION ---- */
.text-section {
  background: none;
  border-radius: 13px;
  padding: 0;
  color: #F4F6FA;
  font-size: 1.07em;
  line-height: 1.7;
}
.text-section ul { margin-top: 10px; }
.text-section h2 { color: var(--color-secondary); }
.text-section p { color: #F4F6FA; }

/* ---- SMALL HELPERS ---- */
.hidden { display: none !important; }
@media (max-width: 500px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }
  .section, main section { padding: 22px 0 0 0; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: none; }
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
.section,.card,.feature-item,.testimonial-card,.btn-primary,.btn-secondary,.cta {
  animation: fadeInUp .75s cubic-bezier(.7,0,.3,1) 0.07s 1;
  animation-fill-mode: backwards;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0; right:0; bottom: 0;
  z-index: 999;
  background: rgba(23,65,117,0.98);
  color: #F4F6FA;
  box-shadow: 0 -2px 22px #17417577;
  padding: 22px 10px 16px 10px;
  border-radius: 19px 19px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeIn 0.45s;
  font-size: 1rem;
}
.cookie-banner__text {
  max-width: 640px;
  text-align: center;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 11px 25px;
  border-radius: 23px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 2px;
  min-width: 120px;
  cursor: pointer;
  transition: background 0.17s, color 0.13s, box-shadow 0.1s;
}
.cookie-btn.accept {
  background: linear-gradient(90deg, #FFBF3B 0%, #f9e08a 100%);
  color: #22345a;
  box-shadow: 0 2px 8px #FFBF3B44;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: linear-gradient(90deg, #f9e08a 0%, #FFBF3B 100%);
}
.cookie-btn.reject {
  background: #22345a;
  color: #fff;
  box-shadow: 0 2px 8px #17417566;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #1e98e7;
  color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  outline: 2px solid #37E6FF;
  color: #37E6FF;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #37E6FF;
  color: #22345a;
}
@media (max-width: 600px) {
  .cookie-banner { font-size: 0.98rem; padding: 12px 5px 10px 5px; }
  .cookie-banner__actions { gap: 6px; }
}

/* ---- COOKIE MODAL ---- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14,27,42,0.83);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.33s;
}
.cookie-modal {
  min-width: 340px;
  max-width: 96vw;
  padding: 38px 24px 30px 24px;
  background: #192538;
  border-radius: 19px;
  box-shadow: 0 8px 52px #22345a44;
  color: #F4F6FA;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: fadeInUp 0.32s;
}
.cookie-modal h3 {
  color: #FFBF3B;
  font-size: 1.2em;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category input[type=checkbox] {
  margin-right: 7px;
  accent-color: #FFBF3B;
  width: 18px;
  height: 18px;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #F4F6FA;
  cursor: pointer;
  font-size: 1em;
}
.cookie-category .required {
  color: #FF665B;
  font-weight: bold;
  margin-left: 3px;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 8px;
}
.cookie-modal .cookie-btn {
  min-width: 120px;
  font-size: 1em;
  padding: 9px 22px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 15px;
  background: transparent;
  border: none;
  color: #37E6FF;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #FFBF3B;
}
@media (max-width: 500px) {
  .cookie-modal { padding: 14px 6px 14px 10px; min-width: 140px; }
}

/* ---- COLOR ACCESSIBILITY IN TESTIMONIALS ---- */
.testimonial-card, .testimonial-card p, .testimonial-card .testimonial-meta {
  background: #F4F6FA !important;
  color: #263159 !important;
}

/* ---- ACCENT & NEON EFFECTS (subtle) ---- */
::selection   { background: #FFBF3B; color: #263159; }
a, .main-nav a, .footer-nav nav a {
  transition: color 0.21s, background 0.19s, border 0.18s, box-shadow 0.16s;
}

/* ---- SCROLLBAR STYLING (modern browser only) ---- */
body::-webkit-scrollbar { width: 12px; background: #192538; }
body::-webkit-scrollbar-thumb {
  background: #1e98e7;
  border-radius: 8px;
}
body::-webkit-scrollbar-thumb:hover { background: #37E6FF; }

/* ---- FOCUS VISIBLE ---- */
:focus-visible {
  outline: 2px solid #FFBF3B;
  outline-offset: 1px;
  z-index: 11;
}

/* ---- RESPONSIVE GLOBAL TWEAKS ---- */
@media (max-width: 410px) {
  .btn-primary, .btn-secondary, .cta-header, .cookie-btn { min-width: 90px; font-size: 0.84rem; padding: 8px 10px; }
  .feature-item { min-width: 120px; padding: 14px 8px; }
}

/* ---- PRINT STYLES ---- */
@media print { header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; } }
