/* Aven Dienstleistung · Innenseiten. Builds on styles.css (tokens, type, v3 components). */

/* ---------- Header: active page ---------- */
.header__nav a[aria-current="page"] { color: var(--lime-400); }

/* ---------- Inner hero: giant word, title + text, wide photo ---------- */
.ihero { max-width: 1440px; margin: 0 auto; padding: 136px var(--pad) 0; display: flex; flex-direction: column; gap: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; line-height: 1.5; }
.crumbs a { opacity: .6; } .crumbs a:hover { opacity: 1; color: var(--lime-400); }
.crumbs span[aria-hidden] { opacity: .35; }
.crumbs [aria-current] { color: var(--lime-400); }
/* --n = number of letters; Oswald 500 is ~0.47em per letter */
.ihero__wort {
  font: 500 min(calc(300 * var(--u)), calc((min(100vw, 1440px) - 2 * var(--pad)) / (var(--n) * 0.47)))/1 var(--font-display);
  letter-spacing: -0.02em; color: var(--lime-400); white-space: nowrap; margin-left: -0.04em; padding-top: .04em;
}
.ihero__text { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.ihero__title { font: 500 clamp(30px, calc(44 * var(--u)), 44px)/1.1 var(--font-display); letter-spacing: -0.01em; max-width: 780px; }
.ihero__right { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.ihero__right .lead { opacity: .85; }
.ihero__photo { height: calc(460 * var(--u)); min-height: 260px; }
.ihero__fakten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ihero__fakten li { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--pine-700); }

/* ---------- Section head: title left, text right (Fallbeispiele pattern) ---------- */
.skopf { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.skopf__titel { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 860px; }
.skopf > p { max-width: 440px; }

/* ---------- Rows: phrase left, text right (Zahlen pattern) ---------- */
.zeilen { width: 100%; }
.zeile { display: flex; align-items: center; gap: 40px; padding: 28px 0; border-top: 1px solid var(--pine-700); }
.zeile:last-child { border-bottom: 1px solid var(--pine-700); }
.zeile > :first-child { width: calc(720 * var(--u)); flex: none; }
.zeile > :last-child { max-width: 560px; opacity: .75; }
.zeile__nr { color: var(--lime-400); margin-right: .35em; }

/* ---------- Cards 2 × 2: big number, title, text, photo ---------- */
.antworten { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.antwort { display: grid; grid-template-columns: 1fr calc(240 * var(--u)); gap: 24px; padding: 28px; border-radius: var(--radius); background: var(--pine-700); }
.antwort__text { display: flex; flex-direction: column; gap: 12px; }
.antwort__nr { font: 500 64px/1 var(--font-display); color: var(--lime-400); margin-bottom: 12px; }
.antwort .photo { height: 280px; border-radius: 12px; }

/* ---------- Document with callouts (Einsatzgebiet pattern) ---------- */
.dok { width: 100%; display: grid; grid-template-columns: 1fr 520px 1fr; gap: 64px; align-items: center; }
.dok__notes { display: flex; flex-direction: column; gap: 56px; }
.dok__notes li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.dok__notes li::after { content: ""; position: absolute; top: 17px; width: 48px; height: 1px; background: var(--lime-400); opacity: .6; }
.dok__notes--l li { text-align: right; align-items: flex-end; }
.dok__notes--l li::after { left: calc(100% + 8px); }
.dok__notes--r li::after { right: calc(100% + 8px); }
.blatt { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 24px; background: var(--mint-100); color: var(--forest-900); }
.blatt__kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.blatt__titel { font: 500 28px/1.1 var(--font-display); }
.blatt__marke { font: 500 20px/1 var(--font-display); color: var(--pine-700); }
.blatt dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(26,40,41,.15); font-size: 13px; }
.blatt dt { opacity: .6; }
.blatt__punkte li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; line-height: 1.45; }
.blatt__punkte li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 4px; background: var(--forest-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23c4ed86' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat; }
.blatt__punkte li.is-offen::before { background: var(--lime-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v6M8 11.5v1.5' fill='none' stroke='%231a2829' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat; }
.blatt__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.blatt__fotos figure { position: relative; }
.blatt__fotos img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }
.blatt__fotos figcaption { position: absolute; left: 8px; top: 8px; }
.blatt__fuss { font-size: 12px; opacity: .6; }

/* ---------- Pills on photos ---------- */
.marke { display: inline-block; border-radius: 999px; padding: 5px 11px; font: 500 12px/1 var(--font-text); letter-spacing: .02em; background: var(--white); color: var(--forest-900); }
.marke--lime { background: var(--lime-400); }

/* ---------- Before / after ---------- */
.vn { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vn figure { position: relative; display: flex; flex-direction: column; gap: 12px; }
.vn .photo { height: calc(440 * var(--u)); min-height: 220px; }
.vn .marke { position: absolute; left: 16px; top: 16px; }
.vn figcaption { font-size: 14px; opacity: .7; }

/* ---------- Comparison table (Fallbeispiele params, in columns) ---------- */
.tabelle { width: 100%; overflow-x: auto; }
.vergleich { width: 100%; border-collapse: collapse; text-align: left; }
.vergleich th, .vergleich td { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--pine-700); vertical-align: top; }
.vergleich thead th { font: 500 24px/1.15 var(--font-display); padding-bottom: 20px; }
.vergleich thead th.is-aven, .vergleich td.is-aven { color: var(--lime-400); }
.vergleich tbody th { width: 28%; font-size: 14px; font-weight: 400; opacity: .6; }
.vergleich td { font-size: 16px; line-height: 1.5; }

/* ---------- Seasons calendar ---------- */
.saisons { width: 100%; }
.saison { display: grid; grid-template-columns: 120px calc(300 * var(--u)) 1fr 200px; gap: 40px; align-items: center; padding: 24px 0; border-top: 1px solid var(--pine-700); }
.saison:last-child { border-bottom: 1px solid var(--pine-700); }
.saison img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.saison__name { font: 500 clamp(36px, calc(56 * var(--u)), 56px)/1 var(--font-display); }
.saison__monate { text-align: right; font-size: 14px; opacity: .6; }
.saison.is-jetzt .saison__name { color: var(--lime-400); }
.saison.is-jetzt .saison__monate { opacity: 1; color: var(--lime-400); }
.saison__jetzt { display: none; }
.saison.is-jetzt .saison__jetzt { display: inline-block; margin-left: 12px; vertical-align: middle; }

/* ---------- Leistungsverzeichnis: two columns of numbered rows ---------- */
.lv { width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; counter-reset: lv; }
.lv li { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--pine-700); counter-increment: lv; }
.lv li::before { content: counter(lv, decimal-leading-zero); flex: none; width: 28px; font: 500 14px/1 var(--font-text); color: var(--lime-400); }
.lv li > span { font-size: 18px; line-height: 1.45; }
.lv li .ph { font-size: 12px; margin-left: 8px; vertical-align: 2px; }

/* ---------- Service cards with links ---------- */
.grid4 { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid3--karten { row-gap: 48px; }
.karte-link { display: flex; flex-direction: column; gap: 16px; }
.karte-link .photo { height: 300px; transition: opacity .2s; }
.karte-link:hover .photo { opacity: .85; }
.karte-link:hover .h3 { color: var(--lime-400); }
.karte-link ul { display: flex; flex-direction: column; gap: 6px; font-size: 14px; opacity: .75; }
.karte-link ul li::before { content: "– "; }
.karte-link .link { margin-top: auto; }
.grid4 .karte-link .photo { height: 260px; }

/* ---------- Statement block on pine (Fall 02 card) ---------- */
.hinweis { width: 100%; display: flex; gap: 40px; align-items: center; padding: 32px 40px; border-radius: var(--radius); background: var(--pine-700); }
.hinweis > :first-child { flex: none; }
.hinweis__text { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hinweis__text .body { max-width: 760px; }

/* ---------- Simple step row ---------- */
.schritte { width: 100%; display: grid; grid-template-columns: repeat(var(--k, 4), 1fr); gap: 20px; }
.schritte li { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 24px; border-top: 1px solid var(--lime-400); }
.schritte .schritt__pill { position: static; font-size: 20px; padding: 8px 16px; border-width: 1px; }
.schritte p { opacity: .8; }

/* ---------- Galleries: justified rows, lightbox ---------- */
.galerie { width: 100%; display: flex; flex-wrap: wrap; gap: 12px; }
.galerie::after { content: ""; flex: 1e4 1 0; }
.galerie__item { position: relative; flex: calc(var(--ar) * 100) 1 calc(var(--ar) * 200px); aspect-ratio: var(--ar); overflow: hidden; border-radius: 12px; background: var(--pine-700); cursor: zoom-in; }
.galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.galerie__item:hover img { transform: scale(1.03); }
.galerie--gross .galerie__item { flex-basis: calc(var(--ar) * 560px); }
.galerie__item.is-mehr { display: none; }
.galerie.is-offen .galerie__item.is-mehr { display: block; }
.galerie__mehr[hidden] { display: none; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15,24,25,.96); color: var(--white); }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox__bild { min-height: 0; display: grid; place-items: center; padding: 72px 88px 16px; }
.lightbox__bild img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.lightbox__leiste { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 40px 28px; font-size: 14px; }
.lightbox__leiste p { opacity: .8; }
.lightbox__zahl { opacity: .6; white-space: nowrap; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--pine-700); color: var(--lime-400); font: 500 22px/1 var(--font-display); }
.lightbox__btn:hover { background: var(--lime-400); color: var(--forest-900); }
.lightbox__zu { top: 16px; right: 16px; }
.lightbox__zurueck { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__weiter { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Projects (Einsätze) ---------- */
.projekte { width: 100%; display: flex; flex-direction: column; gap: 96px; }
.projekt { display: flex; flex-direction: column; gap: 28px; }
.projekt[hidden] { display: none; }
.projekt__kopf { display: flex; gap: 40px; align-items: flex-start; }
.projekt__text { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.projekt__text .body { max-width: 640px; }
.projekt .params { width: 440px; flex: none; }
.projekt .params > div:first-child { border-top: 1px solid var(--pine-700); }

/* ---------- Big final CTA (two huge lines) ---------- */
.cta-gross { gap: 32px; }
.cta-gross__link { display: flex; flex-direction: column; font: 500 calc(150 * var(--u))/.95 var(--font-display); letter-spacing: -0.02em; }
.cta-gross__link span:first-child { color: var(--lime-400); }
.cta-gross__z2 { display: inline-flex; align-items: center; gap: .18em; }
.cta-gross__pfeil { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--lime-400); color: var(--forest-900); font-size: .4em; line-height: 1; transition: transform .2s; }
.cta-gross__link:hover .cta-gross__pfeil { transform: translateX(.12em); }
.cta-gross__unter { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; border-top: 1px solid var(--pine-700); }

/* ---------- Form extras ---------- */
.field select { font: 400 16px/1.55 var(--font-text); color: var(--forest-900); background: transparent; border: 0; border-bottom: 1px solid rgba(26,40,41,.3); padding: 0 0 8px; border-radius: 0; appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a2829' stroke-width='1.6'/%3E%3C/svg%3E") right 2px top 8px / 12px no-repeat; }
.field select:focus { outline: none; border-bottom-color: var(--forest-900); }
.field.is-invalid select { border-bottom-color: #b3261e; }
.field input[type="file"] { padding: 6px 0 8px; font-size: 14px; }
.field input[type="file"]::file-selector-button { font: 600 13px/1 var(--font-text); margin-right: 12px; padding: 9px 14px; border: 1px solid var(--forest-900); border-radius: 999px; background: transparent; color: var(--forest-900); cursor: pointer; }
.chips { border: 0; margin: 0; padding: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.chips legend { padding: 0; font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.chips__liste { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid rgba(26,40,41,.35); border-radius: 999px; font-size: 14px; line-height: 1.2; cursor: pointer; transition: background-color .15s, color .15s; }
.chip input:checked + span { background: var(--forest-900); border-color: var(--forest-900); color: var(--lime-400); }
.chip input:focus-visible + span { outline: 2px solid var(--forest-900); outline-offset: 2px; }
.chips.is-invalid .chip span { border-color: #b3261e; }
.form__reihe { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.form__fehler { color: #b3261e; }

/* ---------- Text pages (Impressum, Datenschutz) ---------- */
.rechtstext { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.rechtstext h2 { margin-top: 28px; }
.rechtstext p, .rechtstext li { opacity: .85; }
.rechtstext ul { list-style: disc; padding-left: 20px; }
.rechtstext a { color: var(--lime-400); text-decoration: underline; text-underline-offset: 3px; }

.gruende--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Seasonal strip (Winterdienst, October to February) ---------- */
.saisonal { padding-top: 0; padding-bottom: 0; }
.saisonal[hidden] { display: none; }
.hinweis--link { transition: background-color .3s; }
.hinweis--link > .link { flex: none; align-self: center; }
.hinweis--link:hover { background: #3d5b5d; }
.hinweis--link:hover > .link { background-size: 100% 1.5px; }

/* text links inside flex columns keep their own width (the hover line runs under the text only) */
.card .link, .karte-link .link, .kopf__text .link, .skopf .link { align-self: flex-start; }

/* ============ Tablet ============ */
@media (max-width: 1280px) {
  .header__nav { gap: 22px; }
  .dok { grid-template-columns: 1fr 440px 1fr; gap: 48px; }
  .projekt .params { width: 380px; }
}

/* ============ Mobile ============ */
@media (max-width: 900px) {
  .ihero { padding-top: 96px; gap: 20px; }
  .ihero__wort { font-size: min(96px, calc((100vw - 2 * var(--pad)) / (var(--n) * 0.47))); }
  .ihero__text { flex-direction: column; gap: 20px; }
  .ihero__title { font-size: 34px; line-height: 1.08; }
  .ihero__right { max-width: none; gap: 20px; }
  .ihero__right .lead { font-size: 16px; opacity: .8; }
  .ihero .btns { flex-direction: column; } .ihero .btn { width: 100%; }
  .ihero__photo { height: 240px; min-height: 0; }
  .ihero__fakten { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .ihero__fakten li { padding: 14px 0; }

  .skopf { flex-direction: column; align-items: flex-start; gap: 20px; }
  .skopf .display-l, .skopf .display-m { font-size: 40px; line-height: 1.05; }

  .zeile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 0; }
  .zeile > :first-child { width: auto; }
  .zeile .h2 { font-size: 26px; }
  .zeile > :last-child { font-size: 14px; }

  .antworten { grid-template-columns: 1fr; gap: 12px; }
  .antwort { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .antwort__nr { font-size: 44px; margin-bottom: 4px; }
  .antwort .photo { height: 180px; min-height: 0; }

  .dok { grid-template-columns: 1fr; gap: 24px; }
  .dok__notes { gap: 0; }
  .dok__notes li { padding: 14px 0; border-bottom: 1px solid var(--pine-700); }
  .dok__notes--l li { text-align: left; align-items: flex-start; }
  .dok__notes li::after { display: none; }
  .dok__notes--l { order: 1; } .dok__notes--r { order: 2; }
  .blatt { padding: 20px; border-radius: 20px; }
  .blatt__titel { font-size: 24px; }
  .blatt__fotos img { height: 90px; }

  .vn { grid-template-columns: 1fr; gap: 16px; }
  .vn .photo { height: 240px; min-height: 0; }

  .vergleich { table-layout: fixed; hyphens: auto; overflow-wrap: break-word; }
  .vergleich thead th { font-size: 18px; }
  .vergleich th, .vergleich td { padding: 14px 12px 14px 0; }
  .vergleich td { font-size: 14px; }
  .vergleich tbody th { width: 30%; font-size: 13px; }

  .saison { grid-template-columns: 72px 1fr; gap: 8px 16px; padding: 18px 0; }
  .saison img { width: 72px; height: 72px; grid-row: span 3; align-self: start; }
  .saison__name { font-size: 30px; }
  .saison > p:not(.saison__name) { font-size: 14px; }
  .saison__monate { text-align: left; }

  .lv { grid-template-columns: 1fr; }
  .lv li { gap: 14px; padding: 14px 0; }
  .lv li > span { font-size: 16px; }

  .grid4 { grid-template-columns: 1fr; gap: 28px; }
  .karte-link .photo, .grid4 .karte-link .photo { height: 220px; }

  .hinweis { flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 20px; }
  .hinweis--link > .link { align-self: flex-start; margin-top: 8px; }

  .schritte { grid-template-columns: 1fr; gap: 0; }
  .schritte li { padding: 18px 0; gap: 10px; }

  /* phone: two even columns, panoramas over the full width */
  .galerie, .galerie--gross { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .galerie::after { display: none; }
  .galerie__item, .galerie--gross .galerie__item { aspect-ratio: 1; border-radius: 10px; }
  .galerie__item.is-hoch { aspect-ratio: 3 / 4; }
  .galerie__item.is-breit { grid-column: span 2; aspect-ratio: 2 / 1; }
  .galerie__mehr { width: 100%; }
  .lightbox__bild { padding: 64px 8px 8px; }
  .lightbox__leiste { padding: 12px 16px 20px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .lightbox__zurueck, .lightbox__weiter { top: auto; bottom: 16px; transform: none; width: 44px; height: 44px; }
  .lightbox__zurueck { left: auto; right: 72px; }
  .lightbox__weiter { right: 16px; }
  .lightbox__leiste { padding-right: 140px; }

  .projekte { gap: 64px; }
  .projekt { gap: 20px; }
  .projekt__kopf { flex-direction: column; gap: 20px; }
  .projekt .params { width: 100%; }

  .cta-gross__link { font-size: 56px; line-height: 1; }
  .cta-gross__unter { flex-direction: column; align-items: flex-start; }
  .cta-gross__unter .btn { width: 100%; }

  .form__reihe { grid-template-columns: 1fr; }
  .gruende--4 { grid-template-columns: 1fr; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ihero__photo--hoch { object-position: center 62%; }
.ihero__fotos { display: grid; grid-template-columns: repeat(var(--k, 3), 1fr); gap: 20px; }
.ihero__fotos .photo { height: calc(460 * var(--u)); min-height: 260px; }
@media (max-width: 900px) { .ihero__fotos { gap: 8px; } .ihero__fotos .photo { height: 240px; min-height: 0; border-radius: 12px; } }
.rechtstext .ph { white-space: normal; line-height: 1.4; }
