/* =============================
   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, 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F1ED;
  color: #22435C;
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
*:focus {
  outline: 2px solid #B7C4CF;
  outline-offset: 2px;
}

/* =============================
   BRAND VARIABLES & BASE UI
   ============================= */
:root {
  --primary: #22435C;
  --secondary: #B7C4CF;
  --accent: #F5F1ED;
  --body-bg: #F5F1ED;
  --fg: #22435C;
  --card-bg: #FFF;
  --border-radius: 15px;
  --shadow-soft: 0 2px 12px rgba(34, 67, 92, 0.08);
  --shadow-card: 0 4px 24px rgba(34,67,92,0.08);
  --cta-gradient: #22435C;
  --cta-gradient-hover: #B7C4CF;
  --cta-text: #F5F1ED;
  --focus-outline: #B7C4CF;
}

body {
  background: var(--body-bg);
  font-size: 16px;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

section {
  background: transparent;
}
.section, main section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* =============================
   TYPOGRAPHY
   ============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 22px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--fg);
}
p {
  margin-bottom: 18px;
}
ul, ol {
  margin-bottom: 20px;
  padding-left: 20px;
}
li {
  margin-bottom: 8px;
}
strong {
  color: var(--primary);
  font-weight: 700;
}
em {
  color: var(--secondary);
  font-style: italic;
}

/* =============================
   HEADER & NAVIGATION
   ============================= */
header {
  background: var(--card-bg);
  border-bottom: 1px solid #E2E6EA;
  box-shadow: 0 1px 6px rgba(34,67,92,0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
header img {
  max-height: 46px;
  margin-right: 32px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 16px;
  border-radius: 8px;
  color: var(--primary);
  transition: background 0.18s, color 0.18s;
}
header nav a:hover:not(.cta-btn),
header nav a:focus:not(.cta-btn) {
  background: var(--secondary);
  color: var(--accent);
}
.cta-btn {
  background: var(--primary);
  color: var(--cta-text)!important;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 26px;
  margin-left: 18px;
  font-weight: 600;
  box-shadow: 0 2px 16px rgba(34,67,92,0.08);
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, color 0.2s;
  outline: none;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--primary)!important;
  box-shadow: 0 2px 24px rgba(34,67,92,0.15);
}

/* Mobile Burger Menu Controls */
.mobile-menu-toggle {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 2.3rem;
  display: none;
  cursor: pointer;
  padding: 5px 12px;
  margin-left: 18px;
  z-index: 30;
  border-radius: 50%;
  line-height: 1;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* =============================
   MOBILE MENU STYLES & ANIMATION
   ============================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: var(--cta-text);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.8,.1,.29,1.15);
  display: flex;
  flex-direction: column;
  opacity: 0.99;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--cta-text);
  border: none;
  font-size: 2.5rem;
  align-self: flex-end;
  margin: 16px 22px 6px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 16px;
  gap: 12px;
  padding: 12px 32px;
  width: 100%;
}
.mobile-nav a {
  color: var(--cta-text);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245,241,237,0.08);
  width: 100%;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(255,255,255,0.03);
}

/* =============================
   HERO SECTION
   ============================= */
.hero {
  background: linear-gradient(120deg, #F5F1ED 60%, #B7C4CF 120%);
  background-size: 120% 100%;
  background-repeat: no-repeat;
  padding-top: 42px;
  padding-bottom: 60px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 6px 24px rgba(34,67,92,0.06);
  margin-bottom: 48px;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
}
.hero .content-wrapper {
  text-align: center;
}
.hero h1 {
  color: var(--primary);
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.18rem;
  max-width: 560px;
  margin: 0 auto 28px auto;
  color: var(--primary);
}
.hero .cta-btn {
  margin: 16px 0 0 0;
}

/* =============================
   FLEXBOX CARD, SECTION, TESTIMONIALS
   ============================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  min-width: 270px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature-grid > div {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 30px 18px 22px 18px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 220px;
}
.feature-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 8px;
  filter: grayscale(50%) brightness(1.2);
}
.feature-grid h3 {
  margin-bottom: 6px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  color: #22435C;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  font-size: 1.05rem;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.testimonial-card p {
  font-size: 1.13rem;
  color: #22435C;
  font-weight: 500;
  margin-bottom: 4px;
  flex: 3 1 220px;
}
.testimonial-card strong {
  color: #22435C;
}
.testimonial-card img[alt="Bewertung"] {
  height: 22px;
  width: 22px;
  filter: drop-shadow(0 1px 2px rgba(34,67,92,0.03));
  margin-right: 2px;
}

/* =============================
   TABLE PRICING
   ============================= */
table {
  border-spacing: 0;
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}
th, td {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 14px 12px;
  font-size: 1rem;
  text-align: left;
  border-bottom: 1px solid #E0E4EA;
}
th {
  background: var(--secondary);
  color: #22435C;
  font-weight: 700;
  letter-spacing: 0.03em;
}
td {
  background: var(--card-bg);
  color: var(--primary);
}
tr:last-child td {
  border-bottom: none;
}

/* =============================
   ACCORDION FAQ
   ============================= */
.accordion-faq > div {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  padding: 20px 24px;
  transition: box-shadow 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.accordion-faq h2 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.text-section p {
  font-size: 1rem;
  color: #22435C;
  margin-bottom: 0;
}

/* =============================
   BUTTONS & MICRO-INTERACTIONS
   ============================= */
button, .cta-btn {
  transition: background 0.23s, color 0.18s, box-shadow 0.24s, transform 0.13s;
}
button:active, .cta-btn:active {
  transform: scale(0.97);
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: #FFF;
  border-top: 1px solid #E2E6EA;
  padding: 40px 0 18px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--primary);
  font-size: 0.98rem;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 3px 9px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--cta-text);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--primary);
  font-size: 0.96rem;
}
.footer-contact img {
  height: 14px;
  vertical-align: middle;
  margin-right: 6px;
}

/* =============================
   CONTACT LIST
   ============================= */
.company-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 18px 0;
  margin-bottom: 16px;
}
.company-details img {
  height: 20px;
  width: 20px;
  margin-right: 7px;
  vertical-align: middle;
  display: inline-block;
}

/* =============================
   MISC ELEMENTS
   ============================= */
a {
  cursor: pointer;
}
ul li, ol li {
  padding-left: 0.5em;
  list-style-type: disc;
}
ul li strong {
  margin-right: 3px;
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFF;
  color: #22435C;
  padding: 22px 18px;
  box-shadow: 0 -2px 20px rgba(34,67,92,0.11);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  border-radius: 20px 20px 0 0;
  animation: slideInCookie 0.5s cubic-bezier(.4,1.3,.4,1) 1;
}
@keyframes slideInCookie {
  0% { transform: translateY(100%); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 5px;
}
.cookie-btn {
  border-radius: 8px;
  border: none;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.22s, color 0.18s;
  margin-top: 2px;
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--cta-text);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #E0E4EA;
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #B7C4CF;
  color: var(--cta-text);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid #E2E6EA;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary);
  color: var(--cta-text);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,67,92,0.38);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s;
  animation: fadeModalIn 0.43s cubic-bezier(.7,.4,.4,1.13);
}
@keyframes fadeModalIn {
  from { opacity: 0 }
  to { opacity: 1 }
}
.cookie-modal-content {
  background: #FFF;
  color: #22435C;
  border-radius: 20px;
  box-shadow: 0 8px 64px rgba(34,67,92,0.18);
  max-width: 410px;
  width: 98%;
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  font-size: 1rem;
  animation: slideModalUp 0.4s cubic-bezier(.5,1,.3,1);
}
@keyframes slideModalUp {
  0% { transform: translateY(40px); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  position: absolute;
  top: 12px;
  right: 14px;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F5F1ED;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-toggle {
  display: inline-block;
  width: 38px;
  height: 23px;
  position: relative;
}
.cookie-toggle input[type=checkbox] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #E0E4EA;
  border-radius: 20px;
  transition: background 0.22s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: var(--primary);
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 13px; width: 13px;
  left: 5px; bottom: 5px;
  background: #FFF;
  border-radius: 50%;
  transition: transform 0.22s;
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(13px);
}
.cookie-category.essential label {
  opacity: 0.6;
  font-style: italic;
}
.cookie-category.essential .cookie-toggle {
  opacity: 0.6;
  pointer-events: none;
}

/* =============================
   RESPONSIVE DESIGN
   ============================= */
@media (max-width: 1080px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    min-width: 0;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
    padding: 0 12px;
  }
  .content-wrapper {
    max-width: 98vw;
  }
  .footer-contact {
    font-size: 0.98rem;
  }
  header nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-grid {
    flex-direction: column;
    gap: 24px;
  }
  .section, main section, .hero {
    padding: 28px 6px;
    margin-bottom: 28px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    text-align: left;
    font-size: 1.01rem;
    padding: 16px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
    text-align: left;
  }
  .footer-contact {
    gap: 5px;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  table, th, td {
    font-size: 0.98rem;
  }
  h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  h3 {
    font-size: 1.05rem;
  }
}

@media (max-width: 520px) {
  .hero h1, .hero p {
    font-size: 1rem;
  }
  .hero {
    padding: 14px 0 20px 0;
  }
  .cta-btn, .cookie-btn {
    font-size: 0.97rem;
    padding: 8px 14px;
  }
  .testimonial-card {
    font-size: 0.97rem;
    padding: 10px 5px;
  }
  .section, main section {
    padding: 12px 1vw;
  }
  .cookie-modal-content {
    padding: 16px 7px 12px 7px;
    min-width: 90vw;
  }
}

/* =============================
   SCROLLBAR
   ============================= */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-thumb {
  background: #E2E6EA;
  border-radius: 8px;
}
body::-webkit-scrollbar-track {
  background: #fafbfc;
}

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