.category {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  overflow: hidden;
  scroll-margin-top: 16px;
}
.category > header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--card-soft);
}
.category .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex: 0 0 42px;
}
.category h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
.category .desc {
  font-size: 0.85rem;
  color: var(--muted);
}
.category-body {
  padding: 8px 22px 22px;
}
.intro {
  padding: 18px 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.guide {
  margin: 18px 0 6px;
}
.guide h4,
.faq h4,
.shots h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--brand-deep);
}
.steps {
  counter-reset: schritt;
  list-style: none;
}
.steps li {
  counter-increment: schritt;
  position: relative;
  padding: 6px 0 6px 44px;
}
.steps li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 38px;
  bottom: -4px;
  width: 1px;
  background: var(--line);
}
.note {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin: 14px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.note .nicon {
  font-size: 1rem;
  line-height: 1.4;
}
.note.tip {
  background: var(--tip-bg);
  border-left: 4px solid var(--tip-border);
}
.note.warn {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--bg);
  font-weight: 700;
  color: var(--brand-deep);
}
tr:last-child td {
  border-bottom: none;
}
table code,
.faq-a code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85em;
}
.tscroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tscroll table {
  min-width: 460px;
}

.faq {
  margin-top: 22px;
}
details.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--card);
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary:hover {
  background: var(--bg);
}
details.faq-item summary .chev {
  color: var(--brand);
  transition: transform 0.2s;
  font-size: 0.75rem;
}
details.faq-item[open] summary .chev {
  transform: rotate(90deg);
}
.faq-a {
  padding: 0 16px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}
.faq-a p + p {
  margin-top: 8px;
}

.shots {
  margin-top: 22px;
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.shot {
  border: 2px dashed var(--brand);
  border-radius: 10px;
  background: var(--brand-soft);
  padding: 18px 14px;
  text-align: center;
  cursor: zoom-in;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.shot:hover {
  box-shadow: 0 6px 18px rgba(0, 173, 222, 0.25);
  transform: translateY(-1px);
}
.shot .shot-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.shot .shot-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.shot .shot-hint {
  font-size: 0.78rem;
  color: var(--muted);
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.shot .zoom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--card);
  border-radius: 9999px;
  padding: 5px 12px;
  margin-top: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open {
  display: flex;
}
.lightbox figure {
  max-width: min(1100px, 100%);
  max-height: 100%;
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 8px;
  width: auto;
}
.lightbox .lb-placeholder {
  width: min(720px, 100%);
  height: min(420px, 45vh);
  border: 2px dashed var(--brand);
  border-radius: 10px;
  background: var(--brand-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px;
}
.lightbox .lb-placeholder .big {
  font-size: 2rem;
}
.lightbox figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.lightbox .lb-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.lightbox .btn-min {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: var(--brand-contrast);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.15s;
}
.lightbox .btn-min:hover {
  background: var(--brand-deep);
}
.lightbox .btn-min svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.contact {
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
  color: #fff;
  border-radius: 10px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow);
  scroll-margin-top: 16px;
}
.contact h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.contact p {
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 18px;
}
.contact a.btn {
  display: inline-block;
  background: #fff;
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}
.contact a.btn:hover {
  transform: translateY(-1px);
}
.contact .meta {
  margin-top: 14px;
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 639.98px) {
  .hero {
    padding: 14px 14px 72px;
  }
  .layout {
    padding: 0 12px 32px;
    margin-top: -48px;
    gap: 20px;
  }
  .category-body {
    padding: 6px 14px 16px;
  }
  .category > header {
    padding: 14px 16px;
    gap: 10px;
  }
  .category .icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 1.1rem;
  }
  .guide h4,
  .faq h4,
  .shots h4 {
    font-size: 0.95rem;
  }
  .steps li {
    padding-left: 40px;
  }
  .steps li::before {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }
  .steps li:not(:last-child)::after {
    left: 12.5px;
    top: 36px;
  }
  .note {
    flex-direction: column;
    gap: 2px;
  }
  .contact {
    padding: 26px 18px;
  }
  .contact a.btn {
    display: block;
    padding: 12px 16px;
  }
  table,
  td,
  th {
    word-break: break-word;
  }
  .lightbox figure {
    padding: 10px;
  }
}
@media (max-width: 379.98px) {
  .searchwrap input {
    padding: 13px 12px 13px 40px;
    font-size: 0.95rem;
  }
  .searchwrap svg {
    left: 12px;
  }
}
