/* =========================
   CSS RESET & BASE STYLES
   ========================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #151e2c;
  min-height: 100%;
}
body {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #233e5a 0%, #141b24 80%);
  color: #f7f7fa;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #f7c948;
  text-decoration: none;
  transition: color .18s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #fff200;
  outline: none;
}

::-webkit-input-placeholder { color: #b3bed1; }
::-moz-placeholder { color: #b3bed1; }
:-ms-input-placeholder { color: #b3bed1; }
::placeholder { color: #b3bed1; }

/* =========================
   BRANDING
   ========================= */
:root {
  --color-primary: #233e5a;
  --color-secondary: #f7c948;
  --color-accent: #ffffff;
  --color-bg-dark: #151e2c;
  --color-bg-card: #1f2a38;
  --color-bg-light: #232b3a;
  --color-neon: #3bffd7;
  --color-muted: #b3bed1;
  --font-display: "Montserrat", Arial, Helvetica, sans-serif;
  --font-body: "Roboto", Arial, Helvetica, sans-serif;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-elevate: 0 4px 32px 0 rgba(36, 96, 202, 0.08), 0 1px 2px 0 rgba(42,176,241,0.09);
  --shadow-neon: 0 0 16px 2px #3bffd777;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat'), local('Montserrat-Bold');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular');
  font-display: swap;
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-elevate);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-light);
  box-shadow: var(--shadow-elevate);
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  position: relative;
  padding: 24px;
  min-width: 260px;
  flex: 1 1 320px;
  transition: transform .2s cubic-bezier(.4,0,.2,1),box-shadow .2s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-neon), var(--shadow-elevate);
  z-index: 3;
}

.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;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  color: #1f2733;
  border-left: 6px solid var(--color-neon);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px 0 rgba(65, 206, 225, 0.11);
  transition: box-shadow .18s cubic-bezier(.4,0,.2,1), border-color .18s;
}
.testimonial-card strong { color: var(--color-primary); font-weight:700; font-family:var(--font-display); }
.testimonial-card:hover {
  box-shadow: var(--shadow-neon), 0 2px 12px 0 rgba(65, 206, 225, 0.12);
  border-color: var(--color-secondary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  background: var(--color-bg-light);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevate);
}

ul {
  list-style: none;
  padding-left: 0;
}
ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}
ul li img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 4px #3bffd766);
}

/* Distinctive cards for pricing calculator or brief info */
.price-calculator-snippet {
  background: var(--color-bg-light);
  border-left: 6px solid var(--color-secondary);
  padding: 18px 28px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(240, 205, 88, 0.07);
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: .01em;
  line-height: 1.17;
}
h1 {
  font-size: 2.5rem;
  color: var(--color-neon);
  margin-bottom: 10px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
  color: var(--color-secondary);
}
h4 {
  font-size: 1.2rem;
}
p, li, dt, dd, table th, table td {
  font-family: var(--font-body);
  font-size: 1.10rem;
  color: #e3e9f3;
  letter-spacing:.004em;
  line-height: 1.55;
}
p {
  margin-bottom: 10px;
}
strong {
  font-weight:700;
  color: var(--color-secondary);
}

dt {
  margin-top:18px;
  font-family: var(--font-display);
  color: var(--color-accent);
}
dd {
  margin-left:6px;
  margin-bottom:8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-elevate);
  margin-bottom: 20px;
  margin-top: 12px;
  overflow: hidden;
}
thead tr {
  background: var(--color-primary);
}
th, td {
  padding: 14px 12px;
  text-align: left;
}
th {
  color: var(--color-secondary);
  font-weight: 700;
  border-bottom: 2px solid var(--color-secondary);
}
td {
  color: var(--color-accent);
  border-bottom: 1px solid #2e415b;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* =========================
   BUTTONS & CALL TO ACTION
   ========================= */
.button-primary,
.button-primary:visited {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-neon);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 40px;
  border: none;
  box-shadow: 0 0 14px 1px #3bffd777, var(--shadow-elevate);
  cursor: pointer;
  letter-spacing: .05em;
  text-shadow: 0 1px 2px #101622;
  transition: background .15s, box-shadow .19s, transform .12s;
  line-height: 1.1;
  margin-bottom: 10px;
}
.button-primary:hover, .button-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 0 18px 2px #f7c94870, 0 2px 12px #11131322;
  transform: scale(1.03);
  outline: none;
}
.button-secondary {
  display: inline-block;
  padding: 10px 24px;
  background: #18223e;
  color: var(--color-neon);
  border: 2px solid var(--color-neon);
  border-radius: 36px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 6px;
  transition: color .18s, background .18s, border-color .18s;
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--color-neon);
  color: var(--color-primary);
  border-color: var(--color-secondary);
  outline: none;
}

/* =========================
   HEADER / NAVIGATION BAR
   ========================= */
header {
  width: 100%;
  background: #181f2c;
  padding: 0 0 0 0;
  box-shadow: 0 4px 32px 0 rgba(36, 96, 202, 0.07);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px !important;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  color: #b3bed1;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 28px;
  font-size: 1.05rem;
  transition: color .17s, background .17s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  background: #222d3e;
  outline: none;
}
header a img {
  height: 40px;
  margin-right: 18px;
}
header .button-primary {
  margin-left: 14px;
}

/* =========================
   MOBILE NAVIGATION
   ========================= */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-neon);
  font-size: 2.2rem;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 40px;
  transition: background .15s, color .13s;
  display: none;
}
.mobile-menu-toggle:focus {
  background: #21283a;
  color: var(--color-secondary);
  outline: none;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 28, 40, 0.98);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.65,.05,.36,1);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 0 24px 0 #223E5A88;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-neon);
  font-size: 2rem;
  align-self: flex-end;
  margin: 18px 32px 0 0;
  cursor: pointer;
  border-radius: 50%;
  transition: background .12s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #111820;
  color: var(--color-secondary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 30px 0 0 32px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 16px 0;
  transition: color .15s, text-shadow .18s;
  text-shadow: 0 0 8px #3bffd799;
}
.mobile-nav a:hover {
  color: var(--color-neon);
}

/* Hamburger visible on mobile only */
@media (max-width: 1024px) {
  header nav, header .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #202b3d;
  padding: 48px 0 32px 0;
  color: #b3bed1;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-logo {
  flex: 0 0 auto;
  margin-right: 32px;
}
.footer-logo img {
  height: 44px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-menu a {
  color: #b3bed1;
  font-size: 1rem;
  padding: 3px 0;
  border-radius: 10px;
  transition: color .16s, background .12s;
}
.footer-menu a:hover {
  color: var(--color-neon);
  background: #1d2333;
}
.footer-contact p {
  color: #91a3bc;
  font-size: .97rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 1050px) {
  .container {
    max-width: 97vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .footer-logo { margin-right: 10px; }
}

@media (max-width: 900px) {
  header .container {
    gap: 12px !important;
    height: auto;
    padding: 12px;
  }
  .footer-contact p {
    font-size: .95rem;
  }
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 8vw;
    padding-right: 8vw;
  }
  .content-grid, .card-container, .section {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-logo {
    margin-bottom: 12px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 9px;
  }
}
@media (max-width: 500px) {
  html { font-size:14px; }
  .container {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .button-primary { width: 100%; text-align: center; }
  .testimonial-card, .card, .feature-item, .section {
    padding: 18px 12px;
    border-radius:8px;
  }
}

/* =========================
   TABLE & DETAILS
   ========================= */
details {
  background: var(--color-bg-light);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 8px 0 #233e5a12;
  margin-bottom: 18px;
}
summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.11rem;
  color: var(--color-secondary);
  outline: none;
}

/* =========================
   COOKIES CONSENT BANNER
   ========================= */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #232e40;
  color: #fff;
  box-shadow: 0 -4px 34px 0 #000000be;
  padding: 26px 14px 18px 14px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 1220;
  font-size: 1.08rem;
  transition: transform .28s cubic-bezier(.79,.02,.31,.98);
}
#cookie-banner.hide {
  transform: translateY(140%);
}
#cookie-banner p {
  flex: 1 1 auto;
  color: #fff;
  margin-right: 8px;
  font-family: var(--font-body);
}
#cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
#cookie-banner .cookie-btn {
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size:1rem;
  font-weight:700;
  border-radius: 32px;
  border: none;
  cursor: pointer;
}
#cookie-banner .cookie-btn.accept {
  background: var(--color-neon);
  color: #162435;
  box-shadow: 0 0 11px #3bffd799;
  transition: background .13s, box-shadow .19s;
}
#cookie-banner .cookie-btn.accept:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 0 20px #f7c94899;
}
#cookie-banner .cookie-btn.reject {
  background: #232e40;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  transition: color .13s, background .13s;
}
#cookie-banner .cookie-btn.reject:hover {
  background: #36425b;
  color: var(--color-neon);
}
#cookie-banner .cookie-btn.settings {
  background: #222b38;
  color: #92b6ff;
  border: 1px solid #3bffd7;
  transition: background .15s, color .13s;
}
#cookie-banner .cookie-btn.settings:hover {
  background: #14253a;
  color: #3bffd7;
}

/* Cookie Modal Overlay */
#cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,30,48,.95);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
#cookie-modal .cookie-modal-content {
  background: #202b3d;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 38px 8px #223e5a88;
  padding: 40px 24px 32px 24px;
  min-width: 320px;
  max-width:90vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
#cookie-modal h2 {
  color: var(--color-neon);
  font-size: 1.7rem;
  margin-bottom: 18px;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1.12rem;
}
#cookie-modal .cookie-category .toggle {
  margin-left: 16px;
  cursor: pointer;
  width: 48px; height: 28px;
  border-radius: 16px;
  background: #25314d;
  border: 2px solid #3bffd7;
  transition: background .17s, border .12s;
  display: flex;
  align-items: center;
}
#cookie-modal .cookie-category .toggle input {
  display: none;
}
#cookie-modal .cookie-category .slider {
  display: block;
  width: 44px; height: 20px;
  background: #181f29;
  border-radius: 16px;
  position: relative;
  transition: background .17s;
}
#cookie-modal .cookie-category .toggle input:checked + .slider {
  background: #3bffd7;
}
#cookie-modal .cookie-category .slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 2px;
  width: 16px; height: 16px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 2px 12px #3bffd766;
  transition: left .18s;
}
#cookie-modal .cookie-category .toggle input:checked + .slider:before {
  left: 25px;
  background: var(--color-primary);
}
#cookie-modal .cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  justify-content: flex-end;
}
#cookie-modal .cookie-action-btn {
  padding: 10px 26px;
  font-family: var(--font-display);
  border: none;
  border-radius: 31px;
  font-weight: 700;
  cursor: pointer;
  background: var(--color-neon);
  color: #162435;
  box-shadow: 0 0 8px #3bffd788;
  transition: background .13s, color .13s;
}
#cookie-modal .cookie-action-btn:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
#cookie-modal .close-modal {
  position: absolute;
  top: 18px; right: 24px;
  background: none;
  border: none;
  color: var(--color-neon);
  font-size: 2rem;
  cursor: pointer;
}

/* =========================
   MISCELLANEOUS CLASSES
   ========================= */
.trusted-logos {
  display: flex;
  align-items:center;
  gap: 18px;
  margin-top: 10px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
.text-section h3 {
  margin-bottom: 1px;
}

/* For direct phone links */
p img[alt="Telefon"], p img[alt="Telefon:"] {
  vertical-align: middle;
  margin-right: 6px;
  filter: drop-shadow(0 0 5px #3bffd777);
}

/* =========================
   MICRO-INTERACTIONS & ANIMATIONS
   ========================= */
.button-primary, .button-secondary, .button-action,
.mobile-menu-toggle, .mobile-menu-close,
#cookie-banner .cookie-btn, #cookie-modal .cookie-action-btn {
  transition: background .15s, box-shadow .19s, color .13s, border .13s, transform .13s;
}

.section, .card, .feature-item, .testimonial-card, .price-calculator-snippet {
  transition: box-shadow .16s, border .13s, background .16s;
}

.section:hover, .card:hover, .feature-item:hover {
  box-shadow: 0 0 22px #3bffd788, var(--shadow-elevate);
}

/* =========================
   ENSURE NO OVERLAPPING
   ========================= */
.card, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}
.content-grid, .card-container, .text-image-section, .feature-item {
  gap: 20px;
}
/* Table and testimonials never overlap and always have at least 20px spacing */
.content-wrapper > * { margin-bottom: 20px; }
.content-wrapper > *:last-child { margin-bottom: 0; }

/* Ensure extra breathing room on mobile */
@media (max-width: 600px) {
  .section, .card, .feature-item, .testimonial-card {
    margin-bottom: 12px;
    padding: 12px 6px;
  }
  .container {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

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

/* =========================
    OVERRIDES FOR FAQ, THANK YOU ETC.
   ========================= */
dt {
  font-size:1.17rem;
  font-weight:600;
}
dd {
  font-size:1.07rem;
  color:#c7d1df;
}

/* Prevent absolutely-positioned content - reserved for decorative neon if used */

/* ========== END OF CSS ========== */
