/* ---------- Reveal (transform only, never opacity:0) ---------- */
.reveal {
  transform: translateY(28px);
  transition: transform 700ms var(--ease);
  will-change: transform;
}

.reveal.is-visible {
  transform: translateY(0);
}

.reveal-row > * {
  transform: translateX(-24px);
  transition: transform 700ms var(--ease);
}

.reveal-row.is-visible > * {
  transform: translateX(0);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding-block: var(--space-m);
}

.page-hero h1 {
  color: #fff;
}

.page-hero__lede {
  font-size: var(--fs-lede);
  max-width: 56ch;
  color: oklch(100% 0 0 / 0.82);
}

/* ---------- Front hero (split) ---------- */
.hero {
  position: relative;
  background: var(--surface);
  padding-top: var(--space-s);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

.hero__content {
  padding-block: var(--space-s) var(--space-m);
}

.hero__content p {
  font-size: var(--fs-lede);
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__media {
  position: relative;
  height: clamp(320px, 56vw, 620px);
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 901px) {
  .hero__media {
    margin-right: calc((100vw - min(1240px, 100% - 3rem)) / -2 - ((100vw - 1240px) / 2));
    width: calc(100% + ((100vw - min(1240px, 100% - 3rem)) / 2));
  }
}

/* ---------- Slider ---------- */
.slider-section {
  padding-block: var(--space-l);
  background: var(--bg);
}

.slider-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.slider {
  position: relative;
}

.slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}

.slider__track::-webkit-scrollbar {
  display: none;
}

.slider__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 420px;
  background: var(--primary);
  overflow: hidden;
}

.slider__media {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.slider__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__body {
  color: #fff;
  padding: 3rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slider__body h3 {
  color: #fff;
}

.slider__body p {
  color: oklch(100% 0 0 / 0.78);
}

.slider__controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.slider__btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.slider__btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.slider__btn:active {
  transform: scale(0.96);
}

.slider__dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 0.5rem;
}

.slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.slider__dot[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.3);
}

/* ---------- Service rows (wide single rows, no card grid) ---------- */
.service-rows {
  padding-block: var(--space-m);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding-block: var(--space-s);
}

.service-row + .service-row {
  border-top: 1px solid var(--line);
}

.service-row:nth-child(even) .service-row__media {
  order: 2;
}

.service-row__media {
  overflow: hidden;
  height: clamp(260px, 32vw, 420px);
}

.service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

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

.service-row__index {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-ink);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-row__body p {
  color: var(--ink-muted);
}

.service-row__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1rem;
}

.service-row__link .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform var(--dur) var(--ease);
}

.service-row__link:hover .icon {
  transform: translateX(4px);
}

/* ---------- Full-bleed break ---------- */
.bleed-break {
  position: relative;
  height: clamp(320px, 46vw, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bleed-break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bleed-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, oklch(15% 0.03 240 / 0.78) 0%, oklch(15% 0.03 240 / 0.15) 55%, transparent 100%);
}

.bleed-break__text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 3rem 1.5rem;
  width: 100%;
}

.bleed-break__text h2 {
  color: #fff;
  max-width: 18ch;
}

/* ---------- Process / spec table section (distinct structure) ---------- */
.spec-section {
  padding-block: var(--space-l);
}

.spec-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 1.1rem 1rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  width: 30%;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.spec-table tr:first-child th,
.spec-table tr:first-child td {
  border-top: none;
}

.spec-table td {
  color: var(--ink-muted);
}

/* ---------- Materials grid overview (distinct from service rows) ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.overview-tile {
  grid-column: span 3;
  border-top: 2px solid var(--primary);
  padding-top: 1rem;
}

.overview-tile__media {
  height: 180px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.overview-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-tile h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.overview-tile p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- About teaser ---------- */
.about-teaser {
  padding-block: var(--space-m);
}

.about-teaser__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-teaser__media {
  height: clamp(280px, 30vw, 420px);
  overflow: hidden;
}

.about-teaser__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Contact section ---------- */
.contact-section {
  padding-block: var(--space-l);
  background: var(--primary);
  color: #fff;
}

.contact-section h2 {
  color: #fff;
}

.contact-section .section-head p {
  color: oklch(100% 0 0 / 0.78);
  font-size: var(--fs-lede);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-list .icon {
  color: var(--accent);
  flex-shrink: 0;
}

.contact-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-list--dark {
  color: var(--ink);
}

.contact-list--dark a {
  color: var(--primary);
}

.map-embed {
  position: relative;
  height: 320px;
  background: var(--primary-soft);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* ---------- Damage-report callout (prominent inbound channel) ---------- */
.damage-callout {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.damage-callout p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 42ch;
}

.sticky-damage {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 400;
  box-shadow: var(--shadow-md);
}

/* ---------- Generic content sections ---------- */
.content-section {
  padding-block: var(--space-m);
}

.content-section--tight {
  padding-block: var(--space-s);
}

.content-narrow {
  max-width: 68ch;
}

.section-head {
  max-width: 54ch;
  margin-bottom: 3rem;
}

/* ---------- Legal pages (Impressum/Datenschutz) ---------- */
.legal-content h2 {
  font-size: var(--fs-h3);
  margin-top: 2.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink-muted);
  max-width: 70ch;
}

/* ---------- WP core blocks baseline ---------- */
.wp-block-list {
  padding-left: 1.4rem;
}

ul:not(.wp-block-list):where([class]) {
  list-style: none;
}

.entry-content > * + * {
  margin-top: 1.4rem;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2.25rem;
}

.entry-content ul.wp-block-list,
.entry-content ol {
  padding-left: 1.4rem;
}

/* ---------- Project gallery / contact form plugin scoping ---------- */
.plugin-embed {
  padding-block: var(--space-s);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid,
  .about-teaser__grid,
  .contact-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    order: -1;
    height: 320px;
  }

  .slider__slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .slider__media {
    min-height: 260px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-row:nth-child(even) .service-row__media {
    order: 0;
  }

  .overview-tile {
    grid-column: span 6;
  }

  .damage-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .overview-tile {
    grid-column: span 12;
  }

  .sticky-damage span {
    display: none;
  }

  .sticky-damage {
    padding: 0.9rem;
    border-radius: 50%;
  }

  :root {
    --space-s: 3rem;
    --space-m: 4rem;
    --space-l: 5rem;
    --space-xl: 6rem;
  }
}
