/* ============================================================
   Rychener Expo — Projektportal
   Farbwelt nach Handbuch-Layout: dunkelgrüne Karten, Olive-Akzent,
   schwarze Terminkarten. Tokens zentral — Feinabstimmung auf
   rychener-expo.ch folgt in Etappe 2.
   ============================================================ */
:root {
  --bg: #f6f5f0;
  --ink: #1d211c;
  --ink-muted: #6b6f66;
  --card: #333b2f;          /* dunkelgrüne Karte */
  --card-ink: #f2f3ee;
  --card-ink-muted: #c4c9bb;
  --accent: #a5b27e;        /* Olive */
  --accent-ink: #2a2f26;    /* Text AUF Olive (Kontrast!) */
  --dark: #101210;          /* schwarze Terminkarte */
  --ok: #4d7c4f;
  --warn: #a3712a;
  --line: #dcdad0;
  --radius: 14px;
  --shell: 72rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; font-weight: 650; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .75rem; font-weight: 600; color: var(--ink-muted);
}
.muted { color: var(--ink-muted); }
.small { font-size: .875rem; }
.mono { font-family: Consolas, monospace; font-size: .82rem; word-break: break-all; }
.fineprint { font-size: .8rem; color: var(--ink-muted); margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero { background: var(--card); color: var(--card-ink); padding: 2.5rem 0 2.25rem; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: .35rem; }
.hero-subtitle { color: var(--card-ink-muted); max-width: 46rem; margin-top: .5rem; }
.hero-meta { margin-top: .75rem; color: var(--card-ink-muted); }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; }
.logout { color: var(--card-ink-muted); font-size: .85rem; text-decoration: none; }
.logout:hover { color: var(--card-ink); }
.hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.chip {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding: .35rem .9rem; font-size: .85rem;
}
.chip-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hero-slim { background: none; color: var(--ink); padding: 2rem 0 1rem; }
.hero-slim .eyebrow { color: var(--ink-muted); }

/* ---------- Blöcke ---------- */
main.shell { padding-top: 2.5rem; padding-bottom: 3rem; }
.block { margin-bottom: 2.25rem; }
.block-title { font-size: 1.35rem; margin-bottom: 1rem; }
.block-sub {
  display: block; font-size: .85rem; font-weight: 400;
  color: var(--ink-muted); margin-top: .25rem; max-width: 46rem;
}

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: .75rem; }
.card-head h2 { font-size: 1.15rem; }
.card-head h3 { font-size: 1rem; }
.card.is-locked { background: #eeede6; border-style: dashed; color: var(--ink-muted); }
.card.is-locked h2 { color: var(--ink-muted); }

.mini-title {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-muted); margin: 1rem 0 .3rem;
}
.mini-title:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.plain-list { list-style: none; }
.plain-list li { padding: .25rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.spec-text { white-space: normal; }
.spec-text.small { font-size: .875rem; }

/* ---------- Badges ---------- */
.badge {
  flex-shrink: 0; border-radius: 999px; padding: .2rem .7rem;
  font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.badge.ok { background: #e3ecdd; color: var(--ok); }
.badge.warn { background: #f3e8d3; color: var(--warn); }
.badge.muted { background: #e8e7e0; color: var(--ink-muted); }

/* ---------- Roadmap (kompakte Zeile) ---------- */
.block-roadmap { margin-bottom: 1.75rem; }
.roadmap-line {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
}
.roadmap-line li {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .28rem .8rem; font-size: .78rem; font-weight: 600; cursor: default;
}
.rl-num { color: var(--ink-muted); font-weight: 700; }
.roadmap-line li.is-done { opacity: .5; }
.roadmap-line li.is-done .rl-num::after { content: " ✓"; color: var(--ok); }
.roadmap-line li.is-current { background: var(--card); border-color: var(--card); color: #fff; }
.roadmap-line li.is-current .rl-num { color: var(--accent); }

/* ---------- Meilensteine ---------- */
.milestones { display: grid; gap: .75rem; }
.ms-row { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: .75rem; }
.ms-card {
  background: var(--card); color: var(--card-ink);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.ms-card h3 { color: var(--accent); font-size: 1.05rem; margin-bottom: .4rem; }
.ms-card p { font-size: .9rem; }
.ms-note { color: var(--card-ink-muted); font-size: .8rem !important; margin-top: .6rem; }
.ms-date {
  background: var(--dark); color: #fff; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; padding: 1rem;
}
.ms-date span { color: var(--accent); font-weight: 600; }
.ms-date strong { font-size: 1.25rem; }
.ms-date em { font-style: normal; font-size: .8rem; color: var(--card-ink-muted); }
.ms-row.is-done { opacity: .6; }

/* ---------- Visualisierungen / Möbel ---------- */
.visual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.visual { display: flex; flex-direction: column; gap: .5rem; }
.visual-img {
  background: #eceae2; border-radius: 10px; min-height: 180px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.visual-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { color: var(--ink-muted); font-size: .85rem; }
.question {
  background: #f3e8d3; border-radius: 10px; padding: .6rem .9rem;
  font-size: .875rem; color: var(--warn);
}
.answer {
  background: #e3ecdd; border-radius: 10px; padding: .6rem .9rem;
  font-size: .875rem; color: var(--ok);
}

/* ---------- Kategorie-Kacheln (Übersicht) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile {
  display: flex; flex-direction: column; gap: .35rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.tile:hover {
  transform: translateY(-2px); border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(29, 33, 28, .08);
}
.tile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .25rem; }
.tile-icon { font-size: 1.5rem; }
.tile h3 { font-size: 1.05rem; }
.tile p { font-size: .85rem; color: var(--ink-muted); }
.tile-foot { margin-top: auto; padding-top: .75rem; font-size: .82rem; font-weight: 600; color: var(--ink); }
a.tile .tile-foot { color: #5a6547; }
.tile.is-locked { background: #eeede6; border-style: dashed; }
.tile.is-locked h3 { color: var(--ink-muted); }

/* ---------- Kategorie-Seiten ---------- */
.cat-bar { background: var(--card); color: var(--card-ink); }
.cat-bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding-top: .8rem; padding-bottom: .8rem;
}
.cat-bar .back { color: var(--accent); text-decoration: none; font-weight: 600; font-size: .9rem; }
.cat-bar .back:hover { text-decoration: underline; }
.cat-project { font-size: .85rem; color: var(--card-ink-muted); }
.cat-title-wrap { padding-top: 2rem; }
.cat-title { font-size: clamp(1.5rem, 3vw, 2rem); }
main.shell { min-height: 55vh; }

/* ---------- Tabellen / Listen ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.doc-list { list-style: none; }
.doc-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .75rem; align-items: baseline; }
.doc-list li:last-child { border-bottom: 0; }
.doc-list a { font-weight: 600; text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact h3 { margin-top: .3rem; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* ---------- Buttons / Formulare ---------- */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 999px; padding: .65rem 1.5rem;
  font-size: .95rem; font-weight: 650; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: none; border: 1px solid var(--line); color: var(--ink); }
label { display: block; font-size: .85rem; font-weight: 600; margin: 1rem 0 .3rem; }
input[type="password"], input[type="email"], input[type="text"] {
  width: 100%; padding: .6rem .8rem; border: 1px solid var(--line);
  border-radius: 8px; font-size: 1rem; background: #fff;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form .btn { margin-top: 1.25rem; }
.form-error {
  background: #f6e4e0; color: #8a3a2c; border-radius: 8px;
  padding: .6rem .9rem; font-size: .875rem; margin-top: 1rem;
}

/* ---------- Auth-Seiten ---------- */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.25rem 2.25rem 2rem; max-width: 26rem; width: 100%;
}
.auth-card h1 { margin: .3rem 0 .75rem; }
.auth-card .muted { font-size: .9rem; margin-bottom: .5rem; }
.theme-auth { background: var(--card); }
.theme-auth .site-footer { color: var(--card-ink-muted); }

/* ---------- Check-Listen (Checkpoints, Notizen, Aktuelles) ---------- */
.check-list { list-style: none; margin-bottom: .75rem; }
.check-list li { padding: .3rem 0; display: flex; gap: .5rem; align-items: baseline; }
.check-list li.is-done { color: var(--ink-muted); text-decoration: line-through; }
.check-mark { color: var(--ok); font-weight: 700; flex-shrink: 0; }
.check-list li:not(.is-done) .check-mark { color: var(--warn); }

/* ---------- Admin ---------- */
.admin-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin: .75rem 0 0; }
.admin-nav a {
  font-size: .78rem; font-weight: 600; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem;
}
.admin-nav a:hover { border-color: var(--accent); }
.admin-nav a.is-active { background: var(--card); border-color: var(--card); color: #fff; }
.nav-dot {
  display: inline-block; background: #c2410c; color: #fff; border-radius: 999px;
  padding: 0 .35rem; font-size: .68rem; margin-left: .2rem; vertical-align: text-top;
}
.admin .card { margin-bottom: 1.5rem; }
.admin-form label { margin-top: .8rem; }
.admin-form textarea, .admin select {
  width: 100%; padding: .55rem .8rem; border: 1px solid var(--line);
  border-radius: 8px; font-size: .95rem; font-family: inherit; background: #fff;
}
.admin select { width: auto; }
.inline-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
.inline-form input[type="text"] { min-width: 12rem; }
.row-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.row-form:last-of-type { border-bottom: 0; }
.row-form input[type="text"], .row-form input[type="email"], .row-form input[type="date"], .row-form input[type="number"] {
  width: auto; min-width: 6rem; padding: .45rem .6rem; font-size: .88rem;
}
.row-form select { font-size: .88rem; padding: .45rem .5rem; }
.row-form-new { background: #f4f3ec; border-radius: 8px; padding: .6rem .8rem; margin-top: .75rem; border-bottom: 0; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.checkbox-inline { display: inline-flex; gap: .35rem; align-items: center; font-size: .85rem; font-weight: 600; margin: 0; white-space: nowrap; }
.inline { display: inline; }
.check-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 50%;
  width: 1.7rem; height: 1.7rem; cursor: pointer; font-weight: 700; color: var(--warn);
}
.note-list li.is-done .check-btn { color: var(--ok); }
.chip-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .2rem .7rem; font-size: .75rem; font-weight: 600; cursor: pointer; color: var(--ink-muted);
}
.chip-btn.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.del-btn {
  border: 0; background: none; color: #a04030; font-size: 1.1rem;
  cursor: pointer; padding: 0 .4rem; font-weight: 700;
}
.note-list { list-style: none; margin-top: .75rem; }
.note-list li { display: flex; gap: .6rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.note-list li:last-child { border-bottom: 0; }
.note-list li.is-done .note-body { text-decoration: line-through; color: var(--ink-muted); }
.note-body { flex: 1; }
.item-form { display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.item-form:last-of-type { border-bottom: 0; }
.item-thumb {
  width: 90px; height: 68px; flex-shrink: 0; background: #eceae2; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-fields { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.item-fields textarea { font-size: .88rem; }
.item-fields .row-form { border-bottom: 0; padding: 0; }
tr.is-archived { opacity: .5; }
.card-internal { border-left: 4px solid #a04030; }
.card-highlight { border-left: 4px solid var(--accent); box-shadow: 0 4px 16px rgba(29,33,28,.06); }
.phase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .8rem; margin-top: .3rem; }
.phase-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.phase-label { font-size: .82rem; font-weight: 600; }
.phase-row select { font-size: .8rem; padding: .25rem .4rem; }

/* ---------- Druckdaten-Vorschau ---------- */
.druck-thumb {
  position: relative; display: block; width: 96px; height: 68px;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: #fff; margin-bottom: .35rem; flex-shrink: 0;
}
.druck-thumb img { width: 100%; height: 100%; object-fit: cover; }
.druck-thumb iframe { width: 300%; height: 300%; border: 0; transform: scale(.333); transform-origin: 0 0; pointer-events: none; }
.druck-overlay { position: absolute; inset: 0; }   /* Klick landet auf dem Link, nicht im PDF */
.druck-thumb:hover { border-color: var(--accent); }

/* ---------- Katalog-Auswahl ---------- */
.katalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.katalog-karte { display: flex; flex-direction: column; gap: .3rem; padding: .9rem; }
.katalog-karte h3 { font-size: .92rem; }
.katalog-karte.ist-gewaehlt { border-color: var(--accent); background: #f7f9f2; }
.katalog-bild {
  position: relative; background: #eceae2; border-radius: 8px;
  aspect-ratio: 4/3; overflow: hidden; display: flex;
  align-items: center; justify-content: center; margin-bottom: .3rem;
}
.katalog-bild img { width: 100%; height: 100%; object-fit: cover; }
.katalog-anzahl {
  position: absolute; top: .35rem; right: .35rem;
  background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  padding: .1rem .55rem; font-size: .78rem; font-weight: 700;
}
.katalog-karte .inline-form { margin-top: auto; }
@media (max-width: 1000px) { .katalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .katalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .katalog-grid { grid-template-columns: 1fr; } }

/* ---------- Beta-Hinweis ---------- */
.beta-band {
  background: #3d3a2a; color: #f0ecd8; font-size: .82rem;
  padding: .5rem 1.25rem; display: flex; gap: .6rem;
  align-items: center; justify-content: center; flex-wrap: wrap; text-align: center;
}
.beta-tag {
  background: #d9a441; color: #2a2410; font-weight: 700;
  border-radius: 999px; padding: .05rem .6rem; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase; flex-shrink: 0;
}
.beta-band a { color: #e8d9a8; }
.beta-band strong { color: #fff; font-weight: 650; }

/* ---------- Benachrichtigungen ---------- */
.card-neu { border-left: 4px solid #c2410c; background: #fdf6f2; }
.feedback-box { border-left: 4px solid #c2410c; background: #fdf6f2; }
.feedback-liste { list-style: none; }
.feedback-liste li {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.feedback-liste li:last-child { border-bottom: 0; }
.fb-icon { flex-shrink: 0; font-size: 1.05rem; }
.fb-thumb {
  position: relative; width: 74px; height: 56px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden; background: #eceae2;
}
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-feedback { margin: .35rem 0 0; font-size: .82rem; color: #8a3a1c; }
.proj-feedback li { margin-bottom: .15rem; }

/* ---------- Bild-Kommentare (Pins) ---------- */
.annot-wrap { position: relative; }
.annot-wrap.annot-aktiv { cursor: crosshair; outline: 3px dashed var(--accent); outline-offset: -3px; }
.annot-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: #c2410c; color: #fff; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.4);
  cursor: help; z-index: 2;
}
.annot-pin.is-resolved { background: var(--ok); }
.annot-pin-neu { background: var(--accent); color: var(--accent-ink); animation: pin-puls 1.2s ease-in-out infinite; }
@keyframes pin-puls { 50% { transform: translate(-50%, -50%) scale(1.18); } }
.annot-list { list-style: none; margin-top: .5rem; counter-reset: none; }
.annot-list li { display: flex; gap: .5rem; align-items: flex-start; padding: .35rem 0; font-size: .875rem; }
.annot-list li.is-resolved { opacity: .6; }
.annot-nr {
  flex-shrink: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: #c2410c; color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: .72rem; font-weight: 700;
}
.annot-list li.is-resolved .annot-nr { background: var(--ok); }
.annot-text { flex: 1; }
.annot-reply {
  display: block; margin-top: .2rem; padding-left: .5rem;
  border-left: 2px solid var(--accent); color: var(--ink-muted); font-size: .84rem;
}
.annot-form textarea {
  width: 100%; padding: .55rem .8rem; border: 1px solid var(--line);
  border-radius: 8px; font-family: inherit; font-size: .9rem;
}
.annot-hint { margin: .3rem 0; }
.annot-admin {
  background: #f8f7f1; border-radius: 8px; padding: .5rem .8rem;
  margin: 0 0 .8rem 6.4rem; border-left: 3px solid #c2410c;
}
.annot-admin .row-form { border-bottom: 1px solid var(--line); }
.annot-admin .row-form:last-child { border-bottom: 0; }
.annot-admin .row-form.is-erledigt { opacity: .55; }
.item-thumb.annot-wrap { position: relative; }

/* ---------- Gruppen-Kopf (Visualisierungen) ---------- */
.group-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
  padding-bottom: .75rem; border-bottom: 2px solid var(--line);
}

/* ---------- Erklärkasten je Kategorie ---------- */
.hilfe-box {
  background: #eef1e6; border-left: 4px solid var(--accent);
  border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1.5rem;
}
.hilfe-box h2 { font-size: .95rem; margin-bottom: .35rem; }
.hilfe-box p, .hilfe-box li { font-size: .875rem; color: #4a5140; }
.hilfe-box ul { margin: .4rem 0 0 1.1rem; }
.hilfe-box li { margin-bottom: .2rem; }

/* ---------- Zugangsdaten (Admin) ---------- */
.credentials { display: grid; gap: .6rem; margin-bottom: .9rem; }
.cred-label {
  display: block; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-muted); margin-bottom: .15rem;
}
.cred-value {
  display: inline-block; background: #f4f3ec; border: 1px solid var(--line);
  border-radius: 8px; padding: .45rem .8rem; font-family: Consolas, monospace;
  font-size: 1rem; font-weight: 600; user-select: all;
}

/* ---------- Kurz-Einführung (Tour) ---------- */
.tour-overlay {
  position: fixed; inset: 0; background: rgba(16, 18, 16, .72);
  z-index: 900; display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; animation: tour-fade .2s ease;
}
/* Box weicht dem hervorgehobenen Element aus */
.tour-overlay.pos-unten { align-items: flex-end; }
.tour-overlay.pos-oben { align-items: flex-start; }
@keyframes tour-fade { from { opacity: 0; } to { opacity: 1; } }
.tour-box {
  background: #fff; border-radius: var(--radius); padding: 1.5rem 1.6rem;
  max-width: 30rem; width: 100%; box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  transition: margin .2s ease;
}
.tour-overlay.pos-unten .tour-box { margin-bottom: 1rem; }
.tour-overlay.pos-oben .tour-box { margin-top: 1rem; }
.tour-box h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.tour-box p { font-size: .92rem; color: var(--ink-muted); }
.tour-step {
  font-size: .72rem !important; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent-ink) !important; font-weight: 700; margin-bottom: .3rem;
}
.tour-actions { display: flex; gap: .6rem; align-items: center; margin-top: 1.2rem; }
.tour-actions .tour-next { margin-left: auto; }
.tour-skip {
  background: none; border: 0; color: var(--ink-muted);
  font-size: .85rem; cursor: pointer; text-decoration: underline;
}
.tour-highlight {
  position: relative; z-index: 901; border-radius: var(--radius);
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 12px rgba(165, 178, 126, .3);
}
body.tour-aktiv { overflow: hidden; }
.tour-box p { line-height: 1.6; }

/* ---------- PDF-Vorschau ---------- */
.pdf-preview {
  width: 100%; height: 34rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; margin-top: .75rem;
}
.preview-details { margin-top: .75rem; }
.preview-details summary {
  cursor: pointer; font-weight: 600; font-size: .9rem; color: #5a6547;
  padding: .4rem 0;
}

/* ---------- Druck-Datenblatt ---------- */
.sheet-head { margin: 1rem 0 1.5rem; }
.sheet-table { max-width: 34rem; margin-bottom: 1.5rem; }
.sheet-table td { padding: .5rem .75rem; }
@media print {
  .no-print, .site-footer { display: none !important; }
  body { background: #fff; }
  .shell { max-width: none; padding: 0; }
}
input[type="file"] { font-size: .8rem; max-width: 14rem; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 2rem 1rem; font-size: .8rem; color: var(--ink-muted); }
.site-footer a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .ms-row { grid-template-columns: 1fr; }
  .visual-grid, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .cat-bar-inner { flex-wrap: wrap; }
  .item-form { flex-direction: column; }
  .item-thumb { width: 100%; height: 140px; }
}
@media (max-width: 520px) {
  .tiles, .phase-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .pdf-preview { height: 24rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
