/* ============ Content pages (generated by _build/build.py) ============ */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; padding-block: 16px; color: var(--muted); }
.breadcrumb a { text-decoration: none; color: var(--ink-soft); }
.breadcrumb a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.media--hero-sm { height: clamp(220px, 34vw, 440px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* page title without image */
.pagehead { background: var(--cream); padding-block: 56px 48px; margin-bottom: 8px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.pagehead h1 { max-width: 860px; }
/* long German compounds ("Geschäftsbedingungen") must break on narrow screens */
h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; }
.ph { overflow-wrap: anywhere; }
.pagehead .lead { margin: 0; }

/* key facts box */
.facts { background: var(--cream); padding: 40px 44px; margin-block: 8px 16px; border-left: 4px solid var(--gold); }
.facts h2 { font-size: 22px; margin-bottom: 18px; }
.facts ul, .ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts ul { grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.facts li, .ticks li { display: flex; gap: 12px; align-items: flex-start; }
.facts svg, .ticks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--gold-dark); stroke-width: 2.2; }
.ticks { margin-bottom: 24px; }

/* card grids */
.grid { display: grid; gap: 16px; margin-top: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card--page { padding: 0; display: flex; flex-direction: column; }
.card--page .card__img { aspect-ratio: 16 / 10; }
.card--page .card__body { padding: 28px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.card--page .card__body p:last-of-type { flex: 1; }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
.card__link svg { width: 18px; height: 18px; color: var(--gold-dark); transition: transform .2s; }
.card__link:hover svg { transform: translateX(4px); }

/* text + image rows */
.split:not(.split--top) { align-items: center; }
.split--reverse > :first-child { order: 2; }
.media--split { aspect-ratio: 4 / 3; }
.split .btn { margin-top: 4px; }

/* comparison table */
.table-wrap { overflow-x: auto; margin-top: 28px; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th { text-align: left; padding: 14px 16px; background: var(--ink); color: var(--cream); font-weight: 600; }
.compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:nth-child(odd) td { background: #fbf8f2; }
.compare td:first-child { font-weight: 600; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* related links */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.related__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 22px; background: var(--cream); text-decoration: none; font-weight: 600; color: var(--ink);
  border: 1.5px solid transparent; transition: border-color .15s;
}
.related__item:hover { border-color: var(--ink); }
.related__item svg { flex: none; width: 20px; height: 20px; color: var(--gold-dark); }

/* gallery */
.gallery { display: grid; gap: 16px; margin-top: 32px; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gallery__item { margin: 0; }
.gallery__item .media { aspect-ratio: 1 / 1; }
.gallery__item figcaption { padding-top: 12px; font-size: 14px; color: var(--ink-soft); }
.gallery__item figcaption strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--cream); padding: 28px 26px; border-radius: var(--radius-md); }
.steps__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; margin-bottom: 16px; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* downloads */
.downloads { display: grid; gap: 12px; margin-top: 32px; }
.download { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 24px 28px; background: var(--cream); }
.download__icon { display: grid; place-items: center; width: 56px; height: 56px; background: var(--white); }
.download__icon svg { width: 28px; height: 28px; color: var(--gold-dark); }
.download h3 { font-size: 18px; margin-bottom: 4px; }
.download p { margin: 0 0 4px; color: var(--ink-soft); font-size: 15px; }
.download__meta { font-size: 13px; color: var(--muted); }

/* forms */
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.form { background: var(--cream); padding: 40px 44px; border-radius: var(--radius-lg); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 14px; font-weight: 600; }
.input {
  width: 100%; height: 52px; padding: 0 16px; font: 16px var(--font); color: var(--ink);
  background: var(--white); border: 1.5px solid transparent; border-radius: var(--radius-sm);
}
textarea.input { height: auto; padding: 12px 16px; resize: vertical; }
select.input { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23272727' stroke-width='2'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 44px; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(202, 156, 81, .35); }
.field.is-invalid .input { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: 13px; font-weight: 600; }
.consent-line { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.consent-line input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--gold-dark); flex: none; }
.consent-line a { color: var(--ink); }
.consent-line.is-invalid span { color: #b3261e; }
.form .btn { cursor: pointer; font-family: var(--font); }
.form__error { color: #b3261e; font-weight: 600; font-size: 14px; }
.form__hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.form__success { background: var(--cream); padding: 40px 44px; border-top: 4px solid var(--gold); border-radius: var(--radius-lg); }
.form__success .demo { font-size: 14px; color: var(--ink-soft); background: var(--white); padding: 12px 16px; border-left: 3px solid var(--gold); }
.contact-aside { display: grid; gap: 16px; }
.contact-aside .card { padding: 32px; }
.contact-aside address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }

/* service area, head office, offices */
.locations { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.location { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: rgba(202, 156, 81, .07); border: 1px solid rgba(202, 156, 81, .28); border-radius: 12px; }
.location__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(202, 156, 81, .14); border: 1px solid rgba(202, 156, 81, .3); color: var(--gold); }
.location__icon svg { width: 20px; height: 20px; }
.location__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 2px 0 4px; }
.location p { margin: 0; color: var(--ink); line-height: 1.6; }
.offices { margin: 10px 0 0; display: grid; gap: 1px; font-size: 14.5px; line-height: 1.5; }
.offices dt { font-weight: 600; }
.offices dd + dt { margin-top: 10px; }
.offices dd { margin: 0; color: var(--ink-soft); }

/* PLZ search */
.plz-search { background: var(--cream); padding: 48px; max-width: 860px; border-radius: var(--radius-lg); }
.plz-form { display: flex; gap: 12px; margin-top: 20px; }
.plz-form .field { flex: 1; max-width: 280px; }
.plz-form .btn { cursor: pointer; font-family: var(--font); }
.plz-result { margin-top: 24px; padding: 24px 28px; background: var(--white); border-left: 4px solid var(--gold); }
.plz-result h3 { margin-bottom: 8px; }
.plz-result .btn { margin: 8px 12px 0 0; }

/* legal texts */
.legal { max-width: 860px; }
.legal section { margin-bottom: 36px; scroll-margin-top: 90px; }
.legal h2 { font-size: 22px; }
.legal p { color: var(--ink-soft); }
.ph { background: #fff1c9; padding: 0 4px; font-family: ui-monospace, Consolas, monospace; font-size: .92em; color: var(--ink); }
.notice { background: #fff8e6; border-left: 4px solid var(--gold); padding: 18px 22px; margin-bottom: 40px; font-size: 15px; }

/* job cards etc. */
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; }

/* category tiles (Rollladen overview) */
.section--tight { padding-top: 24px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #e4ded3); border-radius: var(--radius-md); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: 0 10px 28px rgba(39, 39, 39, .12); transform: translateY(-2px); }
.tile__img { display: block; aspect-ratio: 4 / 3; background: var(--cream); overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.tile__title { font-size: 20px; text-align: center; color: var(--gold-dark); margin: 0 0 12px; }
.tile__body p { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; }
.tile__points { gap: 8px; font-size: 14.5px; margin-bottom: 20px; }
.tile__points svg { width: 18px; height: 18px; }
.tile__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-dark); }
.tile__more svg { width: 18px; height: 18px; }
.tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* long info text */
.article { max-width: 900px; }
.article__title { margin-bottom: 20px; }
.article section { margin-top: 32px; }
.article h3 { font-size: 20px; margin-bottom: 10px; }
.article p { color: var(--ink-soft); }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid--3, .related, .gallery--3, .gallery--4 { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .facts ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .related, .steps, .fields, .tiles { grid-template-columns: 1fr; }
  .gallery--3, .gallery--4 { grid-template-columns: 1fr 1fr; }
  .facts, .form, .form__success, .plz-search { padding: 28px 22px; }
  .download { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .plz-form { flex-direction: column; }
  .plz-form .field { max-width: none; }
  .pagehead { padding-block: 40px 32px; }
}
