/* === 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, menu, 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;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #18181a;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #16437E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #111;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
img {
  max-width: 100%;
  display: block;
}
strong { font-weight: 700; }
em, i { font-style: italic; }

/* === Fonts === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #18181a;
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 { font-size: 2.5rem; letter-spacing: -0.012em; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; letter-spacing: -0.008em; }
h3 { font-size: 1.5rem; margin-bottom: 18px; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

p, li, ul, ol, table, td, th {
  color: #222225;
  font-size: 1rem;
  line-height: 1.7;
}

/* Monochrome palette for sophisticated look */
:root {
  --color-bg: #fff;
  --color-bg-light: #f6f6f9;
  --color-bg-dark: #171718;
  --color-border: #e1e1e5;
  --color-text-main: #18181a;
  --color-text-light: #444;
  --color-primary: #16437E; /* Brand primary */
  --color-secondary: #F1F1F5; /* Brand secondary */
  --color-accent: #E7B416; /* Brand accent */
  --color-link-hover: #000;
  --color-card-bg: #fff;
  --color-card-shadow: rgba(30,30,34,0.12);
  --color-btn-bg: #18181a;
  --color-btn-text: #fff;
  --color-btn-hover-bg: #16437E;
  --color-btn-accent-bg: #18181a;
  --color-btn-accent-hover: #333;
  --color-footer-bg: #171718;
  --color-footer-text: #e8e8ea;
  --color-banner-bg: #242427;
  --color-banner-text: #f1f1f1;
  --color-cookie-highlight: #E7B416;
}

/* Containers & spacing */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin-top: 0;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 32px 12px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 10px;
  }
}

/* === Header & Navigation === */
header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 18px 0;
  position: relative;
}
.main-nav > a img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  align-items: center;
}
.main-nav ul li {
  display: flex;
  align-items: center;
}
.main-nav ul a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-text-light);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border 0.18s;
  position: relative;
}
.main-nav ul a:hover, .main-nav ul a:focus {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-btn-bg);
  color: var(--color-btn-text)!important;
  border: none;
  border-radius: 30px;
  padding: 10px 32px;
  box-shadow: 0 2px 16px 0 rgba(30,30,34,0.07);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.18s, color 0.18s, transform 0.16s;
  outline: none;
  margin-left: 18px;
  display: inline-block;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-btn-hover-bg);
  color: #fff;
  transform: translateY(-2px) scale(1.035);
}
/* Hide mobile burger menu on desktop */
.mobile-menu-toggle {
  display: none;
}
/* === Mobile Navigation === */
@media (max-width: 1000px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    background: transparent;
    font-size: 2rem;
    color: var(--color-btn-accent-bg);
    border: none;
    align-items: center;
    margin-left: auto;
    cursor: pointer;
    z-index: 1202;
    padding: 8px 16px 8px 0;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;height: 100vh;
  background: rgba(20,20,22,0.955);
  z-index: 1201;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.7,0,.3,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #fff;
  margin: 20px 0 20px 24px;
  cursor: pointer;
  z-index: 1203;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 16px;
  margin-top: 0;
  padding: 10px 40px 0 40px;
}
.mobile-nav a {
  color: #fafaff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  width: 100%;
  transition: color 0.17s, background 0.17s;
  border-radius: 5px;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-footer-bg);
  color: var(--color-accent);
}
/* === Main Content Layouts === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 22px 0 var(--color-card-shadow);
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 230px;
  min-width: 240px;
  transition: box-shadow 0.24s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(30,30,34,0.17);
  transform: translateY(-4px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.text-section {
  margin-bottom: 24px;
  padding-bottom: 6px;
}

/* === Table Styling (Preise) === */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 28px 0 22px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(17, 17, 17, 0.045);
  overflow: hidden;
}
thead {
  background: #f7f7fa;
}
th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #18181a;
  font-weight: 700;
  font-size: 1.1rem;
}
tbody tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: #f1f1f5;
  transition: background 0.16s;
}
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  td, th {
    padding: 10px 12px;
  }
  th {
    font-size: 1rem;
  }
}

/* === Testimonial Cards === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fafafc;
  color: #0d0d0f;
  border-radius: 12px;
  box-shadow: 0 4px 18px 0 rgba(47, 47, 52, 0.10);
  margin-bottom: 24px;
  border-left: 6px solid var(--color-primary);
  min-width: 0;
  transition: box-shadow 0.20s, border-left-color 0.20s;
}
.testimonial-card:hover {
  border-left-color: var(--color-accent);
  box-shadow: 0 8px 32px 0 rgba(30,30,34,0.13);
}
.testimonial-card p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.18rem;
  color: #2a2a2c;
  margin-bottom: 4px;
}
.testimonial-card span {
  color: var(--color-accent);
  font-size: 1.05rem;
}
.testimonial-card div {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

/* === Footer === */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 50px 0 24px 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  row-gap: 16px;
}
.footer-content img {
  height: 44px;
}
.footer-content nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-content nav a {
  color: var(--color-footer-text);
  font-size: 1rem;
  opacity: .92;
  transition: color 0.17s, opacity 0.18s;
}
.footer-content nav a:hover {
  color: var(--color-accent);
  opacity: 1;
}
.footer-content > div {
  font-size: .97rem;
  color: #bfc3c6;
  margin-top: 10px;
}
.footer-content a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color 0.16s;
}
.footer-content a:hover {
  color: #fff;
}
@media (max-width: 720px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 0 8px;
  }
}

/* === Buttons & Interactions === */
.btn-primary, .cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 24px;
  border: none;
  padding: 10px 28px;
  background: var(--color-btn-bg);
  color: #fff;
  box-shadow: 0 4px 22px 0 rgba(25,25,33,0.08);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.21s, color 0.21s, transform 0.14s;
}
.btn-primary:hover, .cookie-btn:hover, .cookie-settings-btn:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px) scale(1.025);
}
.cookie-btn.reject {
  background: #ebebef;
  color: #31313d;
}
.cookie-btn.reject:hover {
  background: #dbdbdb;
  color: #111;
}
.cookie-settings-btn {
  background: #1c2330;
  color: #f1f1f1;
  margin-left: 14px;
}

/* === Cookie Consent Banner === */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-banner-bg);
  color: var(--color-banner-text);
  box-shadow: 0 -2px 30px 0 rgba(0,0,0,0.14);
  padding: 28px 16px 24px 16px;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.32s cubic-bezier(.7,0,.3,1);
}
#cookie-banner.closed {
  transform: translateY(100%);
  pointer-events: none;
  opacity: .15;
}
#cookie-banner-message {
  flex: 1 1 200px;
  margin-right: 12px;
}
#cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
@media (max-width: 700px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 8px;
    gap: 12px;
  }
  #cookie-banner-actions {
    justify-content: flex-start;
  }
}

/* === Cookie Modal === */
#cookie-modal-backdrop {
  position: fixed;
  top:0;left:0;width:100vw;height:100vh;
  background: rgba(34,34,38,0.72);
  z-index: 3400;
  display: none;
  align-items: center;
  justify-content: center;
}
#cookie-modal-backdrop.open {
  display: flex;
}
#cookie-modal {
  background: #18181c;
  color: #f8f8f8;
  border-radius: 18px;
  max-width: 98vw;
  width: 405px;
  padding: 38px 28px 28px 28px;
  box-shadow: 0 8px 30px 0 rgba(0,0,0,0.24);
  position: relative;
  animation: fadeInModal 0.29s cubic-bezier(.8,0,.2,1);
}
#cookie-modal h2 {
  color: var(--color-accent);
  font-size: 1.35rem;
  margin-bottom: 18px;
}
#cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 17px;
  font-size: 1.32rem;
  background: none;
  border: none;
  color: #eee;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cookie-category label {
  font-size: 1rem;
  color: #eaeaea;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-toggle {
  accent-color: var(--color-accent);
  width: 24px; height: 24px;
  cursor: pointer;
}
.cookie-category.essential label {
  font-weight: 600;
  color: var(--color-accent);
}
.cookie-category.essential .cookie-toggle {
  pointer-events: none;
  opacity: .73;
}
#cookie-modal-actions {
  margin-top: 23px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: scale(0.84); }
  100% { opacity: 1; transform: scale(1.0); }
}

/* === Utility & Misc Classes === */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }

/* === List improvements === */
ul, ol {
  margin-bottom: 18px;
}
li {
  margin-bottom: 7px;
  font-size: 1rem;
  color: #232326;
}
ul li strong {
  color: #18181a;
}

/* === Misc === */
.section > .container {
  width: 100%;
}

/* === Responsive Adjustments === */
@media (max-width: 1000px) {
  .main-nav { gap: 18px; }
}
@media (max-width: 820px) {
  .container, .footer-content {
    max-width: 99vw;
  }
}
@media (max-width: 650px) {
  .card {
    padding: 18px 12px;
  }
  .footer-content {
    gap: 12px;
  }
}
@media (max-width: 550px) {
  .testimonial-card {
    padding: 12px 6px;
    font-size: .98rem;
  }
}

/* === Spacing patterns === */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }

/* === Accessibility: Remove outline, add focus for keyboard navigation === */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.btn-primary:focus,
.cookie-btn:focus,
.cookie-settings-btn:focus,
.mobile-menu-close:focus,
.mobile-menu-toggle:focus {
  box-shadow: 0 0 0 3px var(--color-accent);
  outline: none;
}

/* === Hide visually === */
.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px);
  border: 0 !important;
}

/* === Animations === */
.btn-primary, .cookie-btn, .cookie-settings-btn {
  will-change: transform;
}
.card, .testimonial-card, .footer-content, .mobile-menu, .cookie-btn {
  transition-property: box-shadow, border, background, color, opacity, transform;
  transition-duration: 0.16s, 0.18s, 0.17s, 0.13s, 0.3s, 0.18s;
  transition-timing-function: cubic-bezier(.7,0,.3,1);
}

/* === Extra monchromatic effects === */
.card, .testimonial-card {
  background: linear-gradient(0deg, #fff, #f7f7fa 85%);
  border: 1.5px solid var(--color-border);
}

/* === Remove grid/columns props (safety) === */
/*
display: grid;
grid-template-columns: ...;
grid-gap: ...;
columns: ...;
column-count: ...;
column-gap: ...;
column-width: ...;
break-inside: ...;
*/
