/* fixdeinenpc.de — Gestaltung, responsive Ansichten und Drucklayout.
   Version 2026-10-29.4 · Keine externen Bibliotheken oder Schriftarten. */

:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #121d30;
  --panel2: #18253b;
  --text: #eef4ff;
  --muted: #a9b8ce;
  --accent: #75e0c1;
  --accent2: #5bc8a8;
  --line: #2a3a53;
  --warn: #ffd48a;
  --danger: #ff6b6b;
  --info: #7eb8ff;
  --ok: #75e0c1;
  --fs-base: 17px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  background: linear-gradient(180deg, #0b1220, #0f1b2d 55%, #0b1220);
  color: var(--text);
  font:
    var(--fs-base) / 1.6 system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  transition: font-size 0.2s;
}
body.fs-small {
  --fs-base: 15px;
}
body.fs-large {
  --fs-base: 20px;
}
body.fs-xlarge {
  --fs-base: 23px;
}
img,
svg {
  max-width: 100%;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--accent);
  color: #082019;
  padding: 10px 20px;
  z-index: 300;
  font-weight: 700;
  transition: top 0.2s;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  top: 0;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}
.nav-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}
.nav-brand {
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--text);
  background: var(--panel2);
}
.nav-tools {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}
@media (max-width: 1000px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(11, 18, 32, 0.98);
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 64px);
    overflow: auto;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 28px 18px 60px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  color: var(--accent);
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0.55rem 0 1rem;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.5rem;
  margin: 0 0 14px;
}
h3 {
  color: var(--text);
  font-size: 1.15rem;
}
p {
  color: var(--muted);
}
a {
  color: var(--accent);
}

/* Tags */
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--accent);
  font-size: 0.85rem;
  margin: 0 6px 10px 0;
}

/* Hero */
.hero {
  padding: 32px 0 22px;
}

/* Search */
.searchbox {
  display: flex;
  gap: 10px;
  margin: 22px 0 10px;
}
.searchbox input {
  flex: 1;
  min-width: 0;
  background: #f7f9fc;
  color: #132033;
  border: 0;
  border-radius: 12px;
  padding: 17px 18px;
  font-size: 1.05rem;
}
.searchbox button,
.copybtn,
.primary-btn {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #082019;
  font-weight: 800;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 52px;
  font-size: 1rem;
}
.searchbox button:hover,
.copybtn:hover,
.primary-btn:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}
.hint {
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Quick Pick */
.quickpick {
  margin-top: 36px;
}
.quickpick-title {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 14px;
  font-weight: 700;
}
.quickgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.quickcard {
  padding: 20px 16px;
  background: linear-gradient(145deg, #15243a, #101a2b);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
  min-height: 160px;
}
.quickcard:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.quickcard .emoji {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 10px;
}
.quickcard h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.quickcard p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--muted);
}
.quickcard.urgent {
  border-color: #5a2020;
  background: linear-gradient(145deg, #2a1520, #1a0f15);
}
@media (max-width: 800px) {
  .quickgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .quickgrid {
    grid-template-columns: 1fr;
  }
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  margin-top: 22px;
}
.panel {
  background: rgba(18, 29, 48, 0.95);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-width: 0;
}
.codes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 680px;
  overflow: auto;
}
.codeitem {
  background: var(--panel2);
  border: 1px solid transparent;
  color: var(--text);
  border-radius: 10px;
  text-align: left;
  padding: 13px 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 1rem;
}
.codeitem:hover {
  background: #20334d;
  border-color: var(--accent);
}
.codeitem.active {
  border-color: var(--accent);
}
.codeitem strong {
  display: block;
  font-size: 1.05rem;
}
.codeitem span {
  color: var(--muted);
  font-size: 0.92rem;
}
.result h2 {
  font-size: 1.65rem;
}
.pill {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.result ol,
.result ul {
  padding-left: 22px;
}
.result li {
  margin: 10px 0;
  font-size: 1.02rem;
}
.result li::marker {
  color: var(--accent);
}

/* Step list with checkboxes */
.steplist {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}
.steplist li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin: 8px 0;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 0.15s;
}
.steplist li:hover {
  border-color: var(--accent);
}
.steplist li.done {
  background: #102a2b;
  border-color: #34685f;
  opacity: 0.7;
}
.steplist li.done .step-text {
  text-decoration: line-through;
}
.steplist input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.steplist .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #082019;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.steplist .step-text {
  flex: 1;
  line-height: 1.5;
}
.step-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--panel2);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.step-progress-bar {
  flex: 1;
  height: 8px;
  background: #0a1526;
  border-radius: 4px;
  overflow: hidden;
}
.step-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.3s;
  border-radius: 4px;
}
.step-progress-text {
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Notices */
.notice {
  border-left: 4px solid var(--warn);
  background: #2a251b;
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  color: #ffe8bd;
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.notice-danger {
  border-left: 4px solid var(--danger);
  background: #2a1b1b;
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  color: #ffb8b8;
  margin-top: 18px;
  font-size: 0.95rem;
}
.notice-info {
  border-left: 4px solid var(--info);
  background: #1b2240;
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  color: #b8d4ff;
  margin-top: 18px;
  font-size: 0.95rem;
}
.notice-ok {
  border-left: 4px solid var(--ok);
  background: #0f2a20;
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  color: #b8ffd9;
  margin-top: 18px;
  font-size: 0.95rem;
}

/* Category Filter */
.catfilter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.catfilter button {
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 40px;
}
.catfilter button:hover,
.catfilter button.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #1b3b49;
}

.empty {
  color: var(--muted);
  padding: 16px 4px;
}
.small {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Sections */
.section {
  margin-top: 60px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.section-lead {
  max-width: 820px;
  margin-top: 0;
  font-size: 1.05rem;
}

/* Tiles */
.widegrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.tile {
  padding: 22px;
  background: linear-gradient(145deg, #15243a, #101a2b);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.15s;
}
.tile:hover {
  border-color: var(--accent);
}
.tile .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1b3b49;
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 12px;
}
.tile h3 {
  margin: 0 0 8px;
}
.tile p {
  margin: 0;
  font-size: 0.95rem;
}

/* Diag */
.diaggrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.field label {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.field select,
.field textarea {
  width: 100%;
  background: #0b1423;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font: inherit;
  font-size: 1rem;
  min-height: 48px;
}
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.field {
  margin: 14px 0;
}
.diagresult {
  display: none;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #34685f;
  background: #102a2b;
  border-radius: 15px;
}
.diagresult.open {
  display: block;
}
.diagresult li {
  margin: 10px 0;
}
.diagresult h3 {
  margin-top: 0;
}

/* Commands */
.commandgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.commandcard {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #121d30;
  transition: all 0.15s;
}
.commandcard:hover {
  border-color: #3a5070;
}
.commandcard h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.commandcard p {
  font-size: 0.92rem;
  margin: 0 0 12px;
}
.commandcard code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #07101b;
  color: #9af0d5;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.commandcard button {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #1a2c42;
  color: var(--text);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.92rem;
  min-height: 44px;
}
.commandcard button:hover {
  background: #253d5a;
}

/* Where-is cards */
.wheregrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.wherecard {
  padding: 22px;
  background: linear-gradient(145deg, #15243a, #101a2b);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.15s;
}
.wherecard:hover {
  border-color: var(--accent);
}
.wherecard .wherepath {
  display: inline-block;
  background: #0a1526;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--accent);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  margin-top: 10px;
  word-break: break-word;
}
.wherecard h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}
.wherecard p {
  margin: 0;
  font-size: 0.92rem;
}
.wherecard .whereicon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

/* Keyboard shortcuts */
.keysgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.keycard {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121d30;
  display: flex;
  align-items: center;
  gap: 16px;
}
.keycard .keys {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.key {
  display: inline-block;
  padding: 6px 10px;
  background: #0a1526;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.key-plus {
  color: var(--muted);
  padding: 6px 2px;
}
.keycard .desc {
  flex: 1;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Method */
.methodgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.method {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111c2e;
  transition: all 0.15s;
}
.method:hover {
  border-color: var(--accent);
}
.method b {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.method h3 {
  font-size: 1.05rem;
  margin: 8px 0;
}
.method p {
  font-size: 0.9rem;
  margin: 0;
}

/* Pro-Check */
.procheckgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.procheck {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #121d30;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.procheck input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--danger);
  flex-shrink: 0;
}
.procheck .protext {
  flex: 1;
}
.procheck .protext b {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 1.02rem;
}
.procheck .protext span {
  font-size: 0.9rem;
  color: var(--muted);
}
.procheck.checked {
  border-color: var(--danger);
  background: #2a1515;
}
.proresult {
  display: none;
  margin-top: 20px;
  padding: 22px;
  border-radius: 15px;
}
.proresult.show {
  display: block;
}
.proresult.danger {
  background: #2a1515;
  border: 2px solid var(--danger);
}
.proresult.ok {
  background: #0f2a20;
  border: 2px solid var(--ok);
}

/* FAQ */
.faqgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.faqgrid details {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121d30;
  transition: all 0.15s;
}
.faqgrid details[open] {
  border-color: var(--accent);
}
.faqgrid summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 4px 0;
}
.faqgrid p {
  font-size: 0.95rem;
  margin-top: 10px;
  margin-bottom: 0;
}

/* Glossary */
.glossarygrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.glossary-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121d30;
}
.glossary-item dt {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 1.02rem;
}
.glossary-item dd {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

/* Emergency */
.emergencygrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.emergency-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #1a1520, #121020);
}
.emergency-card.critical {
  border-color: #5a2020;
  background: linear-gradient(145deg, #251015, #1a0a0e);
}
.emergency-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.emergency-card p {
  font-size: 0.92rem;
  margin: 0 0 12px;
}
.emergency-card ol {
  padding-left: 20px;
  font-size: 0.95rem;
}
.emergency-card li {
  margin: 8px 0;
  color: var(--muted);
}
.emergency-card li::marker {
  color: var(--warn);
  font-weight: 700;
}
.emergency-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.badge-critical {
  background: #3a1515;
  color: #ff9a9a;
}
.badge-important {
  background: #1a2a3a;
  color: #7eb8ff;
}

/* About */
.aboutgrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.about-card {
  padding: 26px;
  background: linear-gradient(145deg, #15243a, #101a2b);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.about-card h3 {
  margin-top: 0;
}
.about-card ul {
  padding-left: 20px;
  color: var(--muted);
}
.about-card li {
  margin: 6px 0;
}
.statgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.stat {
  text-align: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f192a;
}
.stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat .label {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer */
footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-col p {
  font-size: 0.9rem;
  color: var(--muted);
}
.legal {
  font-size: 0.85rem;
  color: #8ea0ba;
  margin-top: 14px;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: #6a7f9a;
}

/* Back to top */
.backtop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent);
  color: #082019;
  border: 0;
  cursor: pointer;
  font-size: 1.4rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.backtop.visible {
  display: flex;
}
.backtop:hover {
  background: var(--accent2);
  transform: translateY(-2px);
}

/* Toast */
.copytoast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translate(-50%, 100px);
  background: var(--accent);
  color: #082019;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: 0.2s;
  z-index: 99;
  font-size: 1rem;
}
.copytoast.show {
  transform: translate(-50%, 0);
}

/* Counter */
.counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 12px;
}
.counter-badge strong {
  color: var(--accent);
}

.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 50px 0;
}

/* Print */
.print-btn {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  margin-top: 10px;
  transition: all 0.15s;
}
.print-btn:hover {
  background: var(--panel);
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 1000px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .aboutgrid {
    grid-template-columns: 1fr;
  }
  .diaggrid {
    grid-template-columns: 1fr;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .wheregrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
  .widegrid {
    grid-template-columns: 1fr 1fr;
  }
  .methodgrid {
    grid-template-columns: 1fr 1fr;
  }
  .emergencygrid {
    grid-template-columns: 1fr;
  }
  .commandgrid {
    grid-template-columns: 1fr;
  }
  .faqgrid {
    grid-template-columns: 1fr;
  }
  .glossarygrid {
    grid-template-columns: 1fr;
  }
  .keysgrid {
    grid-template-columns: 1fr;
  }
  .procheckgrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .widegrid,
  .methodgrid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 22px;
  }
  .panel {
    padding: 16px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .searchbox {
    flex-direction: column;
  }
  .searchbox button {
    padding: 14px;
  }
  .statgrid {
    grid-template-columns: 1fr;
  }
  .wheregrid {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  .nav,
  .backtop,
  .searchbox,
  .catfilter,
  .copybtn,
  .commandcard button,
  .primary-btn,
  .print-btn,
  .nav-toggle,
  #navToggle,
  .nav-tools,
  .quickpick {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .panel,
  .tile,
  .commandcard,
  .emergency-card,
  .wherecard,
  .keycard,
  .method,
  .faqgrid details,
  .glossary-item,
  .about-card {
    background: #fff !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
  }
  .panel *,
  .result *,
  .commandcard *,
  p,
  li,
  h1,
  h2,
  h3,
  dt,
  dd {
    color: #000 !important;
  }
  .section {
    page-break-inside: avoid;
    margin-top: 30px;
  }
  .steplist li {
    background: #fff !important;
    border: 1px solid #999 !important;
  }
  .steplist li.done {
    background: #e8f5e9 !important;
    border-color: #4caf50 !important;
  }
}

.steplist li.guide-step {
  display: block;
}
.guide-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.step-how {
  margin: 12px 0 0 46px;
  padding: 14px 16px;
  border-left: 3px solid var(--info);
  background: #0a1526;
  border-radius: 8px;
  line-height: 1.65;
}
.step-how strong {
  color: var(--info);
}
.step-how p {
  margin: 6px 0 0;
}
.steplist li.guide-step.done {
  opacity: 1;
}
.tile[role="button"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 520px) {
  .step-how {
    margin-left: 0;
  }
}
@media print {
  .step-how {
    background: white;
    color: black;
    border-color: #555;
  }
}

/* Problembereiche (Kategorien) */
.areatile {
  cursor: pointer;
}
.areatile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.areatile:focus-within {
  border-color: var(--accent);
}
.tile-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.codechip {
  display: inline-block;
  font-size: 0.78rem;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0e1828;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.codechip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #1b3b49;
}
.tile-go {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.tile-go:hover {
  text-decoration: underline;
}
.tile-count {
  background: #1b3b49;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

/* Bereichs-Banner in der Fehlersuche */
.areabanner {
  display: none;
  background: linear-gradient(145deg, #16324a, #11203a);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 20px 22px;
  margin-top: 16px;
}
.areabanner.show {
  display: block;
}
.areabanner h3 {
  margin: 4px 0 8px;
  font-size: 1.25rem;
}
.areabanner ul {
  padding-left: 20px;
  margin: 10px 0 0;
}
.areabanner li {
  margin: 4px 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.areabanner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.areabanner .btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent);
  background: rgba(117, 224, 193, 0.12);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.areabanner .btn-mini:hover {
  background: var(--accent);
  color: #082019;
}
.areabanner .btn-mini.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}
.areabanner .btn-mini.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

/* Impressum */
.impgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.imp-card {
  background: rgba(18, 29, 48, 0.95);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  min-width: 0;
}
.imp-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.imp-card p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.hours {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 12px;
  font-size: 0.95rem;
}
.hours th,
.hours td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
  vertical-align: top;
}
.hours th {
  background: var(--panel2);
  color: var(--accent);
  white-space: nowrap;
}
.ownerhint {
  border: 1px dashed var(--warn);
  background: rgba(255, 212, 138, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 0.92rem;
  color: #ffe8bd;
}
@media (max-width: 800px) {
  .impgrid {
    grid-template-columns: 1fr;
  }
}
@media print {
  .ownerhint {
    display: none;
  }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
textarea {
  resize: vertical;
}
.note-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.note-actions .print-btn {
  margin: 0;
  min-height: 52px;
}
#note-remember {
  width: 24px;
  height: 24px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
#counterBadge {
  min-height: 36px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 520px) {
  .nav-inner {
    gap: 6px;
  }
  .nav-tools {
    gap: 3px;
  }

  .nav-brand {
    font-size: 0.86rem;
  }
  .note-actions > * {
    width: 100%;
    text-align: center;
  }
}
#command-search {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1423;
  color: var(--text);
  font: inherit;
}
.command-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}
.command-meta span {
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--accent);
}
.commandcard[hidden] {
  display: none;
}
.commandcard:target {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

html {
  font-size: 17px;
}
.copytoast {
  max-width: calc(100vw - 32px);
  width: max-content;
  text-align: center;
}
.codeitem strong,
.result h2,
.codechip,
.imp-card a {
  overflow-wrap: anywhere;
}
#proResult ul {
  padding-left: 24px;
}
#print-copy {
  display: none;
}
@media (max-width: 600px) {
  .nav-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 8px 0;
  }
  .nav-tools {
    margin-left: auto;
  }
  .keycard {
    flex-wrap: wrap;
  }
  .keycard .desc {
    min-width: 140px;
  }
  .statgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media print {
  body.print-single > * {
    display: none !important;
  }
  body.print-single > #print-copy {
    display: block !important;
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
  }
  #print-copy .step-how,
  #print-copy li {
    break-inside: avoid;
  }
  #print-copy a {
    color: #000;
  }
  .note-actions,
  button {
    display: none !important;
  }
}
main {
  overflow-wrap: anywhere;
}
.widegrid > *,
.diaggrid > *,
.wheregrid > *,
.emergencygrid > *,
.commandgrid > *,
.methodgrid > *,
.faqgrid > *,
.glossarygrid > *,
.procheckgrid > *,
.impgrid > *,
.aboutgrid > *,
.footer-inner > * {
  min-width: 0;
}
.codeitem span {
  overflow-wrap: anywhere;
}
.statgrid {
  min-width: 0;
}
.hours th,
.hours td {
  overflow-wrap: anywhere;
}
.nav {
  background: #0b1220;
}
.nav-inner {
  height: auto;
  min-height: 64px;
  padding: 8px 0;
}
.nav-links {
  flex: 1;
  justify-content: center;
}
.nav-tools {
  flex-shrink: 0;
}
@media (max-width: 1200px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b1220;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    max-height: 70vh;
    overflow: auto;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}
[hidden] {
  display: none !important;
}
.step-text[for] {
  cursor: pointer;
}
.footerlinks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footerlinks a {
  padding: 6px 0;
}
.step-progress-text {
  white-space: normal;
}
.nav-toggle {
  min-height: 44px;
  min-width: 36px;
}

#proResult[aria-live] {
  outline: none;
}

/* Seitenlayouts: zuvor direkt in HTML gesetzte Eigenschaften.
   Am Ende belassen, damit die bisherigen Vorrangregeln erhalten bleiben. */
.u-accent {
  color: var(--accent);
}
.u-mt-20 {
  margin-top: 20px;
}
.layout-rule-03 {
  display: none;
  margin-top: 20px;
}
.layout-rule-04 {
  padding: 14px 18px;
  width: 100%;
}
.u-mt-10 {
  margin-top: 10px;
}
.layout-rule-06 {
  display: flex;
  gap: 10px;
  align-items: center;
}
.layout-rule-07 {
  margin-top: 20px;
  padding: 14px 18px;
}
.u-mt-12 {
  margin-top: 12px;
}
.u-mt-14 {
  margin-top: 14px;
}

/* Klar beschriftete Schriftsteuerung statt A-/A+-Symbolen. */
.nav-tools.font-control {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 4px;
  width: 270px;
  max-width: 100%;
  min-width: 0;
}
.font-control label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.font-control select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.font-control select:hover {
  border-color: var(--accent);
}
.font-control p {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 600px) {
  .nav-tools.font-control {
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 4px 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .font-control p {
    grid-column: 1 / -1;
  }
  .nav-toggle {
    margin-left: auto;
  }
}

/* Bilingual navigation: readable language names, not flag-only controls. */
.brand-and-language {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  flex-shrink: 0;
}
.language-switch {
  display: grid;
  gap: 3px;
}
.language-label {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}
.language-options {
  display: flex;
  gap: 5px;
}
.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 9px;
  color: var(--text);
  background: var(--panel2);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.language-link:hover {
  border-color: var(--accent);
}
.language-link[aria-current="page"] {
  background: var(--accent);
  color: #082019;
  border-color: var(--accent);
}
.language-transfer-warning {
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .language-options {
    gap: 6px;
  }
  .language-link {
    min-height: 36px;
  }
}
@media print {
  .language-switch {
    display: none !important;
  }
}

/* Standalone privacy pages: readable measure, minimal navigation. */
.privacy-document { max-width: 850px; margin: 0 auto; padding: 44px 22px 56px; overflow-wrap: anywhere; }
.privacy-document h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 20px; line-height: 1.2; }
.privacy-document h2 { font-size: 1.25rem; line-height: 1.4; margin: 32px 0 12px; }
.privacy-document p { margin: 0 0 18px; line-height: 1.75; }
.privacy-document a { color: var(--accent, #75e0c1); text-decoration: underline; text-underline-offset: 3px; }
.privacy-footer { max-width: 850px; margin: auto; padding: 24px 22px; }
.privacy-page .nav-inner { flex-wrap: wrap; gap: 18px; }
@media print { .privacy-page .nav, .privacy-page .skip-link, .privacy-page footer { display: none; } .privacy-document { max-width: none; padding: 0; } }

/* Clear entry points and progressive disclosure */
.quickpick > .quickgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.more-topics { margin-top: 18px; }
.more-topics summary, .further-steps summary { cursor: pointer; font-weight: 700; padding: 14px; border: 1px solid #40516d; border-radius: 10px; }
.more-topics .quickgrid { margin-top: 16px; }
.further-steps { margin: 18px 0; }
.further-steps > p { padding: 10px 4px; }
.reading-page { max-width: 1100px; padding: 36px 22px 54px; margin: auto; overflow-wrap: anywhere; }
.reading-page > h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.25; margin-bottom: 24px; }
.reading-page .section { padding: 24px 0; }
.reading-page p, .reading-page li { line-height: 1.7; }
.reading-page a { color: var(--accent, #75e0c1); text-decoration: underline; text-underline-offset: 3px; }
.reading-page .steplist li { display: block; padding: 16px; margin: 10px 0; }
.reading-page input[type="checkbox"] { width: 1.1em; height: 1.1em; margin-right: 10px; }
.resource-links > a { display: block; margin: 10px 0; }
.resource-links .print-btn { margin: 8px 0; }
.steps-bundle > h3 { margin-top: 14px; }
[hidden] { display: none !important; }
@media(max-width: 650px) { .quickpick > .quickgrid { grid-template-columns: 1fr; } }
@media print { .reading-page { max-width: none; padding: 0; } .reading-page button, .reading-page .resource-links { display: none; } }
.directory-list { padding-left: 24px; }
.directory-list li { margin: 9px 0; }
.directory-list a { display: inline-block; padding: 3px 0; }
