:root {
  --bg-page: #f4f4f4;
  --bg-surface: #ffffff;
  --bg-card: #eef6f2;
  --bg-footer: #bf4230;
  --text-main: #2f3137;
  --text-muted: #61656f;
  --brand-red: #bf4230;
  --border: #d8d8d8;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
}

a {
  color: inherit;
}

.site-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-surface);
  box-shadow: var(--shadow);
}

.site-header {
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 10px 12px;
}

.site-header.header-start,
.site-header.header-notfunk,
.site-header.header-kontakt,
.site-header.header-impressum,
.site-header.header-login,
.site-header.header-intern,
.site-header.header-404 {
  background-image: linear-gradient(rgba(191, 66, 48, 0.86), rgba(191, 66, 48, 0.86)), url("../img/header-foto.jpg");
}

.site-header.header-clubstation {
  background-image: linear-gradient(rgba(191, 66, 48, 0.86), rgba(191, 66, 48, 0.86)), url("../img/header-foto-clubstation.jpg");
}

.site-header.header-aktuelles {
  background-image: linear-gradient(rgba(191, 66, 48, 0.86), rgba(191, 66, 48, 0.86)), url("../img/header-foto-wissen.jpg");
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
}

.logo-link img {
  width: 135px;
  height: auto;
  display: block;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.login-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

.login-link:hover {
  border-top-color: #fff;
  border-bottom-color: #fff;
}

.clock-display {
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.site-nav {
  background: #f8f8f8;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
}

.nav-toggle {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  text-align: left;
}

.site-nav ul {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.site-nav ul.is-open {
  display: flex;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

.site-main {
  padding: 14px;
}

.site-main h1 {
  margin-top: 0;
  font-size: 1.9rem;
}

.site-main h2,
.site-main h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.site-main p {
  line-height: 1.4;
}

.flash {
  margin-bottom: 14px;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}

.flash-success {
  background: #e5f7e9;
  border-left: 4px solid #188a3f;
}

.flash-error {
  background: #fdecea;
  border-left: 4px solid #bf4230;
}

.content-section {
  margin-bottom: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #d8e7df;
}

.card-highlight {
  background: #edf5f5;
}

.card img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quicklink {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: #0d7c2b;
  border-radius: 8px;
  padding: 8px 10px;
}

.quicklink:hover {
  background: #0a6523;
}

.post-list {
  display: grid;
  gap: 12px;
}

.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: #f3f3f5;
  border-radius: 12px;
  padding: 12px;
}

.post-thumb img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.post-body h2 {
  margin: 0;
}

.post-body h2 a {
  color: #3f0f77;
  text-decoration: none;
}

.post-date,
.hint {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-item {
  background: #f3f3f5;
  border-radius: 12px;
  padding: 12px;
}

.news-item h2 {
  margin-top: 0;
}

.news-photo {
  width: 100%;
  display: block;
  border-radius: 8px;
  margin-bottom: 10px;
}

.wiki-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.wiki-tile {
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #f7f7f8;
}

.wiki-tile:hover {
  border-color: var(--brand-red);
}

.form-card {
  display: grid;
  gap: 8px;
  background: #f7f7f8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.form-card label {
  font-weight: 700;
}

.form-card input,
.form-card textarea,
.form-card button,
.logout-form button {
  font: inherit;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.form-card textarea {
  min-height: 140px;
  resize: vertical;
}

.form-card button,
.logout-form button {
  width: fit-content;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.back-link {
  display: inline-block;
  margin-bottom: 10px;
}

.site-footer {
  background: var(--bg-footer);
  color: #fff;
  padding: 12px 14px;
}

.site-footer a {
  color: #fff;
}
