/* =========================================================
   Sexfilme.xxx – Helles Template (Blau)
   Accent: #1a5fd6  |  Bg: #ffffff
   ========================================================= */

:root {
  --bg:           #ffffff;
  --bg-alt:       #f7f7f7;
  --bg-card:      #ffffff;
  --border:       #e5e5e5;
  --border-strong:#d4d4d4;
  --text:         #141414;
  --text-soft:    #5a5a5a;
  --text-muted:   #8a8a8a;
  --accent:       #1a5fd6;
  --accent-ink:   #ffffff;
  --accent-soft:  #e8f0ff;
  --accent-hover: #0e44a8;
  --accent-deep:  #0a2c6d;
  --accent-light: #6fb1ff;
  --link:         #0e44a8;
  --r-sm:         4px;
  --r-md:         6px;
  --r-lg:         10px;
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 2px 8px rgba(0,0,0,0.06);
  --font:         "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Ad Placeholders ─────────────────────────────────────── */
.ad {
  background: #fafafa;
  border: 1px dashed #e0e0e0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: #b3b3b3; font-size: 11px;
  font-family: monospace; letter-spacing: 0.06em;
  text-transform: uppercase; text-align: center;
  position: relative; overflow: hidden;
}
.ad b { color: #999; font-weight: 600; display: block; }
.ad em { color: #bbb; font-size: 10px; font-style: normal; }
.ad-leaderboard { display: block; min-height: 90px; margin: 14px 0; }
.ad-mobile      { display: none; }

@media (max-width: 720px) {
  .ad-leaderboard { display: none !important; }
  .ad-mobile      { display: flex !important; min-height: 50px; margin: 10px 0; }
}
.ad-rect        { min-height: 250px; }
.ad-halfpage    { min-height: 600px; }
.ad-banner      { min-height: 120px; margin: 14px 0; }

/* ── Shell / Layout ──────────────────────────────────────── */
.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-top: 16px;
}
.page-layout.sidebar-left {
  grid-template-columns: 320px 1fr;
}
.page-layout.sidebar-left > aside {
  order: -1;
}
@media (max-width: 1100px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-layout > aside { order: 2; }
  .page-layout.sidebar-left > aside { order: 2; }
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
  background: #141414;
  color: #fff;
  font-size: 12px;
}
.topbar .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}
.topbar a { color: #cfcfcf; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; gap: 14px; }
.topbar-right { display: flex; gap: 14px; align-items: center; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .shell {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  font-style: italic;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(180deg,
    var(--accent-deep) 0%, var(--accent) 35%,
    var(--accent-light) 55%, #fff 62%,
    var(--accent-light) 68%, var(--accent) 80%,
    var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-deep);
  transform: skew(-6deg);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo:hover { opacity: 0.85; }

.search-form {
  flex: 1;
  display: flex;
  max-width: 640px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.search-form input[type="search"] {
  flex: 1;
  border: 0; outline: 0;
  padding: 10px 14px;
  font-size: 14px;
  background: transparent;
  color: var(--text);
}
.search-form button {
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.search-form button:hover { background: var(--accent-hover); }

/* ── Burger Button ───────────────────────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
  border: none; background: none;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.burger:hover { background: var(--bg-alt); }

/* ── Main Nav ────────────────────────────────────────────── */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav .shell {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav .shell::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 12px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: block;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Section Headings ────────────────────────────────────── */
.section { margin: 24px 0 12px; }
.section-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--text);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.section-title {
  margin: 0;
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.01em;
}
.section-title .accent { color: var(--accent); }
.section-more { font-size: 13px; color: var(--text-soft); font-weight: 500; }
.section-more:hover { color: var(--accent); }

/* ── Video Grid ──────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 12px;
}
@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .video-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Video Card ──────────────────────────────────────────── */
.video-card {
  display: block;
  color: var(--text);
  text-decoration: none;
}
.video-card:hover { color: var(--text); }

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #1a1a1a;
}
.video-thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.video-duration {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(20,20,20,0.85);
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 2px 6px; border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.badge-new {
  position: absolute; top: 6px; left: 6px;
  background: #e63946; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 5px; border-radius: 3px;
}
.badge-top {
  position: absolute; top: 6px; left: 6px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 5px; border-radius: 3px;
}
.play-over {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  background: rgba(26,95,214,0.12);
}
.play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
}
.play-btn::after {
  content: "";
  width: 0; height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.video-card:hover .video-thumb-wrap { box-shadow: 0 0 0 2px var(--accent); }
.video-card:hover .play-over { opacity: 1; }

.video-info { padding: 6px 0 0; }
.video-title {
  font-size: 13px; font-weight: 600;
  margin: 0 0 4px; line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
  align-items: center;
}
.rating-bar {
  height: 5px; width: 50px;
  background: var(--border);
  border-radius: 999px; overflow: hidden;
  display: inline-block;
}
.rating-fill { height: 100%; background: var(--accent); }
.rating-pct { color: var(--accent); font-weight: 700; font-size: 11px; }

/* ── Category Grid ───────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Text-only Kategorie-Links (vor dem Kachel-Grid) */
.cat-text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cat-card { display: block; text-decoration: none; color: inherit; }
.cat-thumb-bg {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #1a1a1a;
}
.cat-thumb-bg img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.cat-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
  background: linear-gradient(180deg,
    rgba(10,44,109,0) 40%,
    rgba(10,44,109,0.85) 100%);
}
.cat-name {
  color: #fff; font-weight: 800; font-size: 14px;
  letter-spacing: -0.01em; line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
.cat-count {
  color: rgba(255,255,255,0.85);
  font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.cat-card:hover .cat-thumb-bg { box-shadow: 0 0 0 2px var(--accent); }
.cat-card:hover .cat-overlay {
  background: linear-gradient(180deg,
    rgba(26,95,214,0) 30%, rgba(26,95,214,0.85) 100%);
}

/* ── Sidebar ─────────────────────────────────────────────── */
aside .widget {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
}
.widget-title {
  padding: 10px 14px;
  font-weight: 700; font-size: 13px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  text-transform: uppercase; letter-spacing: 0.04em;
}

.sidebar-cat-list { list-style: none; margin: 0; padding: 0; }
.sidebar-cat-list li {
  display: flex; justify-content: space-between;
  padding: 7px 14px;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.sidebar-cat-list li:last-child { border-bottom: 0; }
.sidebar-cat-list a { color: var(--text); }
.sidebar-cat-list a:hover { color: var(--accent); }
.sidebar-cat-list .cnt { color: var(--text-muted); font-size: 12px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.tag {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text); font-size: 12px; font-weight: 500;
}
.tag:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tag.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.sidebar-videos { padding: 8px 0; }
.sidebar-videos a {
  display: flex; gap: 10px;
  padding: 8px 14px;
  color: var(--text); text-decoration: none;
  border-bottom: 1px dashed var(--border);
  align-items: flex-start;
}
.sidebar-videos a:last-child { border-bottom: 0; }
.sidebar-videos a:hover { background: var(--bg-alt); }
.sv-thumb { flex-shrink: 0; width: 80px; border-radius: 3px; overflow: hidden; }
.sv-thumb img { width: 80px; height: 50px; object-fit: cover; display: block; }
.sv-title {
  font-size: 12px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sv-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.crumbs {
  display: flex; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  margin: 14px 0 8px;
  align-items: center; flex-wrap: wrap;
}
.crumbs a { color: var(--text-soft); }
.crumbs .sep { opacity: 0.5; }
.crumbs .cur { color: var(--text); font-weight: 600; }

/* ── Sort / Filter Bar ───────────────────────────────────── */
.sort-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.sort-label { font-size: 12px; color: var(--text-muted); }
.sort-btn {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff; font-size: 12px; font-weight: 600;
  color: var(--text-soft); cursor: pointer; text-decoration: none;
}
.sort-btn:hover { border-color: var(--accent); color: var(--accent); }
.sort-btn.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ── Category Page Header ────────────────────────────────── */
.cat-page-head {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.cat-page-head h1 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.cat-page-head h1 .accent { color: var(--accent); }
.cat-page-desc { color: var(--text-soft); font-size: 13px; margin-top: 4px; }
.cat-long-desc { color: var(--text-soft); font-size: 13px; line-height: 1.7; margin: 20px 0 14px; padding: 16px; background: var(--card-bg); border-radius: 8px; border: 1px solid var(--border); }
.cat-page-stats { display: flex; gap: 18px; font-size: 12px; color: var(--text-muted); }
.cat-page-stats b { color: var(--text); font-size: 16px; display: block; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex; gap: 4px;
  justify-content: center;
  margin: 24px 0; flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  color: var(--text); padding: 0 10px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .cur { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .gap { border: 0; color: var(--text-muted); }

/* ── Player Page ─────────────────────────────────────────── */
.player-box {
  background: #000;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}
.player-box > * { width: 100%; height: 100%; border: 0; display: block; }

.film-title {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.01em; margin: 0 0 10px;
}
.film-meta-row {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px; margin-bottom: 14px;
}
.film-stats {
  display: flex; gap: 16px;
  font-size: 13px; color: var(--text-soft); align-items: center;
}
.film-stats strong { color: var(--text); }
.film-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border-strong);
  background: #fff; color: var(--text);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); }
.action-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.action-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.film-rating-bar {
  height: 6px; background: var(--border);
  border-radius: 999px; overflow: hidden;
  width: 110px; display: inline-block;
  vertical-align: middle; margin-right: 6px;
}
.film-rating-fill { display: block; height: 100%; background: var(--accent); }
.film-rating-pct { color: var(--accent); font-weight: 700; }

.film-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.film-tag {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text); font-size: 12px; font-weight: 500;
}
.film-tag:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.film-desc { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 14px; }

/* Bewertung */
.rate-form { display: inline-flex; gap: 8px; align-items: center; margin: 10px 0; }
.rate-label { font-size: 13px; color: var(--text-muted); }

/* Comments */
.comments { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 14px; }
.comments h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.comment-form { display: flex; gap: 10px; margin-bottom: 16px; }
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-alt); display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-muted);
  font-weight: 700; flex-shrink: 0;
}
.comment-form textarea,
.comment-form input[type="text"] {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md); padding: 10px 12px;
  font-family: inherit; font-size: 13px; outline: 0;
  background: #fff; color: var(--text);
}
.comment-form textarea { resize: vertical; min-height: 64px; }
.comment-form textarea:focus,
.comment-form input[type="text"]:focus { border-color: var(--accent); }
.comment-item {
  display: flex; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.comment-item:last-child { border-bottom: 0; }
.comment-item .comment-avatar {
  width: 32px; height: 32px;
  font-size: 12px; color: var(--text-soft);
}
.comment-body { flex: 1; }
.comment-who { font-weight: 700; font-size: 13px; }
.comment-when { color: var(--text-muted); font-size: 11px; margin-left: 6px; font-weight: normal; }
.comment-text { margin: 4px 0 6px; font-size: 13px; color: var(--text-soft); }

/* ── Search / No results ─────────────────────────────────── */
.no-results { text-align: center; padding: 48px 0; color: var(--text-muted); }
.no-results h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }

/* ── 404 ─────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 64px 16px; }
.error-page h1 {
  font-size: 80px; font-weight: 900; color: var(--accent);
  letter-spacing: -4px; margin: 0;
}
.error-page h2 { font-size: 22px; font-weight: 700; margin: 8px 0 12px; }
.error-page p { color: var(--text-soft); margin-bottom: 24px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #141414; color: #cfcfcf;
  margin-top: 32px; padding: 32px 0 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 24px;
}
@media (max-width: 800px)  { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .footer-cols { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 13px; color: #aaa; margin: 8px 0 12px; line-height: 1.6; max-width: 36ch; }
.age-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border: 1px solid #cfcfcf; border-radius: 3px;
  color: #fff; font-weight: 700; font-size: 11px;
}
.site-footer h4 { color: #fff; font-size: 13px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; font-size: 13px; }
.site-footer ul a { color: #aaa; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2a2a2a; padding: 14px 0;
  display: flex; justify-content: space-between;
  font-size: 11px; color: #888; flex-wrap: wrap; gap: 8px;
}
.footer-links { color: #888; }
.footer-links:hover { color: #fff; }

/* ── Tags A-Z ──────────────────────────────────────────────────── */
.tags-total { font-size: 0.55em; color: var(--text-muted); font-weight: 400; }

.az-nav {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
}
.az-nav a {
  display: inline-block; min-width: 28px; padding: 4px 6px;
  text-align: center; font-size: 13px; font-weight: 700;
  color: var(--accent); border-radius: 4px; text-decoration: none;
  transition: background .15s, color .15s;
}
.az-nav a:hover { background: var(--accent); color: #fff; }

.az-section { margin-bottom: 28px; }
.az-letter {
  font-size: 22px; font-weight: 800; color: var(--accent);
  border-bottom: 2px solid var(--accent); padding-bottom: 6px;
  margin-bottom: 12px; line-height: 1;
}
.az-tags { columns: 3; column-gap: 16px; }
.az-tag {
  display: block; break-inside: avoid;
  padding: 3px 0; color: var(--text); font-size: 13px;
  text-decoration: none; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.az-tag:hover { color: var(--accent); }
.az-count { font-size: 11px; color: var(--text-muted); margin-left: 3px; }
@media (max-width: 720px) { .az-tags { columns: 2; } }

/* ══════════════════════════════════════════════════════════════
   Mobile Optimierungen
   ══════════════════════════════════════════════════════════════ */

/* Sidebar auf Mobile immer einspaltig – Sicherheitsnetz */
@media (max-width: 720px) {
  .page-layout {
    display: block !important;
  }
  .page-layout > aside,
  .page-layout > div {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }
}

/* Topbar auf Mobile ausblenden */
@media (max-width: 640px) {
  .topbar { display: none; }
}

/* Header: Suchfeld bricht in zweite Zeile */
@media (max-width: 720px) {
  .site-header .shell {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .logo { padding: 4px 6px; }
  .search-form {
    order: 10;
    width: 100%;
    max-width: 100%;
    flex: none;
  }
  .search-form button {
    padding: 0 14px;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    min-width: 44px;
  }
}

/* Main-Nav: Burger-Menü auf Mobile */
@media (max-width: 720px) {
  .burger { display: flex; }

  .main-nav {
    position: static;
    display: none;
    border-bottom: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 200;
  }
  .main-nav.open { display: block; }

  .main-nav .shell {
    display: block !important;
    overflow-x: visible;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    padding: 0;
  }
  /* Inline-Style im custom nav_html überschreiben */
  .main-nav .shell > nav,
  .main-nav .shell > div,
  .main-nav .shell > ul {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0 !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  .main-nav a {
    display: flex !important;
    align-items: center;
    padding: 13px 16px;
    min-height: 44px;
    border-bottom: 1px solid var(--border) !important;
    margin-bottom: 0;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
  }
  .main-nav a:last-child { border-bottom: 0 !important; }
  .main-nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
  }
}

/* Sidebar-Halfpage → Rect auf Tablet/Mobile */
@media (max-width: 1100px) {
  .ad-halfpage { min-height: 250px; }
}

/* Section-Head: Tabs umbrechen */
@media (max-width: 480px) {
  .section-hd {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Film-Seite: Actions kürzen, Stats umbrechen */
@media (max-width: 600px) {
  .film-title { font-size: 18px; }
  .film-stats { flex-wrap: wrap; gap: 4px; font-size: 12px; }
  .film-actions { gap: 4px; }
  .film-actions .action-btn { padding: 7px 10px; font-size: 12px; }
  .film-actions .action-btn:nth-child(n+4) { display: none; }
}

/* Touch-Targets vergrößern */
@media (max-width: 720px) {
  .film-tag  { min-height: 36px; padding: 7px 12px; }
  .tag       { min-height: 36px; padding: 7px 10px; }
  .az-tag    { min-height: 36px; padding: 6px 0; }
  .sidebar-cat-list li { padding: 10px 14px; }
  .sort-btn  { min-height: 36px; }
}

/* Kategorien-Overlay: Namen + Anzahl immer sauber getrennt */
.cat-name  { display: block; }
.cat-count { display: block; }
