/* ==========================================================================
   Reparaturkonzept – Stylesheet
   Thema „Prüfprotokoll“: Markenfarben unverändert, Grün nur als Fläche mit
   dunklem Text, Signature-Element = Prüfrahmen (Klammer-Ecken aus dem Logo).
   ========================================================================== */

/* ---------- Tokens -------------------------------------------------------- */
:root {
  --green: #b3ce36;
  --green-deep: #a2c617;
  --green-soft: #eef3d3;
  --charcoal: #454444;
  --charcoal-deep: #363535;
  --ink: #2f2f2f;
  --ink-soft: #5c5c5c;
  --blue: #00a6ff;
  --blue-text: #0077b8;
  --paper: #f7f8f4;
  --mist: #fafafa;
  --line: #e3e6dc;
  --white: #fff;
  --error: #b42318;

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.9rem, 0.87rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.6rem + 3vw, 3.9rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
  --section: clamp(4rem, 2.5rem + 5vw, 7.5rem);
  --container: 74rem;
  --gutter: clamp(1.25rem, 2vw + 0.5rem, 2.5rem);

  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 28px -14px rgba(69, 68, 68, 0.3);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 350ms;
  --corner: 26px;
}

/* ---------- Reset & Basis ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 var(--s-4); color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 var(--s-4); max-width: 68ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-text); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--charcoal); }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--green); color: var(--ink); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.list-plain { list-style: none; }

.skip-link { position: absolute; left: var(--s-4); top: -4rem; z-index: 100; padding: var(--s-2) var(--s-4); background: var(--charcoal); color: var(--white); border-radius: var(--radius); transition: top 150ms; }
.skip-link:focus { top: var(--s-4); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section__head { max-width: 60ch; margin-bottom: var(--s-7); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center p { margin-inline: auto; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4) var(--s-6); max-width: none; }
.section__head--row > div { max-width: 60ch; }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.45; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin: 0 0 var(--s-3);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--green-deep); flex: none; }

/* ---------- Prüfrahmen (Signature) --------------------------------------- */
.frame { position: relative; }
.frame::before, .frame::after {
  content: ""; position: absolute; width: var(--corner); height: var(--corner);
  border: 3px solid var(--green-deep); pointer-events: none; z-index: 2;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.frame::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.frame--hover::before, .frame--hover::after { opacity: 0; transform: scale(0.6); }
.frame--hover:hover::before, .frame--hover:hover::after, .frame--hover:focus-within::before, .frame--hover:focus-within::after { opacity: 1; transform: none; }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent; white-space: nowrap;
  cursor: pointer; transition: background-color 180ms, color 180ms, border-color 180ms, transform 180ms var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary { background: var(--green); color: var(--ink); border-color: var(--green); }
.btn--primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--white); }
.btn--light { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn--light:hover { background: var(--green); border-color: var(--green); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: 600; color: var(--charcoal); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform 180ms var(--ease); }
a:hover .link-arrow::after, .link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header / Navigation ------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: clamp(180px, 22vw, 260px); height: auto; }
.nav__toggle { display: none; align-items: center; gap: var(--s-2); min-width: 44px; min-height: 44px; padding: 0 var(--s-2); background: none; border: 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; }
.nav__toggle svg { width: 26px; height: 26px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__list { display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw, 1.75rem); list-style: none; }
.nav__list a { display: inline-block; padding: var(--s-2) var(--s-1); font-family: var(--font-display); font-weight: 600; color: var(--charcoal); text-decoration: none; border-bottom: 3px solid transparent; }
.nav__list a:hover { color: var(--ink); border-color: var(--green); }
.nav__list a[aria-current="page"] { border-color: var(--green-deep); }
.nav__cta { margin-left: var(--s-2); }
@media (max-width: 1023px) {
  .nav__toggle { display: inline-flex; }
  .nav { position: absolute; inset: 100% 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: var(--s-4) var(--gutter) var(--s-6); display: none; }
  .nav[data-open] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
  .nav__list a[aria-current="page"] { border-color: var(--green-deep); }
  .nav__cta { margin: var(--s-4) 0 0; width: 100%; }
}

/* ---------- Hero ---------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
.hero__title { margin-bottom: var(--s-5); }
.hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__media { border-radius: var(--radius-lg); overflow: visible; }
.hero__media picture img { border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.hero__media::before, .hero__media::after { --corner: 40px; }
.hero__mark { position: absolute; right: -14px; top: -14px; width: 56px; height: 56px; z-index: 3; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 7fr 6fr; gap: var(--s-8); } }

.trust { background: var(--charcoal); color: var(--white); }
.trust__list { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); list-style: none; padding-block: var(--s-6); }
.trust__list li { display: flex; flex-direction: column; gap: 2px; padding-left: var(--s-4); border-left: 3px solid var(--green); }
.trust__list strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--white); }
.trust__list span { font-size: var(--step--1); color: rgba(255, 255, 255, 0.78); }

/* ---------- Karten / Leistungen ------------------------------------------ */
.cards { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); list-style: none; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: visible; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card--service { display: flex; flex-direction: column; }
.card__media { display: block; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.card__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 600ms var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); flex: 1; }
.card__title { margin: 0; font-size: var(--step-1); }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__body .link-arrow { margin-top: auto; }
.card.frame::before, .card.frame::after { opacity: 0; transform: scale(0.6); }
.card.frame:hover::before, .card.frame:hover::after, .card.frame:focus-within::before, .card.frame:focus-within::after { opacity: 1; transform: none; }

.service { display: grid; gap: var(--s-6); align-items: start; padding-block: var(--s-7); border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service__media img { border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; }
.service__text h2 { margin-bottom: var(--s-4); }
@media (min-width: 900px) { .service { grid-template-columns: 2fr 3fr; gap: var(--s-8); } .service:nth-of-type(even) .service__media { order: 2; } }

/* ---------- Angebots-Check ------------------------------------------------ */
.check { background: var(--green); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.check::before, .check::after { border-color: var(--charcoal); --corner: 34px; }
.check .eyebrow { color: var(--charcoal); }
.check .eyebrow::before { background: var(--charcoal); }
.check__grid { display: grid; gap: var(--s-6); }
.check__intro p { max-width: 48ch; }
.check__note { display: grid; gap: var(--s-2); margin-top: var(--s-5); padding: var(--s-4); background: rgba(255, 255, 255, 0.45); border-radius: var(--radius); font-size: var(--step--1); list-style: none; }
.check__note li { display: flex; gap: var(--s-2); }
.check__note li::before { content: "✓"; font-weight: 700; flex: none; }
.steps { list-style: none; display: grid; gap: var(--s-5); counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); }
.step__num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--charcoal); color: var(--white); font-family: var(--font-mono); font-weight: 500; }
.step h3 { margin-bottom: var(--s-1); }
.step p { max-width: 52ch; }
@media (min-width: 900px) { .check__grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); } }

/* ---------- Tätigkeitsbereiche ------------------------------------------- */
.tiles { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); list-style: none; }
.tile { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 4.25rem; padding: var(--s-4) var(--s-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; transition: background-color 180ms, border-color 180ms, transform 180ms var(--ease); }
.tile::after { content: "→"; color: var(--green-deep); transition: transform 180ms var(--ease); }
.tile:hover { background: var(--green-soft); border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.tile:hover::after { transform: translateX(4px); }

.area { padding-block: var(--s-6); border-top: 1px solid var(--line); }
.area:first-of-type { border-top: 0; padding-top: 0; }
.area__examples { color: var(--ink-soft); }
.toc { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin-bottom: var(--s-7); }
.toc a { display: inline-block; padding: var(--s-2) var(--s-3); background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: var(--step--1); color: var(--ink); text-decoration: none; }
.toc a:hover { border-color: var(--green-deep); background: var(--green-soft); }

/* ---------- Galerie ------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.chip { min-height: 44px; padding: var(--s-2) var(--s-4); background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); color: var(--charcoal); cursor: pointer; transition: background-color 180ms, border-color 180ms, color 180ms; }
.chip:hover { border-color: var(--green-deep); }
.chip[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.gallery { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); list-style: none; }
.gallery--preview { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 900px) { .gallery--preview { grid-template-columns: repeat(6, 1fr); } }
.gallery__item { border-radius: var(--radius); overflow: visible; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.gallery__item img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery__item::before, .gallery__item::after { --corner: 18px; opacity: 0; transform: scale(0.6); }
.gallery__item:hover::before, .gallery__item:hover::after { opacity: 1; transform: none; }
.gallery__item[hidden] { display: none; }
.gallery__empty { padding: var(--s-6); text-align: center; color: var(--ink-soft); }
.gallery__cat { margin-top: var(--s-8); }
.gallery__cat:first-of-type { margin-top: 0; }

/* ---------- Ansprechpartner ---------------------------------------------- */
.people { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; }
.person { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-5); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); }
.person__name { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--ink); }
.person__role { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: var(--s-2); }
.person__phone { margin-top: auto; padding-top: var(--s-3); color: var(--ink); text-decoration: none; font-weight: 500; }
.person__phone:hover, .person__mail:hover { color: var(--blue-text); }
.person__mail { font-size: var(--step--1); overflow-wrap: anywhere; color: var(--ink-soft); text-decoration: none; }

/* ---------- Kontakt & Karte ----------------------------------------------- */
.contact { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; } }
.address { font-style: normal; line-height: 1.6; }
.address strong { display: block; font-family: var(--font-display); font-size: var(--step-1); }
.address a { color: var(--ink); text-decoration: none; }
.address a:hover { color: var(--blue-text); }
.contact-lines { display: grid; gap: var(--s-2); margin-top: var(--s-4); list-style: none; }
.contact-lines li { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s-3); align-items: baseline; }
.contact-lines span { font-size: var(--step--1); color: var(--ink-soft); }
.map { position: relative; min-height: 380px; height: clamp(380px, 50vh, 520px); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); z-index: 0; }
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s-6); text-align: center; }
.map__hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 500; padding: 4px 12px; background: rgba(69, 68, 68, 0.9); color: var(--white); border-radius: 999px; font-size: 0.8rem; opacity: 0; pointer-events: none; transition: opacity 200ms; }
.map__hint.is-visible { opacity: 1; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-container a { color: var(--blue-text); }
.leaflet-container .leaflet-control-attribution { font-size: 10px; }
.leaflet-popup-content-wrapper { border-radius: var(--radius); }
.leaflet-popup-content { margin: 14px 18px; font-size: 0.95rem; line-height: 1.5; }
.pin { position: relative; width: 44px; height: 54px; }
.pin__body { position: absolute; inset: 0; }
.pin__body svg { width: 44px; height: 54px; }
.pin__mark { position: absolute; left: 10px; top: 8px; width: 24px; height: 24px; }
.distances { margin-top: var(--s-6); }
.distances caption { text-align: left; font-family: var(--font-display); font-weight: 600; margin-bottom: var(--s-3); }
.distances th, .distances td { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.distances td { text-align: right; }
.distances tr:last-child th, .distances tr:last-child td { border-bottom: 0; }

/* ---------- Tabellen (Preise) -------------------------------------------- */
.table th, .table td { padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-weight: 500; }
.table td.mono { font-weight: 500; white-space: nowrap; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-2) var(--s-4); }
.note { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- PDF-Box ------------------------------------------------------- */
.pdf { display: grid; gap: var(--s-6); align-items: center; padding: var(--s-6); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pdf img { max-width: 260px; margin-inline: auto; }
.pdf__meta { font-size: var(--step--1); color: var(--ink-soft); }
@media (min-width: 720px) { .pdf { grid-template-columns: 1fr 2fr; } }

/* ---------- FAQ ----------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: var(--step-0); font-family: var(--font-body); font-weight: 600; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--green-deep), var(--green-deep)) center / 14px 2px no-repeat, linear-gradient(var(--green-deep), var(--green-deep)) center / 2px 14px no-repeat; transition: transform var(--dur) var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover h3 { color: var(--green-deep); }
.faq__a { padding: 0 0 var(--s-5); color: var(--ink-soft); }
.faq__a p { max-width: 70ch; }

/* ---------- CTA-Band ------------------------------------------------------ */
.cta-band { background: var(--charcoal); color: var(--white); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-7); }
.cta-band h2 { color: var(--white); margin-bottom: var(--s-2); }
.cta-band p { color: rgba(255, 255, 255, 0.8); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Seitenkopf (Unterseiten) ------------------------------------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.page-head h1 { margin-bottom: var(--s-3); }
.page-head .lead { max-width: 62ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); list-style: none; font-size: var(--step--1); color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line); }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Partner ------------------------------------------------------- */
.partner { display: grid; gap: var(--s-6); align-items: center; padding: var(--s-6); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.partner img { max-width: 220px; }
@media (min-width: 720px) { .partner { grid-template-columns: auto 1fr; gap: var(--s-8); } }

/* ---------- Formular ------------------------------------------------------ */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field label, .field__legend { font-weight: 500; }
.field__hint { font-size: var(--step--1); color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.9rem;
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #b9bdb0; border-radius: var(--radius);
  transition: border-color 150ms, box-shadow 150ms;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-text); box-shadow: 0 0 0 3px rgba(0, 166, 255, 0.25); }
.field[data-invalid] input, .field[data-invalid] textarea, .field[data-invalid] select { border-color: var(--error); }
.field__error { display: none; font-size: var(--step--1); color: var(--error); }
.field[data-invalid] .field__error { display: block; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: var(--s-3); }
.field--check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: 0.2rem; accent-color: var(--green-deep); }
.field--check label { font-weight: 400; font-size: var(--step--1); }
.field--check .field__error { grid-column: 2; }
.upload { position: relative; display: grid; gap: var(--s-2); padding: var(--s-5); border: 2px dashed #b9bdb0; border-radius: var(--radius); text-align: center; background: var(--mist); transition: border-color 150ms, background-color 150ms; }
.upload:hover, .upload.is-drag { border-color: var(--green-deep); background: var(--green-soft); }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload input:focus-visible + .upload__label { outline: 3px solid var(--blue); outline-offset: 4px; }
.upload__label { font-weight: 500; }
.upload__list { display: grid; gap: var(--s-1); list-style: none; font-size: var(--step--1); text-align: left; position: relative; z-index: 1; }
.upload__list li { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--s-3); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.upload__list button { background: none; border: 0; color: var(--error); cursor: pointer; font-size: var(--step--1); padding: 0 var(--s-1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: var(--s-4); border-radius: var(--radius); font-weight: 500; }
.form__status[data-state="ok"] { background: var(--green-soft); border: 1px solid var(--green); }
.form__status[data-state="error"] { background: #fdecea; border: 1px solid #f0b8b1; color: var(--error); }
.form__status:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }

/* ---------- Prose (Rechtstexte) ------------------------------------------ */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose address { font-style: normal; }
.prose .callout { padding: var(--s-4); background: var(--green-soft); border-left: 4px solid var(--green-deep); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.85); padding-block: var(--s-8) var(--s-6); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer__grid { display: grid; gap: var(--s-7); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand img { width: 240px; margin-bottom: var(--s-4); }
.footer__brand p { max-width: 42ch; font-size: var(--step--1); }
.footer__title { font-family: var(--font-display); font-weight: 600; color: var(--white); margin-bottom: var(--s-3); font-size: var(--step-0); }
.footer__list { list-style: none; display: grid; gap: var(--s-2); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: var(--step--1); }
.footer__bottom ul { display: flex; gap: var(--s-4); list-style: none; }

/* ---------- Scroll-Reveal & Motion --------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 500ms; }
@keyframes draw-corner { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
.js .hero__media::before, .js .hero__media::after { animation: draw-corner 600ms var(--ease) 300ms both; }
.js .hero__media::after { animation-delay: 450ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero__media::before, .js .hero__media::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Print --------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .map, .nav__toggle, .form, .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.9em; }
  .section { padding-block: 1.5rem; }
}

/* ==========================================================================
   Feedback-Runde 1
   ========================================================================== */

/* Formular: Felder oben ausrichten, gleiche Höhe der Eingaben in einer Zeile */
.field { align-content: start; }
.field__opt { font-weight: 400; color: var(--ink-soft); }

/* Nav-CTA: eigener Innenabstand statt Link-Padding der Navigation */
.nav__cta .btn { padding: 0.65rem 1.6rem; border-bottom: 2px solid var(--green); }
.nav__cta .btn:hover { border-bottom-color: var(--green-deep); }
@media (max-width: 1023px) { .nav__cta .btn { padding: 0.8rem 1.6rem; } }

/* Leistungen: Bildspalte immer gleich breit, auch bei getauschter Reihenfolge */
@media (min-width: 900px) {
  .service:nth-of-type(even) { grid-template-columns: 3fr 2fr; }
  .service--noimage { grid-template-columns: 1fr; }
  .service--noimage .service__text { columns: 2; column-gap: var(--s-8); }
  .service--noimage .service__text h2 { column-span: all; }
  .service--noimage .service__text p { max-width: none; break-inside: avoid; }
}
.service--noimage { grid-template-columns: 1fr; }
.service__media--wide img { aspect-ratio: 3 / 2; }

/* Tätigkeitsbereiche: Icon-Kacheln und Karten */
.icon { width: 28px; height: 28px; flex: none; }
.tile { gap: var(--s-3); }
.tile__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--white); color: var(--charcoal); flex: none; transition: background-color 180ms, color 180ms; }
.tile__icon .icon { width: 22px; height: 22px; }
.tile__title { flex: 1; }
.tile:hover .tile__icon { background: var(--green); color: var(--ink); }
.area-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.area-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius-lg); scroll-margin-top: 6rem; }
.area-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--green-soft); color: var(--charcoal); margin-bottom: var(--s-2); }
.area-card h2 { font-size: var(--step-1); margin: 0; }
.area-card p { max-width: none; }
.area-card__examples { font-size: var(--step--1); color: var(--ink-soft); padding-top: var(--s-3); border-top: 1px solid var(--line); margin-top: auto; }

/* Galerie: Klick öffnet Lightbox */
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.gallery__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; color: var(--white); }
.lightbox::backdrop { background: rgba(47, 47, 47, 0.92); }
.lightbox__inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3); width: 100%; height: 100%; padding: var(--s-4); }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: var(--s-3); }
.lightbox__img { width: min(86vw, 640px); max-height: 70vh; height: auto; object-fit: contain; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); background: var(--charcoal); }
.lightbox__caption { font-size: var(--step--1); color: rgba(255, 255, 255, 0.85); text-align: center; }
.lightbox__count { position: absolute; top: var(--s-4); left: 50%; transform: translateX(-50%); margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.lightbox__close, .lightbox__nav { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--white); cursor: pointer; transition: background-color 150ms; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--green); color: var(--ink); }
.lightbox__close { position: absolute; top: var(--s-4); right: var(--s-4); }
.lightbox__close svg, .lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav[disabled] { opacity: 0.3; cursor: default; }
@media (max-width: 599px) {
  .lightbox__inner { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lightbox__nav { position: absolute; bottom: var(--s-4); }
  .lightbox__nav--prev { left: var(--s-4); }
  .lightbox__nav--next { right: var(--s-4); }
  .lightbox__img { width: 92vw; max-height: 62vh; }
}

/* Unternehmen: Gebäudefoto als Panorama */
.building { display: block; }
.building img { width: 100%; aspect-ratio: 2395 / 853; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.building::before, .building::after { --corner: 40px; }
@media (max-width: 719px) { .building img { aspect-ratio: 16 / 10; } }
.building-caption { margin-top: var(--s-4); }

/* Footer: Hinweis auf die Agentur */
.footer__credit { color: rgba(255, 255, 255, 0.6); }
.footer__credit a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 0.15em; }
.footer__credit a:hover { color: var(--green); }

/* Startseite: Tätigkeitsbereiche-Kacheln – breiter, gleich hoch, Silbentrennung */
.tiles { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--s-4); }
.tiles > li { display: grid; }
.tile { height: 100%; min-height: 4.5rem; padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4); }
.tile__title { hyphens: auto; overflow-wrap: anywhere; line-height: 1.25; min-width: 0; }
.tile::after { flex: none; }

/* Tätigkeitsbereiche-Kacheln: ab Tablet vertikal (Icon oben), Desktop 5 Spalten = 2 Reihen */
@media (min-width: 600px) {
  .tiles { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
  .tile { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--s-3); min-height: 10rem; padding: var(--s-4); }
  .tile__title { flex: none; font-size: 1rem; }
  .tile::after { margin-top: auto; align-self: flex-end; }
}
@media (min-width: 1024px) {
  .tiles { grid-template-columns: repeat(5, 1fr); }
}
