/* ============================================
   CSS RESET & BASE STYLES (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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #fff;
  color: #181818;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.12em;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  display: inline-block;
}
ul, ol {
  margin: 0 0 20px 20px;
  padding: 0;
}
li {
  margin-bottom: 10px;
}
a {
  color: #181818;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #235772;
  outline: none;
}
button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1.5px solid #d9d9d9;
  font-size: 16px;
}
th {
  background: #f5f5f5;
  font-weight: 700;
  font-family: 'Libre Baskerville', serif;
}

/* ============================================
   FONT IMPORTS & TYPOGRAPHY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&family=Roboto:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  color: #181818;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.16;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.2rem;
}
p, .subheadline, .text-section ul, .text-section ol {
  font-family: 'Roboto', Arial, sans-serif;
  color: #232323;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}
.subheadline {
  font-size: 1.25rem;
  color: #434343;
  font-weight: 400;
  margin-bottom: 24px;
}
.text-section ul, .text-section ol {
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}

/* ============================================
   COLOR PALETTE: Monochrome Sophisticated + Brand
   ============================================ */
:root {
  --primary: #235772;
  --secondary: #73B79E;
  --accent: #f5f8f3;
  --bg: #fff;
  --bg-light: #f5f5f5;
  --gray-soft: #e5e5e5;
  --gray-dark: #232323;
  --border: #dedede;
  --text-main: #181818;
  --text-secondary: #555;
  --shadow-card: 0 8px 32px rgba(30,30,30,0.07), 0 1.5px 0 rgba(30,30,30,0.01);
  --shadow-hover: 0 10px 32px rgba(30,30,30,0.11);
  --radius-m: 14px;
  --radius-s: 7px;
  --radius-btn: 22px;
  --duration: 0.24s;
  --nav-bg: #232323;
  --nav-link: #fff;
  --nav-link-hover: var(--primary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.text-section {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 28px 8px;
  }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
header {
  background: var(--bg);
  width: 100%;
  box-shadow: 0 2px 16px rgba(40,40,40,0.04);
}
header .container {
  display: flex;
  align-items: center;
  gap: 0 36px;
  justify-content: space-between;
  min-height: 78px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.logo img {
  height: 45px;
  width: auto;
  filter: grayscale(1) contrast(1.12);
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  position: relative;
  color: var(--nav-link);
  background: transparent;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  padding: 6px 3px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  transition: color var(--duration);
  color: var(--text-main);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--primary);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 30px;
  background: #fff;
  color: var(--primary);
  font-family: 'Libre Baskerville', serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius-btn);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 12px rgba(40,40,40,0.05);
  cursor: pointer;
  transition: background var(--duration), color var(--duration), border var(--duration), box-shadow var(--duration);
  margin-left: 16px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(35,87,114,0.16);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  background: none;
  border: none;
  color: var(--primary);
  margin-left: 12px;
  line-height: 1;
  z-index: 1020;
  transition: color var(--duration);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
}
@media (max-width: 1060px) {
  .main-nav {
    gap: 16px;
  }
  .btn-primary {
    padding: 11px 16px;
    font-size: 0.97rem;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 0 20px;
  }
}
@media (max-width: 768px) {
  header .container {
    gap: 0 10px;
    min-height: 59px;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* ============================================
   MOBILE MENU (SLIDE IN)
   ============================================ */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29,29,29, 0.97);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.41,.98,.45,1.01);
  box-shadow: 0 0 80px rgba(30,30,30,0.20);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.4rem;
  padding: 22px 24px 12px 0;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--duration);
  z-index: 2020;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--primary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 12vw 0 9vw;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.07em;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 7px 0;
  border-radius: 5px;
  transition: background var(--duration), color var(--duration);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: #fff;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none!important;
  }
}

/* ============================================
   HERO / PROMO SECTIONS
   ============================================ */
.hero {
  background: linear-gradient(98deg, #fff 78%, #f5f5f5 100%);
  margin-bottom: 54px;
  padding: 56px 0 24px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero .content-wrapper {
  max-width: 700px;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 0 0 0;
}
.hero h1 {
  font-size: 2.7rem;
  color: #181818;
  text-shadow: 0 3.5px 16px rgba(30,30,30,0.06);
  margin-bottom: 10px;
}
.hero .subheadline {
  color: #555;
  font-size: 1.25rem;
  margin-bottom: 19px;
}
.hero .btn-primary {
  margin-left: 0;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .hero .container, .hero .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 600px) {
  .hero {
    margin-bottom: 34px;
    padding: 32px 0 11px 0;
  }
  .hero .content-wrapper {
    padding: 13px 0 0 0;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
}

/* ============================================
   CONTENT LAYOUTS & FLEXBOX PATTERNS
   ============================================ */
.feature-grid, .service-overview, .content-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-grid li, .service-overview li {
  flex: 1 1 210px;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--gray-soft);
  padding: 26px 20px 22px 20px;
  margin-bottom: 10px;
  min-width: 220px;
  max-width: 265px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow var(--duration), border-color var(--duration);
  gap: 7px;
}
.feature-grid li:hover, .service-overview li:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  filter: grayscale(1) contrast(1.1);
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--gray-soft);
  position: relative;
  padding: 25px 18px 18px 18px;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .text-image-section, .feature-grid, .service-overview, .content-grid, .card-container {
    flex-direction: column;
    gap: 15px;
  }
  .feature-grid li, .service-overview li {
    max-width: 100%;
    min-width: unset;
    width: 100%;
    padding: 22px 11px 18px 13px;
  }
}

/* Feature Item (general purpose) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Testimonial Card */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fafafa;
  border: 1.8px solid var(--gray-soft);
  border-radius: var(--radius-m);
  padding: 20px 32px 18px 32px;
  margin-bottom: 20px;
  box-shadow: 0 5px 22px rgba(45,45,45,0.065);
  max-width: 600px;
  transition: box-shadow var(--duration), border-color var(--duration);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.testimonial-card p {
  font-size: 1.11rem;
  font-style: italic;
  color: #232323;
  line-height: 1.8;
  margin-bottom: 5px;
}
.testimonial-card span {
  color: #555;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
@media (max-width: 800px) {
  .testimonial-card {
    padding: 17px 12px 12px 16px;
  }
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */
.btn-primary, .cookie-btn {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-btn);
  border: 2px solid var(--primary);
  font-family: 'Libre Baskerville', serif;
  font-size: 1.06rem;
  padding: 10px 25px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 12px rgba(40,40,40,0.05);
  cursor: pointer;
  margin: 10px 10px 0 0;
  transition: background var(--duration), color var(--duration), border var(--duration), box-shadow var(--duration);
  min-width: 120px;
}
.btn-primary:hover, .btn-primary:focus, .cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(35,87,114,0.15);
}
.cookie-btn.reject, .cookie-btn.danger {
  background: #181818;
  color: #fff;
  border-color: #181818;
}
.cookie-btn.reject:hover, .cookie-btn.danger:hover {
  background: #fff;
  color: #181818;
}
.cookie-btn.settings {
  background: var(--accent);
  color: #181818;
  border-color: var(--gray-dark);
}
.cookie-btn.settings:hover {
  background: var(--gray-soft);
  color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #181818;
  color: #fff;
  padding: 36px 0 34px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 2px;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: color var(--duration), background var(--duration);
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--primary);
  color: #fff;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  align-items: center;
  color: #e2e2e2;
  font-size: 0.98rem;
}
.contact-info span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 150px;
}
.contact-info img {
  width: 19px;
  height: 19px;
  filter: grayscale(1) contrast(1.11);
  opacity: 0.78;
}
footer p {
  margin-top: 17px;
  color: #bababa;
  font-size: 0.97rem;
  font-family: 'Roboto', Arial, sans-serif;
}
@media (max-width: 700px) {
  footer .container {
    gap: 16px;
  }
  .footer-nav {
    gap: 11px;
  }
  .contact-info {
    gap: 7px;
    font-size: 0.97rem;
  }
}

/* ============================================
   COOKIE CONSENT BANNER & MODAL
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  background: rgba(255,255,255,0.97);
  color: #181818;
  box-shadow: 0 -4px 24px rgba(45,45,45,0.13);
  border-top: 1.7px solid var(--gray-soft);
  padding: 22px 3vw 20px 3vw;
  z-index: 9999;
  gap: 20px 37px;
  min-width: 0;
  animation: cookie-fadein 0.4s ease-out;
}
@keyframes cookie-fadein {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 240px;
  margin: 0 0 0 0;
  font-size: 1.07rem;
  color: #181818;
}
.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cookie-btn {
  margin: 0 7px 0 0;
}
/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,34,34, 0.51);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.active {
  visibility: visible;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: 0 5px 28px 9px rgba(30,30,30,0.23);
  padding: 36px 27px 27px 27px;
  max-width: 410px;
  width: 93vw;
  color: #232323;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  animation: cookie-modal-appear 0.34s cubic-bezier(.59,.44,.35,.93);
}
@keyframes cookie-modal-appear {
  from { transform: translateY(98px) scale(0.91); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 14px;
  background: none;
  border: none;
  color: var(--gray-dark);
  font-size: 1.85rem;
  cursor: pointer;
  transition: color var(--duration);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
  font-size: 1.01rem;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--primary);
  width: 19px; height: 19px;
  margin-right: 8px;
}
.cookie-category.essential label {
  color: #818181;
  font-style: italic;
}
.cookie-category.essential input[type=checkbox] {
  display: none;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 13px 5vw 12px 5vw;
  }
  .cookie-modal {
    padding: 22px 9px 16px 11px;
    max-width: 98vw;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 580px) {
  h1, .hero h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  th, td {
    font-size: 0.98rem;
    padding: 7px 5px;
  }
  .feature-grid li, .service-overview li {
    padding: 16px 6px 10px 7px;
  }
  .btn-primary, .cookie-btn {
    font-size: 0.96rem;
    padding: 8px 16px;
  }
}

/* ============================================
   FORM ELEMENTS (if needed in future)
   ============================================ */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  background: #f5f8f3;
  border: 1.3px solid var(--gray-soft);
  border-radius: var(--radius-s);
  color: var(--text-main);
  padding: 10px 14px;
  outline: none;
  margin-bottom: 14px;
  transition: border-color var(--duration);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}

/* ============================================
   MISCELLANEOUS & ACCESSIBILITY
   ============================================ */
::-webkit-input-placeholder { color: #a8a8a8; opacity: 1; }
::-moz-placeholder { color: #a8a8a8; opacity: 1; }
:-ms-input-placeholder { color: #a8a8a8; opacity: 1; }
::placeholder { color: #a8a8a8; opacity: 1; }

[tabindex]:focus-visible {
  outline: 2.6px solid var(--primary);
  outline-offset: 2px;
}

/* High contrast for testimonial text in light backgrounds */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #181818 !important;
  background: #fafafa !important;
}
/* Some extra spacing for lists inside content-wrapper */
.content-wrapper ul {
  margin-bottom: 14px;
}

/* Style contact-list separately (on Kontakt) */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #232323;
}
.contact-list img {
  width: 18px;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.82;
}

/* Table responsiveness */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead tr {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }
  tr { margin-bottom: 17px; }
  td {
    position: relative;
    padding-left: 49%;
    border: none;
    border-bottom: 1px solid #e5e5e5;
  }
  td:before {
    position: absolute;
    left: 14px;
    top: 12px;
    white-space: nowrap;
    font-weight: bold;
    color: #222;
    font-size: 0.96rem;
  }
  /* Provide header labels by HTML mark-up if desired, else fallback just displays value */
}

/* ============================================
   MICRO-INTERACTIONS & HOVER EFFECTS
   ============================================ */
.btn-primary, .cookie-btn {
  transition: background var(--duration), color var(--duration), border var(--duration), box-shadow var(--duration);
}
.feature-grid li, .service-overview li, .card, .testimonial-card {
  transition: box-shadow var(--duration), border-color var(--duration);
}
a, .footer-nav a, .main-nav a {
  transition: color var(--duration), background var(--duration);
}

/* Focus styles for better accessibility */
.btn-primary:focus, .cookie-btn:focus, .footer-nav a:focus, .main-nav a:focus {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================
   PRINT ADJUSTMENTS
   ============================================ */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
}
