/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bg: #ffffff;
  --surface: #f3f4f5;
  --border-c: #e3e5e7;
  --text: #1c2024;
  --body-c: #3a3f44;
  --muted: #5a6169;
  --faint: #8a9096;
  --navy: #1e3a5f;
  --navy-hover: #16304c;
  --navy-tint: #eaf0f6;
  --error: #b8342a;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#unsere-anlagen { scroll-margin-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

::selection { background: #cddce9; }

a { color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-c);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 700;
  font-size: clamp(14px, 2.4vw, 16px);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.nav--desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body-c);
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease;
}

.nav__link:hover { background: var(--surface); }

.nav__link.is-active {
  font-weight: 700;
  color: var(--navy);
  background: var(--navy-tint);
}

.nav__link.is-active:hover { background: var(--navy-tint); }

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-c);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.hamburger span + span { margin-top: 4px; }

.nav--mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 18px;
  border-top: 1px solid var(--border-c);
  background: #fff;
}

.nav--mobile.is-open { display: flex; }

@media (max-width: 800px) {
  .nav--desktop { display: none; }
  .hamburger { display: flex; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-c);
}

.site-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.site-footer__title { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.site-footer__heading { font-weight: 700; font-size: 13px; margin-bottom: 10px; letter-spacing: 0.02em; }
.site-footer__text { font-size: 13px; color: var(--body-c); margin: 0; }

.site-footer__links { display: flex; flex-direction: column; gap: 8px; }
.site-footer__links a { font-size: 13px; color: var(--body-c); text-decoration: none; }
.site-footer__links a:hover { color: var(--navy); }

.site-footer__bottom {
  border-top: 1px solid var(--border-c);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.site-footer__copy { font-size: 12px; color: var(--faint); }

/* ==========================================================================
   Hero carousel
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: clamp(360px, 58vw, 560px);
  overflow: hidden;
  background: #1c2024;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.9s ease;
}

.hero__slide.is-active { opacity: 1; z-index: 2; }

.hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,18,0.05) 0%, rgba(10,14,18,0.72) 100%);
}

.hero__caption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  font-family: var(--font-mono);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 5;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.85;
  margin-bottom: 14px;
}

.hero__title {
  color: #fff;
  font-size: clamp(28px, 5.2vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 820px;
}

.hero__lead {
  color: #e7e9eb;
  font-size: clamp(15px, 2.2vw, 19px);
  max-width: 560px;
  margin: 0 0 28px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--navy-tint); }

.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: rgba(255,255,255,0.2); }

.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 6;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.45);
  transition: all 0.25s ease;
  padding: 0;
}

.hero__dot.is-active { width: 22px; background: #fff; }

/* ==========================================================================
   Quick facts
   ========================================================================== */
.quick-facts {
  background: var(--surface);
  border-bottom: 1px solid var(--border-c);
}

.quick-facts__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
}

.stat__value--sm { font-size: 22px; }

.stat__label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ==========================================================================
   Generic section paddings
   ========================================================================== */
.section-pad { padding: clamp(48px, 8vw, 88px) 0; }
.section-pad--tight { padding: clamp(48px, 8vw, 80px) 0; }
.surface-band { background: var(--surface); }
.bordered-y { border-top: 1px solid var(--border-c); border-bottom: 1px solid var(--border-c); }
.border-t { border-top: 1px solid var(--border-c); }
.border-b { border-bottom: 1px solid var(--border-c); }

/* ==========================================================================
   Welcome (2-col)
   ========================================================================== */
.welcome {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 12px;
}

.h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.h2--center { text-align: center; margin: 0 0 32px; font-size: clamp(22px, 3vw, 30px); }

.body-text { font-size: 16px; color: var(--body-c); margin: 0 0 14px; }
.body-text:last-child { margin-bottom: 0; }

.media-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
}

.media-frame--link {
  display: block;
}

.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.media-frame--16-10 { aspect-ratio: 16 / 10; }

/* ==========================================================================
   Anlagen overview cards
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border-c);
  border-radius: 14px;
  overflow: hidden;
}

.card__body { padding: 24px; }
.card__title { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.card__text { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.card__link { color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; }

/* ==========================================================================
   Page titles
   ========================================================================== */
.page-title {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

/* ==========================================================================
   Der Club
   ========================================================================== */
.club-intro {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
}

.h3 { font-size: 19px; font-weight: 700; margin: 0 0 12px; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-c);
  border-radius: 14px;
  padding: 28px;
}

.stat-card__list { display: flex; flex-direction: column; gap: 16px; }

.history { display: flex; flex-direction: column; gap: 56px; }

.history__row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.history__row--reverse { flex-direction: row-reverse; }

.history__media {
  flex: 1;
  min-width: 280px;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
}

.history__media img { width: 100%; height: 100%; object-fit: cover; }

.history__text { flex: 1; min-width: 280px; }
.history__year { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.history__title { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.history__desc { font-size: 15px; color: var(--body-c); margin: 0; white-space: pre-line; }

/* ==========================================================================
   H0 / Spur-0 headers
   ========================================================================== */
.line-header {
  position: relative;
  padding-bottom: clamp(28px, 4vw, 44px);
}

.line-header--flat {
  padding: clamp(28px, 4vw, 44px) 24px;
}

.line-header__roof {
  width: 100%;
  height: clamp(20px, 3vw, 36px);
  background: linear-gradient(180deg, #C9D1D5 0%, #8C969D 45%, #6B747B 78%, #4F565C 100%);
}

.line-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.line-header--flat .line-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.line-header__inner--pad-top { padding-top: clamp(20px, 3vw, 32px); }

.line-header__scale {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #a9c0d6;
  margin-bottom: 12px;
}

.line-header__title {
  color: #fff;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.line-header__desc { color: #dbe4ec; font-size: 16px; max-width: 680px; margin: 0; }

.line-header__stripe {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
}

.h0-header { background: #1C2B42; }
.spur0-header { background: #6B1C23; }

/* ==========================================================================
   Specs grid + theme gallery
   ========================================================================== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.specs-grid__item {
  background: var(--surface);
  border: 1px solid var(--border-c);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy);
}

.theme-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.theme-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-c);
}

.theme-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.theme-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.theme-card__label { padding: 12px 14px; font-size: 14px; font-weight: 600; }
.theme-card__count { font-weight: 400; color: var(--muted); font-size: 13px; }

.theme-card__empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 13px;
  background: var(--surface);
}

.gallery-card { cursor: pointer; }
.gallery-card:hover .theme-card__media img { transform: scale(1.05); }
.gallery-card:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ==========================================================================
   Galerie-Lightbox
   ========================================================================== */

/* Der Sticky-Header nutzt backdrop-filter, was in manchen Browsern die
   z-index-Stapelreihenfolge gegenüber der Lightbox durcheinanderbringt.
   Daher wird der Header bei geöffneter Lightbox einfach ausgeblendet. */
.lightbox-open .site-header { visibility: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 14, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open { display: flex; }

.lightbox__stage {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox__image {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 8px;
  object-fit: contain;
  background: #000;
}

.lightbox__caption {
  color: #fff;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  text-align: center;
}

.lightbox__title { font-weight: 600; }
.lightbox__counter { font-family: var(--font-mono); color: #cfd6db; font-size: 12px; }

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: 10px; right: 10px; }
}

.h3-page { font-size: 22px; font-weight: 800; margin: 0 0 20px; }

.photo-credit {
  font-size: 12px;
  color: var(--faint);
  margin-top: 24px;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.kontakt-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
  gap: 48px;
}

.kontakt-block { margin-bottom: 32px; }
.kontakt-block:last-child { margin-bottom: 0; }
.kontakt-block p { margin: 0; font-size: 15px; color: var(--body-c); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border-c);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 36px);
}

.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

.field-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #d7dade;
  font-size: 14px;
  margin-bottom: 16px;
  font-family: inherit;
}

textarea.field-input { resize: vertical; }

.form-error { font-size: 13px; color: var(--error); margin-bottom: 14px; }

.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover { background: var(--navy-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-primary--block { width: 100%; }

.success-box { display: flex; flex-direction: column; align-items: flex-start; }

.success-box__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  font-size: 20px;
}

/* ==========================================================================
   Links page
   ========================================================================== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.link-placeholder {
  border: 1px dashed #d7dade;
  border-radius: 12px;
  padding: 22px;
  color: var(--faint);
  font-size: 14px;
}

.link-card {
  display: block;
  border: 1px solid var(--border-c);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.15s ease;
}

.link-card:hover {
  border-color: var(--navy);
}

.link-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.link-card__text {
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.blog-card--placeholder {
  background: var(--surface);
  border-style: dashed;
}

@media (max-width: 900px) {
  .blog-list { grid-template-columns: repeat(2, 1fr); }
  .blog-card--placeholder { display: none; }
}

@media (max-width: 560px) {
  .blog-list { grid-template-columns: 1fr; }
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-c);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.blog-card:hover { border-color: var(--navy); }

.blog-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }

.blog-card__body { padding: 20px; }

.blog-card__meta { font-size: 12px; color: var(--faint); margin-bottom: 8px; }
.blog-card__title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.blog-card__teaser { font-size: 14px; color: var(--muted); margin: 0 0 12px; }

.blog-post__meta { font-size: 13px; color: var(--faint); margin-bottom: 20px; }

.blog-post__cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
}

.blog-post__cover img { width: 100%; display: block; }

.blog-post__teaser {
  font-size: 17px;
  font-weight: 700;
  color: var(--body-c);
  margin: 0 0 28px;
}

.blog-post__content { display: flex; flex-direction: column; gap: 20px; }

.blog-post__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-c);
  white-space: pre-line;
  margin: 0;
}

.blog-post__figure { margin: 0; }
.blog-post__figure-media { border-radius: 10px; overflow: hidden; }
.blog-post__figure-media img { width: 100%; display: block; }
.blog-post__figure figcaption {
  font-size: 13px;
  color: var(--faint);
  margin-top: 8px;
  text-align: center;
}

/* ==========================================================================
   Admin: Blog
   ========================================================================== */
.blog-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-admin-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border-c);
  border-radius: 12px;
  background: #fff;
  flex-wrap: wrap;
}

.blog-admin-row__thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.blog-admin-row__info { flex: 1 1 240px; }
.blog-admin-row__title { font-weight: 600; font-size: 15px; }
.blog-admin-row__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

.blog-admin-row__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.blog-admin-row__edit,
.blog-admin-row__delete {
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-c);
  background: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--body-c);
  text-decoration: none;
  display: inline-block;
}

.blog-admin-row__edit:hover { border-color: var(--navy); color: var(--navy); }
.blog-admin-row__delete:hover { border-color: var(--error); color: var(--error); }

.blog-cover-field {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.blog-cover-field img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.blog-cover-field__placeholder {
  width: 160px;
  height: 100px;
  border: 1px dashed var(--border-c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--faint);
}

.blog-cover-field__replace {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  border: 1px solid var(--border-c);
  border-radius: 6px;
  padding: 8px 12px;
}

.blog-cover-field__replace:hover { border-color: var(--navy); }

.blog-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-c);
  border-radius: 12px;
  background: var(--surface);
  cursor: grab;
}

.blog-block.is-dragging { opacity: 0.4; }

.blog-block__handle {
  flex-shrink: 0;
  color: var(--faint);
  font-size: 18px;
  line-height: 1;
  padding-top: 8px;
  user-select: none;
}

.blog-block__text { flex: 1 1 auto; margin-bottom: 0; resize: vertical; }

.blog-block__image {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-block__image img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.blog-block__image-placeholder {
  width: 140px;
  height: 100px;
  border: 1px dashed var(--border-c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

.blog-block__image-replace {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border-c);
  border-radius: 6px;
  padding: 6px 8px;
}

.blog-block__caption {
  flex: 1 1 auto;
  margin-bottom: 0;
  align-self: center;
}

.blog-block__remove {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-c);
  background: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--body-c);
}

.blog-block__remove:hover { border-color: var(--error); color: var(--error); }

.blog-block-add {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.blog-block-add button {
  font-size: 13px;
  font-weight: 600;
  border: 1px dashed var(--border-c);
  background: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--navy);
}

.blog-block-add button:hover { border-color: var(--navy); background: var(--surface); }

@media (max-width: 640px) {
  .blog-block { flex-wrap: wrap; }
  .blog-cover-field { flex-wrap: wrap; }
}

/* ==========================================================================
   Impressum
   ========================================================================== */
.legal h2 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.legal p { font-size: 15px; color: var(--body-c); margin: 0 0 24px; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 24px; padding-left: 20px; }
.legal ul li { font-size: 15px; color: var(--body-c); margin-bottom: 8px; }
.legal ul li:last-child { margin-bottom: 0; }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-lead { font-size: 14px; color: var(--muted); margin: 0 0 32px; }

.login-panel { max-width: 360px; }

.admin-forgot-link {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
}

.admin-forgot-link:hover { color: var(--navy); }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  border-radius: 14px;
  border: 2px dashed #c8ccd0;
  background: #fff;
  transition: all 0.15s ease;
}

.dropzone.is-dragover {
  border: 2px solid var(--navy);
  background: var(--navy-tint);
}

.dropzone__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--navy-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--navy);
}

.dropzone__title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.dropzone__or { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.dropzone__label {
  background: var(--navy);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
}

.dropzone__label:hover { background: var(--navy-hover); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.photo-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-c);
  cursor: grab;
}

.photo-tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.photo-tile.is-dragging { opacity: 0.35; }

.photo-tile__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(20,22,24,0.65);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.admin-panel + .admin-panel { margin-top: 32px; }

/* ==========================================================================
   Admin: Übersichtsmenü
   ========================================================================== */
.admin-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.admin-menu__item {
  display: block;
  border: 1px solid var(--border-c);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.15s ease;
}

.admin-menu__item:hover { border-color: var(--navy); }

.admin-menu__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.admin-menu__text { font-size: 14px; color: var(--muted); }

.admin-back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.admin-back-link:hover { color: var(--navy); }

/* ==========================================================================
   Admin: Links-Seite
   ========================================================================== */
.link-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.link-admin-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-c);
  border-radius: 12px;
  background: #fff;
  flex-wrap: wrap;
}

.link-admin-row--new {
  background: var(--surface);
}

.link-admin-row__fields {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 10px;
  flex: 1 1 420px;
}

.link-admin-row__fields .field-input { margin-bottom: 0; }

.link-admin-row__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-self: center;
}

.link-admin-row__save,
.link-admin-row__delete {
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-c);
  background: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--body-c);
}

.link-admin-row__save:hover { border-color: var(--navy); color: var(--navy); }
.link-admin-row__delete:hover { border-color: var(--error); color: var(--error); }

@media (max-width: 640px) {
  .link-admin-row__fields { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Admin: Unsere Geschichte
   ========================================================================== */
.history-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.history-admin-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border-c);
  border-radius: 12px;
  background: #fff;
  flex-wrap: wrap;
}

.history-admin-row--new {
  background: var(--surface);
}

.history-admin-row__image {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-admin-row__image img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: var(--surface);
}

.history-admin-row__image-placeholder {
  width: 120px;
  height: 90px;
  border: 1px dashed var(--border-c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

.history-admin-row__image-replace {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border-c);
  border-radius: 6px;
  padding: 6px 8px;
}

.history-admin-row__image-replace:hover { border-color: var(--navy); }

.history-admin-row__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 320px;
}

.history-admin-row__fields .field-input { margin-bottom: 0; }

.history-admin-row__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  align-self: center;
}

.history-admin-row__save,
.history-admin-row__delete {
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-c);
  background: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--body-c);
}

.history-admin-row__save:hover { border-color: var(--navy); color: var(--navy); }
.history-admin-row__delete:hover { border-color: var(--error); color: var(--error); }

@media (max-width: 640px) {
  .history-admin-row__image { flex-direction: row; align-items: center; width: 100%; }
}

/* ==========================================================================
   Admin: Userverwaltung
   ========================================================================== */
.user-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.user-admin-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-c);
  border-radius: 12px;
  background: #fff;
}

.user-admin-row--new {
  background: var(--surface);
}

.user-admin-row__fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 10px;
}

.user-admin-row__fields .field-input { margin-bottom: 0; }

.user-admin-row__roles {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.user-admin-row__role {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--body-c);
  cursor: pointer;
}

.user-admin-row__badge {
  font-size: 12px;
  color: var(--error);
}

.user-admin-row__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.user-admin-row__save,
.user-admin-row__reset,
.user-admin-row__delete {
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-c);
  background: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--body-c);
}

.user-admin-row__save:hover { border-color: var(--navy); color: var(--navy); }
.user-admin-row__reset:hover { border-color: var(--navy); color: var(--navy); }
.user-admin-row__delete:hover { border-color: var(--error); color: var(--error); }

@media (max-width: 900px) {
  .user-admin-row__fields { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Admin: Aktivitätsprotokoll
   ========================================================================== */
.admin-log-table-wrap {
  overflow-x: auto;
}

.admin-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-log-table th,
.admin-log-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-c);
  white-space: nowrap;
}

.admin-log-table td:nth-child(2) {
  white-space: normal;
  min-width: 260px;
}

.admin-log-table th {
  font-weight: 700;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Admin: Galerien
   ========================================================================== */
.gallery-list { display: flex; flex-direction: column; gap: 12px; }

.gallery-panel {
  background: #fff;
  border: 1px solid var(--border-c);
  border-radius: 12px;
  overflow: hidden;
}

.gallery-panel__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 15px;
}

.gallery-panel__summary::-webkit-details-marker { display: none; }

.gallery-panel__count {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}

.gallery-panel__actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.gallery-panel__rename,
.gallery-panel__delete {
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-c);
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--body-c);
}

.gallery-panel__rename:hover { border-color: var(--navy); color: var(--navy); }
.gallery-panel__delete:hover { border-color: var(--error); color: var(--error); }

.gallery-panel__body {
  padding: 18px;
  border-top: 1px solid var(--border-c);
  background: var(--surface);
}
