/* css/styles.css (bereinigt + Mobile clean) */
:root {
  --blue: #2a4d75;
  --red: #da2b1d;
  --dark: #282828;

  --bg: #ffffff;
  --surface: #f6f7f9;
  --card: #ffffff;
  --text: #1b1f24;
  --muted: #5a6673;
  --line: rgba(40, 40, 40, 0.14);

  --radius: 18px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  --shadow2: 0 10px 26px rgba(0, 0, 0, 0.1);

  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 210px;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--dark);
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown {
  position: relative;
}

.dropbtn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--dark);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.dropbtn:hover {
  border-color: rgba(42, 77, 117, 0.35);
}

.dropbtn:active {
  transform: translateY(1px);
}

.chev {
  font-size: 12px;
  color: var(--muted);
}

.dropmenu {
  position: absolute;
  right: 0;
  top: 46px;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow2);
  padding: 8px;
  display: none;
}

.dropmenu.open {
  display: block;
}

.dropmenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--dark);
  font-weight: 650;
}

.dropmenu a:hover {
  background: rgba(42, 77, 117, 0.08);
  color: var(--blue);
}

.menu-sep {
  height: 1px;
  background: var(--line);
  margin: 8px 6px;
}

/* HERO */
.main {
  min-height: calc(100vh - 68px);
  padding-bottom: 0;
}

.hero {
  background:
    radial-gradient(
      900px 420px at 15% 20%,
      rgba(42, 77, 117, 0.14),
      transparent 60%
    ),
    radial-gradient(
      700px 360px at 85% 15%,
      rgba(218, 43, 29, 0.1),
      transparent 55%
    ),
    linear-gradient(180deg, #ffffff, #fafbfc);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding: 44px 0 38px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--blue);
  background: rgba(42, 77, 117, 0.08);
  border: 1px solid rgba(42, 77, 117, 0.18);
  padding: 8px 12px;
  border-radius: 999px;
  margin: 0 0 14px;
  width: fit-content;
}

h1 {
  margin: 0 0 10px;
  font-size: 44px;
  letter-spacing: -0.6px;
  color: var(--dark);
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(42, 77, 117, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-secondary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px rgba(218, 43, 29, 0.22);
}

.btn-secondary:hover {
  filter: brightness(1.03);
}

.btn-ghost {
  background: #fff;
  color: var(--dark);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(42, 77, 117, 0.35);
  color: var(--blue);
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.mini-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.mini-title {
  font-weight: 900;
  color: var(--dark);
  font-size: 13px;
  margin-bottom: 4px;
}

.mini-value {
  font-weight: 900;
  color: var(--blue);
  font-size: 14px;
}

.mini-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.hero-logo {
  display: flex;
  justify-content: center;
}

.logo-wrap {
  width: min(360px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
}

/* SECTIONS */
.section {
  padding: 46px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.3px;
  color: var(--dark);
}

.muted {
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--dark);
  letter-spacing: -0.2px;
}

.card p {
  margin: 0 0 12px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(42, 77, 117, 0.22);
  border: 2px solid rgba(42, 77, 117, 0.45);
  flex: 0 0 10px;
}

.link {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.badge {
  font-weight: 900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(40, 40, 40, 0.16);
  background: #fff;
  color: var(--dark);
}

.badge:nth-child(2n) {
  border-color: rgba(42, 77, 117, 0.22);
  color: var(--blue);
  background: rgba(42, 77, 117, 0.06);
}

.info-card {
  position: relative;
  overflow: hidden;
}

.info-card:before {
  content: "";
  position: absolute;
  inset: -120px -140px auto auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(218, 43, 29, 0.18),
    transparent 60%
  );
  transform: rotate(12deg);
}

.info-card > * {
  position: relative;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.info-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.info-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.info-value {
  font-size: 14px;
  color: var(--dark);
  font-weight: 900;
  margin-top: 2px;
}

.steps {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}

.step-nr {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(42, 77, 117, 0.22);
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Bild-Sections */
.section-img {
  position: relative;
  overflow: visible;
  padding: 62px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(40, 40, 40, 0.65), rgba(40, 40, 40, 0.45)),
    var(--img);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.section-img > .container {
  position: relative;
  z-index: 1;
}

.section-termine {
  --img: url("../img/h1.png");
}

.section-mitgliedschaft {
  --img: url("../img/h2.png");
}

.section-img-last {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 62px;
}

.section-head-onimg h2 {
  color: #fff;
}

.muted-onimg {
  color: rgba(255, 255, 255, 0.85);
}

.card-onimg {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.25);
}

.card-onimg .muted {
  color: #4c5864;
}

@supports (padding: env(safe-area-inset-bottom)) {
  .section-img-last {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: #fff;
  margin-top: 0;
}

.footer-inner {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.footer-title {
  font-weight: 1000;
  letter-spacing: 0.2px;
}

.footer-sub {
  font-size: 12px;
  opacity: 0.75;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  font-weight: 800;
  font-size: 13px;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 12px;
  opacity: 0.75;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}

/* ===== Impressum / Rechtstexte ===== */
.page-hero {
  background:
    radial-gradient(
      900px 420px at 15% 20%,
      rgba(42, 77, 117, 0.14),
      transparent 60%
    ),
    radial-gradient(
      700px 360px at 85% 15%,
      rgba(218, 43, 29, 0.1),
      transparent 55%
    ),
    linear-gradient(180deg, #ffffff, #fafbfc);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  padding: 34px 0 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
}

.page-title {
  margin: 0 0 10px;
  font-size: 40px;
  letter-spacing: -0.6px;
  color: var(--dark);
}

.page-hero-logo .logo-wrap {
  width: min(320px, 100%);
}

.impressum-block {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.impressum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.impressum-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
}

.impressum-value {
  font-weight: 900;
  color: var(--dark);
  text-align: right;
}

.impressum-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.impressum-logo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.impressum-logo-card img {
  max-height: 110px;
  width: auto;
}

.legal-card {
  max-width: 860px;
  margin: 0 auto 18px;
}

.legal-card h2 {
  margin-top: 0;
}

.legal-card h3 {
  margin: 18px 0 6px;
  font-size: 18px;
}

.legal-card p {
  margin-bottom: 12px;
}

.legal-card .small {
  font-size: 12px;
  opacity: 0.7;
}

.legal-text h2 {
  margin-top: 0;
}

.legal-list {
  margin: 10px 0 16px;
  padding-left: 18px;
  color: var(--dark);
}

.legal-list li {
  margin: 8px 0;
}

/* Kontakt-Form */
.contact-form {
  max-width: 860px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-weight: 900;
  color: var(--dark);
  font-size: 13px;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  color: var(--dark);
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 160px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(42, 77, 117, 0.45);
  box-shadow: 0 0 0 4px rgba(42, 77, 117, 0.1);
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.form-alert {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.form-alert.success {
  border-color: rgba(42, 77, 117, 0.35);
  background: rgba(42, 77, 117, 0.08);
}

.form-alert.error {
  border-color: rgba(218, 43, 29, 0.35);
  background: rgba(218, 43, 29, 0.08);
}

.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ===============================
   GALERIE – EINHEITLICHE KARTEN
================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  height: 420px;
  cursor: pointer;
}

.flip-card {
  width: 100%;
  height: 100%;
  perspective: 1200px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.gallery-item.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

/* Vorderseite */
.gallery-image {
  position: relative;
  height: 260px;
  background: #000;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-front-meta {
  padding: 14px 16px;
}

.gallery-front-meta h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

/* Rückseite */
.flip-back {
  transform: rotateY(180deg);
  padding: 20px;
  justify-content: center;
  text-align: center;
}

.gallery-back-inner h3 {
  margin-bottom: 10px;
}

.gallery-back-inner p {
  line-height: 1.5;
}

/* Admin thumb layout */
.gallery-admin-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  align-items: start;
}

.gallery-admin-thumb {
  width: 100%;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.gallery-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-admin-meta {
  min-width: 0;
}

/* Zoom Button + Lightbox */
.zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.zoom-btn:hover {
  transform: translateY(-1px);
}

.zoom-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox.open {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.lightbox-inner {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  margin: 6vh auto 0;
  padding: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox-inner img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  background: #111;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.lightbox-caption {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
  padding: 0 4px 2px;
}

/* ===== News Layout ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.news-image {
  height: 220px;
  background: #000;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  padding: 16px;
}

.news-date {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.news-title {
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}

.news-text {
  color: var(--text);
}

.news-text p {
  margin: 0 0 10px;
}

.news-title-link {
  color: var(--dark);
  text-decoration: none;
}

.news-title-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* News detail */
.news-detail {
  max-width: 900px;
  margin: 0 auto;
}

.news-detail-image {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.news-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-detail-text {
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

/* News Detail Galerie */
.news-detail-gallery {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.news-detail-figure {
  margin: 0;
}

.news-detail-figure img {
  width: 50%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.news-detail-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ===== Simple Form (Admin) ===== */
.form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-label {
  font-weight: 900;
  color: var(--dark);
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  background: #fff;
}

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

/* ===== Admin Thumbnail ===== */
.admin-thumb {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Searchbar ===== */
.searchbar {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 1 1 260px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

/* ===== Mitglieder – Steckbrief ===== */
.member-profile {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.member-bio {
  margin: 10px 0 14px;
}

.member-facts {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
}

.member-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.member-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
  flex: 0 0 auto;
}

.member-value {
  font-weight: 900;
  color: var(--dark);
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Steckbrief Scroll */
.profile-back {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.profile-back-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 6px;
}

.profile-back-scroll::-webkit-scrollbar {
  width: 8px;
}

.profile-back-scroll::-webkit-scrollbar-thumb {
  background: rgba(40, 40, 40, 0.18);
  border-radius: 999px;
}

.profile-back-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== Merch / Shop ===== */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.merch-item {
  height: 460px;
  cursor: pointer;
}

.merch-item .flip-card,
.merch-item .flip-inner {
  height: 100%;
}

.merch-front-media {
  height: 280px;
  background: #000;
}

.merch-front-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merch-front-meta {
  padding: 14px 16px;
}

.merch-price {
  font-weight: 1000;
  color: var(--blue);
  margin-top: 6px;
}

.merch-back {
  padding: 18px;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
}

.merch-back .muted {
  margin: 0;
}

.merch-back-scroll {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}

.merch-back-scroll::-webkit-scrollbar {
  width: 8px;
}

.merch-back-scroll::-webkit-scrollbar-thumb {
  background: rgba(40, 40, 40, 0.18);
  border-radius: 999px;
}

.merch-back-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.merch-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.merch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.select,
.qty {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
  font: inherit;
  color: var(--dark);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.cart-table th,
.cart-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cart-table th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
}

.cart-table tr:last-child td {
  border-bottom: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 1000;
}

/* Pretty Select */
.select-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
}

.select {
  appearance: none;
  width: 100%;
  padding: 10px 42px 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  font: inherit;
  line-height: 1.2;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
  max-width: 100%;
  min-width: 0;
}

.select:hover {
  border-color: rgba(0, 0, 0, 0.25);
}

.select:focus {
  outline: none;
  border-color: rgba(218, 43, 29, 0.55);
  box-shadow:
    0 0 0 4px rgba(218, 43, 29, 0.16),
    0 14px 34px rgba(0, 0, 0, 0.1);
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(0, 0, 0, 0.55);
  border-bottom: 2px solid rgba(0, 0, 0, 0.55);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
  opacity: 0.9;
}

.album-select {
  max-width: 260px;
}

.select-wrap--filter {
  width: 260px;
  max-width: 100%;
}

.select-wrap--card {
  width: 100%;
  max-width: 220px;
}

.cta-row .select-wrap,
.gallery-admin-meta .select-wrap {
  flex: 1 1 220px;
  min-width: 0;
}

/* ==========================
   ADMIN DASHBOARD – ÜBERSICHT
========================== */
.admin-head {
  align-items: flex-end;
}

.admin-grid .admin-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
}

.admin-card-top h3 {
  margin: 0 0 6px;
}

.admin-card-top .muted {
  margin: 0;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.admin-actions-2 .btn {
  flex: 1 1 180px;
  min-width: 0;
}

.admin-grid .btn {
  padding: 10px 14px;
  font-size: 13px;
}

.admin-card-system {
  position: relative;
  overflow: hidden;
}

.admin-card-system::before {
  content: "";
  position: absolute;
  inset: -120px -140px auto auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(218, 43, 29, 0.14),
    transparent 60%
  );
  transform: rotate(12deg);
}

.admin-card-system > * {
  position: relative;
}

/* ==========================
   RESPONSIVE
========================== */

/* Tablet und kleiner */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 0 22px;
  }

  .hero-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.3px;
  }

  .lead {
    font-size: 15px;
  }

  .grid-3,
  .grid-2,
  .split {
    grid-template-columns: 1fr;
  }

  .logo-wrap {
    padding: 18px;
    border-radius: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-links {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-title {
    font-size: 34px;
    line-height: 1.08;
  }

  .impressum-logos {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-detail-image {
    height: 240px;
  }

  .news-detail-figure img {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-admin-row {
    grid-template-columns: 1fr;
  }

  .merch-grid {
    grid-template-columns: 1fr;
  }

  .merch-row {
    grid-template-columns: 1fr;
  }

  .member-fact {
    flex-direction: column;
    align-items: flex-start;
  }

  .member-value {
    text-align: left;
    white-space: normal;
  }
}

/* Handy: richtig zentriert und ruhig */
@media (max-width: 700px) {
  .container {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .nav-inner {
    height: auto !important;
    padding: 14px 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-align: center;
  }

  .brand {
    min-width: 0 !important;
    align-items: center;
    text-align: center;
  }

  .nav-right {
    width: 100% !important;
    justify-content: center !important;
  }

  .dropdown {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .dropbtn {
    width: min(360px, 100%) !important;
    justify-content: center !important;
  }

  .dropmenu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(360px, 100%) !important;
    min-width: 0 !important;
  }

  .hero-text {
    max-width: 560px !important;
    margin: 0 auto !important;
    text-align: center;
  }

  .kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    width: min(360px, 100%);
  }

  .footer-inner {
    text-align: center;
  }

  .footer-links {
    align-items: center;
    justify-content: center;
  }

  .footer-links a {
    width: 100%;
    text-align: center;
  }

  .admin-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .select-wrap--filter,
  .select-wrap--card,
  .album-select {
    width: 100%;
    max-width: 100%;
  }
}

.footer-copy a {
  color: inherit;
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* ==========================
   COOKIE BANNER
========================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 9998;
  padding: 0 18px;
}

.cookie-card {
  max-width: var(--max);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 14px;
}

.cookie-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-text a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-actions .btn {
  padding: 10px 14px;
  font-size: 13px;
}

@media (max-width: 700px) {
  .cookie-banner {
    bottom: 10px;
    padding: 0 22px;
  }

  .cookie-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cookie-actions {
    justify-content: center;
  }

  .cookie-actions .btn {
    width: min(360px, 100%);
    justify-content: center;
  }
}
