/* --- 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7FAF7;
  color: #235E44;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
}
ul, ol {
  margin-left: 24px;
}
a {
  background: none;
  color: #235E44;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus {
  outline: 2px solid #44799D;
  outline-offset: 2px;
}

/* --- BRAND COLORS AS CUSTOM PROPERTIES ---------------------------------- */
:root {
  --color-primary: #235E44;
  --color-primary-hover: #296e54;
  --color-secondary: #44799D;
  --color-secondary-hover: #346584;
  --color-accent: #F7FAF7;
  --color-card: #FFFFFF;
  --color-grey-100: #E8EFE9;
  --color-grey-200: #C3CEC7;
  --color-grey-300: #A8BBAE;
  --color-black: #191F1C;
  --color-focus: #66a387;
  --shadow-subtle: 0 4px 20px 0 rgba(35,94,68,0.07);
}

/* --- TYPOGRAPHY -------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.25rem; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 1.5rem;  line-height: 1.22; margin-bottom: 12px; }
h3 { font-size: 1.125rem; line-height: 1.25; margin-bottom: 7px; }
h4 { font-size:  1rem;   line-height: 1.3;  margin-bottom: 4px; }

p, ul, ol, li {
  font-size: 1rem;
  color: var(--color-black);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
strong, b { font-weight: 700; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-wrapper {
  margin: 0 auto;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body {
  min-height: 100vh;
  background: var(--color-accent);
}


/* --- HEADER NAVIGATION (DESKTOP/MOBILE) --------------------------------- */
header {
  width: 100%;
  background: var(--color-card);
  box-shadow: 0 4px 12px 0 rgba(68,121,157,0.09);
  z-index: 90;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 16px;
}
header img {
  height: 44px;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 4px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-grey-100);
  color: var(--color-secondary);
}
.cta-primary {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  display: inline-block;
  padding: 10px 28px;
  background: var(--color-primary);
  color: #FFF;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  border: none;
  transition: background 0.2s, box-shadow 0.18s;
  box-shadow: 0 1px 9px 1px rgba(35,94,68,0.07);
  cursor: pointer;
  text-align: center;
}
.cta-primary:hover, .cta-primary:active {
  background: var(--color-primary-hover);
}

.cta-secondary {
  display: inline-block;
  padding: 10px 26px;
  background: #fff;
  color: var(--color-primary);
  border-radius: 8px;
  border: 2px solid var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s, border 0.18s;
  box-shadow: 0 1px 7px 1px rgba(68,121,157,0.04);
  cursor: pointer;
  text-align: center;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-grey-100);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 18px;
  z-index: 102;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(247,250,247,0.98);
  box-shadow: 0 11px 45px 0 rgba(35,94,68,0.11);
  z-index: 1110;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(0.61,0.14,0.33,0.98);
  padding: 34px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  background: none;
  font-size: 2.3rem;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-size: 1.18rem;
  font-weight: 700;
  padding: 10px 0 10px 6px;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-grey-100);
  color: var(--color-secondary);
}


/* --- HERO SECTION ------------------------------------------------------ */
.hero {
  background: var(--color-accent);
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 50px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--color-primary);
  font-family: 'Roboto Slab', serif;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.hero p {
  color: var(--color-black);
  font-size: 1.15rem;
  margin-bottom: 10px;
}


/* --- FLEX UTILS, PATTERNED BY INSTRUCTION ------------------------------ */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.features-grid > div {
  background: var(--color-card);
  border-radius: 15px;
  box-shadow: var(--shadow-subtle);
  flex: 1 1 200px;
  min-width: 200px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 24px;
  border: 1px solid var(--color-grey-100);
  transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
}
.features-grid > div:hover {
  box-shadow: 0 7px 28px 0 rgba(68,121,157,0.10);
  border-color: var(--color-secondary);
  transform: translateY(-3px) scale(1.006);
}
.features-grid img {
  width: 44px; height: 44px; margin-bottom: 10px;
}
.features-grid h3 { font-size: 1.08rem; margin-bottom: 2px; }

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 250px;
  min-width: 250px;
  padding: 24px 18px;
}
.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;
  background: #fff;
  padding: 20px 22px;
  margin-bottom: 20px;
  border-radius: 13px;
  box-shadow: 0 3px 17px -3px rgba(68,121,157,0.09);
  border: 1px solid var(--color-grey-100);
  transition: border 0.15s, box-shadow 0.15s;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.08rem;
  margin-right: 18px;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: 1rem;
  font-style: italic;
}
.testimonial-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 6px 18px -4px rgba(35,94,68,0.11);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.location-info {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.support-features ul {
  list-style: none;padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.support-features li {
  display: flex; align-items: center; gap: 11px;
  font-size: 1rem;
  color: var(--color-primary);
}

.contact-support-notice {
  background: var(--color-grey-100);
  border-radius: 9px;
  padding: 18px 20px;
  margin-top: 14px;
}


/* --- FAQ SEARCH & ACCORDION -------------------------------------------- */
.faq-search {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-grey-100);
  padding: 13px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}
.faq-search input {
  font-size: 1rem;
  border: 1px solid var(--color-grey-200);
  border-radius: 5px;
  padding: 7px 12px;
  background: #fff;
  width: 190px;
  color: var(--color-black);
}
.faq-search input:focus {
  border-color: var(--color-primary);
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: var(--color-card);
  border-radius: 10px;
  padding: 16px 22px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-grey-100);
}
.faq-accordion h3 {
  font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; }
.faq-accordion p {
  color: var(--color-black);
  font-size: 1rem;
}

/* --- TABLES for Preise ---------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px 0;
  background: var(--color-card);
  border-radius: 11px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}
th, td {
  text-align: left;
  padding: 16px 12px;
}
th {
  background: var(--color-grey-100);
  color: var(--color-secondary);
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1rem;
}
td {
  color: var(--color-primary);
  background: #fff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
tr:nth-child(even) td {
  background: var(--color-grey-100);
}

/* --- FOOTER --------------------------------------------------------- */
footer { 
  background: #f2f5f4;
  padding: 40px 0 0 0;
  box-shadow: 0 -1px 17px 0 rgba(68,121,157,0.045);
  margin-top: 60px;
}
footer .container {
  flex-direction: row; 
  align-items: flex-start;
  gap: 38px; 
  justify-content: space-between;
}
footer img {
  height: 38px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: 0.98rem;
  color: var(--color-primary);
  transition: color 0.16s;
  font-weight: 600;
}
.footer-nav a:hover {
  color: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--color-primary);
}
.footer-contact img {
  height: 18px;
  width: 18px;
  vertical-align: text-bottom;
  margin-right: 8px;
}
footer > .container:last-child {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--color-grey-100);
  margin-top: 24px;
  padding: 18px 0;
  font-size: 0.98rem;
  color: var(--color-grey-300);
}

/* --- COOKIE CONSENT BANNER ------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: var(--color-primary);
  width: 100vw;
  box-shadow: 0 -4px 24px rgba(35,94,68,0.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 22px 16px;
  z-index: 3000;
  animation: cookieBannerIn 0.48s cubic-bezier(0.61,0.14,0.38,1.001) both;
}
@keyframes cookieBannerIn {
  from { opacity:0; transform: translateY(30px);} to { opacity:1; transform: none; }
}
.cookie-banner p { font-size: 1rem; max-width: 340px; color: var(--color-black);margin-bottom:0;}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row; gap: 13px;
}
.cookie-banner button {
  border-radius: 7px;
  padding: 9px 19px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-secondary);
  color: #fff;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner button.accept { background: var(--color-primary); }
.cookie-banner button.accept:hover { background: var(--color-primary-hover);}
.cookie-banner button.reject {
  background: var(--color-grey-300);
  color: var(--color-black);
}
.cookie-banner button.reject:hover {
  background: var(--color-grey-200);
}
.cookie-banner button.settings {
  background: #fff;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
  box-shadow: 0 1px 6px 0 rgba(68,121,157,0.055);
}
.cookie-banner button.settings:hover {
  background: var(--color-grey-100);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

/* COOKIE MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  z-index: 3050;
  align-items: center;
  justify-content: center;
  background: rgba(23,41,33,0.24);
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 11px 40px 0 rgba(68,121,157,0.16);
  border-radius: 14px;
  padding: 42px 30px 30px 30px;
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn 0.38s cubic-bezier(.61,.14,.38,1.001) both;
}
@keyframes cookieModalIn {
  from {opacity:0; transform: scale(0.95);} to {opacity:1; transform: none;}
}
.cookie-modal-content h2 {
  font-size: 1.20rem;
  margin-bottom: 6px;
  font-family: 'Roboto Slab', serif;
}
.cookie-cat {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-grey-100);
}
.cookie-switch {
  margin-left:16px;
  position:relative;
}
.cookie-switch input[type=checkbox] { display:none; }
.cookie-switch label {
  display:inline-block;
  width:36px; height:20px;
  background: var(--color-grey-200);
  border-radius:13px;
  position:relative; cursor:pointer;
  transition: background 0.12s;
}
.cookie-switch label:before {
  content:'';
  display:block;
  width:16px; height:16px;
  border-radius:50%;
  background:#fff;
  position:absolute; left:2px; top:2px;
  transition: left 0.16s;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.10);
}
.cookie-switch input[type=checkbox]:checked + label {
  background: var(--color-secondary);
}
.cookie-switch input[type=checkbox]:checked + label:before{
  left:18px;
}
.cookie-modal-footer {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal-footer button.close {
  background: var(--color-grey-100);
  color: var(--color-primary);
  border: 1.3px solid var(--color-secondary);
}
.cookie-modal-footer button.save {
  background: var(--color-primary);
  color: #fff;
}


/* --- MEDIA QUERIES (RESPONSIVE) --------------------------------------- */
@media (max-width: 1024px){
  .container {
    max-width: 90vw;
  }
  .features-grid, .content-grid { gap: 18px; }
}
@media (max-width: 900px){
  header .container { flex-wrap: wrap; }
  .features-grid > div { min-width: 170px; }
  .location-info { gap:20px; flex-direction:column; }
  .footer-contact {font-size:0.92rem;}
}
@media (max-width: 768px){
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.20rem; }
  h3 { font-size: 1.03rem; }

  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: unset;
    padding: 10px 6px 6px 6px;
  }

  nav.main-nav {
    display: none;
  }
  .cta-primary {
    padding: 9px 18px;
    font-size: 0.98rem;
  }
  header .mobile-menu-toggle {
    display: block;
  }

  .hero {
    padding: 27px 0 23px 0;
    min-height: unset;
  }
  .hero h1 {font-size: 1.32rem;}
  .hero p { font-size: 1rem;}
  .features-grid {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid > div {
    min-width: 0;
    width:100%;
    padding: 18px 15px;
    font-size: 0.97rem;
  }
  .testimonial-card { flex-direction: column; gap: 6px; padding:14px 12px;}
  .card-container, .content-grid, .location-info {
    flex-direction: column;
    gap: 12px;
  }
  table th,table td {padding:8px 5px;font-size:0.98rem;}
  .section {padding:23px 7px;}
  .content-wrapper {padding:0;}
  .faq-search {flex-direction:column;padding:7px 7px;gap:7px;}
  .footer-contact {gap:2px; font-size:0.90rem;}
  .footer-nav {gap:5px;margin-bottom:8px;}
  .cookie-banner {flex-direction:column;gap:10px;align-items:flex-start;}
}
@media (max-width: 540px){
  .container {
    padding: 0 3px;
    max-width: 100vw;
  }
  .hero {
    padding: 19px 0 14px 0;
  }
  .content-wrapper, .section {
    padding: 0;
    gap: 12px;
  }
  .cookie-modal-content {
    padding: 21px 13px 9px 13px;
    min-width: 0;
    width: 98vw;
  }
}

/* --- ANIMATION & MICRO-INTERACTIONS --------------------------------- */
a, button, .card, .features-grid > div, .cta-primary, .cta-secondary,
.testimonial-card, .cookie-banner button, .cookie-modal-footer button {
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.17s, transform 0.19s;
}
.card:active, .features-grid > div:active, .testimonial-card:active {
  transform: scale(0.992);
}

/* --- UTILITIES ------------------------------------------------------ */
.sr-only {
  position: absolute;
  width:1px;height:1px;
  padding:0;overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* --- ENSURE MINIMUM 20px BETWEEN CARDS/SECTIONS --------------------- */
section, .content-wrapper > * + * {
  margin-top: 20px;
}

/* --- FOCUS STATES for ACCESSIBILITY --------------------------------- */
button:focus, input:focus, a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* --- Prevent Overlapping & Layout Glitches -------------------------- */
.content-wrapper > * {
  margin-bottom: 0 !important;
}

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

/* END OF CSS */
