/* --- 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;
  vertical-align: baseline;
  box-sizing: border-box;
  font: inherit;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #1a1a1a;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #30537A;
  outline-offset: 2px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
ul, ol {
  margin: 0 0 24px 16px;
}
ul li, ol li {
  margin-bottom: 10px;
}
strong {
  font-weight: 600;
}

/* --- Variables Fallbacks --- */
:root {
  --clr-bg: #fff;
  --clr-black: #111;
  --clr-dark: #232323;
  --clr-gray: #888;
  --clr-light-gray: #f6f6f6;
  --clr-primary: #30537A;
  --clr-secondary: #DBE7F3;
  --clr-accent: #E9A345;
  --clr-danger: #b17d31;
  --clr-border: #e0e0e0;
  --shadow-default: 0 2px 12px rgba(44,44,44,0.09);
  --shadow-strong: 0 4px 32px rgba(0,0,0,0.14);
  --radius: 12px;
}

/* --- Overall Layout --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.text-section {
  max-width: 720px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-default);
  padding: 28px 24px;
  flex: 1 1 330px;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid var(--clr-border);
}
.card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.01);
}
.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;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #111;
  font-weight: 700;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.13;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 2.1rem;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, .text-section ul, .text-section ol {
  color: #232323;
  font-size: 1.125rem;
}
.text-section ul, .text-section ol {
  margin: 0 0 16px 20px;
  padding: 0;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 11px;
}

/* --- Header + Navigation --- */
header {
  width: 100%;
  background: #111;
  color: #fff;
  box-shadow: 0 2px 12px rgba(16,16,16,0.07);
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img {
  height: 46px;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 2px;
  transition: color 0.16s;
}
nav a:hover, nav a.active {
  color: var(--clr-accent);
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 11px 25px;
  background: #111;
  color: #fff;
  border: 2px solid var(--clr-accent);
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.02rem;
  margin-left: 24px;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  display: inline-block;
  text-align: center;
  transition: background .18s, color .18s, border-color .2s, box-shadow 0.18s;
  box-shadow: 0 1.5px 10px rgba(180,180,180,0.04);
  letter-spacing: 0.01em;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--clr-accent);
  color: #fff;
  border-color: #111;
  box-shadow: 0 3px 25px rgba(226, 149, 43, 0.11);
  transform: translateY(-1px) scale(1.02);
}
.btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 11px 25px;
  background: none;
  color: #111;
  border: 2px solid #333;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.02rem;
  margin-top: 8px;
  outline: none;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow 0.15s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #232323;
  color: #fff;
  border-color: var(--clr-accent);
  box-shadow: 0 2px 16px rgba(49, 83, 122, 0.08);
}

/* --- Burger Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  background: #232323;
  color: #fff;
  border-radius: 100%;
  border: none;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 19px; right: 16px;
  z-index: 99;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--clr-accent);
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #181818;
  box-shadow: 0 5px 32px rgba(0,0,0,0.22);
  z-index: 2222;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: opacity .27s cubic-bezier(.55,.07,.38,.95), transform .30s cubic-bezier(.47,.27,.37,.95);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 22px; right: 20px;
  z-index: 1;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--clr-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 86px 0 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  transition: color 0.22s, background 0.2s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--clr-accent);
  background: rgba(255,255,255,0.06);
}
@media (max-width: 980px) {
  header .container nav {
    display:none;
  }
  .btn-primary {
    display:none;
  }
  .mobile-menu-toggle{
    display:flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu{
    display:none !important;
  }
  .mobile-menu-toggle{
    display:none !important;
  }
}

/* --- Footer --- */
footer {
  background: #222;
  color: #fff;
  padding: 36px 0 32px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 16px;
}
.footer-menu a {
  color: #f3f3f3;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color .16s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--clr-accent);
  text-decoration: underline;
}
.footer-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
}
.footer-info img {
  height: 36px;
}

/* --- Features/Vorteile Section (Flexbox) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: flex-start;
  margin-top: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 20px 22px 20px;
  box-shadow: var(--shadow-default);
  border: 1px solid var(--clr-border);
  min-width: 240px;
  max-width: 320px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item img {
  width: 34px;
  height: 34px;
  margin-bottom: 9px;
}
.feature-item h3 {
  margin-bottom: 6px;
  color: #232323;
  font-size: 1.22rem;
}
.feature-item p {
  color: #232323;
  font-size: 1rem;
  margin-bottom: 0;
}
.feature-item:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.01);
}

/* --- Cards --- */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 12px;
}
.team-member {
  background: #f6f6f6;
  border-radius: var(--radius);
  box-shadow: var(--shadow-default);
  padding: 22px 18px 18px 18px;
  min-width: 220px;
  max-width: 300px;
  flex: 1 1 210px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.15s;
  border: 1px solid #e5e5e5;
}
.team-member h3{
  color: #264366;
  font-size: 1.12rem;
  margin-bottom: 7px;
  font-weight: 700;
}
.team-member p{
  font-size: 1rem;
  margin-bottom: 0;
}
.team-member:hover {
  box-shadow: 0 4px 24px rgba(38,67,102,0.12);
  transform: translateY(-1px) scale(1.015);
}

/* --- Testimonials (komfortable Lesbarkeit auf hell) --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-default);
  padding: 26px 30px 22px 28px;
  margin-bottom: 20px;
  max-width: 600px;
  border: 1px solid #ddd;
  transition: box-shadow 0.15s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  color: #222;
  font-size: 1.17rem;
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 0;
}
.testimonial-details span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #30537A;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.star-rating {
  display: flex;
  flex-direction: row;
  gap: 3px;
}
.star-rating img {
  width: 22px;
  height: 22px;
  display: inline-block;
  filter: grayscale(100%) brightness(0.92) sepia(1) hue-rotate(28deg) saturate(4) contrast(1.35);
  /* monochrome gold style */
}

/* --- Custom Elements / Misc --- */
.address-info {
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.address-info a {
  color: var(--clr-primary);
  text-decoration: underline;
}
.map-embed {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6f6f6;
  border-radius: 6px;
  padding: 10px 15px;
  margin-top: 9px;
  color: #222;
  font-size: 1rem;
  font-weight: 400;
  border: 1px solid #eaeaea;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #232323;
  color: #fff;
  width: 100vw;
  z-index: 5000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 20px 10px 14px 10px;
  gap: 32px;
  box-shadow: 0 -3px 22px rgba(38,43,66,0.11);
  transition: transform 0.28s, opacity 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner__text {
  max-width: 500px;
  color: #fff;
  font-size: 1.08rem;
}
.cookie-banner__actions {
  display: flex;
  gap: 13px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 24px;
  border: none;
  margin-left: 0;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.18s, color .18s, box-shadow 0.12s;
}
.cookie-btn.accept {
  background: var(--clr-accent);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #b17d31;
}
.cookie-btn.reject {
  background: #fff;
  color: #232323;
  border: 1px solid #222;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #232323;
  color: #fff;
}
.cookie-btn.settings {
  background: #232323;
  color: #fff;
  border: 1px solid #fff;
}
.cookie-btn.settings:hover {
  background: #fff;
  color: #222;
}

/* --- Cookie Modal --- */
.cookie-modal {
  position: fixed;
  left:0; top:0; width:100vw; height:100vh;
  background: rgba(34,34,34,0.84);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal__content {
  background: #fff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 3px 44px rgba(38,83,122,0.10);
  max-width: 420px;
  width: 96%;
  padding: 36px 28px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: none;
  background: none;
  font-size: 2rem;
  color: #232323;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--clr-accent);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 7px 0 7px 0;
}
.cookie-category-label {
  font-size: 1.08rem;
  font-weight: 500;
  color: #232323;
  flex:1;
}
.toggle-switch {
  width: 44px;
  height: 26px;
  background: #e0e0e0;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  flex-shrink:0;
  transition: background .15s;
}
.toggle-switch[data-enabled="true"] {
  background: var(--clr-primary);
}
.toggle-switch[data-enabled="true"] .toggle-dot {
  left: 22px;
  background: var(--clr-accent);
}
.toggle-dot {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 100%;
  transition: left .16s, background .16s;
  box-shadow: 0 1px 6px rgba(38,67,102,0.07);
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
  html { font-size: 15px; }

  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.42rem; }
  h3 { font-size: 1.13rem; }
  .container {
    max-width: 98vw;
    padding-left: 7px;
    padding-right: 7px;
  }
  .footer-info {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
  .section { padding: 20px 3px; }
  .content-wrapper { gap: 10px; }
  .feature-grid, .team-list, .card-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item,
  .team-member,
  .card {
    max-width: 100%; min-width: 0;
    padding: 20px 14px 17px 14px;
  }
  .testimonial-card {
    padding: 19px 8px 16px 13px;
    max-width: 100%;
  }
  .text-image-section { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.43rem; }
  h2 { font-size: 1.12rem; }
  .feature-item, .team-member, .card, .testimonial-card {
    padding: 13px 6px 10px 6px;
  }
  .cookie-modal__content {
    padding: 15px 7px 15px 7px;
  }
}

/* --- Micro-interactions & Transitions --- */
.card, .feature-item, .testimonial-card, .team-member {
  transition: box-shadow 0.16s, transform 0.16s;
}
nav a, .btn-primary, .btn-secondary, .mobile-nav a {
  transition: background 0.13s, color 0.16s, border-color 0.18s, box-shadow 0.13s, transform 0.14s;
}
.cookie-btn {
  transition: background 0.13s, color 0.14s, box-shadow 0.13s;
}
.toggle-dot {
  transition: left 0.16s, background 0.16s;
}

/* --- Accessibility --- */
:focus {
  outline: 2px solid var(--clr-accent);
  outline-offset: 1.5px;
}

/* --- Misc utilities --- */
.d-none {
  display: none !important;
}

/* --- Utility classes for status or error, not normally visible --- */
.status-success {
  color: #23bd55;
}
.status-error {
  color: #ac2222;
}

/* --- End --- */
