/* ==========================================================================
   OCTA GmbH – Bau- & Gebäudeservice · zentrales Stylesheet
   Monochromes Branding nach Firmenschild (Oktopus, Schwarz auf Weiß).
   Keine externen Ressourcen (Fonts, CDNs, Tracking) – bewusst DSGVO-schlank.
   Animationen: CSS-only Intro im Hero, Scroll-Reveal via kleinem Inline-JS
   (Klasse .js am <html>; ohne JS bleibt alles sichtbar). prefers-reduced-motion
   deaktiviert sämtliche Bewegung.
   ========================================================================== */

:root {
  --ink: #1d1c1c;          /* Druckschwarz, angelehnt an #231F20 des Schilds */
  --ink-soft: #4b4a49;
  --paper: #ffffff;
  --paper-dim: #f6f5f3;
  --line: #e4e2df;
  --radius: 14px;
  --maxw: 1080px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { scroll-margin-top: 76px; }

/* --- Kopfzeile (sticky, mit Blur) ---------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.brand strong {
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
}

.brand span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.topbar nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.topbar nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.3s var(--ease-out), color 0.2s ease;
}

.topbar nav a:hover {
  color: var(--ink);
  background-size: 100% 2px;
}

/* --- Intro-Animationen (einmalig beim Laden) ------------------------------ */

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes drift-in {
  from { opacity: 0; transform: translateY(-16px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

@keyframes spread {
  from { opacity: 0; letter-spacing: 0.02em; }
  to   { opacity: 1; letter-spacing: 0.32em; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(-1deg); }
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  text-align: center;
  padding: 44px 0 40px;
}

.hero .octo-stage {
  animation: drift-in 0.9s var(--ease-out) both;
}

.hero img.octo {
  width: min(340px, 72vw);
  height: auto;
  display: block;
  margin: 0 auto;
  animation: float 7s ease-in-out 1.4s infinite;
  will-change: transform;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(3rem, 9vw, 4.6rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
}

.hero h1 span {
  display: inline-block;
  animation: rise 0.65s var(--ease-out) both;
}

.hero h1 span:nth-child(1) { animation-delay: 0.18s; }
.hero h1 span:nth-child(2) { animation-delay: 0.26s; }
.hero h1 span:nth-child(3) { animation-delay: 0.34s; }
.hero h1 span:nth-child(4) { animation-delay: 0.42s; }

.hero .sub {
  margin: 10px 0 0;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: spread 1.1s var(--ease-out) 0.55s both;
}

.hero .claim {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: 1.12rem;
  color: var(--ink-soft);
  animation: rise 0.7s var(--ease-out) 0.75s both;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  animation: rise 0.7s var(--ease-out) 0.9s both;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out),
              background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(29, 28, 28, 0.18);
}

.btn:active { transform: translateY(0); }

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover { background: #000; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover { background: var(--paper-dim); }

/* --- Sektionen --------------------------------------------------------------- */

section { padding: 44px 0; }

.section-dim { background: var(--paper-dim); }

h2 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.section-lead {
  margin: 0 0 26px;
  color: var(--ink-soft);
  max-width: 640px;
}

/* --- Scroll-Reveal (nur mit JS aktiv) ----------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* --- Leistungen ----------------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--paper);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              border-color 0.25s ease;
}

.service:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(29, 28, 28, 0.10);
}

.service h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
}

.service p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.service-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-color: var(--ink);
}

.service-link:hover { border-color: var(--ink); }

.service-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--ink);
}

/* --- Brandschaden-Teaser (dunkle Sektion) -------------------------------------------- */

.section-ink {
  background: var(--ink);
  color: var(--paper);
}

.section-ink h2 { color: var(--paper); }

.section-ink .section-lead {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
}

.brand-teaser {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: center;
}

.brand-teaser-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  text-align: center;
}

.btn-paper:hover { background: var(--paper-dim); }

.btn-ghost-paper {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
  text-align: center;
}

.btn-ghost-paper:hover { background: rgba(255, 255, 255, 0.1); }

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px;
  height: 14px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

/* --- Unterseite Brandschadensanierung ------------------------------------------------ */

.page-hero {
  padding: 52px 0 40px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  max-width: 760px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.page-hero .claim {
  margin: 18px 0 0;
  max-width: 640px;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.page-hero .cta-row {
  justify-content: flex-start;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  counter-increment: step;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  background: var(--paper);
}

.step::before {
  content: counter(step);
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.two-col h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
}

.two-col ul {
  margin: 0;
  padding-left: 18px;
}

.two-col li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.note {
  margin-top: 26px;
  padding: 14px 18px;
  border-left: 3px solid var(--ink);
  background: var(--paper);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.note p { margin: 0; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-soft);
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  max-width: 720px;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

/* --- Einblicke: Galerie + Vorher/Nachher-Regler ------------------------------------ */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gallery figure {
  margin: 0;
}

.gallery figure > img,
.ba-slider {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.gallery figure > img {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.gallery figure > img:hover {
  transform: scale(1.015);
  box-shadow: 0 16px 40px rgba(29, 28, 28, 0.14);
}

.gallery figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.ba-slider {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.ba-slider img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.ba-before-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.ba-label {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(29, 28, 28, 0.72);
  color: var(--paper);
  pointer-events: none;
}

.ba-label-l { left: 12px; }
.ba-label-r { right: 12px; }

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: none;
}

@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr; }
}

/* --- Stellenanzeige ---------------------------------------------------------------- */

.job {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 26px 28px;
  transition: box-shadow 0.3s var(--ease-out);
}

.job:hover { box-shadow: 0 18px 44px rgba(29, 28, 28, 0.12); }

.job header h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.job .meta {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.job .meta li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--paper-dim);
}

.job-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.job-cols h4 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.job-cols ul {
  margin: 0;
  padding-left: 18px;
}

.job-cols li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.job-apply {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.job-apply p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* --- Kontakt -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--paper);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(29, 28, 28, 0.09);
}

.contact-card h3 {
  margin: 0 0 4px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.contact-card p,
.contact-card address {
  margin: 0;
  font-style: normal;
  font-size: 1.02rem;
  font-weight: 600;
}

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

.contact-card .hint {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
}

/* --- Fußzeile ----------------------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

footer nav {
  display: flex;
  gap: 18px;
}

footer a { color: inherit; }

/* --- Unterseiten (Impressum / Datenschutz) -------------------------------------------------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 24px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 30px 0 8px;
}

.legal p, .legal address {
  margin: 0 0 12px;
  font-style: normal;
  color: var(--ink-soft);
}

.legal strong { color: var(--ink); }

.legal a { color: var(--ink); }

/* --- Responsiv --------------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .services, .job-cols, .contact-grid, .steps { grid-template-columns: 1fr 1fr; }
  .brand-teaser { grid-template-columns: 1fr; }
  .brand-teaser-cta { flex-direction: row; flex-wrap: wrap; }
  .two-col { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .services, .job-cols, .contact-grid, .steps { grid-template-columns: 1fr; }
  .brand-teaser-cta { flex-direction: column; }
  .topbar nav { display: none; }
  section { padding: 36px 0; }
  .job { padding: 22px 20px; }
  .btn { width: 100%; text-align: center; }
  .cta-row { flex-direction: column; }
}

/* --- Reduzierte Bewegung: alles statisch, alles sichtbar ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* >>> brandschaden-bilder v1 <<< */
/* Kopfbereich mit Bild (Brandschadensanierung) */
.page-hero--bild {
  position: relative;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.page-hero--bild .page-hero-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.55;
  z-index: -1;
  transform: scale(1.02);
}
.page-hero--bild::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(29,28,28,0.15) 0%, rgba(29,28,28,0.55) 55%, rgba(29,28,28,0.92) 100%);
}
.page-hero--bild .page-hero-inhalt {
  padding: 96px 0 64px;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.page-hero--bild .eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.page-hero--bild h1 { color: var(--paper); }
.page-hero--bild .claim { color: rgba(255,255,255,0.86); }

/* Bildstrecke im Ablauf */
.bildstrecke {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.bildstrecke figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.bildstrecke img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.bildstrecke figure:hover img { filter: grayscale(0); transform: scale(1.02); }
.bildstrecke figcaption {
  padding: 14px 16px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.bildstrecke figcaption strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* Vorher / Nachher */
.vergleich {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.vergleich figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.vergleich img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.vergleich figure:first-child img { filter: grayscale(1) contrast(1.05); }
.vergleich figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 18px 16px;
  font-size: 0.92rem;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
}
.vergleich .tag {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
}
.vergleich-hinweis {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
}

/* Bildnachweise */
.bildnachweis { padding: 28px 0; border-top: 1px solid var(--line); }
.bildnachweis h2 { font-size: 0.95rem; margin-bottom: 8px; }
.bildnachweis p { margin: 0; font-size: 0.78rem; line-height: 1.6; color: var(--ink-soft); }
.bildnachweis a { color: var(--ink-soft); text-decoration: underline; }

@media (max-width: 860px) {
  .bildstrecke { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .page-hero--bild .page-hero-inhalt { padding: 72px 0 40px; min-height: 56vh; }
  .bildstrecke, .vergleich { grid-template-columns: 1fr; }
  .bildstrecke img { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .bildstrecke img, .bildstrecke figure:hover img { transition: none; transform: none; }
}
/* <<< brandschaden-bilder v1 <<< */
