/* --- 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: #f9fbfd;
  color: #222c35;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: #39536B;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #78A583;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}


:root {
  --primary: #39536B;
  --secondary: #78A583;
  --accent: #F4EAD7;
  --bg-light: #f9fbfd;
  --white: #fff;
  --gray-100: #f7f8fa;
  --gray-200: #e4e8ef;
  --gray-300: #d0d6e0;
  --gray-400: #b5bfcf;
  --gray-500: #8490a3;
  --text-main: #222c35;
  --text-muted: #536176;
  --shadow-card: 0 2px 12px rgba(33,49,69,0.08);
  --radius-sm: 6px;
  --radius-md: 16px;
  --transition-std: .2s cubic-bezier(.4,0,.2,1);
}

/* ---- TYPOGRAPHY ---- */
h1, .h1 {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.14;
  color: var(--primary);
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.18;
  color: var(--primary);
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 14px;
  margin-top: 18px;
}
h4, .h4 {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  margin-top: 14px;
}
p, .text-section p, ul, ol {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.8;
}
.text-section ul {
  padding-left: 18px;
  list-style: disc;
}
.text-section ul li {
  margin-bottom: 11px;
  color: var(--text-main);
}
strong {
  font-weight: 700;
}
.tagline {
  font-size: 1.05rem;
  color: var(--gray-500);
  font-family: 'Raleway', Arial, sans-serif;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.impressum-brief {
  font-size: 0.95rem;
  color: var(--gray-400);
  margin-top: 10px;
}

/* ----------- GENERAL LAYOUT CONTAINERS ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  margin-bottom: 36px;
}

/* -------------- HEADER & NAVIGATION --------------- */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(46,70,98,0.05);
  position: sticky;
  top: 0;
  z-index: 1005;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.header-container > a img {
  height: 46px;
  margin-right: 20px;
}
nav {
  display: flex;
  align-items: center;
  gap: 17px;
}
nav a {
  color: var(--primary);
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 6px;
  transition: color var(--transition-std);
  border-radius: 4px;
}
nav a:hover, nav a.active {
  color: var(--secondary);
  background: var(--accent);
}
.cta-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: 24px;
  box-shadow: 0 5px 28px rgba(46,70,98,0.11);
  transition: background var(--transition-std), box-shadow var(--transition-std), color var(--transition-std);
  margin-left: 28px;
  margin-right: 4px;
  cursor: pointer;
  border: none;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--secondary);
  color: var(--primary) !important;
  box-shadow: 0 6px 40px rgba(46,70,98,0.16);
}

/* ---- MOBILE MENU BUTTON ---- */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border: none;
  box-shadow: 0 1.5px 6px rgba(46,70,98,0.08);
  margin-left: 18px;
  transition: background var(--transition-std), box-shadow var(--transition-std);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 18px rgba(52,82,110,0.17);
}

/* ---- MOBILE MENU OVERLAY ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(57,83,107, 0.97);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.73, 0, .33, 1);
  box-shadow: 0 4px 30px 8px rgba(46,70,98,0.13);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  color: var(--white);
  background: none;
  font-size: 2.25rem;
  border: none;
  position: absolute;
  top: 25px;
  right: 30px;
  cursor: pointer;
  z-index: 2010;
  transition: color .18s;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-menu .mobile-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  padding: 24px 24px 40px 32px;
}
.mobile-menu .mobile-nav a {
  color: var(--white);
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 1.1rem;
  padding: 13px 2px;
  border-radius: 5px;
  transition: background var(--transition-std), color var(--transition-std);
}
.mobile-menu .mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}
.mobile-menu .mobile-nav a:active {
  color: var(--secondary);
}

/* ---- HERO Section ---- */
.hero {
  width: 100%;
  padding: 56px 0 60px 0;
  background: linear-gradient(94deg, var(--accent) 70%, #f7f8fa 100%);
  box-shadow: 0 8px 32px -12px rgba(57,83,107,0.06);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.3rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hero .cta-primary {
  margin-top: 14px;
}

/* ---- FEATURES & CARDS ---- */
.features {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
  padding: 38px 0 38px 0;
}
.features .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 16px;
}
.feature-grid > div {
  flex: 1 1 190px;
  min-width: 180px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 26px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 210px;
  transition: transform .19s, box-shadow .19s;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .feature-grid > div:focus {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 14px 36px 0 rgba(44, 62, 98, 0.12);
}
.feature-grid img {
  height: 37px;
  margin-bottom: 12px;
}
.feature-grid h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
  color: var(--primary);
  font-weight: 600;
}
.feature-grid p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ---- GENERAL CARD CONTAINERS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 22px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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;
}

/* ---- TESTIMONIALS ---- */
.testimonials {
  margin-bottom: 60px;
  padding: 28px 0;
}
.testimonials .content-wrapper {
  gap: 28px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--accent);
  border-radius: var(--radius-md);
  padding: 22px 32px 22px 32px;
  margin-bottom: 20px;
  color: var(--primary);
  box-shadow: 0 5px 18px 0 rgba(57,83,107,0.08);
  min-width: 220px;
  transition: box-shadow .19s, transform .18s;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 12px 30px 0 rgba(42,62,93,0.14);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.7;
}
.testimonial-card strong {
  color: var(--primary);
}

/* ---- PRICING TABLE ---- */
.pricing-table {
  background: var(--white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 30px 26px 22px 26px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pricing-table ul {
  padding-left: 18px;
  margin-bottom: 18px;
}
.pricing-table li {
  color: var(--text-main);
  margin-bottom: 10px;
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 0;
  margin: 60px 0;
  box-shadow: 0 3px 24px 0 rgba(39,63,100,0.10);
}
.cta-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.cta-section h2, .cta-section h3 {
  color: var(--white);
}
.cta-section p {
  color: var(--accent);
}
.cta-section .cta-primary {
  background: var(--secondary);
  color: var(--primary) !important;
  margin: 16px 0 0 0;
  border-radius: 26px;
}
.cta-section .cta-primary:hover, .cta-section .cta-primary:focus {
  background: var(--accent);
  color: var(--primary) !important;
}

.contact-short {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: flex-start;
  font-size: 1.01rem;
  justify-content: center;
  margin-top: 16px;
}
.contact-short img {
  width: 20px;
  margin-right: 5px;
  opacity: 0.8;
}
.contact-short a {
  color: var(--white);
  font-weight: 600;
  transition: color .15s;
}
.contact-short a:hover {
  color: var(--secondary);
}
footer .contact-short a {
  color: var(--primary);
  font-weight: 600;
}

/* ----------- FOOTER ------------ */
footer {
  background: var(--gray-100);
  padding: 40px 0 30px 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-top: 54px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
  justify-content: center;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  transition: color var(--transition-std);
  opacity: 0.93;
}
.footer-nav a:hover {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
}
.footer-branding img {
  height: 38px;
  margin-bottom: 10px;
}

/* ----------- FAQ Section ------------ */
.faq-section h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 18px;
  margin-bottom: 8px;
  font-family: 'Raleway', Arial, sans-serif;
}
.faq-section p, .faq-section ul {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 16px;
}
.faq-section ul {
  margin-left: 16px;
  list-style: disc;
  padding-left: 8px;
}

/* ----------- Misc Utilities ----------- */
.section:not(.hero):not(.cta-section) {
  background: var(--white);
}

.service-list {
  margin-bottom: 32px;
}
.service-list h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 18px;
  margin-bottom: 8px;
}
.service-list p {
  margin-left: 0;
}

/* --------------- RESPONSIVE DESIGN (MOBILE FIRST) ---------------- */
@media (max-width: 1100px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 800px;
  }
  .feature-grid {
    gap: 24px;
  }
  .card {
    padding: 26px 14px;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.5rem;
  }
  .header-container {
    flex-wrap: wrap;
    height: auto;
    padding: 5px 12px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-primary {
    margin-left: 10px;
    margin-bottom: 0;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features .content-wrapper,
  .hero .content-wrapper,
  .cta-section .content-wrapper,
  .footer-branding, .footer-nav, .testimonials .content-wrapper {
    align-items: center;
    text-align: center;
  }
  .testimonial-card {
    padding: 18px 13px;
  }
  .contact-short {
    gap: 8px;
    flex-direction: column;
    align-items: center;
  }
  .pricing-table {
    padding: 22px 10px 16px 10px;
  }
  .section {
    padding: 26px 6px;
    margin-bottom: 36px;
  }
  .footer-nav {
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}
@media (max-width: 550px) {
  .container {
    padding: 0 6px;
  }
  .header-container {
    flex-direction: row;
    height: auto;
    padding: 4px 3px;
  }
  .hero {
    padding: 38px 0;
  }
  .cta-section {
    padding: 29px 0;
    margin: 34px 0;
  }
  .footer-branding img {
    height: 28px;
    margin-bottom: 5px;
  }
  .testimonial-card {
    padding: 12px 6px;
  }
}

/* --------------- ANIMATION UTILS --------------- */
@keyframes fadeDown {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ========== COOKIE CONSENT ========== */
.cookie-banner {
  position: fixed;
  left: 3vw;
  right: 3vw;
  bottom: 26px;
  z-index: 15000;
  max-width: 520px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(33,49,69,0.15);
  border-radius: var(--radius-md);
  padding: 26px 32px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .27s, transform .19s;
  transform: translateY(60px) scale(0.99);
  font-size: 1.02rem;
  animation: fadeDown 0.6s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.cookie-banner-title {
  font-size: 1.17rem;
  color: var(--primary);
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--primary);
  color: var(--white);
  border-radius: 24px;
  border: none;
  padding: 10px 23px;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(57,83,107,0.08);
  transition: background .17s, color .14s, box-shadow .19s;
}
.cookie-btn:hover:not([disabled]), .cookie-btn:focus:not([disabled]) {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 16px rgba(49,119,120,0.19);
}
.cookie-btn.secondary {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary);
  font-weight: 500;
}
.cookie-btn.secondary:hover {
  background: var(--secondary);
  color: var(--white);
}
.cookie-banner a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: underline;
}

/* ----- Cookie Modal Popup ----- */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 15050;
  background: rgba(57,83,107,.74);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .cookie-modal-content {
  min-width: 300px;
  max-width: 500px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 38px rgba(57,83,107,0.24);
  padding: 34px 32px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: fadeDown .65s;
  position: relative;
}
.cookie-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray-400);
  cursor: pointer;
  transition: color .18s;
}
.cookie-close:hover {
  color: var(--secondary);
}
.cookie-modal-title {
  color: var(--primary);
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
}
.cookie-switch {
  width: 38px;
  height: 20px;
  background: var(--gray-300);
  position: relative;
  border-radius: 12px;
  cursor: pointer;
  transition: background .17s;
  flex-shrink: 0;
}
.cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-switch .slider {
  position: absolute;
  height: 18px;
  width: 18px;
  background: var(--gray-400);
  border-radius: 50%;
  top: 1px;
  left: 1px;
  transition: background .18s, left .22s;
}
.cookie-switch input[type="checkbox"]:checked + .slider {
  background: var(--secondary);
  left: 19px;
}
.cookie-switch input[type="checkbox"]:disabled + .slider {
  background: var(--gray-200);
}
.cookie-category .cookie-status {
  margin-left: 8px;
  font-size: .96rem;
  color: var(--text-muted);
}
@media (max-width:550px) {
  .cookie-banner {
    max-width: 97vw;
    left: 1vw; right: 1vw;
    padding: 17px 8px 10px 12px;
    font-size: .95rem;
  }
  .cookie-modal .cookie-modal-content {
    padding: 19px 11px 13px 10px;
  }
}

/* Disable pointer events for hidden menu/modal */
.mobile-menu,
.cookie-modal,
.cookie-banner {
  user-select: auto;
}

/* --------- ACCESSIBILITY/FOCUS STYLES ---------- */
a:focus-visible, .cta-primary:focus-visible, .cookie-btn:focus-visible, .mobile-menu-close:focus-visible, .cookie-close:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 1.5px;
  background: var(--accent);
}

/* Hide overflow when modal or mobile menu open (body class: 'no-scroll') */
body.no-scroll {
  overflow: hidden;
}

/* ========== END OF STYLE.CSS ========== */
