/* index.css – AUTO-GENERATED 2025-10-08 21:03:47 */
:root{
  --time-bordeaux: #7f1734;
  --muted: #7f1734;
  --card-bg: #a4a2a2;
  --page-bg: #4c4c4d;

  --wrap-max: 980px;
  --radius: 3px;
  --gap: 12px;
  --pad-x: 16px;
  --pad-y: 14px;

  --headline-fs: 14px;
  --month-fs: 22px;
  --title-max: 22px;
  --border-alpha: 0.89;

  /* Typografie */
  --text: #f3f4f7;
  --link: #0a58ca;
  --title-color: #111827;
  --month-color: #f3f4f7;
  --title-weight: 800;
  --month-weight: 800;
  --meta-weight: 400;
  --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-stretch: 100%;
  --letter-spacing: 0em;
}
*{ box-sizing:border-box }
html{ -webkit-text-size-adjust:100% }
body{
  margin:0;
  background: var(--page-bg);
  color: var(--text);
  font: 16px/1.5 var(--font-family);
}
a{ color: var(--link); }

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

.month{
  margin: 18px 0 10px;
  color: var(--month-color);
  font: var(--month-weight) var(--month-fs)/1.25 var(--font-family);
  letter-spacing: var(--letter-spacing);
  font-stretch: var(--font-stretch);
}

.start-list{ list-style:none; margin:0 0 8px; padding:0; display:grid; gap:var(--gap) }
.start-item{
  position:relative;
  background: color-mix(in srgb, var(--card-bg) 90%, #fff 10%);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 20px rgba(0,0,0,.06);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.start-item:hover{
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 14px 30px rgba(0,0,0,.10);
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.12);
}
.item-link{
  display:block; padding: var(--pad-y) var(--pad-x);
  text-decoration:none; color:inherit; outline:none; border-radius: var(--radius);
}
.item-link:focus-visible{ box-shadow:0 0 0 3px color-mix(in srgb, #2563eb 35%, #fff 65%) }

.headline{
  color: var(--muted);
  font-size: var(--headline-fs);
  font-weight: var(--meta_weight, var(--meta-weight));
  line-height: 1.35;
  margin:0 0 6px; overflow-wrap:anywhere; white-space:normal;
  display:flex; flex-wrap:wrap; gap:.35rem .5rem; align-items:baseline;
  letter-spacing: var(--letter-spacing);
  font-stretch: var(--font-stretch);
}
.headline .time{
  color: var(--time-bordeaux);
  font-weight: 700;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  padding: .06rem .45rem;
}
.place{
  color: var(--muted);
  padding-left:.5rem; border-left:1px solid rgba(0,0,0,.10); margin-left:.2rem;
}

.title{ margin:0 }
.title strong{
  color: var(--title-color);
  font-weight: var(--title-weight);
  font-size: clamp(16px, 2.8vw, var(--title-max));
  line-height: 1.28;
  display: -webkit-box; -webkit-line-clamp:2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
  letter-spacing: var(--letter-spacing);
  font-stretch: var(--font-stretch);
}

@media (max-width:900px){
  .wrap{ padding:16px }
  .title strong{ font-size: clamp(16px, 3.8vw, var(--title-max)) }
  .month{ font-size: clamp(18px, 5vw, var(--month-fs)) }
}
@media (max-width:600px){
  .wrap{ padding:12px }
  .item-link{ padding: calc(var(--pad-y) - 2px) calc(var(--pad-x) - 2px) }
  .headline{ gap:.3rem .45rem }
}
/* === Kirchenjahr-Button Stil-Anpassungen === */
.kj-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(122,29,44,0.35);
  border-radius: 999px;
  color: var(--accent-red);
  background: rgba(122,29,44,0.06);
  font-weight: 750;
  font-size: 0.98em;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.95;
  order: 1; /* Button nach dem Titel */
}

/* Verhindern, dass der Button über den Titel ragt */
.title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.headline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.headline .time {
  margin-left: 10px;
  font-weight: bold;
  padding: 3px 6px;
}

.headline .place-row {
  margin-top: 8px;
}

@media (max-width: 600px) {
  .kj-btn {
    font-size: 0.9em;
    padding: 4px 8px;
  }
}
/* Sicherstellen, dass der Kirchenjahr-Button unter dem Titel erscheint */
.start-item .kj-btn {
  display: inline-flex; /* Inline-Flex für besseren Fluss */
  margin-top: 10px; /* Abstand zum Titel */
  align-items: center;
  gap: 6px;
}

/* Sicherstellen, dass die Ausrichtung stimmt */
.start-item .title {
  display: block; /* Block für den Titel */
  margin-bottom: 8px; /* Abstand nach dem Titel */
}

/* === Filterbar – an Karten-/Seitenstil angepasst === */
.filterbar{
  position: sticky;
  top: 0;
  z-index: 8;
  padding: .75rem .75rem .85rem;
  margin: 0 0 .75rem 0;

  /* semitransparent über dunklem Seitenhintergrund */
  background: color-mix(in srgb, var(--page-bg) 88%, #fff 12%);
  backdrop-filter: blur(6px);

  /* wie Karten */
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 20px rgba(0,0,0,.06);
}

.filterbar .row{
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

/* Sucheingabe */
.filterbar input[type="search"]{
  flex: 1 1 260px;
  min-width: 220px;
  padding: .6rem .8rem;
  border-radius: .5rem;

  background: color-mix(in srgb, var(--card-bg) 92%, #000 8%);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.28);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.filterbar input[type="search"]::placeholder{ color: rgba(255,255,255,.7); }
.filterbar input[type="search"]:focus{
  border-color: color-mix(in srgb, #2563eb 45%, #fff 55%);
  box-shadow: 0 0 0 3px color-mix(in srgb, #2563eb 25%, #fff 75%);
}

/* Buttons (Spans + Exporte) */
.span-btn, .exp-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.28);
  background: color-mix(in srgb, var(--card-bg) 86%, #fff 14%);
  color: var(--text);
  border-radius: .55rem;
  padding: .55rem .8rem;
  cursor: pointer;
  line-height: 1.1;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
}
.span-btn:hover, .exp-btn:hover{
  border-color: rgba(255,255,255,.45);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.span-btn:active, .exp-btn:active{ transform: translateY(1px); }

/* Grund-Button passend zum Dark-Theme */
.btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.28);
  background: color-mix(in srgb, var(--card-bg) 86%, #fff 14%);
  color: var(--text);
  border-radius: .55rem;
  padding: .55rem .85rem;
  cursor: pointer;
  line-height: 1.1;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover{
  border-color: rgba(255,255,255,.45);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.btn:active{ transform: translateY(1px); }

/* Dropdown */
.dropdown{ position: relative; }
.dropdown-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: color-mix(in srgb, var(--page-bg) 88%, #fff 12%);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: .55rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.10);
  padding: .35rem;
  z-index: 9999; /* hoch genug */
}
.dropdown-item{
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: .5rem .6rem;
  border-radius: .45rem;
  cursor: pointer;
}
.dropdown-item:hover{
  background: color-mix(in srgb, #ffffff 12%, var(--card-bg) 88%);
}


/* Ergebniszähler rechts */
#result-count{
  margin-left: auto;
  color: var(--muted);
  font-size: .95rem;
}
/* Sicherstellen, dass der Kirchenjahr-Button unter dem Titel angezeigt wird */
.start-item {
  display: flex;
  flex-direction: column; /* Die Elemente vertikal anordnen */
  justify-content: flex-start; /* Sicherstellen, dass sie oben bleiben */
}

.start-item .title {
  margin-bottom: 12px; /* Abstand zwischen Titel und Kirchenjahr-Button */
}

.start-item .kj-btn {
  margin-top: 0; /* Kein zusätzlicher Abstand oben */
  margin-bottom: 10px; /* Abstand nach unten */
  align-self: flex-start; /* Button links ausrichten */
  display: inline-flex; /* Sicherstellen, dass der Button im Fluss bleibt */
}

/* Mobile */
@media (max-width: 900px){
  .filterbar{ padding: .6rem .6rem .7rem; }
}
@media (max-width: 640px){
  .filterbar input[type="search"]{ width: 100%; flex: 1 1 100%; }
  .btn{ flex: 1 1 auto; }

  #result-count{ flex: 1 1 100%; text-align: right; }
}


/* ==== Zusatz-CSS ==== */
/* Zusatz-CSS hier ergänzen */
