/* Beaten Steel – öffentliche Webseite. Werte nach dem bisherigen Design (BaseKit-Vorlage). */
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/roboto-slab-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/roboto-slab-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/roboto-slab-latin-700-normal.woff2") format("woff2"); }

:root {
  --text: #000;
  --bg: #fff;
  --link: #476686;
  --accent: #1f497d;
  --accent-2: #244061;
  --button: #3a99d8;
  --button-hover: #2b84bf;
  --line: #e6e6e6;
  --muted: #666;
  --soft: #f2f2f2;
  --font: "Roboto Slab", Georgia, serif;
  --gutter: clamp(16px, 5vw, 50px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 300; font-size: 15px; line-height: 28px;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--button); outline-offset: 2px; }
p { margin: 0 0 10px; }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { font-weight: 300; letter-spacing: 2px; margin: 0 0 10px; }
h1 { font-size: 26px; line-height: 34px; }
h2 { font-size: 24px; line-height: 32px; }
h3 { font-size: 20px; line-height: 28px; }
h4 { font-size: 16px; line-height: 26px; letter-spacing: 1px; }
ul, ol { margin: 0 0 15px; padding-left: 26px; }
blockquote { margin: 0 0 15px; padding-left: 15px; border-left: 3px solid var(--line); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Kopfbereich */
.topbar { background: #000; height: 35px; }
.site-header { text-align: center; padding: 40px var(--gutter) 0; position: relative; }
.site-title { display: inline-block; font-size: 30px; line-height: 38px; letter-spacing: 3px; font-weight: 400; color: #000; margin: 0 0 18px; }
.site-title:hover { text-decoration: none; }
.nav-toggle { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .nav-parent {
  display: block; padding: 5px 15px; font-size: 14px; font-weight: 400; letter-spacing: 2px; color: #000;
  background: none; border: 0; font-family: inherit; line-height: 28px; cursor: pointer;
}
.main-nav a.active, .main-nav a:hover { text-decoration: underline; }
.main-nav .nav-parent::after { content: ""; display: inline-block; margin-left: 8px; border: 5px solid transparent;
  border-top-color: #000; border-bottom-width: 0; vertical-align: middle; }
.main-nav .submenu { display: none; position: absolute; left: 50%; transform: translateX(-50%); top: 100%;
  background: #fff; border: 1px solid var(--line); min-width: 180px; z-index: 20; }
.main-nav li:hover > .submenu, .main-nav li:focus-within > .submenu, .main-nav li.open > .submenu { display: block; }
.header-divider { position: relative; height: 30px; margin-top: 18px; }
.header-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 1px solid var(--line); }
.header-divider span { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); background: #fff;
  padding: 0 6px; font-size: 13px; line-height: 24px; }

/* ---------- Inhalt */
.site-main { max-width: 1400px; margin: 0 auto; padding: 20px var(--gutter) 50px; }
.section { margin: 0 0 40px; }
.center { text-align: center; }
.center .content-text ul, .center .content-text ol { list-style-position: inside; padding-left: 0; }
.content-text { overflow-wrap: anywhere; }
.content-text img { display: block; margin: 10px auto; }
.content-text table { border-collapse: collapse; margin: 0 0 20px; }
.content-text td, .content-text th { border: 1px solid #ccc; padding: 6px 10px; }
.figure { margin: 0 auto 20px; text-align: center; }
.figure img { display: block; margin: 0 auto; }
.w-25 { width: 25%; } .w-50 { width: 50%; } .w-75 { width: 75%; } .w-100 { width: 100%; }
.figure.w-25, .figure.w-50 { min-width: 200px; }
.figure figcaption { font-size: 14px; color: var(--muted); }
.figure figcaption strong { display: block; color: #000; font-weight: 400; }
.notice { background: var(--soft); padding: 12px 16px; border-left: 4px solid var(--button); margin: 0 0 20px; }
.notice.error { border-color: #b00020; background: #fdecee; }
.notice.success { border-color: #2e7d32; background: #edf7ee; }
.preview-banner { position: sticky; top: 0; z-index: 50; background: #fff3cd; border-bottom: 2px solid #e0a800;
  padding: 10px var(--gutter); font-weight: 400; text-align: center; }
.missing { color: var(--muted); font-style: italic; }

/* Schaltflächen */
.button, .content-text a.button {
  display: inline-block; background: var(--button); color: #fff; font-weight: 700; font-size: 14px;
  line-height: 20px; padding: 10px 20px; border: 0; border-radius: 0; cursor: pointer; text-align: center;
  font-family: inherit; letter-spacing: .5px;
}
.button:hover, .button:focus-visible { background: var(--button-hover); text-decoration: none; color: #fff; }
.buttons-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.buttons-row .button { width: 100%; padding: 14px 20px; display: flex; align-items: center; justify-content: center; }

/* Spalten */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.columns.cols-1 { grid-template-columns: 1fr; }
.columns.cols-2 { grid-template-columns: repeat(2, 1fr); }
.columns .col img { display: block; margin: 0 auto 10px; }

/* ---------- Slideshow */
.slideshow { position: relative; background: var(--soft); height: clamp(220px, 40vw, 480px); overflow: hidden; }
.slideshow .slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .6s ease; margin: 0; }
.slideshow .slide.is-active { opacity: 1; z-index: 1; }
.slideshow .slide img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.slideshow .slide:not(.is-active) img { visibility: hidden; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 40px;
  border: 0; background: rgba(0, 0, 0, .2); color: #fff; font-size: 22px; line-height: 40px; cursor: pointer; }
.slide-btn:hover { background: rgba(0, 0, 0, .45); }
.slide-btn.prev { left: 0; } .slide-btn.next { right: 0; }
@media (prefers-reduced-motion: reduce) { .slideshow .slide { transition: none; } }

/* ---------- Video (Einbettung erst nach Klick, Datenschutz) */
.video-embed { position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; background: #111; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 20px; color: #fff; text-align: center; }
.embed-consent p { margin: 0; max-width: 520px; font-size: 14px; line-height: 22px; }
.embed-consent a { color: #cfe3f5; }
.map-embed { position: relative; aspect-ratio: 16 / 9; max-height: 380px; width: 100%; background: #e8ecef; }
.map-embed .embed-consent { color: #000; }
.map-embed .embed-consent a { color: var(--link); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Tabellen */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 30px; }
.data-table { border-collapse: collapse; width: 100%; min-width: 480px; }
.data-table th, .data-table td { border: 1px solid #d0d0d0; padding: 8px 12px; text-align: left; vertical-align: top; }
.data-table th { font-weight: 400; background: var(--soft); }
.data-table td:first-child { white-space: nowrap; width: 1%; }

/* ---------- Auftritte */
.events-heading { color: var(--accent); font-size: 24px; line-height: 32px; }
.events-list { list-style: square; }
.events-list li.event { color: var(--accent-2); }
.events-list .event-info { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; font-size: 11px; line-height: 18px; padding: 0 8px; background: var(--accent);
  color: #fff; letter-spacing: 1px; vertical-align: middle; margin-left: 6px; }

/* ---------- Galerie */
.gallery-grid { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 15px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.gallery-grid.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery-grid a { display: block; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-grid figure { margin: 0; }
.gallery-grid figcaption { font-size: 13px; line-height: 20px; color: var(--muted); padding-top: 4px; }

/* ---------- Blog */
.post-card { border: 1px solid var(--line); margin: 0 0 30px; }
.post-card .post-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 30px;
  align-items: center; padding: 20px 30px; }
.post-card .post-body.no-image { grid-template-columns: 1fr; }
.post-card .post-image img { display: block; margin: 0 auto; width: 100%; height: auto; max-height: 260px; object-fit: contain; }
.post-card h2 { font-size: 20px; line-height: 28px; margin: 0 0 10px; }
.post-card h2 a { color: #5d6f80; }
.post-card .excerpt { font-size: 14px; line-height: 24px; color: #333; }
.post-card footer, .post-meta { border-top: 1px solid var(--line); text-align: center; font-size: 11px;
  line-height: 20px; padding: 10px; color: #333; }
.pagination { list-style: none; padding: 0; display: flex; justify-content: space-between; gap: 10px; }
.pagination .count { color: var(--muted); font-size: 13px; }
.post-full .post-hero { margin: 0 0 20px; text-align: center; }
.post-full .post-hero img { width: 100%; height: auto; max-height: 640px; object-fit: contain; }
.post-full h1 { margin-bottom: 15px; }
.post-attrs { font-size: 13px; line-height: 22px; margin: 20px 0; }
.post-attrs a { margin-right: 8px; }
.post-attrs .label { font-weight: 400; margin-right: 6px; }

/* ---------- Kontakt */
.contact-lines h4 { margin-bottom: 4px; }
.contact-form { max-width: 640px; margin: 30px 0; }
.contact-form h3 { margin-bottom: 15px; }
.contact-form label { display: block; font-weight: 400; font-size: 14px; margin: 12px 0 4px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid #bbb; border-radius: 0; background: #fff; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 22px; margin: 15px 0; }
.contact-form .consent input { margin-top: 4px; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.required { color: #b00020; }

/* ---------- Fusszeile */
.site-footer { background: #000; height: 40px; }
.legal-links { text-align: center; padding: 3px 10px; }
.legal-links a { display: inline-block; padding: 15px; color: #000; font-size: 16px; line-height: 16px; }

/* ---------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .92); display: none;
  align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; }
.lightbox .lb-caption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; padding: 0 60px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px;
  font-size: 26px; line-height: 48px; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; top: 20px; left: 20px; color: #ccc; font-size: 13px; }

/* ---------- Responsive */
@media (max-width: 900px) {
  .columns, .columns.cols-2 { grid-template-columns: 1fr; }
  .post-card .post-body { grid-template-columns: 1fr; gap: 15px; padding: 20px; }
  .w-25, .w-50, .w-75 { width: 100%; max-width: 560px; }
}
@media (max-width: 767px) {
  .site-header { padding-top: 30px; }
  .site-title { font-size: 22px; line-height: 30px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 44px;
    background: var(--button); border: 0; cursor: pointer; margin-bottom: 10px; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 24px; height: 2px;
    background: #fff; position: relative; content: ""; }
  .nav-toggle span::before { position: absolute; top: -7px; } .nav-toggle span::after { position: absolute; top: 7px; }
  .js .main-nav { display: none; }
  .js .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; border-top: 1px solid var(--line); }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a, .main-nav .nav-parent { padding: 8px 15px; width: 100%; }
  .main-nav .submenu { position: static; transform: none; border: 0; display: block; background: var(--soft); }
  h1 { font-size: 22px; line-height: 30px; letter-spacing: 1px; }
  h2, .events-heading { font-size: 20px; line-height: 28px; letter-spacing: 1px; }
  .legal-links a { padding: 10px; font-size: 14px; }
  /* Tabellen auf dem Smartphone gestapelt darstellen: eine Zeile = ein Block */
  .data-table { min-width: 0; border-top: 1px solid #d0d0d0; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border-bottom: 1px solid #d0d0d0; padding: 8px 2px; }
  .data-table td { border: 0; padding: 0; line-height: 22px; overflow-wrap: anywhere; }
  .data-table td:first-child { font-weight: 400; width: 100%; }
  .data-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); }
}
@media print {
  .topbar, .site-footer, .nav-toggle, .main-nav, .slide-btn, .header-divider { display: none !important; }
}
