/* AKIA – Komponenten */

/* Buttons */
.btn {
  --btn-bg: transparent; --btn-fg: var(--c-text); --btn-bd: var(--c-border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--hit); min-width: var(--hit); padding: 0 22px;
  border-radius: var(--r-control); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16.5px; border-radius: 16px; }
.btn-sm { min-height: var(--hit); padding: 0 16px; font-size: 15px; }
.btn-primary { --btn-bg: var(--grad-primary); --btn-fg: #fff; --btn-bd: rgba(140, 170, 255, 0.45); box-shadow: var(--glow-blue); background: var(--btn-bg); }
.btn-primary:hover { background: var(--c-primary-hover); color: #fff; box-shadow: 0 0 0 1px rgba(140, 170, 255, 0.5), 0 14px 44px -10px rgba(53, 88, 240, 0.8); }
.btn-primary:active { background: var(--c-primary-active); transform: translateY(1px); }
.btn-secondary { --btn-bg: rgba(255, 255, 255, 0.03); }
.btn-secondary:hover { --btn-bg: rgba(255, 255, 255, 0.08); border-color: rgba(160, 190, 255, 0.6); color: var(--c-text); }
.btn-secondary:active { transform: translateY(1px); --btn-bg: rgba(255, 255, 255, 0.12); }
.btn-ghost { --btn-bd: transparent; --btn-fg: var(--c-text-2); padding: 0 12px; }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.06); --btn-fg: var(--c-text); }
.btn-ghost:active { --btn-bg: rgba(255, 255, 255, 0.1); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-icon { padding: 0; width: var(--hit); }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn:hover .arrow { transform: none; } }

.motion-toggle .icon-play { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }

/* Karten */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 38, 63, 0.9) 0%, rgba(17, 30, 50, 0.9) 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: var(--s-4);
  box-shadow: var(--shadow-card);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px 120px at 20% 0%, rgba(92, 140, 255, 0.12), transparent 70%);
}
.card h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.card p { color: var(--c-text-2); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: var(--s-3);
  background: radial-gradient(circle at 30% 25%, rgba(92, 217, 255, 0.35), rgba(40, 72, 216, 0.25) 60%, rgba(40, 72, 216, 0.1));
  border: 1px solid var(--c-border-strong);
  color: #DCE6FF;
  box-shadow: 0 0 30px -6px rgba(40, 72, 216, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.card-icon svg { width: 28px; height: 28px; }
.card-link {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med), box-shadow var(--t-med);
}
.card-link:hover { color: inherit; border-color: var(--c-border-strong); transform: translateY(-3px); box-shadow: var(--shadow-card), 0 20px 50px -24px rgba(40, 72, 216, 0.7); }
.card-link:active { transform: translateY(-1px); }
.card-link .card-more {
  margin-top: auto; padding-top: var(--s-3); display: inline-flex; align-items: center; gap: 8px;
  color: var(--c-accent-text); font-weight: 650; font-size: 15px;
}
.card-link .card-more svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.card-link:hover .card-more svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .card-link:hover { transform: none; } .card-link:hover .card-more svg { transform: none; } }

/* Hero-Szene */
.scene-wrap {
  position: relative; aspect-ratio: 6 / 5; width: 100%;
  border-radius: 28px;
  isolation: isolate;
}
.scene-wrap::after {
  content: ""; position: absolute; inset: 8% 4% 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 72, 216, 0.35), transparent 75%);
  filter: blur(20px); pointer-events: none;
}
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%); transition: opacity 600ms var(--ease); cursor: default; }
.scene-wrap.is-3d .scene-canvas { opacity: 1; }
.scene-poster { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 400ms; pointer-events: none; }
.scene-wrap.is-3d .scene-poster { opacity: 0; }
.scene-canvas.is-hovering { cursor: pointer; }

.scene-labels { list-style: none; position: absolute; inset: 0; pointer-events: none; }
.scene-label {
  position: absolute; transform: translate(-50%, 0);
  pointer-events: auto;
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: var(--hit); min-width: 120px; padding: 8px 14px;
  background: rgba(7, 17, 31, 0.78);
  border: 1px solid var(--c-border-strong);
  border-radius: 14px;
  color: var(--c-text); text-decoration: none; text-align: center;
  font-size: 14.5px; font-weight: 700; line-height: 1.2;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.scene-label.is-above { transform: translate(-50%, -100%); }
.scene-label small { font-size: 12px; font-weight: 500; color: var(--c-text-2); }
.scene-label .step-no { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--c-cyan); }
.scene-label:hover, .scene-label.is-hot { border-color: var(--c-cyan); background: rgba(17, 30, 50, 0.95); color: var(--c-text); box-shadow: 0 0 0 1px rgba(92, 217, 255, 0.4), 0 10px 30px -10px rgba(92, 217, 255, 0.5); }
.scene-label.is-human { border-color: rgba(151, 117, 255, 0.7); }
.scene-label.is-human .step-no { color: #C3B0FF; }
/* Poster-Positionen (Fallback + Ausgangslage) */
.scene-label[data-step="idee"] { left: 17%; top: 64%; }
.scene-label[data-step="generierung"] { left: 39%; top: 44%; }
.scene-label[data-step="pruefung"] { left: 61%; top: 64%; }
.scene-label[data-step="planung"] { left: 83%; top: 44%; }
.scene-caption {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  font-size: 12.5px; color: var(--c-text-3); white-space: nowrap; pointer-events: none;
}
@media (max-width: 1023px) {
  .scene-wrap { aspect-ratio: 16 / 10; max-width: 760px; margin-inline: auto; }
}
@media (max-width: 599px) {
  .scene-wrap { aspect-ratio: auto; }
  .scene-wrap .scene-stage { position: relative; aspect-ratio: 4 / 3; }
  .scene-labels { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
  .scene-label { position: static !important; transform: none !important; min-width: 0; width: 100%; height: 100%; hyphens: auto; overflow-wrap: anywhere; }
  .scene-caption { position: static; transform: none; text-align: center; margin-top: 10px; white-space: normal; }
}
.scene-stage { position: absolute; inset: 0; }

/* Ablauf – Schrittleiste */
.steps-rail { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: var(--s-5); counter-reset: step; }
.steps-rail a {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px;
  border-radius: 18px; border: 1px solid var(--c-border); background: rgba(17, 30, 50, 0.6);
  text-decoration: none; color: var(--c-text); font-weight: 650; line-height: 1.25;
  transition: border-color var(--t-fast), background var(--t-fast);
  position: relative;
}
.steps-rail a:hover { border-color: var(--c-border-strong); background: rgba(22, 38, 63, 0.9); color: var(--c-text); }
.steps-rail a[aria-current="step"] { border-color: var(--c-cyan); background: rgba(22, 38, 63, 0.95); box-shadow: inset 0 -3px 0 var(--c-cyan); }
.steps-rail .num {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, #3558F0, #1F3BB8); border: 1px solid rgba(160, 190, 255, 0.4);
}
.steps-rail .is-human .num { background: linear-gradient(145deg, #8A6BFF, #5B3FD6); }
.steps-rail small { display: block; font-weight: 500; color: var(--c-text-2); font-size: 13px; }
.steps-rail li { position: relative; }
.steps-rail li:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 50%; width: 12px; height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), transparent); pointer-events: none;
}
@media (max-width: 1023px) {
  .steps-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-rail li:nth-child(2)::after { display: none; }
}
@media (max-width: 479px) {
  .steps-rail { grid-template-columns: 1fr; gap: 10px; }
  .steps-rail li::after { display: none; }
}

/* Akkordeon */
.step-details { display: grid; gap: 14px; }
.step {
  border: 1px solid var(--c-border); border-radius: var(--r-card);
  background: rgba(17, 30, 50, 0.72); overflow: hidden;
  transition: border-color var(--t-med);
}
.step[open] { border-color: var(--c-border-strong); background: linear-gradient(180deg, rgba(22, 38, 63, 0.95), rgba(17, 30, 50, 0.95)); }
.step > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  min-height: 72px; padding: 16px 24px;
  font-size: var(--fs-h3); font-weight: 700;
}
.step > summary { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.step > summary::-webkit-details-marker { display: none; }
.step > summary:hover { background: rgba(255, 255, 255, 0.03); }
.step > summary:focus-visible { outline-offset: -3px; border-radius: var(--r-card); }
.step .num { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; font-weight: 800; background: rgba(40, 72, 216, 0.35); border: 1px solid var(--c-border-strong); }
.step.is-human .num { background: rgba(151, 117, 255, 0.35); border-color: rgba(151, 117, 255, 0.6); }
.step .chev { margin-left: auto; width: 22px; height: 22px; transition: transform var(--t-med); color: var(--c-text-2); }
.step[open] .chev { transform: rotate(180deg); }
.step .state-label { font-size: 13px; font-weight: 600; color: var(--c-text-2); margin-left: auto; }
.step .state-label + .chev { margin-left: 8px; }
.step-body { padding: 0 24px 24px 76px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-4); }
.step-body p { color: var(--c-text-2); }
.step-body p + p { margin-top: 12px; }
.step-io { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.step-io li { padding: 12px 14px; border-radius: 14px; background: rgba(7, 17, 31, 0.55); border: 1px solid var(--c-border); color: var(--c-text-2); }
.step-io strong { display: block; color: var(--c-text); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
@media (max-width: 767px) {
  .step > summary { padding: 14px 16px; gap: 12px; font-size: 18px; }
  .step-body { padding: 0 16px 20px; grid-template-columns: 1fr; gap: var(--s-2); }
  .step .state-label { display: none; }
}

/* Hinweise */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px; border-radius: 16px;
  border: 1px solid rgba(255, 196, 107, 0.45); background: rgba(255, 196, 107, 0.08);
  color: #FFE3B8; font-size: 15px; line-height: 1.45;
}
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--c-warning); }
.notice strong { color: #FFF1DB; }
.notice-info { border-color: var(--c-border-strong); background: rgba(40, 72, 216, 0.12); color: var(--c-text-2); }
.notice-info svg { color: var(--c-cyan); }

/* Demo */
.demo-shell {
  border: 1px solid var(--c-border-strong); border-radius: var(--r-card-lg);
  background: linear-gradient(180deg, rgba(22, 38, 63, 0.95), rgba(13, 24, 41, 0.97));
  box-shadow: var(--shadow-card), 0 40px 80px -40px rgba(40, 72, 216, 0.45);
  overflow: hidden;
}
.demo-top { display: grid; gap: 16px; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-border); }
.demo-progress { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-progress li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--c-text-2); border: 1px solid var(--c-border);
}
.demo-progress .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.06); }
.demo-progress li.is-done { color: var(--c-text); }
.demo-progress li.is-done .dot { background: rgba(91, 227, 168, 0.2); color: var(--c-success); }
.demo-progress li.is-current { color: var(--c-text); border-color: var(--c-cyan); background: rgba(92, 217, 255, 0.08); }
.demo-progress li.is-current .dot { background: var(--c-cyan); color: var(--c-bg); }
.demo-body { padding: var(--s-4); min-height: 360px; }
.demo-body:focus { outline: none; }
.demo-body h3 { font-size: 24px; margin-bottom: 12px; }
.demo-body .lead { color: var(--c-text-2); max-width: 70ch; }
.demo-footer {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: var(--s-2) var(--s-4); border-top: 1px solid var(--c-border); background: rgba(7, 17, 31, 0.35);
}
.demo-footer .left, .demo-footer .right { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-status { min-height: 22px; font-size: 14.5px; color: var(--c-success); }
.demo-status.is-error { color: var(--c-danger); }

.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: var(--s-3); }
.kv div { padding: 16px; border-radius: 16px; background: rgba(7, 17, 31, 0.5); border: 1px solid var(--c-border); }
.kv dt { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-text); margin-bottom: 4px; }
.kv dd { margin: 0; color: var(--c-text); }
.channel-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.channel-list li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--c-border); background: rgba(40, 72, 216, 0.08); }
.channel-list strong { display: block; }
.channel-list span { font-size: 14px; color: var(--c-text-2); }
@media (max-width: 767px) {
  .demo-progress { gap: 6px; }
  .demo-progress li { padding: 4px; font-size: 13.5px; }
  .demo-progress li.is-current { padding-right: 12px; }
  .demo-progress li:not(.is-current) .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .tab { padding: 0 6px; justify-content: center; font-size: 15px; }
  .tab[aria-selected="true"]::before { display: none; }
  .kv, .channel-list { grid-template-columns: 1fr; }
  .demo-body, .demo-top, .demo-footer { padding-inline: var(--s-2); }
  .demo-body { min-height: 0; }
  .demo-footer .btn { flex: 1 1 auto; }
}

.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 16px; background: rgba(7, 17, 31, 0.6); border: 1px solid var(--c-border); width: fit-content; max-width: 100%; margin-bottom: var(--s-3); }
.tab {
  min-height: var(--hit); padding: 0 18px; border-radius: 12px; border: 1px solid transparent; background: none;
  color: var(--c-text-2); font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { color: var(--c-text); background: rgba(255, 255, 255, 0.05); }
.tab[aria-selected="true"] { background: var(--c-surface-2); color: var(--c-text); border-color: var(--c-border-strong); box-shadow: inset 0 -2px 0 var(--c-cyan); }
.tab[aria-selected="true"]::before { content: "●"; font-size: 9px; color: var(--c-cyan); }
.tab:focus-visible { outline-offset: 1px; }

.sample {
  border-radius: 18px; border: 1px solid var(--c-border); background: rgba(7, 17, 31, 0.55);
  padding: var(--s-3);
}
.sample-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--c-text-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--c-border-strong); color: var(--c-accent-text); background: rgba(40, 72, 216, 0.14); }
.badge-warn { color: #FFE3B8; border-color: rgba(255, 196, 107, 0.5); background: rgba(255, 196, 107, 0.1); }
.badge-ok { color: #BDF5DC; border-color: rgba(91, 227, 168, 0.5); background: rgba(91, 227, 168, 0.1); }
.badge-violet { color: #D9CCFF; border-color: rgba(151, 117, 255, 0.55); background: rgba(151, 117, 255, 0.12); }
.sample h4 { font-size: 20px; margin-bottom: 10px; line-height: 1.3; }
.sample-text { white-space: pre-line; color: var(--c-text-2); }
.sample-cta { margin-top: 12px; color: var(--c-text); font-weight: 600; }
.sample-tags { margin-top: 10px; color: var(--c-accent-text); font-size: 15px; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-2); align-items: center; }
.copy-fallback { width: 100%; min-height: 140px; margin-top: 10px; background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border-strong); border-radius: 12px; padding: 12px; font: 14px/1.5 var(--font-mono); }

.review-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-3); }
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(151, 117, 255, 0.08); border: 1px solid rgba(151, 117, 255, 0.3); font-size: 15px; color: var(--c-text-2); }
.checklist svg { flex: none; width: 18px; height: 18px; color: #C3B0FF; margin-top: 3px; }
.revision-box { padding: 16px 18px; border-radius: 16px; border: 1px dashed rgba(255, 196, 107, 0.55); background: rgba(255, 196, 107, 0.06); margin-top: var(--s-2); }
.revision-box strong { display: block; color: #FFE3B8; margin-bottom: 4px; }
.planned-box { text-align: left; padding: var(--s-4); border-radius: 20px; background: radial-gradient(500px 200px at 0% 0%, rgba(91, 227, 168, 0.14), transparent 70%), rgba(7, 17, 31, 0.5); border: 1px solid rgba(91, 227, 168, 0.4); }
.planned-box .check { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(91, 227, 168, 0.18); color: var(--c-success); margin-bottom: 14px; }
.planned-box .check svg { width: 26px; height: 26px; }
.planned-box h3 { font-size: 24px; }
@media (max-width: 1023px) { .review-grid { grid-template-columns: 1fr; } }

.demo-static { margin-top: var(--s-3); }
.demo-static ol { padding-left: 1.3em; color: var(--c-text-2); display: grid; gap: 6px; }

/* Projekte */
.project-card { display: flex; flex-direction: column; }
.project-card .tag { align-self: flex-start; margin-bottom: 14px; }
.project-card ul { list-style: none; display: grid; gap: 6px; margin-top: 14px; color: var(--c-text-2); font-size: 15px; }
.project-card ul li { display: flex; gap: 8px; }
.project-card ul li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; margin-top: 9px; background: var(--c-cyan); }
.project-card .btn { margin-top: auto; align-self: flex-start; }
.project-card .card-actions { margin-top: auto; padding-top: var(--s-3); }
.section-foot { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--c-text-2); }

/* Galerie */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); }
.gallery-item {
  display: block; width: 100%; padding: 0; border: 1px solid var(--c-border); border-radius: var(--r-card);
  background: var(--c-surface); overflow: hidden; cursor: pointer; text-align: left;
  transition: border-color var(--t-med), transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.gallery-item:hover { border-color: var(--c-border-strong); transform: translateY(-3px); box-shadow: 0 20px 50px -24px rgba(40, 72, 216, 0.7); }
.gallery-item:active { transform: translateY(-1px); }
.gallery-item .thumb { display: block; aspect-ratio: 3 / 2; background: var(--c-bg-deep); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .cap { display: block; padding: 16px 18px 18px; }
.gallery-item .cap strong { display: block; font-size: 17px; }
.gallery-item .cap span { font-size: 14px; color: var(--c-text-2); }
@media (prefers-reduced-motion: reduce) { .gallery-item:hover { transform: none; } }
@media (max-width: 1023px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .gallery { grid-template-columns: 1fr; } }

/* Dokumentation */
.doc-panel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-4); align-items: start; }
.doc-list { list-style: none; display: grid; gap: 12px; }
.doc-list li { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--c-border); background: rgba(17, 30, 50, 0.6); }
.doc-list strong { display: block; margin-bottom: 2px; }
.doc-list span { color: var(--c-text-2); font-size: 15px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-3); }
@media (max-width: 1023px) { .doc-panel { grid-template-columns: 1fr; } }

/* Kontakt */
.contact-card {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-5); align-items: center;
  padding: var(--s-6); border-radius: 28px;
  border: 1px solid var(--c-border-strong);
  background:
    radial-gradient(600px 300px at 100% 100%, rgba(92, 217, 255, 0.12), transparent 70%),
    radial-gradient(600px 300px at 0% 0%, rgba(40, 72, 216, 0.25), transparent 70%),
    var(--c-surface);
  box-shadow: var(--shadow-card);
}
.contact-card h2 { font-size: var(--fs-h2); }
.contact-actions { display: grid; gap: 12px; justify-items: start; }
.contact-hint { font-size: 14.5px; color: var(--c-text-2); }
.contact-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: var(--s-3); color: var(--c-text-2); font-size: 14.5px; }
.contact-checks li { display: inline-flex; gap: 6px; align-items: center; }
.contact-checks svg { width: 16px; height: 16px; color: var(--c-cyan); }
@media (max-width: 1023px) { .contact-card { grid-template-columns: 1fr; padding: var(--s-4); } }
@media (max-width: 767px) { .contact-card { padding: var(--s-3); border-radius: 22px; } .contact-actions .btn { width: 100%; } }

/* Dialoge */
.dialog {
  width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--c-border-strong); border-radius: 24px;
  background: #0C1829; color: var(--c-text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(92, 140, 255, 0.1);
  overflow: hidden;
}
.dialog[open] { display: flex; flex-direction: column; animation: dlg-in 220ms var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dialog[open] { animation: none; } }
.dialog::backdrop { background: rgba(2, 6, 14, 0.78); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px 18px 28px; border-bottom: 1px solid var(--c-border); }
.dialog-head h2 { font-size: 22px; line-height: 1.25; }
.dialog-head .btn-close { margin-left: auto; }
.dialog-body { padding: 24px 28px; overflow-y: auto; }
.dialog-body p { color: var(--c-text-2); }
.dialog-body p + p { margin-top: 12px; }
.dialog-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 16px 28px; border-top: 1px solid var(--c-border); background: rgba(7, 17, 31, 0.4); }
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--c-border); background: rgba(17, 30, 50, 0.6); }
.facts dt { font-weight: 700; color: var(--c-accent-text); font-size: 14.5px; }
.facts dd { margin: 0; color: var(--c-text-2); }
@media (max-width: 599px) {
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .dialog-head { padding: 14px 12px 14px 18px; }
  .dialog-body { padding: 18px; }
  .dialog-foot { padding: 12px 18px; }
  .dialog-foot .btn { flex: 1 1 auto; }
}
.dialog-gallery { width: min(1280px, calc(100vw - 32px)); }
.gallery-figure { margin: 0; }
.gallery-figure .frame { background: #040B16; border-radius: 16px; overflow: hidden; border: 1px solid var(--c-border); display: grid; place-items: center; }
.gallery-figure img { width: 100%; height: auto; max-height: calc(100dvh - 300px); object-fit: contain; }
.gallery-figure figcaption { margin-top: 12px; color: var(--c-text-2); font-size: 15px; }
.gallery-count { font-size: 14px; color: var(--c-text-2); margin-right: auto; align-self: center; }
.arch-figure { margin: 0; }
.arch-figure svg { width: 100%; height: auto; }
.arch-figure figcaption { margin-top: 12px; font-size: 14.5px; color: var(--c-text-2); }
