/* --- 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, 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: #fff; }
ol, ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s; }
button { border: none; background: none; font: inherit; cursor: pointer; }

/* --- VARIABLES / BRAND --- */
:root {
  --color-black: #141314;
  --color-dark: #232322;
  --color-gray: #888;
  --color-lightgray: #ededed;
  --color-white: #fff;
  --brand-primary: #2E3A29;
  --brand-secondary: #8CAF5D;
  --brand-accent: #F3EEEA;

  --content-max: 1140px;
  --radius: 12px;
  --shadow: 0 4px 32px rgba(34,34,34,0.07),0 1.5px 4px rgba(30,30,30,0.03);

  --font-display: 'Montserrat', Montserrat, Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Roboto, Arial, sans-serif;
}

/* --- BASE TYPOGRAPHY --- */
body {
  color: var(--color-black);
  font-family: var(--font-body);
  background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-black);
}
h1 {
  font-size: 2.375rem;
  margin-bottom: 22px;
  line-height: 1.14;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.07rem;
  margin-bottom: 8px;
}
p, ul, li, address {
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: 14px;
  line-height: 1.7;
}
strong {
  color: var(--color-black);
  font-weight: 700;
  letter-spacing: -0.01em;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0;
}
.text-section ul {
  margin-left: 18px;
}
a {
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}
a:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 3px;
}
a:hover, nav a:hover {
  color: var(--brand-secondary);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 14px 32px;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
  border: none;
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  transition: background 0.22s, color 0.22s, transform 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-secondary);
  color: var(--color-black);
  transform: translateY(-2px) scale(1.01);
}

/* --- HEADER --- */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(34, 34, 34, 0.045);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  min-height: 72px;
  position: sticky; top: 0; z-index: 1020;
}
header > img {
  height: 48px;
  width: auto;
  margin-right: 30px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: var(--color-black);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 1rem;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
header nav a.active, header nav a:focus-within {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
header .cta-btn {
  margin-left: 32px;
}
.mobile-menu-toggle {
  margin-left: 20px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s;
  z-index: 1202;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,24,24,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.7,.01,.2,1);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  color: var(--color-white);
  background: none;
  font-size: 2.1rem;
  margin: 32px 0 12px 26px;
  cursor: pointer;
  transition: color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  padding: 0 34px 34px 34px;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  padding: 18px 0 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.18s, background 0.18s;
  border-radius: 0;
}
.mobile-nav a:active, .mobile-nav a:focus {
  color: var(--brand-secondary);
  outline: none;
}
.mobile-nav a:hover {
  color: var(--brand-secondary);
}


/* --- LAYOUT --- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.text-section {
  max-width: 730px;
  margin: 0 auto;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 165px;
  max-width: 290px;
  background: var(--brand-accent);
  border-radius: var(--radius);
  box-shadow: 0 1px 7px rgba(25,30,28,0.08);
  padding: 30px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.18s, box-shadow 0.21s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  transform: translateY(-6px) scale(1.017);
  box-shadow: 0 6px 30px rgba(27,30,28,0.13);
  background: var(--color-white);
}
.feature-grid img {
  height: 40px;
  margin-bottom: 16px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 28px 22px;
  flex: 1 1 300px;
  min-width: 260px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 7px 24px rgba(30,30,30,.14);
  transform: scale(1.02) translateY(-4px);
}

.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;
  padding: 20px;
  background: var(--color-lightgray);
  color: var(--color-black);
  border-radius: var(--radius);
  box-shadow: 0 2.5px 8px rgba(34,34,34,0.14);
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1.08rem;
  position: relative;
  transition: box-shadow 0.16s, background 0.20s;
}
.testimonial-card:nth-child(even) {
  background: var(--brand-accent);
}
.testimonial-card p {
  margin-bottom: 3px;
  color: var(--color-black);
}
.testimonial-card span {
  font-style: normal;
  color: var(--color-gray);
  font-size: 0.99rem;
  font-weight: 500;
}
.testimonial-card:before {
  content: '“';
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--brand-secondary);
  opacity: 0.22;
  position: absolute;
  left: 16px; top: 10px;
  pointer-events: none;
}

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

footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 36px 0 30px 0;
  margin-top: 30px;
  font-size: 1.02rem;
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  margin-bottom: 14px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--brand-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.01em;
  opacity: 0.97;
  transition: color 0.16s, text-decoration 0.18s;
}
footer nav a:hover {
  color: var(--brand-secondary);
  text-decoration: underline;
}
footer address, footer address a {
  font-size: 1rem;
  color: var(--color-white);
  font-style: normal;
  margin-bottom: 10px;
  line-height: 1.7;
}
footer address a:hover {
  color: var(--brand-secondary);
}
footer .social-media {
  display: flex;
  gap: 16px;
  align-items: center;
}
footer .social-media a {
  display: flex;
  align-items: center;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: var(--color-dark);
  justify-content: center;
  transition: background 0.2s;
}
footer .social-media a:hover {
  background: var(--brand-secondary);
}
footer .social-media img {
  width: 22px; height: 22px;
  filter: grayscale(0%);
}

/* Contact icon styling for kontakt.html */
.content-wrapper img[alt*="Telefon"],
.content-wrapper img[alt*="E-Mail"],
.content-wrapper img[alt*="Adresse"],
.content-wrapper img[alt*="Öffnungszeiten"],
.content-wrapper img[alt*="Anfahrt"],
.content-wrapper img[alt*="FAQ"],
.content-wrapper img[alt*="Rückruf"] {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

/* --- SPACING --- */
.section, section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- BUTTONS --- */
button, .cta-btn {
  cursor: pointer;
  border: none;
  outline: none;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.card, .feature-grid > div, .cta-btn, .testimonial-card {
  transition: box-shadow 0.18s, background 0.16s, transform 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 20px rgba(21,23,21,0.14);
  background: var(--color-white);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--color-black);
  color: var(--color-white);
  padding: 24px 30px 20px 30px;
  z-index: 1400;
  box-shadow: 0 -3px 18px rgba(26,26,26,0.13);
  display: flex;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(64px);
  transition: opacity 0.33s, transform 0.34s;
  border-radius: 18px 18px 0 0;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  color: var(--color-white);
  font-size: 1.01rem;
  flex:1;
  margin-right: 20px;
  margin-bottom: 6px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-button, .cookie-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-secondary);
  color: var(--color-black);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  padding: 11px 25px;
  margin: 0;
  transition: background 0.17s, color 0.12s, transform 0.14s;
  border: none;
}
.cookie-button.reject {
  background: var(--color-gray);
  color: var(--color-white);
}
.cookie-settings-button {
  background: var(--color-white);
  color: var(--color-black);
}
.cookie-button:hover, .cookie-settings-button:hover {
  background: var(--brand-primary);
  color: var(--color-white);
  transform: scale(1.03);
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(30,30,30,0.72);
  z-index: 1450;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-white);
  padding: 36px 30px 30px 30px;
  border-radius: 18px;
  box-shadow: 0 6px 34px rgba(24,24,24,0.23);
  min-width: 340px;
  max-width: 96vw;
  position: relative;
  animation: modalZoomIn 0.37s cubic-bezier(.71,.33,.38,1.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@keyframes modalZoomIn {
  0% { opacity:0; transform:scale(0.76) translateY(24px); }
  100%{ opacity:1; transform:scale(1) translateY(0); }
}
.cookie-modal h3 {
  color: var(--brand-primary);
  font-size: 1.29rem;
  margin-bottom: 11px;
}
.cookie-modal .cookie-category {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal label {
  font-size: 1.05rem;
  font-family: var(--font-body);
}
.cookie-modal input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--brand-secondary);
}
.cookie-modal .cookie-category .essential {
  font-weight: 600;
  color: var(--color-black);
}
.cookie-modal .cookie-actions-modal {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 6px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 15px; right: 15px;
  background: var(--color-lightgray);
  color: var(--color-black);
  border-radius: 50%;
  width: 36px; height: 36px;
  text-align: center;
  font-size: 1.4rem;
  border: none;
  transition: background 0.15s, color 0.14s;
  z-index: 1520;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--brand-secondary);
  color: var(--color-white);
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  .container { max-width: 930px; }
}
@media (max-width: 992px) {
  header {
    flex-direction: row;
    padding: 0 14px;
    min-height: 64px;
  }
  .container {
    max-width: 96vw;
    padding: 0 7px;
  }
  .feature-grid {
    gap: 18px;
  }
  footer .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 820px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .cta-btn {
    margin-left: auto;
  }
  .feature-grid {
    gap: 14px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .testimonial-card {
    padding: 15px 10px;
    font-size: 1rem;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 20px 10px 14px 10px;
  }
  .cookie-modal {
    min-width: 90vw;
    padding: 18px 9px 19px 15px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.17rem; }
  h3 { font-size: 1.04rem; }
  section, .section { padding: 20px 2px; }
  .feature-grid > div {
    min-width: 98vw;
    max-width: 99vw;
    align-items: flex-start;
    padding: 16px 9px 14px 17px;
  }
  .testimonial-card {
    font-size: 0.98rem;
  }
  .mobile-menu {
    padding-bottom: 18px;
  }
  .mobile-menu-close {
    margin: 18px 0 2px 12px;
    font-size: 1.56rem;
  }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 9px 4px;
  }
}

/* --- PRINT --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, .section, .container, .content-wrapper { box-shadow: none !important; background: none !important; }
}
