/* === CSS RESET & BASE TYPOGRAPHY === */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #222831;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #244664;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A2BBCC;
}
ul, ol {
  list-style: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 10px;
  text-align: left;
}
th {
  background: #f5f6f7;
  font-weight: 500;
}
tr:nth-child(even) td {
  background: #F8FAFB;
}

/* === BRAND COLORS === */
:root {
  --color-primary: #244664;
  --color-secondary: #A2BBCC;
  --color-accent: #EFEFEF;
  --color-bg: #fff;
  --color-text: #222831;
  --color-muted: #718096;
  --color-link: #244664;
  --color-shadow: rgba(36,70,100,0.07);
  --radius: 12px;
  --shadow: 0 2px 18px var(--color-shadow);
  --transition: 0.18s cubic-bezier(.77,0,.18,1);
}

/* === TYPOGRAPHY SCALE === */
h1, .display {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  line-height: 1.18;
}
h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 14px;
  line-height: 1.22;
}
h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--color-primary);
}
.subheadline {
  font-size: 1.25rem;
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: 10px;
}
p {
  margin-bottom: 18px;
}
strong, b {
  font-weight: 600;
}

/* === CONTAINER AND SECTIONS === */
.container {
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* === HEADER === */
header {
  background: #fff;
  border-bottom: 1px solid #EFEFEF;
  box-shadow: 0 2px 12px var(--color-shadow);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 34px;
  width: auto;
  margin-right: 16px;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: 18px;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  color: var(--color-primary);
  padding: 6px 0;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.2s, color 0.18s;
  position: relative;
  line-height: 1.3;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: inherit;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 11px 28px;
  font-size: 1.03rem;
  letter-spacing: 0.03em;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  margin-left: auto;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 8px var(--color-shadow);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: #15324a;
  color: #fff;
  box-shadow: 0 2px 16px var(--color-shadow);
}
.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* === BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 18px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary);
}
.mobile-menu-toggle:hover {
  background: var(--color-accent);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,70,100,0.94);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 24px 18px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu--open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 24px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.10);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 90vw;
  max-width: 340px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 24px var(--color-shadow);
  padding: 36px 22px;
  align-self: flex-end;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--color-primary);
  padding: 8px 0;
  font-family: 'Roboto', sans-serif;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex;
  }
}

/* === HERO SECTION === */
.hero {
  background: var(--color-accent);
  margin-bottom: 60px;
  padding: 48px 0 48px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  min-height: 320px;
  justify-content: center;
}
.hero .content-wrapper {
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 28px var(--color-shadow);
  padding: 36px 30px;
  max-width: 600px;
  width: 100%;
}
@media (max-width: 768px) {
  .hero,
  .hero .container,
  .hero .content-wrapper {
    padding: 22px 0;
    min-height: unset;
    max-width: 100%;
  }
  .hero .content-wrapper {
    margin: 0;
    border-radius: var(--radius);
    padding: 18px 12px;
    box-shadow: 0 1px 12px var(--color-shadow);
  }
}

/* === FEATURE GRID & ICONS === */
.feature-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 26px;
  justify-content: space-between;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 320px;
  padding: 24px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 0;
}
.feature-grid img {
  width: 38px;
  height: 38px;
}
.feature-grid h3 {
  margin-bottom: 7px;
}

.feature-icons ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-icons li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: var(--radius);
  padding: 8px 16px 8px 12px;
  margin-bottom: 0px;
  min-width: 130px;
  box-shadow: 0 1px 3px var(--color-shadow);
}
.feature-icons img {
  width: 22px;
  height: 22px;
  display: inline-block;
}

@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    max-width: 100%;
    min-width: 0;
  }
  .feature-icons ul {
    flex-direction: column;
    gap: 14px;
  }
}

/* === ABOUT PREVIEW & SERVICES PREVIEW === */
.about-preview, .services-preview {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 1px 12px var(--color-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.about-preview h2,
.services-preview h2 {
  margin-bottom: 0px;
}

/* === CARDS AND FLEX CONTENT === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 18px var(--color-shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 220px;
  flex: 1 1 300px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* === TESTIMONIAL SLIDER AND CARD === */
.testimonials {
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: 0 1px 12px var(--color-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonials h2 {
  margin-bottom: 16px;
  text-align: left;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  justify-content: flex-start;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 22px 18px 18px 18px;
  min-width: 260px;
  flex: 1 1 280px;
  max-width: 360px;
  color: var(--color-text);
  font-size: 1.07rem;
}
.testimonial-card p {
  margin-bottom: 12px;
  font-style: italic;
  font-size: 1rem;
  color: var(--color-primary);
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .testimonials,
  .about-preview,
  .services-preview {
    padding: 20px 5px;
  }
}

/* === FAQ LIST === */
.faq {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 1px 12px var(--color-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.faq-list > div {
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 20px 16px;
  flex: 1 1 210px;
  min-width: 190px;
  max-width: 320px;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .faq, .faq-list {
    padding: 20px 5px;
    flex-direction: column;
    gap: 14px;
  }
  .faq-list > div {
    max-width: 100%;
    min-width: 0;
  }
}

/* === PRICING TABLE === */
.pricing table {
  width: 100%;
  margin-bottom: 22px;
  font-size: 1.07rem;
}
.pricing th, .pricing td {
  padding: 12px 18px;
}
.pricing th {
  color: var(--color-primary);
  background: #F8FAFB;
  font-weight: 500;
}
.pricing tr td {
  background: #fff;
  color: var(--color-text);
  border-bottom: 1px solid #f0f1f2;
}
.pricing tr:last-child td {
  border-bottom: none;
}

/* === CONTACT DETAILS (Kontakt) === */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.contact-details img {
  width: 20px;
  height: 20px;
}

.map-overview {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--color-accent);
  border-radius: var(--radius);
  padding: 13px 18px;
  box-shadow: 0 1px 6px var(--color-shadow);
}
.map-placeholder img {
  width: 42px;
  height: 42px;
}

@media (max-width: 600px) {
  .map-placeholder {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 12px 7px;
  }
}

.contact-info {
  margin-bottom: 18px;
}

/* === FOOTER === */
footer {
  background: var(--color-accent);
  border-top: 1px solid #e8e8e8;
  margin-top: 70px;
  padding: 32px 0 16px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-primary);
  font-size: 1rem;
  padding: 0 0 6px 0;
  transition: color 0.18s;
  font-weight: 500;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
.footer-contact {
  color: var(--color-muted);
  font-size: 0.97rem;
}

@media (max-width: 680px) {
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
  footer .container {
    flex-direction: column;
    gap: 10px;
    padding-left: 0; padding-right:0;
  }
}

/* === COOKIE CONSENT BANNER (Fixed) === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1.7px solid var(--color-secondary);
  box-shadow: 0 -2px 18px var(--color-shadow);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 22px 18px;
  gap: 30px;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1), opacity 0.3s;
}
.cookie-banner--hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner__text {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0;
  flex: 1 1 220px;
  max-width: 540px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-banner__btn {
  border-radius: var(--radius);
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.17s, color 0.19s, box-shadow 0.18s;
  margin: 0 4px 0 0;
}
.cookie-banner__btn--accept {
  background: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-primary);
}
.cookie-banner__btn--accept:hover, .cookie-banner__btn--accept:focus {
  background: #15324a;
}
.cookie-banner__btn--reject {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-banner__btn--reject:hover, .cookie-banner__btn--reject:focus {
  background: var(--color-accent);
}
.cookie-banner__btn--settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1.5px solid var(--color-accent);
}
.cookie-banner__btn--settings:hover, .cookie-banner__btn--settings:focus {
  background: var(--color-secondary);
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
    padding: 16px 8px 12px 8px;
  }
  .cookie-banner__actions {
    gap: 7px;
    width: 100%;
    justify-content: flex-start;
  }
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36,70,100,0.48);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s;
}
.cookie-modal--hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__content {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px 31px 28px;
  box-shadow: 0 5px 32px var(--color-shadow);
  min-width: 320px;
  max-width: 97vw;
  width: 430px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal__close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  font-size: 1.44rem;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.13s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-modal__title {
  font-size: 1.3rem;
  font-family: 'Merriweather', serif;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 5px;
}
.cookie-modal__desc {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 7px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0 18px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-accent);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: 0 1px 6px var(--color-shadow);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-primary);
  width: 18px; height: 18px;
}
.cookie-category__label {
  flex: 1 1 120px;
}
.cookie-category--essential input[type='checkbox'] {
  accent-color: var(--color-secondary);
}
.cookie-category--essential {
  opacity: 0.8;
}
.cookie-modal__footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal__btn {
  border-radius: var(--radius);
  border: none;
  outline: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-modal__btn--save {
  background: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-primary);
}
.cookie-modal__btn--save:hover, .cookie-modal__btn--save:focus {
  background: #15324a;
}
.cookie-modal__btn--cancel {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-modal__btn--cancel:hover, .cookie-modal__btn--cancel:focus {
  background: var(--color-accent);
}
@media (max-width: 480px) {
  .cookie-modal__content {
    padding: 16px 9px 18px 9px;
    min-width: 0;
    max-width: 99vw;
    width: 99vw;
  }
  .cookie-modal__footer {
    flex-direction: column;
    gap: 8px;
  }
}

/* === RESPONSIVE == */
@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 750px) {
  h1, .display { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .btn-primary,
  .btn-secondary, 
  .cookie-banner__btn {
    padding: 10px 16px;
    font-size: 1rem;
  }
}
@media (max-width: 500px) {
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* === UTILITY SPACING & FLEX 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; }

/* === FLEX DIRECTION RESPONSIVE === */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
  .content-grid { flex-direction: column; gap: 16px; }
}

/* === ANIMATIONS === */
.btn-primary, .btn-secondary, .main-nav a, .mobile-nav a, .cookie-banner__btn, .cookie-modal__btn {
  transition: background 0.18s, color 0.16s, box-shadow 0.11s, border 0.13s;
}

.testimonial-card,
.feature-grid > div,
.card,
.faq-list > div {
  transition: box-shadow 0.20s, transform 0.16s;
}
.testimonial-card:hover, .faq-list > div:hover, .feature-grid > div:hover, .card:hover {
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 4px 26px var(--color-shadow);
}

/* === CUSTOM SCROLLBAR (subtle) === */
::-webkit-scrollbar { height: 9px; width:8px; background: #F7F9FA; }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 11px; }
::-webkit-scrollbar-thumb:hover { background: #d3dee5; }

/* === SELECTION COLOR === */
::selection {
  background: var(--color-secondary);
  color: #fff;
}

/* === FOCUS RING === */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}