/* Interner Mitgliederbereich — ergänzt styles.css */
body.intern { background: var(--bg-soft); display: flex; flex-direction: column; min-height: 100vh; }

.intern-head { background: var(--bg-dark); color: #fff; position: sticky; top: 0; z-index: 40; }
.intern-head__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 1rem; flex-wrap: wrap; }
.intern-head .brand__text strong { color: #fff; }
.intern-head .brand__text small { color: #9aa0ad; }
.intern-head .brand__mark { background: #2a2e38; font-size: 1.1rem; }

.intern-nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.intern-nav a { color: #d3d7df; padding: .5rem .8rem; border-radius: 8px; font-weight: 600; font-size: .93rem; }
.intern-nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.intern-nav a.is-active { background: var(--red); color: #fff; }
.intern-nav__logout { margin-left: .3rem; }
.intern-nav__logout button { background: rgba(255,255,255,.1); color: #fff; border: 0; padding: .5rem .9rem; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: .9rem; }
.intern-nav__logout button:hover { background: var(--red); }

.intern-main { flex: 1; padding: 2rem 0 3rem; }
.intern-foot { background: var(--bg-dark); color: #9aa0ad; padding: 1.2rem 0; font-size: .85rem; }

/* Auth-Karten (Login / Registrierung / Warten) */
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 480px; margin: 2rem auto; padding: 2rem; }
.auth-card h1 { font-size: 1.6rem; }
.auth-card .field { margin-bottom: 1rem; }
.auth-card label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
.auth-card input, .auth-card select, .auth-card textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.auth-card textarea { min-height: 80px; resize: vertical; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.auth-alt { text-align: center; margin-top: 1.2rem; font-size: .92rem; }

/* Interne Panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.panel__head h2 { margin: 0; }

.i-grid { display: grid; gap: 1.4rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 820px) { .i-grid { grid-template-columns: 1fr; } }

.i-stat-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.i-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; text-align: center; }
.i-stat strong { display: block; font-size: 1.8rem; color: var(--red); }
.i-stat span { color: var(--grey); font-size: .88rem; }

/* Event-Liste */
.ev { display: grid; grid-template-columns: 78px 1fr auto; gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev__date { text-align: center; font-weight: 800; line-height: 1.1; }
.ev__date small { display: block; color: var(--grey); font-weight: 600; font-size: .78rem; }
.ev h3 { font-size: 1rem; margin: 0 0 .15rem; }
.ev__meta { font-size: .82rem; color: var(--grey); }

/* Forum */
.thread { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.thread:last-child { border-bottom: 0; }
.thread h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.thread h3 a { color: var(--ink); }
.thread__meta { font-size: .82rem; color: var(--grey); }
.thread__count { text-align: center; min-width: 70px; }
.thread__count strong { display: block; font-size: 1.3rem; color: var(--red); }
.thread__count span { font-size: .72rem; color: var(--grey); }

.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.post__head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; font-size: .86rem; color: var(--grey); }
.post__author { font-weight: 700; color: var(--ink); }
.post__body { white-space: pre-wrap; line-height: 1.6; }

.pill { display: inline-block; background: var(--bg-soft); color: var(--grey); padding: .1rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.pill--red { background: #fbe9ea; color: var(--red-dark); }
.pill--green { background: #e7f6ec; color: #1c7a3e; }

.i-table { width: 100%; border-collapse: collapse; }
.i-table th, .i-table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.i-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); }
.i-inline { display: inline; }
.i-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn-xs { padding: .35rem .7rem; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; font-size: .82rem; color: var(--ink); }
.btn-xs--go { background: var(--red); color: #fff; border-color: var(--red); }
.btn-xs--go:hover { background: var(--red-dark); }
.btn-xs--danger { color: var(--red-dark); border-color: #f0c8c8; }
