/* RST Works – Dachseite rstworks.ch (Entwurf 30.11.2026)
   Farben laut Logo-Familie: hell #111111 / #C40014 / #55595F, dunkel #FFFFFF / #E5141F / #B9B9B9.
   Schrift: Inter, liegt im Ordner fonts (keine Anfrage an Google). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #111111;
  --red: #C40014;
  --grey: #55595F;
  --paper: #FFFFFF;
  --soft: #F5F5F4;
  --line: #E2E2E0;
  --d-ink: #FFFFFF;
  --d-red: #E5141F;
  --d-grey: #B9B9B9;
  --d-bg: #111111;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 6vw, 54px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.kicker { font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--grey); max-width: 680px; }
.muted { color: var(--grey); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Platzhalter: soll auffallen, solange etwas fehlt */
.offen {
  background: #FFF3C4;
  color: #5A4500;
  border: 1px dashed #B88A00;
  border-radius: 3px;
  padding: 0 .3em;
  font-weight: 600;
}
.offen-box { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 260px; padding: 20px; border-radius: 6px; }

/* Entwurfs-Hinweis (Einstellung «entwurf» in einstellungen.js) */
.draft-bar { background: #FFF3C4; color: #5A4500; font-size: 14px; text-align: center; padding: 6px 16px; border-bottom: 1px solid #E8D58A; }

/* Kopf */
header.top { border-bottom: 1px solid var(--line); background: var(--paper); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand img { height: 56px; width: auto; }
header.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
header.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
header.top nav a:hover { color: var(--red); }

/* Abschnitte */
section { padding: clamp(56px, 9vw, 104px) 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding-top: clamp(56px, 10vw, 120px); }
.hero h1 { max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--red); }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about .photo { margin: 0; }
.about .photo img { width: 250px; max-width: 100%; border-radius: 8px; }
.career { list-style: none; padding: 0; margin: 4px 0 1.4em; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 24px; }
.career li { padding-left: 18px; position: relative; }
.career li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 2px; background: var(--red); }
blockquote.core { margin: 1.6em 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); font-size: 19px; font-weight: 600; }

/* Sparten als aufklappbare Kacheln */
.tiles { display: grid; gap: 18px; margin-top: 28px; }
details.tile { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
details.tile[open] { border-color: #CFCFCC; box-shadow: 0 6px 24px rgba(17, 17, 17, .06); }
details.tile > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 22px 24px;
}
details.tile > summary::-webkit-details-marker { display: none; }
.tile-head img { height: 54px; width: auto; margin-bottom: 8px; }
.tile-head p { margin: 0; color: var(--grey); }
.tile-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; flex: none; transition: background .2s;
}
.tile-toggle::before, .tile-toggle::after { content: ""; grid-area: 1 / 1; width: 14px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .2s; }
.tile-toggle::after { transform: rotate(90deg); }
details.tile[open] .tile-toggle::after { transform: rotate(0deg); }
details.tile > summary:hover .tile-toggle { background: var(--soft); }
.tile-body { padding: 0 24px 26px; border-top: 1px solid var(--line); }
.tile-body > p:first-child { margin-top: 22px; }

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 22px; }
.product { border: 1px solid var(--line); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; }
.product img { height: 40px; width: auto; max-width: 100%; align-self: flex-start; object-fit: contain; margin-bottom: 14px; }
.product p { flex: 1; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 22px; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 64px; background: var(--soft); border-radius: 6px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; }

/* Kontakt (dunkel) */
.dark { background: var(--d-bg); color: var(--d-ink); }
.dark .kicker { color: var(--d-red); }
.dark .muted, .dark .lead { color: var(--d-grey); }
.dark a { color: var(--d-ink); }
.mail-big { display: inline-block; font-size: clamp(22px, 4vw, 34px); font-weight: 700; color: var(--d-ink); text-decoration-color: var(--d-red); text-decoration-thickness: 3px; word-break: break-word; }
.tel-big { font-size: clamp(18px, 3vw, 24px); font-weight: 600; color: var(--d-ink); text-decoration-color: var(--d-red); }
.btn { display: inline-block; padding: 13px 22px; border-radius: 4px; font-weight: 600; text-decoration: none; background: var(--red); color: #fff; }
.btn:hover { background: #A30011; }

/* Fuss */
footer.bottom { background: var(--d-bg); color: var(--d-grey); border-top: 1px solid #2A2A2A; padding: 34px 0; font-size: 15px; }
footer.bottom .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer.bottom img { height: 38px; width: auto; }
footer.bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.bottom a { color: var(--d-ink); text-decoration: none; }
footer.bottom a:hover { color: var(--d-red); }

/* Unterseiten (Impressum, Datenschutz, Insight) */
.page { padding: clamp(44px, 8vw, 88px) 0; }
.page .wrap { max-width: 820px; }
.page h2 { font-size: 22px; margin-top: 1.8em; }
.page dl { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 8px 20px; margin: 0 0 1em; }
.page dt { font-weight: 600; }
.page dd { margin: 0; }
.back { display: inline-block; margin-bottom: 26px; font-weight: 600; text-decoration: none; }
.back::before { content: "← "; }

/* Handy */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .about { grid-template-columns: 1fr; }
  .about .photo { order: -1; }
  .about .photo img { width: 160px; }
  header.top .wrap { justify-content: center; }
  header.top nav { justify-content: center; gap: 18px; }
  .brand img { height: 40px; }
  details.tile > summary { padding: 18px; }
  .tile-body { padding: 0 18px 22px; }
  .tile-head img { height: 44px; }
  .page dl { grid-template-columns: 1fr; gap: 2px; }
  .page dd { margin-bottom: 10px; }
  footer.bottom .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile-toggle, .tile-toggle::after { transition: none; }
}
