/* ---------- Base Layout ---------- */
:root{
  --bg:#f6f7f9;
  --card:#fff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow:0 10px 25px rgba(0,0,0,.06);
  --radius:16px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

body { background: pink !important; }


.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header{
  padding: 12px 0;
  border-bottom:1px solid var(--border);
  background:#fff;
}

.brand{
  text-decoration:none;
  font-weight:800;
  color:inherit;
}

.site-main{
  padding: 18px 0 60px;
}

.site-footer{
  padding: 12px 0;
  border-top:1px solid var(--border);
  color:#666;
  font-size:13px;
  background:#fff;
}

/* ---------- Grid Layout ---------- */
/* Default: mobile first (1 Spalte) */
.grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Desktop: 2 Spalten */
@media (min-width: 860px){
  .grid-2{
    grid-template-columns: 1.2fr .8fr;
    align-items: start;
  }
}

/* Mobile/Tablet: Sidebar sicher unter den Content (Grid-Reihenfolge) */
@media (max-width: 859px){
  .grid-2 > div{ grid-row: 1; }
  .grid-2 > aside{ grid-row: 2; }
}

/* ---------- Cards / Sections ---------- */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 14px 0;
}

.section-title{
  font-size: 18px;
  margin: 0 0 10px;
}

.hero-title{
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.15;
  margin: 0 0 10px;
}

/* ---------- Meta Chips ---------- */
.meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 10px 0 14px;
}

.chip{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  font-size:14px;
}

/* ---------- Buttons ---------- */
.btnbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover { background: #f9fafb; }

.btn-primary {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.btn-primary:hover { background: #15803d; }

.btn-ghost {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

/* ---------- Utility ---------- */
.muted {
  color: var(--muted);
  font-size: 13px;
}

.card-wide {
  grid-column: 1 / -1;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #f9fafb;
}

/* ---------- Empty state ---------- */
.empty{
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  color: var(--muted);
}

/* ---------- Hero Image ---------- */
.marathon-hero {
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
  margin: 12px 0 16px;
}

.marathon-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Gallery ---------- */
.marathon-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
  gap:12px;
}

.gallery-item img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:10px;
}

/* ---------- Mobile Tweaks ---------- */
@media (max-width: 600px) {
  .card {
    padding: 14px;
    border-radius: 14px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.15;
  }

  .chip {
    font-size: 13px;
    padding: 6px 10px;
  }

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

  .btn {
    width: 100%;
    justify-content: center; /* wichtig bei inline-flex */
  }

  .marathon-hero {
    height: 160px;
    border-radius: 10px;
  }

  .marathon-gallery{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .gallery-item img{
    height:120px;
  }
}

/* Header layout */
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.header-actions{
  position:relative;
  display:flex;
  align-items:center;
}

/* Toggle verstecken */
.menu-toggle{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* Button */
.menu-button{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  cursor:pointer;
  user-select:none;
  font-weight:600;
}

/* Panel + Backdrop standardmäßig aus */
.menu-panel,
.menu-backdrop{
  display:none;
}

/* Backdrop */
.menu-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.35);
  z-index:999;
}

/* Panel */
.menu-panel{
  position:fixed;
  top:70px;            /* ggf. an Headerhöhe anpassen */
  right:16px;
  width:min(420px, calc(100vw - 32px));
  background:#fff;
  border:1px solid rgba(0,0,0,0.12);
  border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,0.18);
  z-index:1000;
  overflow:hidden;
}

.menu-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,0.08);
}

.menu-panel-body{
  padding:14px;
}

.menu-close{
  cursor:pointer;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  font-weight:700;
}

/* Wenn Toggle an: Panel + Backdrop zeigen */
.menu-toggle:checked ~ .menu-panel{
  display:block;
}
.menu-toggle:checked ~ .menu-backdrop{
  display:block;
}

/* Kleiner Helfer */
.muted{
  opacity:0.7;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Optional: kleiner Schatten beim Scrollen */
.site-header {
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
