/* ============================================================
   BW7 Portal — Neues CSS
   Zwei Themes: hell (Standard) + dunkel (via data-theme="dark")
   Toggle speichert Wahl in localStorage('bw7theme')
   ============================================================ */

/* ── Reset ── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ── CSS-Variablen ── */
[data-theme="light"] {
	--bg: #e8e6f0;
	--bg2: #dad8ee;
	/* Boxen — original bw7.css #DAD8EE */
	--bg3: #cec9e8;
	--bg4: #f4f3fb;
	--text: #222233;
	--text-muted: #444466;
	--text-faint: #8888aa;
	--border: #bbc1f4;
	/* original bw7.css #BBC1F4 */
	--border-soft: rgba(103, 129, 178, 0.25);
	--header-from: #4a6398;
	--header-to: #8fa3c8;
	/* original bw7.css Gradient #6781B2 */
	--nav-bg: #6781b2;
	--nav-text: #dde4f4;
	--nav-active: #ffffff;
	--box-title-bg: #bbc1f4;
	--box-title-text: #1a2040;
	--link: #1a3a7a;
	--link-hover: #0d2255;
	--accent: #6781b2;
	--toggle-bg: #bbc1f4;
	--toggle-text: #1a2040;
	--stat-head: #bbc1f4;
	--cta-from: #4a6398;
	--cta-to: #2a3f6e;
	--iframe-ph: #cec9e8;
	--iframe-ph-text: #6670a0;
	--right-img: #cec9e8;
	--age-bg: rgba(103, 129, 178, 0.1);
	--bottom-bg: #dad8ee;
	--footer-bg: #c8c4e4;
	--shadow: rgba(103, 129, 178, 0.15);
}

[data-theme="dark"] {
	--bg: #12131e;
	--bg2: #1a1d2e;
	--bg3: #21253a;
	--bg4: #2a2e48;
	--text: #d8dcf0;
	--text-muted: #9098c0;
	--text-faint: #505880;
	--border: #353a60;
	--border-soft: rgba(103, 129, 178, 0.2);
	--header-from: #0d1020;
	--header-to: #1a2038;
	--nav-bg: #0f1222;
	--nav-text: #8090c0;
	--nav-active: #c8d0f0;
	--box-title-bg: #252a42;
	--box-title-text: #a0a8d8;
	--link: #7a90d0;
	--link-hover: #a0b0e0;
	--accent: #7a90d0;
	--toggle-bg: #252a42;
	--toggle-text: #a0a8d8;
	--stat-head: #1e2238;
	--cta-from: #0d1020;
	--cta-to: #1a2038;
	--iframe-ph: #1e2238;
	--iframe-ph-text: #505880;
	--right-img: #21253a;
	--age-bg: rgba(103, 129, 178, 0.08);
	--bottom-bg: #1a1d2e;
	--footer-bg: #0f1222;
	--shadow: rgba(0, 0, 0, 0.3);
}

/* ── Basis ── */
body {
	font-family: 'DM Sans', Verdana, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	font-size: 14px;
	line-height: 1.6;
	transition: background .25s, color .25s;
	background-image: url(../../images/back1.png);
	background-repeat: repeat;
	background-size: 33% auto;
	background-position: 0 150px;
}

a {
	color: var(--link);
	text-decoration: none;
}

a:hover {
	color: var(--link-hover);
}

img {
	border: none;
	display: block;
}

/* ── Theme-Toggle ── */
.theme-toggle {
	position: fixed;
	top: 10px;
	right: 10px;
	z-index: 999;
	background: var(--toggle-bg);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 5px 12px 5px 8px;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: var(--toggle-text);
	font-size: 11px;
	box-shadow: 0 2px 8px var(--shadow);
	user-select: none;
	transition: background .2s;
}

.theme-toggle:hover {
	border-color: var(--accent);
}

/* ── Header ── */
.site-header {
	background: linear-gradient(135deg, var(--header-from) 0%, var(--header-to) 100%);
	border-bottom: 2px solid var(--border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	max-width: 1060px;
	margin: 0 auto;
	height: 150px;
	background-image: url(../../images/back_oben.png);
	background-repeat: no-repeat;
	background-position: center 0px;
}

.logo-area {
	padding: 12px 0;
}

.logo-text {
	font-size: 50px;
	font-weight: 700;
	letter-spacing: -1px;
	line-height: 1;
	color: #fff;
}

.logo-text span {
	color: #dde4f4;
	opacity: .85;
}

.logo-sub {
	font-size: 15px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
	margin-top: 2px;
}

.header-tagline {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-size: 17px;
	color: rgba(255, 255, 255, .5);
	text-align: right;
}

/* ── Navigation ── */
.main-nav {
	background: var(--nav-bg);
	border-bottom: 1px solid var(--border);
	transition: background .25s;
}

.nav-inner {
	max-width: 1060px;
	margin: 0 auto;
	padding: 0 12px;
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
	display: none;
}

.nav-inner a {
	color: var(--nav-text);
	font-size: 17px;
	font-weight: 500;
	padding: 10px 13px;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
}

.nav-inner a:hover,
.nav-inner a.active {
	color: var(--nav-active);
	border-bottom-color: var(--nav-active);
}

/* ── Seiten-Layout (Desktop 3-spaltig) ── */
.page-wrap {
	max-width: 1060px;
	margin: 0 auto;
	padding: 12px 14px;
	display: grid;
	grid-template-columns: 175px 1fr 160px;
	grid-template-areas:
		"left  main  right"
		"news  news  news"
		"cta   cta   cta"
		"bot   bot   bot"
		"foot  foot  foot";
	gap: 12px;
	align-items: start;
}

.sidebar-left {
	grid-area: left;
}

.main-content {
	grid-area: main;
}

.sidebar-right {
	grid-area: right;
}

.row-news {
	grid-area: news;
}

.row-cta {
	grid-area: cta;
}

.row-bottom {
	grid-area: bot;
}

.row-footer {
	grid-area: foot;
}

/* ── Box-Grundform ── */
.box {
	background: var(--bg2);
	border: 2px solid var(--border);
	border-radius: 3px;
	margin-bottom: 10px;
	overflow: hidden;
	transition: background .25s, border-color .25s;
}

.box-title {
	background: var(--box-title-bg);
	color: var(--box-title-text);
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-weight: 500;
	padding: 8px 14px;
	border-bottom: 1px solid var(--border);
}

.box-body {
	padding: 10px 14px;
}

/* ── Toplinks Sidebar ── */
.link-cat {
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--accent);
	margin: 9px 0 3px;
	font-weight: 500;
	opacity: .9;
}

.link-cat:first-child {
	margin-top: 0;
}

.sidebar-link {
	display: block;
	color: var(--text-muted);
	font-size: 13px;
	padding: 2px 0 2px 8px;
	border-left: 2px solid transparent;
	transition: all .15s;
}

.sidebar-link:hover {
	color: var(--link-hover);
	border-left-color: var(--accent);
}

/* ── iFrame-Boxen ── */
.iframe-box {
	background: var(--bg2);
	border: 2px solid var(--border);
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 10px;
	transition: background .25s;
}

.iframe-label {
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--box-title-text);
	background: var(--box-title-bg);
	padding: 7px 14px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 7px;
}

.iframe-label::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
	opacity: .8;
}

.iframe-box iframe {
	width: 100%;
	border: none;
	display: block;
	overflow: hidden;
}

/* ── Anzeigen-Trenner ── */
.ad-divider {
	text-align: center;
	font-size: 10px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--text-faint);
	margin: 4px 0 8px;
}

/* ── Große Mittel-Banner (760px breit) ── */
.banner-slot {
	display: block;
	border-radius: 3px;
	margin-bottom: 10px;
	overflow: hidden;
	border: 2px solid var(--border);
	transition: border-color .2s;
	width: 100%;
}

.banner-slot:hover {
	border-color: var(--accent);
}

.banner-slot img {
	width: 100%;
	height: auto;
}

#slideshow {
	position: relative;
	width: 100%;
	height: 365px;
	/* Höhe deiner Bilder */
}

#slideshow>div {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

#slideshow>div img {
	width: 100%;
	height: auto;
	display: block;
}

/* ── Text-Boxen ── */
.text-box {
	background: var(--bg2);
	border: 2px solid var(--border);
	border-radius: 3px;
	padding: 14px;
	margin-bottom: 10px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--text-muted);
	transition: background .25s;
}

.text-box h4 {
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
	margin-bottom: 7px;
}

/* ── Jugendschutz ── */
.age-box {
	background: var(--age-bg);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: 3px;
	padding: 11px 14px;
	margin-bottom: 10px;
	font-size: 12.5px;
	color: var(--text-muted);
}

.age-box strong {
	color: var(--text);
	display: block;
	margin-bottom: 3px;
}

/* ── Statistik-Tabelle ── */
.stats-box {
	background: var(--bg2);
	border: 2px solid var(--border);
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 10px;
	transition: background .25s;
}

.stats-head {
	background: var(--stat-head);
	color: var(--box-title-text);
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 8px 14px;
	border-bottom: 1px solid var(--border);
}

.s-hrow {
	display: grid;
	grid-template-columns: 1fr repeat(3, minmax(55px, 1fr));
	background: var(--stat-head);
	border-bottom: 1px solid var(--border);
}

.s-hcell {
	padding: 5px 10px;
	text-align: right;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--text-faint);
	border-right: 1px solid var(--border-soft);
}

.s-hcell:last-child {
	border-right: none;
}

.s-row {
	display: grid;
	grid-template-columns: 1fr repeat(3, minmax(55px, 1fr));
	border-bottom: 1px solid var(--border-soft);
}

.s-row:last-child {
	border-bottom: none;
}

.s-label {
	padding: 6px 10px;
	color: var(--text-muted);
	font-size: 12px;
	border-right: 1px solid var(--border-soft);
}

.s-val {
	padding: 6px 10px;
	text-align: right;
	color: var(--text);
	font-size: 12px;
	border-right: 1px solid var(--border-soft);
	font-variant-numeric: tabular-nums;
}

.s-val:last-child {
	border-right: none;
}

.s-val.hi {
	color: var(--accent);
	font-weight: 500;
}

/* ── Letzte Berichte ── */
.post-item {
	padding: 10px 14px;
	border-bottom: 1px solid var(--border-soft);
}

.post-item:last-child {
	border-bottom: none;
}

.post-area {
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 2px;
}

.post-meta {
	font-size: 11px;
	display: flex;
	gap: 8px;
	margin-bottom: 3px;
}

.post-date {
	color: var(--accent);
	opacity: .8;
}

.post-author {
	color: var(--text-muted);
}

.post-text {
	color: var(--text);
	font-size: 12.5px;
	line-height: 1.5;
}

.read-more {
	font-size: 11px;
	color: var(--link);
	margin-top: 3px;
	display: inline-block;
}

/* ── Rechte Sidebar — Banner 160×150px ── */
.right-title {
	background: var(--box-title-bg);
	color: var(--box-title-text);
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 8px 12px;
	border-radius: 3px;
	border: 2px solid var(--border);
	margin-bottom: 8px;
}

.rb {
	display: inline-block;
	width: 160px;
	background: var(--bg2);
	border: 2px solid var(--border);
	border-radius: 3px;
	margin-bottom: 8px;
	overflow: hidden;
	transition: background .25s, border-color .2s;
}

.rb:hover {
	border-color: var(--accent);
}

.rb img {
	display: block;
	width: 160px;
	height: 150px;
}

/* ── Newsticker ── */
.row-news {
	background: var(--nav-bg);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	overflow: hidden;
}

.nt-label {
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--nav-active);
	flex-shrink: 0;
	opacity: .8;
}

.nt-text {
	font-size: 13px;
	color: var(--nav-text);
	font-weight: 500;
}

.nt-text marquee {
	font-weight: 500;
}

/* ── Forum-CTA ── */
.row-cta {
	background: linear-gradient(135deg, var(--cta-from) 0%, var(--cta-to) 100%);
	border: 2px solid var(--border);
	border-radius: 10px;
	padding: 22px;
	text-align: center;
}

.cta-title {
	font-size: 21px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 4px;
}

.cta-sub {
	color: rgba(255, 255, 255, .55);
	font-size: 13px;
	margin-bottom: 14px;
}

.cta-btn {
	display: inline-block;
	background: #fff;
	color: var(--cta-to);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 9px 26px;
	border-radius: 5px;
	transition: opacity .2s;
}

.cta-btn:hover {
	opacity: .88;
	color: var(--cta-to);
}

/* ── Untere Banner — 468×60px, 2 Spalten ── */
.row-bottom {
	display: grid;
	grid-template-columns: repeat(2, 468px);
	gap: 12px;
	justify-content: center;
}

.bb {
	width: 468px;
	height: 60px;
	border: 2px solid var(--border);
	border-radius: 3px;
	overflow: hidden;
	transition: border-color .2s;
}

.bb:hover {
	border-color: var(--accent);
}

.bb img {
	display: block;
	width: 468px;
	height: 60px;
}

/* ── Footer ── */
.row-footer {
	background: var(--footer-bg);
	border-top: 2px solid var(--border);
	border-radius: 3px;
	padding: 14px 16px;
	transition: background .25s;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 8px;
}

.footer-links a {
	color: var(--text-muted);
	font-size: 12px;
	padding: 2px 10px;
	border-right: 1px solid var(--border);
}

.footer-links a:last-child {
	border-right: none;
}

.footer-links a:hover {
	color: var(--text);
}

.footer-copy {
	text-align: center;
	font-size: 11px;
	color: var(--text-faint);
}

.tab_forum_info {
	width: 100%;
	margin: 0px;
	padding: 0px;
	border-spacing: 0px;
	border-collapse: separate;
}

.tab_forum_info td {
	border: 1px solid #CCCCCC;
	padding: 3px;
	margin: 0px;
}

.td_25 {
	width: 25%;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* Tablet: 600px–1059px */
@media (max-width: 1059px) and (min-width: 600px) {
	body {
		background-image: none;
	}

	.page-wrap {
		grid-template-columns: 1fr 160px;
		grid-template-areas:
			"main  right"
			"news  news"
			"cta   cta"
			"bot   bot"
			"left  left"
			"foot  foot";
	}

	.header-tagline {
		display: none;
	}

	.row-bottom {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bb {
		width: 100%;
		height: 60px;
	}

	.bb img {
		width: 100%;
		height: 60px;
		object-fit: fill;
	}
}

/* Mobile: unter 600px */
@media (max-width: 599px) {
	body {
		background-image: none;
	}
	.page-wrap {
		grid-template-columns: 1fr;
		grid-template-areas:
			"main"
			"right"
			"news"
			"cta"
			"bot"
			"left"
			"foot";
		padding: 8px;
		gap: 8px;
	}

	.header-tagline {
		display: none;
	}

	.logo-text {
		font-size: 28px;
	}

	.row-bottom {
		grid-template-columns: 1fr;
		justify-content: center;
	}

	.bb {
		width: 100%;
		max-width: 468px;
		margin: 0 auto;
		height: 60px;
	}

	.bb img {
		width: 100%;
		height: 60px;
		object-fit: fill;
	}

	.rb img {
		width: 100%;
		height: auto;
	}
}

/* ── Modal ── */
.bw7-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
}

.bw7-modal-overlay[hidden] {
    display: none;
}

.bw7-modal-box {
    background: var(--bg2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
    max-width: 750px;
    padding: 30px 36px 36px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.bw7-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-faint);
    padding: 2px 6px;
}

.bw7-modal-close:hover {
    color: var(--text);
}

.bw7-modal-body h1 {
    margin-top: 0;
    font-size: 1.4rem;
}

.bw7-modal-body h3 {
    margin-top: 1.4em;
}

.bw7-modal-body a {
    color: var(--link);
}

.bw7-modal-body table {
    width: auto;
}

.bw7-modal-body input[type=text],
.bw7-modal-body input[type=email],
.bw7-modal-body textarea {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

.bw7-modal-body input[type=submit] {
    padding: 7px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.bw7-modal-body input[type=submit]:hover {
    opacity: .88;
}