/* Komponenten */

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-button);
  font: inherit;
  font-weight: 750;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-default), color var(--transition-default), border-color var(--transition-default), transform var(--transition-default);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--color-primary-dark); color: #fff; }
.btn--primary:hover { background: var(--color-primary-darker); color: #fff; }
.btn--outline { border-color: currentColor; color: var(--color-text); background: transparent; }
.btn--outline:hover { background: var(--color-text); border-color: var(--color-text); color: #fff; }
.btn--light { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--light:hover { background: #fff; color: var(--color-secondary); border-color: #fff; }
.btn--block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero Startseite ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--color-secondary);
  overflow: hidden;
}
.hero__media, .page-hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before, .page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(25, 27, 32, .94) 0%, rgba(25, 27, 32, .82) 45%, rgba(23, 38, 70, .45) 100%);
}
.hero__inner { padding-block: clamp(56px, 9vw, 120px); min-height: clamp(460px, 48vw, 620px); display: flex; align-items: center; }
.hero__content { max-width: 680px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--color-primary); }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--color-text-on-dark); margin-bottom: 28px; max-width: 58ch; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 28px 0 0; padding: 0; list-style: none;
  font-size: .95rem; color: var(--color-text-on-dark);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hero__facts .icon { color: var(--color-primary); width: 18px; height: 18px; }

/* ---------- Hero Unterseiten ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--color-secondary); overflow: hidden; }
.page-hero__inner { padding-block: clamp(36px, 6vw, 80px); min-height: clamp(260px, 26vw, 360px); display: flex; flex-direction: column; justify-content: center; }
.page-hero h1 { margin-bottom: 12px; max-width: 22ch; }
.page-hero__lead { max-width: 62ch; color: var(--color-text-on-dark); font-size: 1.08rem; margin: 0; }
.page-hero--plain { background: linear-gradient(120deg, var(--color-secondary) 0%, var(--color-accent) 100%); }
.page-hero--plain::before { display: none; }
.page-hero--plain .page-hero__inner { min-height: 0; }

/* Breadcrumbs */
.breadcrumbs { font-size: .88rem; margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; color: var(--color-text-on-dark-muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: var(--color-primary); }
.breadcrumbs a { color: var(--color-text-on-dark); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-primary); text-decoration: underline; }

/* ---------- Leistungskacheln ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-default), transform var(--transition-default);
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card__media { aspect-ratio: 37 / 25; overflow: hidden; background: var(--color-background-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.card__title { font-size: 1.2rem; margin-bottom: 8px; }
.card__title a { color: var(--color-text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.card__title a:focus-visible { box-shadow: none; }
.card:focus-within { box-shadow: var(--focus-ring); }
.card__text { color: var(--color-text-muted); margin-bottom: 18px; }
.card__more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 750;
  color: var(--color-primary-dark);
}
.card__more .icon { width: 18px; height: 18px; transition: transform var(--transition-default); }
.card:hover .card__more .icon { transform: translateX(4px); }

/* ---------- Vorteile / Features ---------- */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(241, 83, 34, .12);
  color: var(--color-primary);
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--color-text-muted); margin: 0; }
.section--dark .feature p { color: var(--color-text-on-dark-muted); }
.section--dark .feature__icon { background: rgba(241, 83, 34, .16); }

/* ---------- Ablauf / Schritte ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.steps > li {
  position: relative;
  margin: 0;
  padding: 26px 24px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-card);
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 800;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--color-text-muted); margin: 0; }

/* ---------- Listen ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li + li { margin-top: 10px; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .2em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--dark .check-list li::before { background-color: var(--color-primary); }

.vehicle-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
  grid-template-columns: 1fr;
}
.vehicle-list li {
  margin: 0;
  padding: 12px 16px 12px 44px;
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  font-weight: 600;
}
.vehicle-list li::before {
  content: "";
  position: absolute; left: 16px; top: 50%;
  width: 14px; height: 3px; margin-top: -1.5px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ---------- Fakten-Boxen ---------- */
.fact-box {
  height: 100%;
  padding: 26px 24px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.fact-box h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 12px; }
.fact-box h3 .icon { color: var(--color-primary-dark); width: 26px; height: 26px; }

/* ---------- Zitat ---------- */
.quote {
  position: relative;
  margin: 0;
  padding: clamp(26px, 4vw, 44px);
  background: var(--color-secondary);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-card);
  border-left: 5px solid var(--color-primary);
}
.quote p { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.6; }
.quote footer { margin-top: 18px; font-weight: 750; color: #fff; }
.quote footer span { display: block; font-weight: 500; color: var(--color-text-on-dark-muted); font-size: .92rem; }

/* ---------- Hinweisbox ---------- */
.note {
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: #fff6f2;
  border: 1px solid #f7c9b6;
  border-left: 5px solid var(--color-primary);
}
.note p { margin: 0; }
.note--draft { background: #fff8e1; border-color: #f2d27b; border-left-color: #b88400; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px;
  font-weight: 750;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px; height: 12px; flex-shrink: 0;
  border-right: 2.5px solid var(--color-primary-dark);
  border-bottom: 2.5px solid var(--color-primary-dark);
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--transition-default);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--color-primary-dark); }
.faq__answer { padding: 0 22px 20px; color: var(--color-text-muted); }
.faq__answer p { margin-bottom: .7em; }

/* ---------- Kontakt-Band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--color-secondary) 0%, var(--color-secondary) 55%, var(--color-accent) 100%);
  color: #fff;
  padding-block: clamp(48px, 6vw, 80px);
  border-top: 4px solid var(--color-primary);
}
.cta-band__inner { display: grid; gap: 28px; align-items: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--color-text-on-dark); margin: 0; }
.cta-band__contacts { display: grid; gap: 12px; }
.contact-pill {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  text-decoration: none;
}
.contact-pill:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.contact-pill .icon { width: 24px; height: 24px; color: var(--color-primary); }
.contact-pill small { display: block; color: var(--color-text-on-dark-muted); font-size: .82rem; font-weight: 600; }
.contact-pill strong { font-size: 1.1rem; }

/* ---------- Kontaktkarten ---------- */
.contact-card {
  padding: 26px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.contact-card h2, .contact-card h3 { font-size: 1.2rem; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.contact-card dd { margin: 2px 0 0; font-weight: 650; }
.contact-card dd a { text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 4px 0; font-weight: 600; }
.hours th { font-weight: 500; color: var(--color-text-muted); padding-right: 16px; }

.person {
  display: flex; gap: 18px; align-items: center;
}
.person__avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 800; font-size: 1.4rem;
  border: 3px solid var(--color-primary);
}
.person__name { font-weight: 800; font-size: 1.15rem; margin: 0; }
.person__role { color: var(--color-text-muted); margin: 0; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 28px; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend {
  padding: 0;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 1.15rem;
}
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-weight: 700; font-size: .95rem; }
.field .req { color: var(--color-primary-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #c5cad1;
  border-radius: var(--radius-button);
  background: #fff;
  color: var(--color-text);
  font: inherit;
  transition: border-color var(--transition-default), box-shadow var(--transition-default);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary-dark);
  box-shadow: 0 0 0 3px rgba(194, 65, 15, .22);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--color-error); }
.field__hint { font-size: .85rem; color: var(--color-text-muted); margin: 0; }
.field__error { font-size: .88rem; color: var(--color-error); font-weight: 650; margin: 0; }
.field__error:empty { display: none; }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex-shrink: 0; accent-color: var(--color-primary-dark); }
.field--check label { font-weight: 500; }
.icon--inline { display: inline-block; vertical-align: -5px; margin-right: 8px; color: var(--color-primary-dark); }

.mail-fallback {
  padding: 20px;
  border: 2px dashed #c5cad1;
  border-radius: var(--radius-card);
  background: var(--color-background-soft);
}
.mail-fallback textarea {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1.5px solid #c5cad1;
  border-radius: var(--radius-button);
  background: #fff;
  font: .92rem/1.5 ui-monospace, Consolas, monospace;
  color: var(--color-text);
  resize: vertical;
}

.form-status {
  padding: 16px 18px;
  border-radius: var(--radius-card);
  font-weight: 650;
}
.form-status:empty { display: none; }
.form-status--success { background: #e8f5ee; color: var(--color-success); border: 1px solid #a9d8bd; }
.form-status--error { background: #fdecea; color: var(--color-error); border: 1px solid #f2b8b5; }
.form-status--info { background: #eef3fb; color: var(--color-accent); border: 1px solid #b9cbe6; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Tabellen / Rechtstexte ---------- */
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.legal table { border-collapse: collapse; }
.legal td { padding: 4px 18px 4px 0; vertical-align: top; }

/* ---------- Sprungmarken (Leistungsübersicht) ---------- */
.jump-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.jump-links li { margin: 0; }
.jump-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}
.jump-links a:hover { border-color: var(--color-primary-dark); color: var(--color-primary-dark); }

.service-row {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--color-border);
}
.service-row:last-child { border-bottom: 0; }
.service-row img { border-radius: var(--radius-card); width: 100%; aspect-ratio: 37 / 25; object-fit: cover; }

/* Badge für Inhaber-Initialen o. ä. */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(241, 83, 34, .14);
  color: var(--color-primary-dark);
  font-size: .8rem;
  font-weight: 800;
}

/* ---------- Galerie (eigene Fotos) ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--color-secondary); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(25, 27, 32, .85));
  color: #fff; font-weight: 700; font-size: .95rem;
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.aside-photo { margin: 20px 0 0; }
.aside-photo img { border-radius: var(--radius-card); width: 100%; }
.aside-photo figcaption { font-size: .88rem; color: var(--color-text-muted); margin-top: 8px; }

/* Hilfsklassen (statt style-Attributen, CSP-konform) */
.list-reset { list-style: none; margin: 0; padding: 0; }
.list-reset > li { margin: 0; }
.mt-section { margin-top: clamp(48px, 6vw, 88px); }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 28px; }
.text-center { text-align: center; }

/* 404 */
.error-code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 800; line-height: 1; color: var(--color-primary); margin-bottom: 8px; }
