/* =====================================================
   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, 
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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #111;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* Font setup */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

html {
  font-size: 16px;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #181818;
  min-height: 100vh;
}


/* =====================================================
   MONOCHROME SOPHISTICATED PALETTE & VARIABLES
===================================================== */
:root {
  --brand-primary: #181818;
  --brand-dark: #0E0E0E;
  --brand-light: #fff;
  --brand-grey-100: #F8F8F8;
  --brand-grey-200: #E4E4E4;
  --brand-grey-300: #C6C6C8;
  --brand-grey-400: #A0A0A0;
  --brand-grey-700: #363636;
  --brand-blue: #1A237E;
  --brand-blue-accent: #1565C0;
  --brand-shadow: rgba(0,0,0,0.06);

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;

  --radius-xs: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-md: 0 2px 12px 0 rgba(0,0,0,0.06);
  --shadow-lg: 0 6px 28px 0 rgba(0,0,0,0.10);

  --section-padding: 40px 20px;
  --section-spacing: 60px;
  --gap-lg: 32px;
  --gap: 20px;
  --gap-sm: 10px;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--brand-primary);
  margin-bottom: 0.5em;
}
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 24px;
}
h3 {
  font-size: 1.26rem;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.11rem;
  font-weight: 500;
}
p, ul, ol {
  font-size: 1.125rem;
  color: var(--brand-primary);
  margin-bottom: 1.5em;
  line-height: 1.7;
}
ul, ol {
  margin-left: 1.3em;
}
ul li, ol li {
  margin-bottom: 0.5em;
  font-size: 1.04rem;
  line-height: 1.6;
}
.text-section ul {
  margin-bottom: 1em;
}
strong {
  font-weight: 600;
}
.text-section {
  margin-top: 18px;
  margin-bottom: 18px;
  font-size: 1.09rem;
}

/* Typography spacing */
.section h2 {
  margin-top: 0;
}

/* =====================================================
   BUTTONS & CTA
===================================================== */
.cta {
  padding: 13px 38px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  background: var(--brand-light);
  color: var(--brand-primary);
  border: 2px solid var(--brand-dark);
  box-shadow: 0 2px 6px var(--brand-shadow);
  margin: 10px 0 10px 0;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
  display: inline-block;
  text-align: center;
  min-width: 180px;
}
.cta.primary {
  background: var(--brand-primary);
  color: var(--brand-light);
  border-color: var(--brand-primary);
  box-shadow: 0 4px 18px 0 rgba(24,24,24,0.13);
}
.cta.primary:hover,
.cta.primary:focus {
  background: var(--brand-light);
  color: var(--brand-primary);
  border: 2px solid var(--brand-dark);
  box-shadow: 0 6px 24px 0 rgba(20,20,20,0.17);
}
.cta:hover,
.cta:focus {
  background: var(--brand-grey-100);
  color: var(--brand-primary);
  box-shadow: 0 4px 18px 0 rgba(0,0,0,0.11);
}

/* =====================================================
   CONTAINER & LAYOUT
===================================================== */
.container {
  width: 100%;
  max-width: 1150px;
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =====================================================
   FLEXBOX LAYOUT PATTERNS
===================================================== */
.card-container,
.card-grid,
.feature-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 330px;
  min-width: 290px;
  background: var(--brand-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 30px 22px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px) scale(1.01);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --> For feature-grid */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature-grid li {
  display: flex;
  align-items: center;
  background: var(--brand-grey-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  min-width: 230px;
  font-size: 1.1rem;
  color: var(--brand-primary);
}
.feature-grid img {
  width: 28px;
  height: 28px;
  margin-right: 11px;
}


.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 32px;
  margin-bottom: 20px;
  background: var(--brand-grey-100);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
  border: 1.5px solid var(--brand-grey-200);
  color: var(--brand-primary);
  transition: box-shadow 0.17s;
  max-width: 760px;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px 0 rgba(0,0,0,0.14);
}
.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #111;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-weight: 500;
  color: var(--brand-blue-accent);
  font-family: var(--font-display);
  font-size: 1.08rem;
}

/* =====================================================
   HEADER
===================================================== */
header {
  background: var(--brand-light);
  border-bottom: 1.5px solid var(--brand-grey-200);
  min-height: 74px;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: var(--gap-lg);
}
.logo img {
  height: 38px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brand-grey-700);
  font-weight: 500;
  position: relative;
  padding: 3px 0;
  transition: color 0.16s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--brand-primary);
}

/* Hide header nav on mobile */
@media (max-width: 880px) {
  .main-nav {
    display: none;
  }
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-grey-100);
  color: var(--brand-blue);
  border-radius: var(--radius);
  border: 1.5px solid var(--brand-grey-200);
  height: 44px;
  width: 48px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, box-shadow 0.12s;
  z-index: 300;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--brand-grey-300);
  box-shadow: 0 2px 8px rgba(40,40,40,0.09);
}
@media (max-width: 880px) {
  .mobile-menu-toggle {
    display: flex;
  }
  .cta.primary {
    display: none;
  }
}

/* =====================================================
   MOBILE MENU
===================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 370px;
  height: 100vh;
  background: var(--brand-light);
  box-shadow: -16px 0 40px rgba(18,18,18,0.35);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(.67,.1,.24,1.08), opacity 0.22s;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  margin: 20px 24px 0 0;
  background: var(--brand-grey-200);
  border-radius: var(--radius-xs);
  height: 38px;
  width: 44px;
  color: var(--brand-blue-accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-grey-400);
  color: var(--brand-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
  padding: 0 38px;
}
.mobile-nav a {
  font-size: 1.23rem;
  font-family: var(--font-display);
  color: var(--brand-primary);
  padding: 13px 0 13px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--brand-grey-200);
  transition: color 0.13s, background 0.13s;
  border-radius: 0;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-grey-100);
  color: var(--brand-blue);
  border-radius: var(--radius-xs);
}

/* Overlay to darken background (optional) */
.mobile-menu-overlay {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(15,15,22,0.22);
  z-index: 9998;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.18s;
}

/* Hide mobile menu on desktop */
@media (min-width: 881px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* =====================================================
   MAIN: SECTION STYLES
===================================================== */
section {
  margin-bottom: var(--section-spacing);
  padding: var(--section-padding);
}
@media (max-width: 600px) {
  section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}
h1, h2, h3 {
  margin-bottom: 0.6em;
}
section > .container {
  padding: 0;
}

/* Content inside sections */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* Tables (for prices page) */
table {
  width: 100%;
  background: var(--brand-light);
  border: 1.2px solid var(--brand-grey-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.07);
  margin: 14px 0 18px 0;
  font-size: 1.07rem;
}
thead {
  background: var(--brand-grey-100);
}
th, td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--brand-grey-200);
  text-align: left;
}
th {
  color: var(--brand-primary);
  font-weight: 700;
}
tbody tr:nth-child(odd) {
  background: var(--brand-grey-100);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* Articles (blog posts) */
article {
  margin-bottom: 30px;
  padding: 26px 24px;
  background: var(--brand-grey-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.16s, transform 0.14s;
}
article h3 {
  margin-bottom: 10px;
}
article a {
  margin-top: 9px;
  font-family: var(--font-display);
  color: var(--brand-blue-accent);
  font-weight: 600;
  transition: color 0.14s;
}
article a:hover,
article a:focus {
  color: var(--brand-blue);
  text-decoration: underline;
}
article:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.01);
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  margin-top: 62px;
  background: var(--brand-grey-100);
  color: var(--brand-primary);
  border-top: 1.5px solid var(--brand-grey-200);
  padding: 0 0 16px 0;
}
footer .container {
  padding-top: 26px;
  padding-bottom: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-lg);
  align-items: stretch;
  justify-content: space-between;
}
.footer-logo img {
  height: 32px;
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: var(--brand-grey-700);
  font-size: 0.98rem;
  font-family: var(--font-display);
  font-weight: 500;
  transition: color 0.14s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--brand-primary);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
  color: var(--brand-grey-700);
  margin: 0 0 10px 0;
}
.contact-info img {
  width: 18px;
  height: 18px;
  margin-bottom: -3px;
  margin-right: 7px;
}
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-links a img {
  width: 32px;
  height: 32px;
  filter: grayscale(1) brightness(0.2);
  transition: filter 0.17s;
}
.social-links a:hover img {
  filter: grayscale(0) brightness(0.5);
}
.copyright {
  font-size: 0.98rem;
  color: var(--brand-grey-400);
  margin-top: 21px;
  text-align: center;
  letter-spacing: 0.01em;
}

/* =====================================================
   COOKIE CONSENT BANNER & MODAL
===================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--brand-dark);
  color: var(--brand-light);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 28px;
  z-index: 10999;
  box-shadow: 0 -2px 18px rgba(0,0,0,0.21);
  transition: transform 0.28s, opacity 0.16s;
  font-size: 1.03rem;
  gap: 36px;
  flex-wrap: wrap;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-left: 36px;
}
.cookie-banner button {
  padding: 9px 23px;
  border-radius: var(--radius);
  font-size: 1rem;
  border: 1.5px solid var(--brand-grey-400);
  color: var(--brand-light);
  background: var(--brand-grey-700);
  transition: background 0.17s, color 0.17s, border 0.13s;
  font-family: var(--font-display);
  font-weight: 600;
}
.cookie-banner button:focus,
.cookie-banner button:hover {
  background: var(--brand-blue-accent);
  color: var(--brand-light);
  border: 1.5px solid var(--brand-blue-accent);
}
.cookie-banner .settings-btn {
  background: var(--brand-light);
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-grey-300);
}
.cookie-banner .settings-btn:hover,
.cookie-banner .settings-btn:focus {
  background: var(--brand-grey-200);
  color: var(--brand-primary);
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 12000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(15,15,15,0.53);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.22s;
}
.cookie-modal {
  background: var(--brand-light);
  color: var(--brand-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 40px 0 rgba(18,18,18,0.13);
  padding: 38px 34px 30px 34px;
  min-width: 360px;
  max-width: 95vw;
  margin: 24px;
  z-index: 12002;
  animation: fadeInScale 0.26s cubic-bezier(.46,1.2,.4,1.08);
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.09rem;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--brand-blue-accent);
  width: 22px; height: 22px;
  margin-left: 18px;
  cursor: pointer;
}
.cookie-category.essential label::after {
  content: " (immer aktiv)";
  color: var(--brand-grey-400);
  font-size: 0.98em;
  margin-left: 6px;
  font-weight: 400;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
  margin-top: 28px;
}
.cookie-modal button {
  padding: 10px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  border: 1.5px solid var(--brand-grey-400);
  background: var(--brand-grey-100);
  color: var(--brand-primary);
  transition: background 0.17s, color 0.16s, border 0.13s;
}
.cookie-modal button:focus,
.cookie-modal button:hover {
  background: var(--brand-blue-accent);
  color: var(--brand-light);
  border: 1.5px solid var(--brand-blue-accent);
}

/* Hide cookie modal by default */
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
}

/* =====================================================
   RESPONSIVE DESIGN (Mobile-first)
===================================================== */
@media (max-width: 1024px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  header .container, .footer .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.31rem;
  }
  section, .section {
    padding: 18px 5px;
    margin-bottom: 28px;
  }
  .feature-grid {
    gap: 11px;
    flex-direction: column;
  }
  .testimonial-card {
    padding: 18px 15px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .card-container, .card-grid {
    flex-direction: column;
    gap: 15px;
  }
  .content-grid {
    flex-direction: column;
    gap: 11px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-logo img {
    margin-bottom: 8px;
  }
  .cookie-modal {
    min-width: 92vw;
    padding: 22px 8px 17px 8px;
  }
}

/* Card flex container adaptation */
@media (max-width: 600px) {
  .card { min-width: unset; padding: 19px 7px; }
}

/* =====================================================
   MICRO-INTERACTIONS & FOCUS STATES
===================================================== */
:focus {
  outline: 2px solid var(--brand-blue-accent);
  outline-offset: 2.5px;
  transition: outline 0.14s;
}

/* Links (underlines on hover) */
a[href]:not(.cta):hover, a[href]:not(.cta):focus {
  text-decoration: underline;
  color: var(--brand-blue-accent);
}

/* Section spacing & card grouping - no overlap */
section + section {
  margin-top: 0;
  margin-bottom: var(--section-spacing);
}
.card + .card {
  margin-top: 21px;
}

/* Decorative/absolute elements are only for pure decoration - not needed here */

/* =====================================================
   UTILITY CLASSES
===================================================== */
.hide { display: none !important; }
.show { display: block !important; }
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* =====================================================
   MISC. FINE-TUNING
===================================================== */
.text-section a {
  color: var(--brand-blue-accent);
  text-decoration: underline;
  font-weight: 500;
}
.text-section a:hover { color: var(--brand-blue); }

.map-location {
  background: var(--brand-grey-100);
  border-radius: var(--radius);
  padding: 12px 15px;
  margin-top: 12px;
  font-size: 1.01rem;
  color: var(--brand-grey-700);
}

/* Feedback for mobile touch targets: */
@media (max-width: 600px) {
  .main-nav a, .footer-nav a, .mobile-nav a, .cta {
    font-size: 1.13rem;
    min-height: 48px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    text-align: left;
    padding: 16px 6px;
  }
  .cookie-banner .cookie-buttons {
    margin-left: 0;
  }
}

/* =====================================================
   SCROLLBAR STYLING (modern browsers)
===================================================== */
::-webkit-scrollbar {
  width: 7px;
  background: var(--brand-grey-100);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-grey-300);
  border-radius: 10px;
}

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