/* RESET & BASE -------------------------- */
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, menu, 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, 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F6F5F5;
  color: #1A2B34;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #205072;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #329D9C;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  text-align: left;
}
th {
  background: #205072;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
tr:nth-child(even) td {
  background: #E2ECF3;
}
tr:nth-child(odd) td {
  background: #F6F5F5;
}

/* BRAND FONTS & HEADINGS ------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #205072;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

/* SECTION & CONTENT SPACING ---------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(32, 80, 114, 0.03);
}
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
}
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  margin-top: 8px;
  margin-bottom: 8px;
}
.map-placeholder {
  min-height: 120px;
  background: #E2ECF3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #205072;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1px;
  font-size: 1rem;
}

/* FLEX LAYOUT TEMPLATES -------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  padding: 32px 24px;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(32, 80, 114, 0.09);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  min-width: 240px;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover, .service-card:hover {
  box-shadow: 0 8px 30px rgba(32,157,156,0.11);
  transform: translateY(-4px) scale(1.025);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

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

/* TESTIMONIALS ----------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #E2ECF3;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(32,80,114,0.04);
  min-width: 260px;
  color: #1A2B34;
  font-size: 1.09rem;
  font-style: normal;
  letter-spacing: 0.2px;
  position: relative;
}
.testimonial-card .star-rating {
  font-size: 1.2rem;
  color: #329D9C;
  letter-spacing: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08em;
  color: #1A2B34;
  text-align: center;
}
.testimonial-card span {
  font-size: 0.92em;
  color: #205072;
  font-style: italic;
}

/* BUTTONS ---------------------------- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s, color 0.2s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(32, 80, 114, 0.08);
  margin-top: 10px;
}
.btn-primary {
  background: #205072;
  color: #fff;
  border: 2px solid #205072;
}
.btn-secondary {
  background: #fff;
  color: #205072;
  border: 2px solid #205072;
}
.btn-primary:hover, .btn-primary:focus {
  background: #329D9C;
  border-color: #329D9C;
  color: #fff;
  box-shadow: 0 4px 12px rgba(50,157,156,0.11);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #205072;
  color: #fff;
  border-color: #205072;
}

/* HEADER & NAVIGATION ---------------- */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(32,80,114,0.09);
  position: sticky;
  top: 0;
  z-index: 110;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding-top: 0;
  padding-bottom: 0;
}
.logo img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  background: none;
  color: #205072;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.09rem;
  padding: 4px 10px;
  margin: 0;
  border-radius: 7px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a.active {
  background: #329D9C;
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: #205072;
  color: #fff;
  font-size: 1.6rem;
  border: none;
  border-radius: 7px;
  width: 44px;
  height: 44px;
  margin-left: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #329D9C;
}
@media (max-width: 1040px) {
  .main-nav {
    gap: 18px;
  }
  .logo img {
    height: 38px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MOBILE MENU ------------------------ */
.mobile-menu {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,80,114,0.95);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.76,0,0.24,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 30px 30px 0 0;
  font-size: 2.4rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #329D9C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-end;
  margin-top: 48px;
  padding: 0 50px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.33rem;
  padding: 8px 0;
  border-radius: 5px;
  display: block;
  min-width: 160px;
  text-align: right;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: #329D9C;
  color: #fff;
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
  }
}

/* FOOTER ----------------------------- */
footer {
  background: #205072;
  color: #fff;
  margin-top: 36px;
  padding: 32px 0 24px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #FFF;
  font-size: 1rem;
  opacity: 0.91;
  text-decoration: underline;
  transition: color 0.2s, opacity 0.2s;
}
.footer-nav a:hover {
  color: #329D9C;
  opacity: 1;
}
footer p {
  font-size: 0.92rem;
  margin: 0;
  opacity: 0.88;
}

/* SERVICE CARDS (leistungen.html) ----- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 20px;
}
.service-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(32,80,114,0.05);
  padding: 26px 20px 24px 20px;
  flex: 1 1 290px;
  min-width: 240px;
  max-width: 375px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.25s, transform 0.2s;
  margin-bottom: 20px;
  border: 2.5px solid #E2ECF3;
}
.service-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}
.service-card h2 {
  font-size: 1.25rem;
  color: #205072;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 1rem;
  color: #1A2B34;
  margin-bottom: 10px;
}
.service-card .service-price {
  display: inline-block;
  background: #E2ECF3;
  color: #205072;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 35px;
  padding: 7px 18px;
  font-size: 1.1rem;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(32,157,156,0.07);
}

/* PRICING TABLE (preise.html) -------- */
.pricing-table {
  width: 100%;
  border-radius: 18px;
  overflow-x: auto;
  margin-bottom: 32px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(32,80,114,0.04);
}
.pricing-table th, .pricing-table td {
  border-bottom: 1px solid #E2ECF3;
  padding: 16px 18px;
  font-size: 1.04rem;
}
.pricing-table th {
  background: #205072;
  color: #fff;
}
@media (max-width: 600px) {
  .pricing-table th, .pricing-table td {
    padding: 10px 8px;
    font-size: 0.99rem;
  }
}

/* FAQ BLOCK -------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}
.faq-item {
  background: #E2ECF3;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 5px rgba(32,80,114,0.05);
  color: #205072;
}
.faq-item h3 {
  margin: 0 0 9px 0;
  font-size: 1.09em;
}

/* CONTACT & DETAILS ------------------ */
.contact-details {
  margin: 14px 0 22px 0;
  background: #E2ECF3;
  padding: 18px 18px;
  border-radius: 11px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #205072;
}
.contact-details a {
  color: #205072;
  font-weight: 500;
  text-decoration: underline;
}
.contact-details a:hover {
  color: #329D9C;
}

/* ICONS in LISTS --------------------- */
ul li img, ol li img {
  vertical-align: middle;
  width: 28px; height: 28px;
  margin-right: 10px;
}

/* GEOMETRIC FEATURES & SHAPES -------- */
.card, .service-card, .testimonial-card, .faq-item, .contact-details, .pricing-table {
  box-shadow: 0 2px 13px 0 rgba(32,80,114,0.06);
}
.card, .service-card, .testimonial-card, .faq-item, .contact-details, .pricing-table {
  border-radius: 16px 40px 16px 40px;
  /* angled corners for geometric/structured feel */
}

/* VISUAL HIERARCHY ------------------- */
.content-wrapper > h1,
.content-wrapper > h2 {
  margin-top: 6px;
}
.content-wrapper > a, .content-wrapper > .btn-primary, .content-wrapper > .btn-secondary {
  margin-top: 12px;
}

/* GENERAL SPACING/MARGINS ------------ */
main section:not(:last-child) {
  margin-bottom: 60px;
}
main section .container {
  margin-bottom: 0;
}
.content-wrapper > * {
  margin-bottom: 7px;
}
.content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* RESPONSIVE DESIGN (MOBILE FIRST) --- */
@media (max-width: 900px) {
  .container {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container, .footer .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .card-container,
  .service-list{
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .card,
  .service-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 5px;
  }
}

/* COOKIES CONSENT BANNER ------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 999;
  width: 100vw;
  background: #205072;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 22px 12px 22px 12px;
  box-shadow: 0 -2px 16px rgba(32,80,114,0.13);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  opacity: 1;
  transition: opacity 0.32s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-message {
  flex: 1;
  max-width: 460px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 28px;
  padding: 10px 24px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 1px 5px rgba(32,80,114,0.06);
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-consent-banner .accept {
  background: #329D9C;
  color: #fff;
}
.cookie-consent-banner .accept:hover {
  background: #5FC1B7;
}
.cookie-consent-banner .reject {
  background: #fff;
  color: #205072;
  border: 2px solid #329D9C;
}
.cookie-consent-banner .reject:hover {
  background: #E2ECF3;
}
.cookie-consent-banner .settings {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-consent-banner .settings:hover {
  background: #205072;
  color: #E2ECF3;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    font-size: 1rem;
    padding: 18px 6px 14px 10px;
  }
  .cookie-consent-banner .cookie-actions {
    gap: 7px;
  }
}

/* COOKIE MODAL ----------------------- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,80,114,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #205072;
  border-radius: 25px 8px 25px 8px;
  max-width: 410px;
  width: 95vw;
  box-shadow: 0 8px 44px rgba(32,80,114,0.14);
  padding: 34px 26px 28px 26px;
  position: relative;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: pop-in 0.38s cubic-bezier(.2,1,0.35,1);
}
@keyframes pop-in {
  from { transform: scale(0.93); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #205072;
  font-size: 1.28rem;
  margin-bottom: 6px;
}
.cookie-modal .cookie-options {
  margin: 10px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .cookie-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 1.06rem;
}
.cookie-modal .cookie-option-row label {
  flex: 1;
}
.cookie-modal .toggle {
  width: 46px;
  height: 25px;
  border-radius: 22px;
  background: #E2ECF3;
  position: relative;
  transition: background 0.17s;
  cursor: pointer;
  border: 2px solid #205072;
  margin-right: 0;
}
.cookie-modal .toggle input[type=checkbox]{
  display: none;
}
.cookie-modal .toggle .slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 21px;
  height: 21px;
  background: #205072;
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
  z-index: 2;
}
.cookie-modal .toggle input:checked + .slider {
  left: 21px;
  background: #329D9C;
}
/* Essential cookies always on */
.cookie-modal .cookie-option-row.essential .toggle {
  background: #329D9C;
  border-color: #329D9C;
  cursor: not-allowed;
}
.cookie-modal .cookie-option-row.essential .slider {
  background: #329D9C;
}
.cookie-modal .cookie-option-row.essential label {
  opacity: 0.5;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 13px; right: 18px;
  font-size: 1.6rem;
  color: #205072;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.cookie-modal .cookie-modal-close:hover {
  background: #E2ECF3;
}

/* MEDIA QUERIES (LAYOUT CHANGES) ----- */
@media (max-width: 600px) {
  .service-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .service-card, .card {
    max-width: 100%;
  }
  .testimonial-card {
    min-width: 0;
  }
}
@media (max-width: 425px) {
  .service-card {
    padding: 16px 7px 14px 7px;
  }
  .card {
    padding: 14px 8px;
  }
}

/* GEOMETRIC TYPOGRAPHY/BOXES --------- */
/* All headline and accent box corners are geometric/angled */
section, .card, .service-card, .testimonial-card, .faq-item, .contact-details, .pricing-table, .cookie-modal {
  border-radius: 20px 60px 20px 60px;
}

/* SCROLLBAR (for contrast mode/desktop)*/
::-webkit-scrollbar {
  width: 10px;
  background: #E2ECF3;
}
::-webkit-scrollbar-thumb {
  background: #329D9C;
  border-radius: 12px;
}

/* MISCELLANEOUS ---------------------- */
strong { font-weight: 700; color: #205072; }
em { font-style: italic; }
hr {
  border: 0;
  height: 1px;
  background: #E2ECF3;
  margin: 30px 0;
  border-radius: 2px;
}
pre, code {
  font-family: 'Roboto Mono', monospace;
  background: #E2ECF3;
  padding: 2px 4px;
  border-radius: 4px;
}

/* FOCUS VISIBLE ---------------------- */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid #329D9C;
  outline-offset: 2px;
}

/* CARD HOVER INTERACTIONS ------------ */
.card, .service-card, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.15s;
}
.card:hover, .service-card:hover {
  box-shadow: 0 10px 32px rgba(32,157,156,0.12);
  transform: translateY(-1.5px) scale(1.017);
}

/* MICRO-INTERACTIONS ----------------- */
.btn-primary, .btn-secondary {
  transition: box-shadow 0.18s, background 0.22s, color 0.15s, transform 0.15s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
}

div[role=alert] {
  color: #ec1414;
  background: #FFF1F1;
  border-radius: 12px;
  padding: 11px 14px;
  border: 1.5px solid #ec14148a;
}
