/*
Theme Name: Planlos Forum Modern
Theme URI: https://example.com/
Author: OpenAI
Description: Schlankes Community-/Gaming-Theme mit linker Serverleiste, News in der Mitte und anpassbaren Farben.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: planlos-forum-modern
*/

:root {
  --pf-bg: #eef2f6;
  --pf-surface: #ffffff;
  --pf-surface-2: #f7f9fb;
  --pf-text: #1e2935;
  --pf-muted: #687684;
  --pf-border: #dfe6ec;
  --pf-blue: #1e6fa8;
  --pf-blue-dark: #144f78;
  --pf-red: #c53a33;
  --pf-red-dark: #982d28;
  --pf-shadow: 0 8px 24px rgba(26, 44, 64, .08);
  --pf-radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--pf-text);
  background: var(--pf-bg);
  line-height: 1.55;
}

a { color: var(--pf-blue); text-decoration: none; }
a:hover { color: var(--pf-red); }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pf-border);
}

.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  min-height: 118px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
}

.custom-logo-link img { max-height: 96px; width: auto; display: block; }
.brand-fallback {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: clamp(25px, 2.2vw, 38px);
  line-height: 1;
}
.brand-fallback .blue { color: var(--pf-blue); }
.brand-fallback .red { color: var(--pf-red); }
.site-tagline {
  color: var(--pf-muted);
  font-size: 14px;
  margin-top: 4px;
}

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  color: var(--pf-text);
  font-weight: 650;
  font-size: 15px;
}
.main-nav a:hover { color: var(--pf-red); }

.site-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 34px 28px 46px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.panel,
.news-card,
.right-card {
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  box-shadow: var(--pf-shadow);
}

.right-sidebar {
  position: sticky;
  top: 120px;
}

.left-sidebar {
  position: static;
  min-width: 0;
}

/* Der originale TSViewer soll optisch unverändert bleiben.
   Deshalb bekommt dieser Bereich bewusst keine Card, keinen Header und keine eigenen Tree-Styles. */
.tsviewer-area {
  width: 100%;
  max-width: 290px;
  background: transparent;
  padding: 0;
  overflow: visible;
}
.tsviewer-widget {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.tsviewer-area iframe,
.tsviewer-area object,
.tsviewer-area embed {
  display: block;
  max-width: 100%;
  border: 0;
}
.tsviewer-area img {
  max-width: none;
}

.panel-header,
.right-card h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pf-border);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pf-blue-dark);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fb 100%);
  border-radius: var(--pf-radius) var(--pf-radius) 0 0;
}

.widget-area { padding: 14px; }
.widget-area .widget { margin-bottom: 18px; }
.widget-area .widget:last-child { margin-bottom: 0; }
.widget-title {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--pf-blue-dark);
}
.widget ul { margin: 0; padding-left: 18px; }

.server-placeholder {
  font-size: 13px;
  color: var(--pf-muted);
  background: var(--pf-surface-2);
  border: 1px dashed #bdcad6;
  padding: 14px;
  border-radius: 10px;
}
.server-placeholder strong { color: var(--pf-text); }
.server-tree {
  margin-top: 12px;
  padding: 0;
  list-style: none;
  color: #425363;
}
.server-tree li { padding: 4px 0; }
.server-tree li::before { content: "▸"; margin-right: 7px; color: var(--pf-blue); }
.server-tree .online::before { content: "●"; color: #2f9e44; font-size: 9px; }

.content-column { min-width: 0; }
.hero {
  background: linear-gradient(135deg, var(--pf-blue-dark), var(--pf-blue));
  color: white;
  padding: 28px 30px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: var(--pf-shadow);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(197, 58, 51, .24);
}
.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
.hero p { margin: 0; max-width: 760px; color: rgba(255,255,255,.86); }

.news-grid { display: grid; gap: 20px; }
.news-card { overflow: hidden; }
.news-thumb { aspect-ratio: 16/7; background: #dfe6ec; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-body { padding: 22px 24px 24px; }
.news-meta {
  color: var(--pf-muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.news-title { margin: 0 0 10px; font-size: 24px; line-height: 1.2; }
.news-title a { color: var(--pf-text); }
.news-title a:hover { color: var(--pf-red); }
.news-excerpt { color: #506070; margin: 0 0 18px; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  background: var(--pf-red);
  padding: 9px 13px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}
.read-more:hover { color: white; background: var(--pf-red-dark); }

.right-card { margin-bottom: 18px; overflow: hidden; }
.right-card .inner { padding: 15px 16px; color: var(--pf-muted); font-size: 14px; }
.status-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid #edf1f4; }
.status-row:last-child { border-bottom: 0; }
.status-dot { color: #2f9e44; }

.site-footer {
  border-top: 1px solid var(--pf-border);
  background: #15202b;
  color: #c9d3dc;
}
.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.footer-menu a { color: #dbe5ec; }
.footer-menu a:hover { color: white; }

.pagination { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  background: #fff;
  border: 1px solid var(--pf-border);
  padding: 8px 11px;
  border-radius: 8px;
}
.pagination .current { background: var(--pf-blue); color: white; border-color: var(--pf-blue); }

.single-entry,
.page-entry {
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  box-shadow: var(--pf-shadow);
  padding: 28px;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

@media (max-width: 1120px) {
  .site-shell { grid-template-columns: 290px minmax(0, 1fr); }
  .right-sidebar { display: none; }
}

@media (max-width: 780px) {
  .header-inner { flex-wrap: wrap; padding: 12px 18px; }
  .custom-logo-link img { max-height: 72px; }
  .brand { min-width: 0; flex: 1; }
  .main-nav { width: 100%; margin-left: 0; overflow-x: auto; }
  .main-nav ul { gap: 18px; padding-bottom: 3px; }
  .site-shell { grid-template-columns: 1fr; padding: 20px 16px 34px; }
  .left-sidebar { position: static; order: 2; overflow-x: auto; }
  .content-column { order: 1; }
  .right-sidebar { display: block; position: static; order: 3; }
  .hero { padding: 22px; }
  .news-title { font-size: 21px; }
}

/* === Geschlossener Member-Bereich === */
.member-link {
  color: var(--pf-red) !important;
  font-weight: 800 !important;
}

.member-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 28px 56px;
}

.member-login-card,
.member-welcome,
.member-info-card,
.access-explainer,
.member-dashboard-card {
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  box-shadow: var(--pf-shadow);
}

.member-login-card {
  max-width: 620px;
  margin: 24px auto;
  overflow: hidden;
}
.member-card-head {
  padding: 30px 32px 24px;
  background: linear-gradient(135deg, var(--pf-blue-dark), var(--pf-blue));
  color: #fff;
}
.member-card-head h1 { margin: 5px 0 8px; font-size: 34px; }
.member-card-head p { margin: 0; color: rgba(255,255,255,.86); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--pf-red);
}
.member-card-head .eyebrow { color: #fff; opacity: .78; }
.member-login-form { padding: 28px 32px 30px; }
.member-login-form p { margin: 0 0 16px; }
.member-login-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.member-login-form input[type="text"],
.member-login-form input[type="password"] {
  width: 100%;
  border: 1px solid #cfd9e2;
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}
.member-login-form input[type="text"]:focus,
.member-login-form input[type="password"]:focus {
  outline: 2px solid rgba(30,111,168,.18);
  border-color: var(--pf-blue);
}
.member-login-form .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.member-login-form .button-primary {
  border: 0;
  border-radius: 9px;
  padding: 10px 18px;
  background: var(--pf-red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.member-login-form .button-primary:hover { background: var(--pf-red-dark); }
.login-help { margin-top: 4px !important; }
.login-note { color: var(--pf-muted); font-size: 13px; margin-bottom: 0 !important; }

.member-welcome {
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.member-welcome h1 { margin: 3px 0 7px; font-size: clamp(28px, 4vw, 40px); }
.member-welcome p { margin: 0; color: var(--pf-muted); }
.member-logout {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid var(--pf-border);
  border-radius: 9px;
  font-weight: 700;
  color: var(--pf-text);
  white-space: nowrap;
}
.access-badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  vertical-align: 1px;
  background: #edf1f4;
  color: #495866;
}
.access-member { background: #e4f2fb; color: #155f8f; }
.access-vip { background: #fff2d8; color: #8a5b00; }
.access-admin { background: #fbe5e3; color: #9c302b; }

.access-explainer,
.member-info-card {
  padding: 18px 20px;
  margin-bottom: 20px;
  color: #52616f;
}
.warning-card { border-left: 4px solid var(--pf-red); }
.warning-card h2 { margin-top: 0; color: var(--pf-text); }
.warning-card p { margin-bottom: 0; }

.member-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.member-dashboard-card { padding: 24px; position: relative; overflow: hidden; }
.member-dashboard-card h2 { margin: 8px 0 8px; font-size: 21px; }
.member-dashboard-card p { margin: 0 0 18px; color: var(--pf-muted); }
.member-icon { font-size: 28px; line-height: 1; }
.feature-state {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf1f4;
  color: #63717d;
  font-size: 12px;
  font-weight: 750;
}
.active-state { background: #e6f5e9; color: #26743a; }
.member-exclusive { border-top: 4px solid var(--pf-blue); }
.dashboard-link { font-weight: 800; }

@media (max-width: 720px) {
  .member-shell { padding: 24px 16px 38px; }
  .member-card-head, .member-login-form { padding-left: 22px; padding-right: 22px; }
  .member-welcome { align-items: flex-start; flex-direction: column; }
  .member-dashboard-grid { grid-template-columns: 1fr; }
}


/* === Kleines internes Forum === */
.forum-shell { max-width: 1120px; margin: 0 auto; padding: 42px 28px 56px; }
.forum-topbar { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:18px; }
.forum-topbar h1 { margin:3px 0 5px; font-size:clamp(30px,4vw,42px); }
.forum-topbar p { margin:0; color:var(--pf-muted); }
.forum-back { display:inline-flex; padding:9px 13px; background:#fff; border:1px solid var(--pf-border); border-radius:9px; font-weight:750; white-space:nowrap; }
.forum-categories { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 18px; }
.forum-categories a { padding:8px 12px; background:#fff; border:1px solid var(--pf-border); border-radius:999px; font-weight:750; color:var(--pf-text); }
.forum-categories a.active, .forum-categories a:hover { background:var(--pf-blue); color:#fff; border-color:var(--pf-blue); }
.forum-panel { background:#fff; border:1px solid var(--pf-border); border-radius:14px; box-shadow:var(--pf-shadow); padding:20px; margin-bottom:18px; }
.forum-new-topic summary { cursor:pointer; font-weight:850; font-size:17px; color:var(--pf-blue); }
.forum-new-topic[open] summary { margin-bottom:18px; }
.forum-new-topic form, .forum-reply-form form { display:grid; gap:14px; }
.forum-new-topic label { display:grid; gap:6px; font-weight:700; }
.forum-new-topic input, .forum-new-topic select, .forum-new-topic textarea, .forum-reply-form textarea { width:100%; border:1px solid #cfd9e2; border-radius:9px; padding:10px 12px; font:inherit; background:#fff; }
.forum-button { display:inline-flex; width:max-content; border:0; border-radius:9px; padding:10px 16px; background:var(--pf-red); color:#fff !important; font:inherit; font-weight:850; cursor:pointer; }
.forum-button:hover { background:var(--pf-red-dark); }
.forum-topic-list { padding:0; overflow:hidden; }
.forum-list-head { padding:17px 20px; border-bottom:1px solid var(--pf-border); background:var(--pf-surface-2); }
.forum-list-head h2 { margin:0; font-size:19px; }
.forum-topic-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px 20px; border-bottom:1px solid #edf1f4; color:var(--pf-text); }
.forum-topic-row:last-child { border-bottom:0; }
.forum-topic-row:hover { background:#f9fbfc; color:var(--pf-text); }
.forum-topic-main { min-width:0; display:grid; gap:3px; }
.forum-topic-main strong { font-size:16px; }
.forum-topic-main small { color:var(--pf-muted); }
.forum-cat-label { display:inline-flex; width:max-content; font-size:11px; font-weight:800; color:var(--pf-blue); text-transform:uppercase; letter-spacing:.04em; }
.forum-topic-count { min-width:76px; display:grid; text-align:center; color:var(--pf-muted); }
.forum-topic-count strong { font-size:19px; color:var(--pf-text); }
.forum-topic-count span { font-size:11px; }
.forum-empty { padding:20px; color:var(--pf-muted); }
.forum-post { display:flex; gap:14px; background:#fff; border:1px solid var(--pf-border); border-radius:14px; padding:19px; margin-bottom:14px; box-shadow:var(--pf-shadow); }
.forum-topic-post { border-left:4px solid var(--pf-blue); }
.forum-avatar img { border-radius:50%; display:block; }
.forum-post-content { min-width:0; flex:1; }
.forum-post-meta { color:var(--pf-muted); font-size:13px; margin-bottom:9px; }
.forum-message > *:first-child { margin-top:0; }
.forum-message > *:last-child { margin-bottom:0; }
.forum-replies h2 { display:flex; gap:8px; align-items:center; margin:28px 0 12px; font-size:20px; }
.forum-replies h2 span { font-size:12px; border-radius:999px; background:#e9eef2; padding:3px 7px; color:var(--pf-muted); }
.forum-reply-form h2 { margin-top:0; }
.forum-gate { margin-top:32px; }
@media (max-width:720px) {
  .forum-shell { padding:24px 16px 38px; }
  .forum-topbar { flex-direction:column; }
  .forum-topic-row { align-items:flex-start; }
  .forum-topic-count { min-width:58px; }
  .forum-post { align-items:flex-start; }
}


/* === Member-Profil === */
.member-profile-card {
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: 14px;
  box-shadow: var(--pf-shadow);
  padding: 24px;
  margin: 0 0 20px;
}
.member-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.member-profile-head h2 { margin: 4px 0 5px; font-size: 22px; }
.member-profile-head p { margin: 0; color: var(--pf-muted); }
.profile-login-name {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pf-surface-2);
  color: var(--pf-muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.member-profile-form { display: grid; gap: 15px; }
.member-profile-form label { display: grid; gap: 6px; font-weight: 750; }
.member-profile-form input {
  width: 100%;
  border: 1px solid #cfd9e2;
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}
.member-profile-form input:focus {
  outline: 2px solid rgba(30,111,168,.18);
  border-color: var(--pf-blue);
}
.profile-password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 3px;
}
.profile-form-footer small { color: var(--pf-muted); }
.profile-save-button {
  border: 0;
  border-radius: 9px;
  padding: 10px 16px;
  background: var(--pf-red);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.profile-save-button:hover { background: var(--pf-red-dark); }
.profile-message { border-radius: 9px; padding: 11px 13px; margin: 0 0 16px; font-weight: 650; }
.profile-success { background: #e8f6ec; color: #226a35; border: 1px solid #cce8d3; }
.profile-error { background: #fff0ef; color: #8f2d27; border: 1px solid #f0cfcc; display: grid; gap: 4px; }
@media (max-width: 720px) {
  .member-profile-head, .profile-form-footer { flex-direction: column; align-items: stretch; }
  .profile-password-grid { grid-template-columns: 1fr; }
  .profile-login-name { width: max-content; }
  .profile-save-button { width: 100%; justify-content: center; }
}

/* === Interne Galerie === */
.gallery-shell { max-width: 1180px; margin: 0 auto; padding: 42px 28px 58px; }
.gallery-topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:20px; }
.gallery-topbar h1 { margin:3px 0 6px; font-size:clamp(30px,4vw,42px); }
.gallery-topbar p { margin:0; color:var(--pf-muted); }
.gallery-back { display:inline-flex; padding:9px 13px; background:#fff; border:1px solid var(--pf-border); border-radius:9px; font-weight:750; white-space:nowrap; }
.gallery-panel { background:#fff; border:1px solid var(--pf-border); border-radius:14px; box-shadow:var(--pf-shadow); padding:22px; margin-bottom:20px; }
.gallery-gate { max-width:640px; margin:20px auto; }
.gallery-gate h1 { margin:5px 0 8px; }
.gallery-gate p { color:var(--pf-muted); }
.gallery-button { display:inline-flex; width:max-content; border:0; border-radius:9px; padding:10px 16px; background:var(--pf-red); color:#fff !important; font:inherit; font-weight:850; cursor:pointer; }
.gallery-button:hover { background:var(--pf-red-dark); }
.gallery-upload summary { cursor:pointer; color:var(--pf-blue); font-weight:850; font-size:17px; }
.gallery-upload[open] summary { margin-bottom:18px; }
.gallery-upload form { display:grid; gap:14px; }
.gallery-upload label { display:grid; gap:6px; font-weight:750; }
.gallery-upload input[type="text"], .gallery-upload input[type="file"], .gallery-upload textarea { width:100%; border:1px solid #cfd9e2; border-radius:9px; padding:10px 12px; font:inherit; background:#fff; }
.gallery-upload small { color:var(--pf-muted); font-weight:500; }
.gallery-notice { border-radius:10px; padding:12px 14px; margin:0 0 18px; font-weight:700; }
.gallery-notice-success { background:#e8f6ec; color:#226a35; border:1px solid #cce8d3; }
.gallery-notice-error { background:#fff0ef; color:#8f2d27; border:1px solid #f0cfcc; }
.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.gallery-card { background:#fff; border:1px solid var(--pf-border); border-radius:14px; box-shadow:var(--pf-shadow); overflow:hidden; }
.gallery-image-link { display:block; aspect-ratio:4/3; background:#e8edf1; overflow:hidden; }
.gallery-image { width:100%; height:100%; object-fit:cover; display:block; transition:transform .18s ease; }
.gallery-image-link:hover .gallery-image { transform:scale(1.025); }
.gallery-card-body { padding:15px 16px 16px; }
.gallery-card-body h2 { margin:0 0 7px; font-size:17px; }
.gallery-card-body p { margin:0 0 12px; color:var(--pf-muted); font-size:14px; }
.gallery-meta { display:flex; justify-content:space-between; gap:10px; color:var(--pf-muted); font-size:12px; }
.gallery-delete-form { margin-top:12px; padding-top:12px; border-top:1px solid #edf1f4; }
.gallery-delete-form button { border:0; background:transparent; padding:0; color:var(--pf-red); font:inherit; font-weight:800; cursor:pointer; }
.gallery-pagination { display:flex; flex-wrap:wrap; gap:7px; justify-content:center; margin-top:24px; }
.gallery-pagination .page-numbers { padding:7px 10px; background:#fff; border:1px solid var(--pf-border); border-radius:8px; font-weight:700; }
.gallery-pagination .current { background:var(--pf-blue); border-color:var(--pf-blue); color:#fff; }
.gallery-empty { text-align:center; }
.gallery-empty h2 { margin:9px 0 5px; }
.gallery-empty p { margin:0; color:var(--pf-muted); }
@media (max-width:900px) { .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) {
  .gallery-shell { padding:24px 16px 40px; }
  .gallery-topbar { flex-direction:column; }
  .gallery-grid { grid-template-columns:1fr; }
}


/* === News v1.9: scrollbare Startseite + eingebettete Videos === */
.news-section-shell {
  background: rgba(255,255,255,.58);
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--pf-shadow);
}
.news-section-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  padding:5px 7px 13px;
}
.news-section-head h2 { margin:2px 0 0; font-size:24px; }
.news-scroll-hint { color:var(--pf-muted); font-size:12px; font-weight:750; }
.news-scroll {
  display:grid;
  gap:18px;
  max-height:1120px;
  overflow-y:auto;
  padding:0 8px 4px 0;
  scrollbar-width:thin;
  scrollbar-color:#b6c4cf transparent;
}
.news-scroll::-webkit-scrollbar { width:9px; }
.news-scroll::-webkit-scrollbar-thumb { background:#b6c4cf; border-radius:20px; }
.news-scroll::-webkit-scrollbar-track { background:transparent; }
.planlos-youtube { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; border-radius:10px; background:#101820; margin:12px 0 16px; }
.planlos-youtube iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.single-youtube { margin:18px 0 22px; }
.single-entry > img { max-width:100%; height:auto; border-radius:10px; margin:14px 0 18px; }
.single-back { margin-top:28px; padding-top:18px; border-top:1px solid var(--pf-border); }

/* === Frontend News-Redaktion === */
.newsroom-shell { max-width:1180px; margin:0 auto; padding:42px 28px 58px; }
.newsroom-topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:22px; margin-bottom:20px; }
.newsroom-topbar h1 { margin:3px 0 6px; font-size:clamp(30px,4vw,42px); }
.newsroom-topbar p { margin:0; color:var(--pf-muted); max-width:760px; }
.newsroom-top-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.newsroom-secondary { display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--pf-border); background:#fff; border-radius:9px; padding:9px 12px; font-weight:800; color:var(--pf-text); }
.newsroom-secondary:hover { color:var(--pf-red); }
.newsroom-gate, .newsroom-editor-card, .newsroom-list-card { background:#fff; border:1px solid var(--pf-border); border-radius:14px; box-shadow:var(--pf-shadow); }
.newsroom-gate { max-width:680px; margin:30px auto; padding:26px; }
.newsroom-gate h1 { margin:4px 0 8px; }
.newsroom-gate p { color:var(--pf-muted); }
.newsroom-editor-card { padding:24px; margin-bottom:22px; }
.newsroom-editor-card form { display:grid; gap:18px; }
.newsroom-field { display:grid; gap:7px; font-weight:800; }
.newsroom-field > span, .newsroom-editor-field > span { font-weight:800; }
.newsroom-field em { color:var(--pf-muted); font-style:normal; font-weight:550; }
.newsroom-field input[type="text"], .newsroom-field input[type="url"], .newsroom-field input[type="file"], .newsroom-savebar select { width:100%; border:1px solid #cfd9e2; border-radius:9px; padding:11px 12px; font:inherit; background:#fff; }
.newsroom-field small, .newsroom-editor-field small { color:var(--pf-muted); font-weight:500; }
.newsroom-editor-field { display:grid; gap:7px; }
.newsroom-editor-field .wp-editor-wrap { border-radius:9px; overflow:hidden; }
.newsroom-two-col { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.newsroom-current-image { display:flex; align-items:center; gap:16px; padding:12px; background:var(--pf-surface-2); border-radius:10px; }
.newsroom-current-image img { width:160px; height:95px; object-fit:cover; border-radius:8px; }
.newsroom-current-image label { color:var(--pf-muted); font-weight:700; }
.newsroom-savebar { display:flex; justify-content:flex-end; align-items:flex-end; gap:14px; padding-top:4px; }
.newsroom-savebar label { display:grid; gap:6px; min-width:205px; font-weight:800; }
.newsroom-primary { border:0; border-radius:9px; padding:11px 18px; background:var(--pf-red); color:#fff; font:inherit; font-weight:900; cursor:pointer; min-height:44px; }
.newsroom-primary:hover { background:var(--pf-red-dark); }
.newsroom-notice { border-radius:10px; padding:12px 14px; margin:0 0 18px; font-weight:750; }
.newsroom-notice-success { background:#e8f6ec; color:#226a35; border:1px solid #cce8d3; }
.newsroom-notice-error { background:#fff0ef; color:#8f2d27; border:1px solid #f0cfcc; }
.newsroom-list-card { overflow:hidden; }
.newsroom-list-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; background:var(--pf-surface-2); border-bottom:1px solid var(--pf-border); }
.newsroom-list-head h2 { margin:2px 0 0; font-size:20px; }
.newsroom-list { max-height:520px; overflow-y:auto; }
.newsroom-list-row { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:14px 20px; border-bottom:1px solid #edf1f4; }
.newsroom-list-row:last-child { border-bottom:0; }
.newsroom-list-row > div:first-child { min-width:0; display:grid; gap:4px; }
.newsroom-list-row strong { font-size:15px; }
.newsroom-list-row small { color:var(--pf-muted); }
.newsroom-row-actions { display:flex; gap:12px; white-space:nowrap; font-weight:800; font-size:13px; }
.newsroom-empty { padding:20px; color:var(--pf-muted); }
.news-editor-card { border-top:3px solid var(--pf-blue); }
@media (max-width:760px) {
  .newsroom-shell { padding:24px 16px 40px; }
  .newsroom-topbar, .newsroom-savebar, .newsroom-list-row { flex-direction:column; align-items:stretch; }
  .newsroom-top-actions { justify-content:flex-start; }
  .newsroom-two-col { grid-template-columns:1fr; }
  .newsroom-savebar label { min-width:0; }
  .newsroom-current-image { align-items:flex-start; flex-direction:column; }
  .newsroom-row-actions { white-space:normal; }
}
