/* ============================================================================
   Twilight Reinigung – Geometric Structured CSS (Mobile-First, Flexbox Only)
   ===========================================================================*/

/*---------------------- 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, main, 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; }
body {
  min-height: 100vh;
  background: #F6F6F6;
  color: #273043;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol { margin-bottom: 1rem; }
li { margin-bottom: 0.5em; }
a {
  color: #273043;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus { color: #618985; }
img { max-width: 100%; height: auto; display: block; }

/* Heading Typography Geometric Structure */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #273043;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.8rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

/*---------------------- GEOMETRIC/STRUCTURED CONTAINERS ---------------------*/
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
}
.text-section {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/*---------------------- STRUCTURED SECTIONS & LAYOUTS -----------------------*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(39, 48, 67, 0.04), 0 1.5px 6px rgba(97, 137, 133, 0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  flex: 1 1 270px;
  min-width: 250px;
  background: #fff;
  border: 2.5px solid #EAEAEA;
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 14px rgba(39,48,67, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}
.card:hover, .card:focus-within {
  border-color: #618985;
  box-shadow: 0 6px 28px rgba(97,137,133, 0.18);
}

.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: #F6F6F6;
  border: 2px solid #D2D7DF;
  border-radius: 20px 40px 20px 40px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(39,48,67, 0.07);
  transition: border 0.16s, box-shadow 0.16s;
}
.testimonial-card:hover {
  border-color: #618985;
  box-shadow: 0 6px 18px rgba(97,137,133, 0.18);
}
.testimonial-card p {
  color: #273043;
  font-size: 1.08rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  display: block;
  margin-top: 10px;
  color: #273043;
  font-weight: 700;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}

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

/* Feature-row as geometric badges, / */
.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 32px 0 16px 0;
}
.feature-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  background: #F6F6F6;
  border-radius: 18px 42px 18px 42px;
  border: 2px solid #EAEAEA;
  width: 160px;
  box-shadow: 0 2px 13px rgba(39,48,67,0.06);
  transition: box-shadow 0.18s, border 0.18s;
}
.feature-row > div:hover {
  border-color: #618985;
  box-shadow: 0 6px 24px rgba(97,137,133,0.14);
}
.feature-row img { width: 40px; height: 40px; margin-bottom: 8px; }
.feature-row span {
  font-weight: 600;
  font-family: 'Montserrat','Roboto',Arial,sans-serif;
  font-size: 1rem;
  color: #273043;
}

/*--------------------- HEADER & MAIN NAVIGATION -----------------------------*/
header {
  background: #fff;
  border-bottom: 2px solid #EAEAEA;
  box-shadow: 0 2px 8px rgba(39,48,67,0.03);
  padding: 0;
  z-index: 50;
}
header .container {
  min-height: 72px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header a img {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat','Roboto',Arial,sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: #F6F6F6;
  color: #618985;
}
.btn-primary {
  background: #618985;
  color: #fff!important;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 24px;
  border: none;
  border-radius: 8px 24px 8px 24px;
  box-shadow: 0 2px 10px rgba(39,48,67, 0.04);
  transition: background 0.15s, box-shadow 0.18s;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #273043;
  color: #fff;
  box-shadow: 0 6px 18px rgba(39,48,67, 0.15);
}

.mobile-menu-toggle {
  display: flex;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #273043;
  cursor: pointer;
  padding: 10px 13px;
  border-radius: 14px;
  transition: background 0.18s;
  margin-left: 12px;
  align-items: center;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus { background: #F6F6F6; }

@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none; }
}
@media (max-width: 1024px) {
  header nav { display: none; }
}

/*------------------------------ MOBILE MENU ---------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39,48,67, 0.92);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(.86,0,.07,1);
}
.mobile-menu.active {
  transform: translateX(0px);
}
.mobile-menu-close {
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #fff;
  padding: 18px 22px 10px 22px;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin: 0 0 0 30px;
  margin-top: 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat','Roboto',Arial,sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 12px 0 12px 10px;
  border-radius: 8px 24px 8px 24px;
  background: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #618985;
  background: #fff;
}
@media (min-width: 1025px) {
  .mobile-menu { display: none!important; }
}

/*------------------------------ MAIN CONTENT --------------------------------*/
main {
  min-height: 70vh;
  margin-top: 26px;
  margin-bottom: 38px;
}

.section:last-child { margin-bottom: 0; }

/*--------------------- TYPOGRAPHY & LISTS & OL/UL/TABLES --------------------*/
p, ul, ol {
  color: #273043;
  font-size: 1.08rem;
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 22px;
}
.section ul > li, .section ol > li { margin-bottom: 8px; }
.section ul > li:last-child, .section ol > li:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(97,137,133, 0.08);
  border-radius: 14px;
  overflow: hidden;
}
thead {
  background: #618985;
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1.7px solid #EAEAEA;
}
th:last-child, td:last-child { border-right: none; }
tr:last-child td { border-bottom: none; }

/*-------------------------- FAQ GEOMETRY ------------------------------------*/
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 12px 0 12px 0;
}
.faq-list h3 {
  color: #273043;
  background: #F6F6F6;
  border-left: 4px solid #618985;
  font-size: 1.18rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  padding: 10px 0 10px 15px;
  border-radius: 11px 25px 11px 25px;
  margin-bottom: 0;
}
.faq-list > div {
  background: #fff;
  margin-bottom: 0;
  padding: 7px 0 11px 28px;
  border-left: 3px solid #EAEAEA;
  border-radius: 0 16px 16px 0;
}

/*---------------------- SERVICE GRID AS FLEX CARDS --------------------------*/
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 32px;
}
.service-grid > div {
  background: #fff;
  border: 2.5px solid #EAEAEA;
  border-radius: 20px 44px 20px 44px;
  box-shadow: 0 2px 8px rgba(39,48,67, 0.04);
  padding: 22px 18px 17px 18px;
  min-width: 250px;
  flex: 1 1 275px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .15s, border-color .15s;
}
.service-grid > div:hover {
  box-shadow: 0 6px 24px rgba(97,137,133, 0.10);
  border-color: #618985;
}
.service-grid h3 {
  color: #273043;
  font-family: 'Montserrat','Roboto',Arial,sans-serif;
  font-size: 1.14rem;
  font-weight: 600;
}


/*------------------------------ BUTTONS -------------------------------------*/
button, .btn-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
}

/*------------------------------ FOOTER --------------------------------------*/
footer {
  background: #273043;
  color: #fff;
  margin-top: 40px;
  padding: 48px 0 28px 0;
  border-top: 2.5px solid #EAEAEA;
}
footer .container {
  padding-bottom: 0;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-row > div {
  min-width: 185px;
  flex: 1 1 210px;
  margin-bottom: 20px;
}
footer h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #F6F6F6;
}
footer nav a {
  color: #F6F6F6;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  padding: 0 1px;
  margin-bottom: 1px;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus { color: #8BFFFF; }
footer p, footer address {
  color: #F6F6F6;
  font-size: 1rem;
  line-height: 1.6;
}
footer a img { height: 36px; margin-bottom: 11px; }
footer address img { vertical-align: -7px; margin-right: 8px; width: 20px;}

/*---------------------------- TABLET + DESKTOP -----------------------------*/
@media (min-width: 769px) {
  .content-grid, .feature-row, .service-grid, .footer-row, .card-container {
    flex-direction: row;
  }
  .text-image-section { flex-direction: row; }
  .footer-row { gap: 46px; }
  .testimonial-card {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
  }
}

/*------------------------------ MOBILE RULES -------------------------------*/
@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.32rem;}
  main { margin-top: 10px; margin-bottom: 20px; }
  .container { padding: 0 12px; }
  .section { margin-bottom: 36px; padding: 25px 8px; border-radius: 15px; }
  .footer-row { flex-direction: column; gap: 16px; }
  .card-container, .feature-row, .content-grid, .service-grid {
    flex-direction: column;
    gap: 18px;}
  .testimonial-card { gap: 12px; padding: 13px; border-radius: 15px 20px 15px 20px; }
  .card { min-width: 0; }
  .feature-row > div { width: 97.5%; }
  .service-grid > div { min-width: 0; }
}

/*-------------------------- MICRO-INTERACTIONS ------------------------------*/
.btn-primary, .feature-row > div, .card, .service-grid > div, .testimonial-card {
  transition: box-shadow 0.22s, border-color 0.18s, background 0.18s, color 0.18s;
}

/*------------------------- Z-INDEX RULES ------------------------------------*/
header, .mobile-menu, .cookie-consent-banner, .cookie-modal { z-index: 1000; }
.mobile-menu { z-index: 1200; }

/* --------------------------------- COOKIE CONSENT BANNER -------------------*/
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #273043;
  color: #fff;
  box-shadow: 0 -2px 18px rgba(39,48,67,0.08);
  padding: 20px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 0.36s cubic-bezier(.68,-0.3,.45,1.3);
  transform: translateY(0);
  z-index: 2100;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}
.cookie-buttons {
  display: flex;
  gap: 17px;
  margin-top: 9px;
}
.cookie-btn {
  background: #618985;
  color: #fff;
  font-family: 'Montserrat','Roboto',Arial,sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 20px;
  border: none;
  border-radius: 6px 20px 6px 20px;
  margin-right: 8px;
  transition: background 0.19s;
  cursor: pointer;
}
.cookie-btn:last-child { margin-right: 0; }
.cookie-btn:hover, .cookie-btn:focus {
  background: #273043;
  color: #fff;
}
.cookie-btn.reject {
  background: #E75959;
}
.cookie-btn.settings {
  background: #AAD8D3;
  color: #273043;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #618985;
  color: #fff;
}

/*---------------------------------- COOKIE MODAL --------------------------*/
.cookie-modal-overlay {
  position: fixed;
  z-index: 2200;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,48,67,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.32s;
}
.cookie-modal {
  background: #fff;
  color: #273043;
  border-radius: 18px;
  max-width: 90vw;
  min-width: 260px;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(97,137,133, 0.18);
  padding: 36px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #273043;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F6F6F6;
  border-radius: 8px;
  padding: 10px 15px 10px 15px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.cookie-category .cookie-toggle {
  width: 38px; height: 22px;
  background: #D2D7DF;
  border-radius: 16px;
  position: relative;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.14s;
  flex-shrink: 0;
}
.cookie-category .cookie-toggle.enabled { background: #618985; }
.cookie-category .cookie-toggle::before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  position: absolute; left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1.5px 6px rgba(120,120,120,0.10);
  transition: left 0.15s;
}
.cookie-category .cookie-toggle.enabled::before {
  left: 18px;
}
.cookie-category .always-on {
  color: #618985; font-size: 0.94rem;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions .cookie-btn {
  min-width: 100px;
  margin-right: 0;
}

@media (max-width: 480px) {
  .cookie-modal { padding: 18px 7vw 18px 7vw; }
}

/*----------------------------- MISC/ACCESSIBILITY ---------------------------*/
a:focus, button:focus, .cookie-btn:focus {
  outline: 2.5px solid #618985;
  outline-offset: 2px;
}

/* Hide visually (for toggling classes): */
.sr-only {
  border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px;
}

/*----------------------- END: Twilight Geometric CSS ------------------------*/
