*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #ececec;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #333;
}

a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
header {
  background: #c1182a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 4.375rem;
  border-bottom: none;
}

.header-logo img {
  height: 4.375rem;
  margin-top: 0.1875rem;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.0312rem;
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #ccc;
}

/* ===== WRAPPER ===== */
.page-wrapper {
  max-width: 75rem;
  margin: 0 auto;
  padding: 1.25rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 1rem;
  margin-bottom: 0.625rem;
  color: #555;
}

.breadcrumb a {
  color: #c1182a;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ===== PAGE TITLE ===== */
.page-title {
  font-size: 1.625rem;
  font-weight: normal;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #222;
}

/* ===== HOMEPAGE LAYOUT ===== */
.home-hero {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.875rem;
  align-items: flex-start;
}

/* ===== SLIDER ===== */
.slider-wrap {
  position: relative;
  flex: 0 0 60%;
  max-width: 60%;
  overflow: hidden;
  background: #555;
  align-self: stretch;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  min-height: 20rem;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide {
  position: relative;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.6rem 1rem;
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  background: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  text-shadow: 0 0.0625rem 0.1875rem rgba(0,0,0,0.6);
  z-index: 10;
}

.slider-btn.prev { left: 0.25rem; }
.slider-btn.next { right: 0.25rem; }

.slider-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0.625rem 0.875rem;
  border-radius: 0.125rem;
  z-index: 10;
}

.slider-play.hidden { display: none; }

/* ===== CONTACT BOX (homepage) ===== */
.contact-box {
  flex: 1;
  font-size: 1rem;
  line-height: 1.7;
  background: #fff;
  padding: 1.25rem;
}

.contact-box h2 {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.0312rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  color: #222;
}

.contact-box .subtitle {
  color: #555;
  margin-bottom: 0.625rem;
  font-size: 1rem;
}

.contact-box .phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.375rem;
  font-weight: bold;
  color: #333;
  margin: 0.5rem 0 0.25rem;
}

.contact-box .phone svg {
  width: 1.2rem;
  height: 1.2rem;
  color: #c1182a;
  flex-shrink: 0;
}

.contact-box .phone a {
  color: #333;
}

.contact-box .email-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.contact-box .email-line svg {
  width: 1.1rem;
  height: 1.1rem;
  color: #c1182a;
  flex-shrink: 0;
}

.contact-box .email-line a { color: #c1182a; }

.contact-box address {
  font-style: normal;
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.contact-box .hours {
  font-size: 1rem;
  margin-bottom: 0.875rem;
}

.contact-box .hours strong { color: #333; }

.service-icons {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.service-icons img {
  flex: 1;
  width: 0;
  aspect-ratio: 1;
  height: auto;
  border: 0.0625rem solid #ccc;
  padding: 0;
  background: #fff;
  object-fit: contain;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
  margin-bottom: 1.875rem;
}

.service-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: #ccc;
  text-decoration: none;
}

.service-card-label {
  position: absolute;
  top: 0;
  left: 0;
  background: #c1182a;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.1875rem 0.4375rem;
  letter-spacing: 0.0187rem;
  text-transform: uppercase;
  z-index: 2;
  white-space: nowrap;
}

.service-card img {
  display: block;
  width: 100%;
  height: 10rem;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-card:hover img {
  transform: scale(1.04);
}

.service-card-placeholder {
  width: 100%;
  height: 5.9375rem;
  background: #aaa;
}

/* ===== LEISTUNGEN PAGE ===== */
.leistung-item {
  margin-bottom: 2.5rem;
  border-bottom: 0.0625rem solid #d5d5d5;
  padding-bottom: 1.875rem;
}

.leistung-item:last-child { border-bottom: none; }

.leistung-title {
  font-size: 1.375rem;
  font-weight: normal;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  color: #222;
}

.leistung-subtitle {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.0312rem;
  text-transform: uppercase;
  margin: 0.625rem 0 0.375rem;
  color: #222;
}

.leistung-body {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.leistung-img {
  flex: 0 0 14.375rem;
}

.leistung-img img {
  width: 100%;
  height: 10rem;
  display: block;
  object-fit: cover;
}

.leistung-img-placeholder {
  width: 100%;
  height: 10rem;
  background: #bbb;
}

.leistung-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.65;
  color: #444;
}

.leistung-text p { margin-bottom: 0.5rem; }
.leistung-text ul { padding-left: 1.125rem; margin-bottom: 0.5rem; }
.leistung-text li { margin-bottom: 0.1875rem; }

.badge {
  display: inline-block;
  background: #c1182a;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.25rem 0.625rem;
  margin: 0.375rem 0.25rem 0.375rem 0;
  border-radius: 0.0625rem;
}

.weiterlesen {
  color: #c1182a;
  font-size: 1rem;
  display: inline-block;
  margin-top: 0.25rem;
}

.weiterlesen:hover { text-decoration: underline; }

/* Leistungen ohne Bild (Achsvermessung etc.) */
.leistung-text-only {
  font-size: 1rem;
  line-height: 1.65;
  color: #444;
  margin-top: 0.375rem;
}

.leistung-text-only p { margin-bottom: 0.5rem; }
.leistung-text-only ul { padding-left: 1.125rem; margin-bottom: 0.5rem; }
.leistung-text-only li { margin-bottom: 0.1875rem; }

/* ===== AKTUELLES ===== */
.aktuell-item {
  margin-bottom: 2.5rem;
  border-bottom: 0.0625rem solid #d5d5d5;
  padding-bottom: 1.875rem;
}

.aktuell-item:last-child { border-bottom: none; }

.aktuell-title {
  font-size: 1.375rem;
  font-weight: normal;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  color: #222;
}

.aktuell-body {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.aktuell-img {
  flex: 0 0 14.375rem;
}

.aktuell-img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.aktuell-img-placeholder {
  width: 100%;
  height: 10rem;
  background: #bbb;
}

.aktuell-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.65;
  color: #444;
}

.aktuell-text p { margin-bottom: 0.5rem; }
.aktuell-text strong { color: #333; }

/* ===== GALERIE ===== */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
  margin-bottom: 1.875rem;
}

.galerie-grid a {
  display: block;
  overflow: hidden;
}

.galerie-grid img {
  display: block;
  width: 100%;
  height: 10rem;
  object-fit: cover;
  transition: transform 0.3s;
}

.galerie-grid a:hover img {
  transform: scale(1.04);
}

.galerie-placeholder {
  width: 100%;
  height: 10rem;
  background: #aaa;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  line-height: 1;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.375rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ===== KONTAKT ===== */
.kontakt-columns {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.875rem;
}

.kontakt-columns .kontakt-section {
  flex: 1;
  margin-bottom: 0;
}

.kontakt-section { margin-bottom: 1.875rem; }

.kontakt-section h2 {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.0312rem;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
  color: #222;
}

.kontakt-info {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.kontakt-info .info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.kontakt-info .info-icon {
  font-size: 1rem;
  min-width: 1.125rem;
  color: #555;
}

.kontakt-info a { color: #c1182a; }
.kontakt-info a:hover { text-decoration: underline; }

.kontakt-info .hours-line {
  margin-top: 0.375rem;
  font-size: 1rem;
}

.form-box {
  background: #fff;
  border: 0.0625rem solid #ddd;
  padding: 1.5rem 1.875rem;
  margin-bottom: 1.25rem;
}

.form-box .required-hint {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.875rem;
}

.form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.form-row label {
  width: 6.875rem;
  font-size: 1rem;
  padding-top: 0.375rem;
  color: #444;
  flex-shrink: 0;
}

.form-row label .req { color: #c1182a; }

.form-row input,
.form-row textarea {
  flex: 1;
  width: 100%;
  border: 0.0625rem solid #ccc;
  padding: 0.3125rem 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #999;
}

.form-row textarea {
  height: 4.375rem;
  resize: vertical;
}

.form-row-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #444;
}

.form-row-check a { color: #c1182a; }
.form-row-check a:hover { text-decoration: underline; }

.altcha-row {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

altcha-widget {
  --altcha-border-radius: 2px;
  --altcha-color-border: #ccc;
  --altcha-color-border-focus: #999;
}

.captcha-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.captcha-row label {
  width: 6.875rem;
  font-size: 1rem;
  color: #444;
  flex-shrink: 0;
}

.captcha-box {
  border: 0.0625rem solid #ccc;
  padding: 0.625rem 0.875rem;
  background: #f9f9f9;
  font-size: 1rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.captcha-box input[type=checkbox] { margin: 0; }

.btn-submit {
  background: #c1182a;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.0187rem;
  margin-left: 6.875rem;
}

.btn-submit:hover { background: #a01422; }

.form-msg {
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.875rem;
  font-size: 1rem;
  display: none;
}

.form-msg.success { background: #e6f4ea; color: #2d6a2d; display: block; }
.form-msg.error { background: #fde8e8; color: #8b1a1a; display: block; }

input.field-error,
textarea.field-error {
  border-color: #c1182a;
  background: #fff5f5;
}
.field-msg {
  display: block;
  color: #c1182a;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.map-wrap {
  margin-bottom: 1.875rem;
}

.map-wrap iframe {
  width: 100%;
  height: 18.75rem;
  border: none;
  display: block;
}

/* ===== COOKIE BANNER ===== */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal {
  background: #fff;
  max-width: 24rem;
  width: 100%;
  padding: 2rem 1.75rem;
  text-align: center;
  border-radius: 4px;
}

.cookie-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.cookie-modal h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 0.75rem;
}

.cookie-modal p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.cookie-btns {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.cookie-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: 3px;
}

.cookie-btn.accept { background: #c1182a; color: #fff; }
.cookie-btn.accept:hover { background: #a01422; }
.cookie-btn.decline { background: #c1182a; color: #fff; }
.cookie-btn.decline:hover { background: #a01422; }

.cookie-links {
  font-size: 0.85rem;
  color: #777;
}

.cookie-links a {
  color: #c1182a;
  text-decoration: underline;
}

.map-blocked {
  width: 100%;
  height: 100%;
  min-height: 18.75rem;
  background: #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  color: #555;
  font-size: 0.9rem;
}

.map-blocked button {
  background: #c1182a;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.map-wrap iframe {
  width: 100%;
  height: 18.75rem;
  border: none;
  display: block;
}

/* ===== POPUP ===== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.popup-box {
  background: #fff;
  padding: 2.5rem 2rem;
  max-width: 22rem;
  width: 90%;
  text-align: center;
  border-top: 4px solid #c1182a;
}

.popup-icon {
  font-size: 3rem;
  color: #c1182a;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.popup-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.popup-box p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.popup-close {
  background: #c1182a;
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}

.popup-close:hover { background: #a01422; }

/* ===== STATIC PAGES (Impressum, Datenschutz) ===== */
.static-content {
  margin-bottom: 2rem;
  line-height: 1.75;
  color: #444;
}

.static-content p {
  margin-bottom: 0.75rem;
}

.static-content a {
  color: #c1182a;
}

.static-content a:hover {
  text-decoration: underline;
}

.static-subtitle {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: #222;
  margin: 1.5rem 0 0.5rem;
}

.static-h3 {
  font-size: 1rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 0.4rem;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 0.3125rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.hamburger span {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background: #fff;
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(0.4375rem) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-0.4375rem) rotate(-45deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  header {
    padding: 0 0.875rem;
    height: 3.625rem;
    flex-wrap: wrap;
    position: relative;
  }

  .header-logo img { height: 3.625rem; margin-top: 0; }

  .hamburger { display: flex; }

  nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #c1182a;
    border-top: 0.125rem solid rgba(255,255,255,0.3);
    z-index: 100;
    padding: 0.5rem 0;
  }

  nav.open { display: flex; }

  nav a {
    padding: 0.625rem 1rem;
    border-bottom: 0.0625rem solid rgba(255,255,255,0.2);
    font-size: 1rem;
  }

  .page-wrapper { padding: 0.875rem; }

  /* Hero */
  .home-hero {
    flex-direction: column;
    gap: 0.875rem;
  }

  .slider-wrap {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .contact-box {
    width: 100%;
    flex: none;
  }

  .slide { height: 12.5rem; }

  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .service-card img,
  .service-card-placeholder { height: 10rem; }

  /* Leistungen */
  .leistung-body {
    flex-direction: column;
    gap: 0.75rem;
  }

  .leistung-img { flex: none; width: 100%; }

  .leistung-img img { width: 100%; height: 10rem; object-fit: cover; }

  .leistung-img-placeholder { height: 10rem; }

  /* Aktuelles */
  .aktuell-body {
    flex-direction: column;
    gap: 0.75rem;
  }

  .aktuell-img { flex: none; width: 100%; }

  .aktuell-img img { width: 100%; height: 12.5rem; object-fit: cover; }

  .aktuell-img-placeholder { height: 11.25rem; }

  /* Galerie */
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .galerie-grid img,
  .galerie-placeholder {
    height: 10rem;
  }

  /* Kontakt Formular */
  .form-box { padding: 1rem; }

  .kontakt-columns { flex-direction: column; }

  .form-row { flex-direction: column; gap: 0.25rem; }
  .form-row label { width: auto; padding-top: 0; }

  .captcha-row { flex-direction: column; gap: 0.375rem; }
  .captcha-row label { width: auto; }

  .btn-submit { margin-left: 0; width: 100%; }

  .form-row-check { font-size: 1rem; }

  .map-wrap iframe { height: 13.75rem; }

  /* Page title */
  .page-title { font-size: 1.25rem; }
  .leistung-title, .aktuell-title { font-size: 1.125rem; }
}

@media (max-width: 400px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 0.375rem; }
  .slide { height: 10.625rem; }
}

/* ===== FOOTER ===== */
footer {
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  color: #666;
  text-align: center;
  line-height: 1.8;
}

footer a { color: #c1182a; }
footer a:hover { text-decoration: underline; }

footer .sep { margin: 0 0.375rem; }

/* ===== ÜBER UNS ===== */
.inbearbeitung {
  font-size: 1rem;
  color: #666;
  font-style: italic;
  margin-bottom: 1.875rem;
}
