/* Ringen Haus- und Betriebstechnik – statisch, ohne Build.
   Farben aus dem Logo: Rot #e30613, Grau #807e7d / #3c3c3b. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --papier: #f5f3ef;
  --weiss: #ffffff;
  --tinte: #1e1f20;
  --grau: #5a5a58;
  --linie: #dcd8d1;
  --rot: #e30613;
  --rot-text: #c10510;
  --nacht: #232426;
  --nacht-2: #2e2f31;
  --radius: 14px;
  --breite: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot-text); }
a:hover { color: var(--rot); }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.innen { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rot-text);
}
.label::before { content: ""; width: 26px; height: 3px; background: var(--rot); border-radius: 2px; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--rot); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: background .15s;
}
.knopf:hover { background: #b8040f; color: #fff; }
.knopf svg { width: 19px; height: 19px; flex: none; }
.knopf.zweit { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 2px var(--tinte); }
.knopf.zweit:hover { background: var(--tinte); color: #fff; }

/* ------------------------------------------------------------ Leiste oben */
.leiste { background: var(--nacht); color: #d9d7d3; font-size: 14px; }
.leiste .innen { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.leiste a { color: #fff; text-decoration: none; font-weight: 700; }
.leiste a:hover { color: #fff; text-decoration: underline; }
.leiste { background: var(--rot); color: #fff; }
.leiste .innen { align-items: center; }
.leiste .gesucht { font-size: 16px; letter-spacing: .01em; }
.leiste .gesucht b { font-weight: 850; font-stretch: 112%; text-transform: uppercase; margin-right: 6px; }
.leiste .gesucht span { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.leiste .zeiten { color: #ffe3e5; }

/* ------------------------------------------------------------------ Kopf */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--linie);
}
.kopf .innen { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.marke { flex: none; display: block; }
.marke img { width: 170px; }
.menue { display: flex; gap: 4px; }
.menue a {
  padding: 10px 14px; border-radius: 8px;
  color: var(--tinte); text-decoration: none; font-weight: 600; font-size: 16px;
}
.menue a:hover { background: var(--papier); color: var(--rot-text); }
.kopf-rechts { display: flex; align-items: center; gap: 10px; }
.menue-knopf {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 10px;
  background: var(--papier); color: var(--tinte); cursor: pointer;
}
.menue-knopf svg { width: 24px; height: 24px; margin: auto; }
.menue-knopf .zu { display: none; }

@media (max-width: 980px) {
  .menue-knopf { display: grid; }
  .menue {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 16px 18px;
    background: #fff; border-bottom: 1px solid var(--linie);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .08);
  }
  .menue a { padding: 14px 8px; border-bottom: 1px solid var(--papier); border-radius: 0; font-size: 18px; }
  .kopf.offen .menue { display: flex; }
  .kopf.offen .menue-knopf .auf { display: none; }
  .kopf.offen .menue-knopf .zu { display: block; }
}
@media (max-width: 560px) {
  .kopf .innen { min-height: 70px; }
  .marke img { width: 132px; }
  .kopf .knopf .text { display: none; }
  .kopf .knopf { width: 48px; padding: 0; }
  .leiste .zeiten { display: none; }
}

/* ---------------------------------------------------------------- Bühne */
.buehne { padding: clamp(40px, 7vw, 88px) 0 0; }
.buehne-text { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px 60px; align-items: end; }
.buehne h1 { font-size: clamp(38px, 6.4vw, 78px); font-stretch: 118%; font-weight: 850; letter-spacing: -0.02em; margin-top: 18px; }
.buehne h1 em { font-style: normal; color: var(--rot); }
.buehne .lead { font-size: 19px; color: var(--grau); }
.buehne .knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.buehne-bild { margin: clamp(32px, 5vw, 56px) 0 0; position: relative; }
.buehne-bild img { width: 100%; aspect-ratio: 1920 / 771; object-fit: cover; border-radius: var(--radius); }
.buehne-bild figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255, 255, 255, .92); border-radius: 8px;
  padding: 6px 12px; font-size: 14px; font-weight: 600;
}
.stoerer {
  position: absolute; right: 20px; top: 20px; max-width: 60%;
  background: var(--rot); color: #fff; text-decoration: none;
  padding: 14px 20px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-size: clamp(18px, 2.6vw, 30px); font-weight: 850; font-stretch: 115%; line-height: 1.1; text-transform: uppercase;
}
.stoerer small { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; text-transform: none; font-stretch: 100%; }
.stoerer:hover { background: #b8040f; color: #fff; }
.fakten {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 24px; background: var(--linie); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
}
.fakt { background: #fff; padding: 20px 22px; }
.fakt b { display: block; font-size: 26px; font-weight: 800; font-stretch: 115%; line-height: 1.15; }
.fakt span { color: var(--grau); font-size: 15px; }
@media (max-width: 860px) {
  .buehne-text { grid-template-columns: 1fr; }
  .fakten { grid-template-columns: repeat(2, 1fr); }
  .buehne-bild img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .fakt { padding: 16px; }
  .fakt b { font-size: 19px; font-stretch: 105%; hyphens: auto; }
  .fakt span { font-size: 14px; }
}

/* ------------------------------------------------------------ Abschnitte */
.abschnitt { padding: clamp(64px, 9vw, 112px) 0; scroll-margin-top: 70px; }
.abschnitt.weiss { background: #fff; }
.kopfzeile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 60px; align-items: end; margin-bottom: 44px; }
.kopfzeile h2 { margin-top: 14px; }
.kopfzeile p { color: var(--grau); margin: 0; }
@media (max-width: 860px) { .kopfzeile { grid-template-columns: 1fr; margin-bottom: 32px; } }

/* Leistungen */
.gewerke { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gewerk {
  background: var(--papier); border-radius: var(--radius); padding: 28px 24px 24px;
  border-top: 4px solid var(--rot);
}
.gewerk .symbol { width: 46px; height: 46px; color: var(--rot); margin-bottom: 18px; }
.gewerk h3 { margin-bottom: 14px; }
.gewerk ul { list-style: none; margin: 0; padding: 0; }
.gewerk li { padding: 7px 0 7px 22px; border-top: 1px solid var(--linie); position: relative; font-size: 16px; }
.gewerk li::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--grau);
}
.gewerk .weiteres { margin: 14px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.beratung {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  background: var(--nacht); color: #fff; border-radius: var(--radius); padding: 26px 30px;
}
.beratung p { margin: 0; font-size: 22px; font-weight: 700; font-stretch: 112%; }
@media (max-width: 1060px) { .gewerke { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gewerke { grid-template-columns: 1fr; } }

/* Referenzen */
.galerie { columns: 4 240px; column-gap: 14px; }
.galerie button {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: none;
  border-radius: 10px; overflow: hidden; cursor: zoom-in; break-inside: avoid; position: relative;
}
.galerie img { width: 100%; transition: transform .35s; }
.galerie button:hover img { transform: scale(1.03); }
.galerie .gewerk-schild {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(30, 31, 32, .82); color: #fff; font-size: 13px; font-weight: 600;
  padding: 3px 10px; border-radius: 6px;
}
.gross {
  border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh;
}
.gross::backdrop { background: rgba(15, 15, 16, .88); }
.gross img { max-width: 100%; max-height: 86vh; width: auto; border-radius: 8px; margin: 0 auto; }
.gross p { color: #fff; text-align: center; margin: 10px 0 0; }
.gross .schliessen {
  position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #fff; color: var(--tinte); font-size: 26px; line-height: 1; cursor: pointer;
}

/* Geschichte */
.geschichte { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; align-items: start; }
.geschichte figure { margin: 0; position: sticky; top: 110px; }
.geschichte figure img { border-radius: var(--radius); filter: grayscale(1) contrast(1.05); }
.geschichte figcaption { font-size: 14px; color: var(--grau); margin-top: 10px; }
.zeitleiste { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--linie); }
.zeitleiste li { position: relative; padding: 0 0 34px 30px; }
.zeitleiste li:last-child { padding-bottom: 0; }
.zeitleiste li::before {
  content: ""; position: absolute; left: -10px; top: 4px;
  width: 17px; height: 17px; border-radius: 50%; background: var(--papier); border: 3px solid var(--rot);
}
.zeitleiste b { display: block; font-size: 24px; font-weight: 800; font-stretch: 115%; color: var(--rot-text); line-height: 1.2; margin-bottom: 4px; }
.zeitleiste p { margin: 0; }
@media (max-width: 860px) {
  .geschichte { grid-template-columns: 1fr; }
  .geschichte figure { position: static; }
}

/* Team */
.teambild { margin: 0 0 28px; }
.teambild img { border-radius: var(--radius); width: 100%; }
.personen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person { display: flex; align-items: center; gap: 18px; background: var(--papier); border-radius: var(--radius); padding: 16px; }
.person img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; }
.person b { display: block; font-size: 19px; font-stretch: 110%; }
.person span { color: var(--grau); font-size: 15px; }
@media (max-width: 860px) { .personen { grid-template-columns: 1fr; } .person img { width: 72px; height: 72px; } }

/* Partner */
.partner { padding: 44px 0; border-top: 1px solid var(--linie); }
.partner .innen { display: flex; align-items: center; gap: 20px 48px; flex-wrap: wrap; justify-content: space-between; }
.partner h2 { font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); font-stretch: 100%; }
.logos { display: flex; align-items: center; gap: 28px 48px; flex-wrap: wrap; }
.logos img { height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* Jobs */
.jobs { background: var(--nacht); color: #e9e7e3; }
.jobs h2, .jobs h3 { color: #fff; }
.jobs .label { color: #ff6b73; }
.jobs .kopfzeile p { color: #bdbab5; }
.stellen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 36px; }
.stelle { background: var(--nacht-2); border-radius: var(--radius); padding: 24px; border-left: 4px solid var(--rot); }
.stelle small { display: block; color: #bdbab5; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.stelle h3 { font-size: 20px; hyphens: auto; overflow-wrap: break-word; }
.jobs-listen { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px 48px; align-items: start; }
.jobs-listen h3 { font-size: 18px; margin-bottom: 12px; }
.jobs-listen ul { margin: 0; padding: 0; list-style: none; }
.jobs-listen li { padding: 6px 0 6px 28px; position: relative; }
.jobs-listen li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 8px;
  border-left: 3px solid var(--rot); border-bottom: 3px solid var(--rot); transform: rotate(-45deg);
}
.bewerben { background: #fff; color: var(--tinte); border-radius: var(--radius); padding: 24px; min-width: 280px; }
.bewerben h3 { color: var(--tinte); }
.bewerben p { font-size: 15px; color: var(--grau); }
.bewerben .knopf { width: 100%; margin-top: 8px; }
@media (max-width: 1000px) { .jobs-listen { grid-template-columns: 1fr 1fr; } .bewerben { grid-column: 1 / -1; } }
@media (max-width: 760px) { .jobs-listen { grid-template-columns: 1fr; } }

/* Kontakt */
.kontakt-raster { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.karte { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.wege { display: grid; gap: 10px; margin-top: 22px; }
.weg {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px;
  background: var(--papier); color: var(--tinte); text-decoration: none; min-height: 64px;
}
a.weg:hover { background: #ece8e1; color: var(--tinte); }
.weg svg { width: 26px; height: 26px; color: var(--rot); flex: none; }
.weg small { display: block; font-size: 13px; color: var(--grau); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.weg b { font-size: 19px; font-stretch: 108%; overflow-wrap: anywhere; }
.weg.not { background: #fdecec; }
.adresse { font-style: normal; font-size: 18px; margin-top: 18px; }
.zeiten-tabelle { width: 100%; border-collapse: collapse; margin: 18px 0 22px; }
.zeiten-tabelle th, .zeiten-tabelle td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--linie); }
.zeiten-tabelle th { font-weight: 600; }
.zeiten-tabelle td { text-align: right; font-variant-numeric: tabular-nums; }
.hinweis { font-size: 15px; color: var(--grau); margin: 0; }
@media (max-width: 860px) { .kontakt-raster { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Fuß */
.fuss { background: var(--nacht); color: #bdbab5; padding: 56px 0 28px; font-size: 15px; }
.fuss .innen { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.fuss h4 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-stretch: 100%; margin-bottom: 12px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss a { color: #fff; text-decoration: none; display: inline-block; padding: 6px 0; min-height: 36px; }
.fuss a:hover { text-decoration: underline; color: #fff; }
.fuss .unten { grid-column: 1 / -1; border-top: 1px solid #3a3b3d; padding-top: 20px; margin-top: 12px; font-size: 14px; }
.fuss .marke-platte { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.fuss .marke-platte img { width: 150px; }
@media (max-width: 760px) { .fuss .innen { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- Rechtsseiten */
.recht { max-width: 800px; margin: 0 auto; padding: 56px 24px 88px; }
.recht h1 { font-size: clamp(32px, 5vw, 48px); margin: 14px 0 32px; font-stretch: 115%; }
.recht h2 { font-size: 22px; margin: 36px 0 12px; }
.recht ul { padding-left: 20px; }

/* ------------------------------------------------------------- Handy */
@media (max-width: 860px) {
  /* Störer nicht aufs Bild legen, sondern als rote Leiste direkt darunter */
  .buehne-bild img { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16 / 10; }
  .buehne-bild figcaption { display: none; }
  .stoerer {
    position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
    max-width: none; border-radius: 0 0 var(--radius) var(--radius); box-shadow: none;
    padding: 14px 18px; font-size: 20px;
  }
  .stoerer small { margin: 0; font-size: 15px; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 700px) {

  /* Referenzen zweispaltig als Quadrate, das volle Bild gibt es beim Antippen */
  .galerie { columns: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .galerie button { margin: 0; border-radius: 8px; aspect-ratio: 1; }
  .galerie img { width: 100%; height: 100%; object-fit: cover; }
  .galerie .gewerk-schild { left: 6px; bottom: 6px; font-size: 12px; padding: 2px 8px; }

  .gewerk { padding: 22px 18px 18px; }
  .gewerk .symbol { width: 36px; height: 36px; margin-bottom: 10px; }
  .abschnitt { padding: 56px 0; }
  .kopfzeile { margin-bottom: 24px; }

  .logos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; width: 100%; align-items: center; }
  .logos img { height: 36px; max-width: 100%; object-fit: contain; object-position: left center; }
  .stelle { padding: 16px 18px; }
  .stellen { gap: 10px; }
}
