/* ==========================================================================
   POPBÜRO Neckar-Alb – Frontend-Komponenten (Refresh)
   Farbwerte ausschliesslich aus FARBSCHEMA.md / den :root-Variablen in style.css.
   Alle Klassen mit Praefix "pb-", damit es keine Kollision mit bestehendem
   Seiten-CSS gibt. Wird nur auf den umgebauten Seiten eingebunden.
   ========================================================================== */

/* --- Breadcrumb-Zeile ---------------------------------------------------- */
.pb-crumbs { font-size: 13px; color: var(--text-light); padding: 16px 0 0; }
.pb-crumbs a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.pb-crumbs a:hover { text-decoration: underline; }

/* --- Buttons ------------------------------------------------------------- */
.pb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-weight: 600; font-size: 14px; padding: 9px 18px;
    border-radius: var(--radius-sm); border: 2px solid transparent;
    text-decoration: none; cursor: pointer; transition: var(--transition);
}
.pb-btn-lg { padding: 13px 24px; font-size: 15px; }
.pb-btn-block { width: 100%; }
.pb-btn-primary { background: var(--primary-color); color: #fff; }
.pb-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.pb-btn-outline { background: var(--bg-white); color: var(--primary-color); border-color: var(--primary-color); }
.pb-btn-outline:hover { background: var(--primary-light); }
.pb-btn-white { background: #fff; color: var(--primary-color); }
.pb-btn-white:hover { background: var(--primary-light-2); }
.pb-btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.pb-btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* --- Seitenkopf (gruenes Panel) ------------------------------------------ */
.pb-page-hero {
    background: linear-gradient(135deg, #0F6148 0%, #0d5139 65%, #0a4230 100%);
    color: #fff; position: relative; overflow: hidden;
    border-radius: 24px; padding: 38px 44px; margin: 20px 0 0;
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 32px; flex-wrap: wrap;
}
.pb-page-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 88% 15%, rgba(209,250,229,.18), transparent 55%);
}
.pb-page-hero > * { position: relative; z-index: 2; }
.pb-page-hero h1 { font-size: 42px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; color: #fff; }
.pb-page-hero p { color: rgba(255,255,255,.85); font-size: 16.5px; max-width: 40em; margin: 0; }
.pb-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pb-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em; background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25); padding: 5px 13px; border-radius: 999px; margin-bottom: 16px;
}
.pb-hero-stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 24px; margin-top: 22px; border-top: 1px solid rgba(255,255,255,.22); }
.pb-stat-num { font-size: 30px; font-weight: 800; line-height: 1.1; }
.pb-stat-lbl { font-size: 13px; color: rgba(255,255,255,.75); }

/* --- Sektionen ----------------------------------------------------------- */
.pb-block { padding: 52px 0; }
.pb-block-tint { background: var(--bg-light); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.pb-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.pb-sec-head h2 { font-size: 27px; font-weight: 800; letter-spacing: -.015em; color: var(--primary-color); line-height: 1.2; }
.pb-sec-head p { color: var(--text-light); font-size: 15px; margin-top: 4px; }
.pb-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--success); margin-bottom: 6px; }
.pb-sec-link { color: var(--primary-color); font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--primary-light-2); padding-bottom: 2px; white-space: nowrap; }
.pb-sec-link:hover { color: var(--primary-dark); border-color: var(--primary-color); }

/* --- Filterleiste -------------------------------------------------------- */
.pb-toolbar { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.pb-tb-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pb-field { position: relative; flex: 1; min-width: 180px; }
.pb-field input, .pb-field select {
    width: 100%; padding: 11px 14px 11px 38px; border: 2px solid var(--border-light);
    border-radius: var(--radius-sm); font-size: 14.5px; font-family: inherit;
    color: var(--text-dark); background: #fff; transition: var(--transition);
}
.pb-field select { padding-left: 14px; }
.pb-field input:focus, .pb-field select:focus { border-color: var(--primary-color); outline: none; }
.pb-field .pb-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .55; pointer-events: none; }
.pb-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pb-chip-scroll { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; padding: 4px 2px 10px; scrollbar-width: none; }
.pb-chip-scroll::-webkit-scrollbar { display: none; }
.pb-chip {
    display: inline-block; border: 2px solid var(--border-light); background: #fff; color: var(--text-dark);
    font-family: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
    cursor: pointer; transition: var(--transition); white-space: nowrap; text-decoration: none;
}
.pb-chip:hover { border-color: var(--primary-color); background: var(--primary-light); }
.pb-chip.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.pb-result-line { font-size: 14px; color: var(--text-light); margin: 22px 0 14px; }
.pb-result-line b { color: var(--primary-color); }

/* --- Badges -------------------------------------------------------------- */
.pb-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--primary-light-2); color: var(--success-dark); white-space: nowrap; }
.pb-pill-warn { background: var(--warning-bg); color: #92400e; }
.pb-pill-free { background: var(--primary-light); color: var(--success-dark); border: 1px solid var(--primary-light-2); }
.pb-pill-neutral { background: var(--neutral-bg); color: var(--neutral); }

/* --- Segment-Umschalter (Liste / Kalender) ------------------------------- */
.pb-seg { display: inline-flex; background: var(--bg-light); border: 1px solid var(--border-light); border-radius: 999px; padding: 4px; }
/* Spezifitaet bewusst erhoeht: die Buttons hier tragen selbst keine
   pb-Klasse und werden deshalb nicht von der Ausnahme in style.css erfasst. */
.pb-seg button:not(.burger-menu):not(.user-btn) { border: none; background: transparent; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--text-light); padding: 8px 20px; border-radius: 999px; cursor: pointer; transition: var(--transition); }
.pb-seg button.active:not(.burger-menu):not(.user-btn) { background: var(--primary-color); color: #fff; }

/* --- Event-Liste --------------------------------------------------------- */
.pb-month-head { display: flex; align-items: center; gap: 14px; margin: 34px 0 14px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--primary-color); }
.pb-month-head::after { content: ""; flex: 1; height: 2px; background: var(--primary-light-2); }
.pb-ev-row { display: flex; gap: 20px; align-items: stretch; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 14px; text-decoration: none; color: inherit; transition: var(--transition); margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.pb-ev-row:hover { border-color: var(--primary-color); transform: translateX(3px); box-shadow: var(--shadow-md); }
.pb-ev-date { flex: 0 0 76px; background: var(--primary-light); border: 1px solid var(--primary-light-2); border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0; line-height: 1.1; }
.pb-ev-date .pb-wd { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-light); letter-spacing: .06em; }
.pb-ev-date .pb-d { font-size: 28px; font-weight: 800; color: var(--primary-color); }
.pb-ev-date .pb-m { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--success-dark); letter-spacing: .06em; }
.pb-ev-thumb { flex: 0 0 132px; border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(135deg, var(--primary-light-2), var(--primary-light)); }
.pb-ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-ev-thumb .pb-ph { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; opacity: .4; }
.pb-ev-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 4px 0; min-width: 0; }
.pb-ev-body h3 { font-size: 19px; font-weight: 700; line-height: 1.28; color: var(--text-dark); }
.pb-ev-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-light); }
.pb-ev-meta span { display: inline-flex; gap: 6px; align-items: center; }
.pb-ev-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.pb-ev-go { flex: 0 0 auto; align-self: center; color: var(--primary-color); font-size: 26px; font-weight: 700; padding: 0 8px; opacity: .5; transition: var(--transition); }
.pb-ev-row:hover .pb-ev-go { opacity: 1; transform: translateX(3px); }

/* --- Event-Karten (Startseite) ------------------------------------------- */
.pb-events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pb-event-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: var(--transition); box-shadow: var(--shadow-sm); }
.pb-event-card:hover { border-color: var(--primary-color); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pb-event-media { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--primary-light-2), var(--primary-light)); overflow: hidden; }
.pb-event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pb-event-card:hover .pb-event-media img { transform: scale(1.05); }
.pb-event-media .pb-noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 46px; opacity: .35; }
.pb-date-chip { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: var(--radius-sm); padding: 8px 12px; text-align: center; box-shadow: var(--shadow-md); line-height: 1.05; }
.pb-date-chip .pb-d { display: block; font-size: 22px; font-weight: 800; color: var(--primary-color); }
.pb-date-chip .pb-m { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); }
.pb-hl-badge { position: absolute; right: 14px; top: 14px; background: var(--warning-bg); color: #92400e; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.pb-event-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pb-event-body h3 { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--text-dark); }
.pb-event-body .pb-ev-meta { flex-direction: column; gap: 4px; margin-top: auto; }

/* --- Künstler*innen-Karten ----------------------------------------------- */
.pb-artist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pb-acard { position: relative; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff; aspect-ratio: 4/5; background: var(--primary-dark); box-shadow: var(--shadow-sm); transition: var(--transition); display: block; }
.pb-acard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pb-acard img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pb-acard:hover img { transform: scale(1.06); }
.pb-acard .pb-ph { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; background: linear-gradient(135deg, #0F6148, #0d5139); color: #fff; }
.pb-acard .pb-ph svg { width: 52px; height: 52px; opacity: .55; }
.pb-acard .pb-ph span { font-size: 12px; opacity: .7; }
.pb-aov { position: absolute; inset: auto 0 0 0; padding: 48px 16px 16px; background: linear-gradient(to top, rgba(10,50,36,.95) 14%, rgba(10,50,36,.55) 58%, transparent); }
.pb-aov .pb-g { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--primary-light-2); color: var(--success-dark); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.pb-aov h3 { font-size: 18px; font-weight: 700; line-height: 1.22; color: #fff; }
.pb-aov p { font-size: 12.5px; color: rgba(255,255,255,.82); margin: 3px 0 0; }

/* --- Karussell (Startseite) ---------------------------------------------- */
.pb-car-nav { display: flex; gap: 8px; }
.pb-car-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--primary-color); background: #fff; color: var(--primary-color); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); font-family: inherit; line-height: 1; }
.pb-car-btn:hover { background: var(--primary-color); color: #fff; }
.pb-car-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 16px; scrollbar-width: none; }
.pb-car-track::-webkit-scrollbar { display: none; }
.pb-car-track .pb-acard { flex: 0 0 232px; scroll-snap-align: start; aspect-ratio: 3/4; }

/* --- Hinweis-/Mitmach-Banner --------------------------------------------- */
.pb-hint { display: flex; gap: 18px; align-items: center; background: var(--primary-light); border: 2px solid var(--primary-light-2); border-radius: var(--radius-lg); padding: 20px 24px; margin-top: 36px; flex-wrap: wrap; }
.pb-hint .pb-ic { font-size: 28px; }
.pb-hint .pb-sp { flex: 1; min-width: 160px; }
.pb-hint h3 { font-size: 17px; font-weight: 700; color: var(--primary-color); }
.pb-hint p { font-size: 14px; color: var(--text-light); margin: 0; }
.pb-hint-strong { background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-light-2) 100%); border-color: var(--primary-color); }
.pb-hint-strong p { color: var(--success-dark); }

/* --- Mitmach-Karten ------------------------------------------------------ */
.pb-join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.pb-join-card { background: #fff; border: 2px solid var(--primary-light-2); border-radius: var(--radius-lg); padding: 26px; text-decoration: none; color: inherit; transition: var(--transition); display: flex; flex-direction: column; gap: 8px; }
.pb-join-card:hover { border-color: var(--primary-color); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pb-join-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-light-2); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 6px; }
.pb-join-card h3 { font-size: 18px; font-weight: 700; color: var(--primary-color); }
.pb-join-card p { font-size: 14px; color: var(--text-light); line-height: 1.55; margin: 0; }
.pb-join-card .pb-go { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--primary-color); }

/* --- News (Startseite) --------------------------------------------------- */
.pb-news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.pb-news-lead { position: relative; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff; min-height: 400px; display: flex; align-items: flex-end; background: var(--primary-dark); box-shadow: var(--shadow-sm); transition: var(--transition); }
.pb-news-lead:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pb-news-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pb-news-lead .pb-ov { position: relative; padding: 36px 32px; background: linear-gradient(to top, rgba(10,50,36,.95) 25%, rgba(10,50,36,.4) 70%, transparent); width: 100%; }
.pb-news-lead h3 { font-size: 26px; font-weight: 800; line-height: 1.22; margin: 10px 0; color: #fff; }
.pb-news-lead p { font-size: 14.5px; color: rgba(255,255,255,.85); margin: 0; }
.pb-news-side { display: flex; flex-direction: column; gap: 16px; }
.pb-news-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 16px; text-decoration: none; color: inherit; transition: var(--transition); flex: 1; align-items: flex-start; }
.pb-news-item:hover { border-color: var(--primary-color); background: var(--primary-light); }
.pb-ni-date { flex-shrink: 0; width: 52px; text-align: center; background: var(--primary-light); border-radius: var(--radius-sm); padding: 8px 0; line-height: 1.05; }
.pb-ni-date .pb-d { display: block; font-size: 19px; font-weight: 800; color: var(--primary-color); }
.pb-ni-date .pb-m { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-light); letter-spacing: .06em; }
.pb-news-item h4 { font-size: 15.5px; font-weight: 700; line-height: 1.35; margin-bottom: 5px; }
.pb-news-item p { font-size: 13px; color: var(--text-light); line-height: 1.5; margin: 0; }

/* --- Service-Kacheln ----------------------------------------------------- */
.pb-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.pb-svc { border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: var(--transition); display: flex; flex-direction: column; }
.pb-svc:hover { border-color: var(--primary-color); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pb-svc-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-light); }
.pb-svc-img img { width: 100%; height: 100%; object-fit: cover; }
/* --- Kachelkoepfe der drei Angebots-Karten -------------------------------
   Ersetzen die frueheren animierten GIFs. Bewusst als Text statt als Bild:
   die Ueberschrift bleibt echtes Markup (vorlesbar, durchsuchbar, kein zweiter
   Titel darunter noetig), das farbige Band hinter dem Text richtet sich
   automatisch nach der Textlaenge, und die Typografie ist dieselbe wie im Rest
   der Seite - drei Bilddateien und drei Requests weniger.
   Die Farben stammen aus den bisherigen Kachelgrafiken; das Gruen ist auf den
   FARBSCHEMA-Wert korrigiert (die GIFs nutzten ein helleres #0c8042). */
.pb-svc-art {
    aspect-ratio: 16/9; overflow: hidden; position: relative;
    display: flex; align-items: center; padding: 22px 24px;
}
/* Feine Koernung, damit die Flaechen nicht digital-glatt wirken - wie beim
   Risodruck der Vorlage. Als data-URI, kein zusaetzlicher Request. */
.pb-svc-art::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pb-svc-art h3 {
    position: relative; z-index: 1; margin: 0;
    font-size: clamp(21px, 2.5vw, 27px); font-weight: 800; line-height: 1.12;
    letter-spacing: -.015em; text-transform: lowercase; color: #fff;
}
.pb-svc-art h3 span {
    display: inline; padding: 2px 10px;
    box-decoration-break: clone; -webkit-box-decoration-break: clone;
    transition: var(--transition);
}
.pb-svc-art-events { background: var(--primary-color); justify-content: center; }
.pb-svc-art-events h3 span { background: rgba(69, 90, 103, .82); }
.pb-svc-art-artists { background: #455a67; justify-content: flex-end; text-align: right; }
.pb-svc-art-artists h3 span { background: rgba(157, 175, 185, .5); }
.pb-svc-art-netzwerk { background: #9dafb9; justify-content: flex-start; }
.pb-svc-art-netzwerk h3 span { background: var(--primary-color); }
/* Beim Ueberfahren der Karte wird das Band einen Tick kraeftiger */
.pb-svc:hover .pb-svc-art-events h3 span { background: rgba(69, 90, 103, .95); }
.pb-svc:hover .pb-svc-art-artists h3 span { background: rgba(157, 175, 185, .72); }
.pb-svc:hover .pb-svc-art-netzwerk h3 span { background: var(--primary-dark); }
.pb-svc-body { padding: 20px; }
.pb-svc-body h3 { font-size: 18px; font-weight: 700; color: var(--primary-color); margin-bottom: 8px; }
.pb-svc-body p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin: 0; }
.pb-svc-body .pb-go { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--primary-color); font-size: 14px; }

/* --- Über-Bereich -------------------------------------------------------- */
.pb-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pb-about-grid p { margin-bottom: 16px; color: var(--text-dark); font-size: 15.5px; line-height: 1.75; }
.pb-about-grid h2 { font-size: 30px; font-weight: 800; color: var(--primary-color); letter-spacing: -.015em; margin-bottom: 16px; line-height: 1.2; }

/* --- Bildband ------------------------------------------------------------ */
.pb-strip { display: flex; gap: 10px; margin: 26px 0 0; border-radius: var(--radius-lg); overflow: hidden; }
.pb-strip img { flex: 1; height: 150px; object-fit: cover; min-width: 0; }

/* --- A–Z-Leiste ---------------------------------------------------------- */
.pb-az { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; margin: 0 0 30px; }
.pb-az a { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--text-light); transition: var(--transition); }
.pb-az a:hover { background: var(--primary-light); color: var(--primary-color); }
.pb-az a.active { background: var(--primary-color); color: #fff; }
.pb-az span { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #d1d5db; }

/* --- Künstler*innen-Detailseite ------------------------------------------ */
.pb-ahero { position: relative; border-radius: 24px; overflow: hidden; margin-top: 20px; background: var(--primary-dark); min-height: 340px; display: flex; align-items: flex-end; }
.pb-ahero-bg { position: absolute; inset: 0; }
.pb-ahero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.1); transform: scale(1.15); opacity: .55; }
.pb-ahero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,50,36,.97) 20%, rgba(13,81,57,.78) 60%, rgba(15,97,72,.6)); }
.pb-ahero-in { position: relative; z-index: 2; display: flex; gap: 32px; align-items: flex-end; padding: 34px; width: 100%; flex-wrap: wrap; }
.pb-aportrait { flex: 0 0 210px; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 16px 36px rgba(0,0,0,.35); border: 4px solid rgba(255,255,255,.15); background: #0a4230; }
.pb-aportrait img { width: 100%; height: 100%; object-fit: cover; }
.pb-ahead { flex: 1; min-width: 260px; color: #fff; }
.pb-ahead .pb-g { display: inline-flex; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; background: var(--primary-light-2); color: var(--success-dark); padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.pb-ahead h1 { font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1.06; margin-bottom: 8px; color: #fff; }
.pb-ahead .pb-sub { font-size: 17px; color: rgba(255,255,255,.85); }
.pb-ahead .pb-facts { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,.75); }
.pb-ahead .pb-facts span { display: inline-flex; gap: 6px; align-items: center; }
.pb-ahead .pb-hero-actions { margin-top: 20px; }

.pb-wrap { display: grid; grid-template-columns: 1fr 330px; gap: 38px; align-items: start; margin-top: 38px; }
.pb-panel { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.pb-panel h2 { font-size: 20px; font-weight: 800; color: var(--primary-color); margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.pb-panel p { font-size: 15.5px; line-height: 1.78; color: var(--text-dark); margin-bottom: 12px; }
.pb-side { position: sticky; top: 150px; }
.pb-side .pb-panel { padding: 22px; }
.pb-side h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-light); margin-bottom: 14px; }
.pb-slink { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); text-decoration: none; color: var(--text-dark); font-size: 14px; font-weight: 600; margin-bottom: 8px; transition: var(--transition); word-break: break-word; }
.pb-slink:hover { border-color: var(--primary-color); background: var(--primary-light); color: var(--primary-color); }
.pb-slink .pb-ic { font-size: 16px; }
.pb-slink .pb-arrow { margin-left: auto; opacity: .4; }
.pb-next-ev { background: linear-gradient(135deg, #0F6148, #0d5139); border: none; color: #fff; }
.pb-next-ev h3 { color: rgba(255,255,255,.7); }
.pb-next-ev .pb-d2 { font-size: 15px; font-weight: 800; color: var(--primary-light-2); margin-bottom: 4px; }
.pb-next-ev .pb-t { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.pb-next-ev .pb-l { font-size: 13.5px; color: rgba(255,255,255,.78); margin-bottom: 16px; }
.pb-evlist { display: flex; flex-direction: column; gap: 12px; }
.pb-ev { display: flex; gap: 16px; align-items: center; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 12px 14px; text-decoration: none; color: inherit; transition: var(--transition); }
.pb-ev:hover { border-color: var(--primary-color); background: var(--primary-light); }
.pb-ev .pb-date { flex: 0 0 62px; text-align: center; background: var(--primary-light); border: 1px solid var(--primary-light-2); border-radius: var(--radius-sm); padding: 7px 0; line-height: 1.1; }
.pb-ev .pb-date .pb-d { display: block; font-size: 21px; font-weight: 800; color: var(--primary-color); }
.pb-ev .pb-date .pb-m { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--text-light); letter-spacing: .06em; }
.pb-ev .pb-date .pb-y { display: block; font-size: 10px; color: #9ca3af; }
.pb-ev .pb-b { flex: 1; min-width: 0; }
.pb-ev .pb-b h3, .pb-ev .pb-b h4 { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.pb-ev .pb-b .pb-m2 { font-size: 13px; color: var(--text-light); display: flex; gap: 14px; flex-wrap: wrap; }
.pb-past-toggle { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-light); cursor: pointer; }
.pb-past-toggle input { width: 17px; height: 17px; accent-color: var(--primary-color); }
.pb-ncard { display: flex; gap: 14px; border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: inherit; transition: var(--transition); margin-bottom: 12px; }
.pb-ncard:hover { border-color: var(--primary-color); }
.pb-ncard { align-items: stretch; }
.pb-ncard img { flex: 0 0 120px; width: 120px; height: 120px; object-fit: cover; align-self: center; margin: 12px 0 12px 12px; border-radius: var(--radius-sm); }
.pb-ncard .pb-c { flex: 1; min-width: 0; }
.pb-ncard .pb-c { padding: 14px; }
.pb-ncard h3, .pb-ncard h4 { font-size: 15.5px; font-weight: 700; line-height: 1.3; margin: 6px 0 5px; }
.pb-ncard p { font-size: 13px; color: var(--text-light); line-height: 1.5; margin: 0; }
.pb-embed { border-radius: var(--radius-md); overflow: hidden; background: var(--bg-light); }
.pb-backlink { display: inline-flex; align-items: center; gap: 7px; color: var(--primary-color); font-weight: 700; font-size: 14px; text-decoration: none; margin-top: 18px; }
.pb-backlink:hover { text-decoration: underline; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1000px) {
    .pb-page-hero { padding: 30px 26px; }
    .pb-page-hero h1 { font-size: 32px; }
    .pb-events-grid, .pb-svc-grid, .pb-join-grid { grid-template-columns: 1fr 1fr; }
    .pb-news-grid { grid-template-columns: 1fr; }
    .pb-about-grid { grid-template-columns: 1fr; gap: 28px; }
    .pb-artist-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .pb-wrap { grid-template-columns: 1fr; gap: 22px; }
    .pb-side { position: static; }
    .pb-ahead h1 { font-size: 32px; }
    .pb-aportrait { flex: 0 0 140px; }
}
@media (max-width: 820px) {
    .pb-ev-thumb { display: none; }
    .pb-strip img { height: 100px; }
}
@media (max-width: 700px) {
    .pb-artist-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .pb-aov { padding: 36px 12px 12px; }
    .pb-aov h3 { font-size: 15px; }
}
@media (max-width: 640px) {
    .pb-page-hero h1 { font-size: 26px; }
    .pb-svc-art { padding: 18px 20px; }
    .pb-svc-art h3 { font-size: 22px; }
    .pb-events-grid, .pb-svc-grid, .pb-join-grid { grid-template-columns: 1fr; }
    .pb-sec-head h2 { font-size: 24px; }
    .pb-news-lead { min-height: 320px; }
    .pb-ev-row { gap: 12px; padding: 12px; }
    .pb-ev-date { flex: 0 0 60px; }
    .pb-ev-date .pb-d { font-size: 22px; }
    .pb-ev-go { display: none; }
    .pb-ahero-in { padding: 20px; gap: 18px; }
    .pb-ahead h1 { font-size: 26px; }
    .pb-hero-stats { gap: 24px; }
}

/* Aufmacher ohne Bild: Farbverlauf statt Foto, Text bleibt lesbar */
.pb-news-lead-plain { background: linear-gradient(135deg, #0F6148 0%, #0d5139 55%, #0a4230 100%); }
.pb-news-lead-plain .pb-ov { background: none; }
.pb-news-lead .pb-ov { text-shadow: 0 1px 12px rgba(10,50,36,.55); }

/* --- Event-/News-Detailseite --------------------------------------------- */
.pb-shero-meta { display: flex; gap: 26px; flex-wrap: wrap; font-size: 15px; color: rgba(255,255,255,.9); }
.pb-shero-meta span { display: inline-flex; gap: 8px; align-items: flex-start; }
.pb-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pb-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); cursor: zoom-in; transition: var(--transition); }
.pb-gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.pb-artist-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pb-artist-mini a { text-decoration: none; color: inherit; border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.pb-artist-mini a:hover { border-color: var(--primary-color); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.pb-artist-mini img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.pb-artist-mini .pb-ph2 { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 34px; background: linear-gradient(135deg, var(--primary-light-2), var(--primary-light)); }
.pb-artist-mini .pb-n { padding: 10px 12px 12px; }
.pb-artist-mini .pb-n strong { display: block; font-size: 14.5px; line-height: 1.3; }
.pb-artist-mini .pb-n span { font-size: 12px; color: var(--text-light); }
.pb-facts-list { list-style: none; margin: 0; padding: 0; }
.pb-facts-list li { padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: 14.5px; }
.pb-facts-list li:last-child { border-bottom: none; }
.pb-facts-list .pb-lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-light); margin-bottom: 3px; }

/* --- Registrierung ------------------------------------------------------- */
.pb-form-narrow { max-width: 720px; margin: 0 auto; }
.pb-steps { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pb-step { flex: 1; min-width: 150px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-md); padding: 12px 14px; }
.pb-step b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-light-2); margin-bottom: 3px; }
.pb-step span { font-size: 13.5px; color: rgba(255,255,255,.85); }

@media (max-width: 1000px) {
    .pb-gallery, .pb-artist-mini { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .pb-gallery, .pb-artist-mini { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .pb-ncard img { flex: 0 0 84px; width: 84px; height: 84px; }
}

/* --- Startseiten-Hero (Modifier statt Inline-Styles, damit die
       Media-Queries greifen) ---------------------------------------------- */
.pb-page-hero-home { padding: 56px; align-items: center; }
.pb-page-hero-home .pb-hero-copy { flex: 1 1 420px; }
.pb-page-hero-home h1 { font-size: 52px; }
/* Collage + Zufalls-Hinweis als eine Spalte. Das Flex-Sizing sitzt am Wrapper,
   nicht mehr an der Collage - in einer Spalten-Flexbox waere flex-basis sonst
   eine Hoehenangabe. Der groessere Abstand faengt den Ueberhang der nach unten
   gedrehten vierten Kachel auf. */
.pb-hero-visual { flex: 0 1 340px; display: flex; flex-direction: column; gap: 30px; }
.pb-hero-collage { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pb-hero-collage figure { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; background: #0a4230; box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.pb-hero-collage figure:nth-child(1) { transform: translateY(-14px) rotate(-2deg); }
.pb-hero-collage figure:nth-child(4) { transform: translateY(14px) rotate(2deg); }
.pb-hero-collage a { display: block; width: 100%; height: 100%; position: relative; overflow: hidden; }
.pb-hero-collage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pb-hero-collage a:hover img,
.pb-hero-collage a:focus-visible img { transform: scale(1.06); }
.pb-hero-collage a:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
/* Name erscheint erst bei Hover/Fokus - die Collage bleibt sonst ruhig */
.pb-hero-collage-name {
    position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px;
    font-size: 12px; font-weight: 700; line-height: 1.25; color: #fff; text-align: center;
    background: linear-gradient(to top, rgba(10,50,36,.92), transparent);
    opacity: 0; transition: opacity .25s;
}
.pb-hero-collage a:hover .pb-hero-collage-name,
.pb-hero-collage a:focus-visible .pb-hero-collage-name { opacity: 1; }
/* Auf Touch-Geraeten gibt es kein Hover - Name dauerhaft einblenden */
@media (hover: none) {
    .pb-hero-collage-name { opacity: 1; }
}
/* Hinweis unter der Collage: die vier Kacheln sind eine Zufallsauswahl.
   Optik an .pb-eyebrow angelehnt, damit der Hero eine Formensprache behaelt. */
.pb-hero-collage-note {
    align-self: center; max-width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.88); text-decoration: none;
    font-size: 12.5px; font-weight: 600; line-height: 1.3; text-align: center;
    transition: background .25s, border-color .25s, color .25s;
}
.pb-hero-collage-note svg { flex: 0 0 14px; width: 14px; height: 14px; opacity: .8; }
.pb-hero-collage-note-arrow { transition: transform .25s; }
.pb-hero-collage-note:hover,
.pb-hero-collage-note:focus-visible {
    background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.45); color: #fff;
}
.pb-hero-collage-note:hover svg,
.pb-hero-collage-note:focus-visible svg { opacity: 1; }
.pb-hero-collage-note:hover .pb-hero-collage-note-arrow,
.pb-hero-collage-note:focus-visible .pb-hero-collage-note-arrow { transform: translateX(3px); }
.pb-hero-collage-note:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .pb-hero-collage-note,
    .pb-hero-collage-note-arrow { transition: none; }
    .pb-hero-collage-note:hover .pb-hero-collage-note-arrow,
    .pb-hero-collage-note:focus-visible .pb-hero-collage-note-arrow { transform: none; }
}

/* Karte auf der Event-Detailseite */
.pb-map { height: 380px; border-radius: var(--radius-md); overflow: hidden; }

@media (max-width: 1000px) {
    .pb-page-hero-home { padding: 40px 32px; }
    .pb-page-hero-home h1 { font-size: 38px; }
    .pb-hero-visual { flex: 1 1 100%; max-width: 420px; }
}
@media (max-width: 640px) {
    .pb-page-hero-home { padding: 30px 22px; }
    .pb-page-hero-home h1 { font-size: 30px; }
    .pb-hero-collage figure:nth-child(1),
    .pb-hero-collage figure:nth-child(4) { transform: none; }
    /* Ohne den Ueberhang der gedrehten Kachel darf der Hinweis naeher ruecken */
    .pb-hero-visual { gap: 18px; }
    .pb-page-hero { padding: 26px 20px; }
    .pb-page-hero p { font-size: 15px; }
    .pb-eyebrow { font-size: 11px; letter-spacing: .08em; }
    .pb-hero-actions .pb-btn { flex: 1 1 100%; }
    .pb-map { height: 280px; }
    .pb-strip { gap: 6px; }
    .pb-strip img { height: 78px; }
    .pb-shero-meta { gap: 12px; font-size: 14px; flex-direction: column; }
    .pb-toolbar { padding: 14px; }
    .pb-tb-row .pb-btn { flex: 1 1 100%; }
    .pb-az a, .pb-az span { width: 27px; height: 27px; font-size: 12px; }
    .pb-panel { padding: 20px; }
    .pb-month-head { font-size: 13px; }
}

/* ==========================================================================
   News-Ausbau (news.php / news-detail.php)
   ========================================================================== */

/* --- Leer-/Lade-/Fehlerzustaende (generisch) ----------------------------- */
.pb-empty {
    grid-column: 1 / -1; text-align: center; padding: 56px 24px;
    border: 2px dashed var(--border-light); border-radius: var(--radius-lg);
    background: var(--bg-white); color: var(--text-light);
}
.pb-empty .pb-ic { font-size: 42px; line-height: 1; margin-bottom: 12px; }
.pb-empty h3 { font-size: 19px; font-weight: 700; color: var(--primary-color); margin-bottom: 6px; }
.pb-empty p { font-size: 14.5px; margin: 0; }
.pb-loading { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: var(--text-light); font-size: 14.5px; }
.pb-error { grid-column: 1 / -1; text-align: center; padding: 28px 20px; color: #b91c1c; background: var(--error-bg); border-radius: var(--radius-md); font-size: 14.5px; }

/* --- Beitragskarten (News-Uebersicht) ------------------------------------ */
.pb-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pb-post {
    background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    overflow: hidden; display: flex; flex-direction: column;
    transition: var(--transition); box-shadow: var(--shadow-sm);
}
.pb-post:hover { border-color: var(--primary-color); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pb-post-media { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--primary-light-2), var(--primary-light)); }
.pb-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pb-post:hover .pb-post-media img { transform: scale(1.05); }
.pb-post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pb-post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-light); }
.pb-post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pb-post h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.pb-post h3 a { color: var(--text-dark); text-decoration: none; }
.pb-post h3 a:hover { color: var(--primary-color); }
.pb-post-excerpt { font-size: 14.5px; line-height: 1.62; color: var(--text-light); margin: 0; }
.pb-post-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-light);
    font-size: 13.5px; color: var(--text-light);
}
.pb-post-foot .pb-au { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pb-post-foot .pb-more { color: var(--primary-color); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pb-post-foot .pb-more:hover { text-decoration: underline; }

/* --- Admin-Aktionen in Karten und Panels --------------------------------- */
.pb-adm { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 12px; border-top: 1px dashed var(--border-light); }
.pb-adm strong { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--text-light); }
.pb-btn-mini {
    display: inline-flex; align-items: center; gap: 5px; font-family: inherit;
    font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: 999px;
    border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: var(--transition);
}
.pb-btn-mini-edit { background: var(--primary-light-2); color: var(--success-dark); }
.pb-btn-mini-edit:hover { background: var(--primary-color); color: #fff; }
.pb-btn-mini-del { background: var(--error-bg); color: #b91c1c; }
.pb-btn-mini-del:hover { background: #b91c1c; color: #fff; }

/* --- Fliesstext aus dem Editor (News-Detail) ----------------------------- */
.pb-prose { font-size: 16.5px; line-height: 1.8; color: var(--text-dark); }
.pb-prose > *:first-child { margin-top: 0; }
.pb-prose p { margin: 0 0 18px; }
.pb-prose h2 { font-size: 25px; font-weight: 800; color: var(--primary-color); letter-spacing: -.015em; margin: 34px 0 12px; line-height: 1.25; }
.pb-prose h3 { font-size: 20px; font-weight: 700; color: var(--text-dark); margin: 26px 0 10px; line-height: 1.3; }
.pb-prose ul, .pb-prose ol { margin: 0 0 18px; padding-left: 24px; }
.pb-prose li { margin-bottom: 7px; }
.pb-prose blockquote {
    margin: 24px 0; padding: 14px 20px; border-left: 4px solid var(--primary-color);
    background: var(--primary-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic; color: var(--success-dark);
}
.pb-prose a { color: var(--primary-color); text-decoration: underline; }
.pb-prose a:hover { color: var(--primary-dark); }
.pb-prose strong, .pb-prose b { font-weight: 700; color: var(--text-dark); }
.pb-prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 12px 0; }
.pb-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em;
    background: var(--neutral-bg); padding: 2px 6px; border-radius: 4px;
}
.pb-prose pre { background: var(--neutral-bg); padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; margin: 0 0 18px; }
.pb-prose pre code { background: none; padding: 0; }
.pb-prose hr { border: none; border-top: 1px solid var(--border-light); margin: 28px 0; }

/* --- News-Detail: Kopf-Meta ---------------------------------------------- */
.pb-shero-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.pb-shero-tags a { text-decoration: none; }

/* --- Video-Einbettung ---------------------------------------------------- */
.pb-video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius-md); overflow: hidden; background: #000; margin-top: 18px; }
.pb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 1000px) {
    .pb-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pb-post-grid { grid-template-columns: 1fr; gap: 18px; }
    .pb-post h3 { font-size: 17.5px; }
    .pb-prose { font-size: 15.5px; }
    .pb-prose h2 { font-size: 21px; }
    .pb-prose h3 { font-size: 18px; }
    .pb-empty { padding: 40px 16px; }
}

/* Zweizeiliger Seiten-Link (Titel + Quelle), z. B. Weiterführende Links */
.pb-slink .pb-sub3 { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-light); margin-top: 2px; }
.pb-slink:hover .pb-sub3 { color: var(--success-dark); }

/* --- Geteilter Seitenkopf ------------------------------------------------
   Text im gruenen Panel, Bild daneben statt als Hintergrund dahinter -
   Plakate und Artworks bleiben dadurch vollstaendig sichtbar
   (object-fit: contain, kein Beschnitt, keine Abdunklung).
   ------------------------------------------------------------------------ */
.pb-shero {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 400px);
    grid-template-areas: "txt fig";
    margin-top: 20px;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0F6148 0%, #0d5139 65%, #0a4230 100%);
    box-shadow: var(--shadow-md);
}
.pb-shero-noimg { grid-template-columns: 1fr; grid-template-areas: "txt"; }
.pb-shero-in {
    grid-area: txt; min-width: 0;
    padding: 38px 40px;
    display: flex; flex-direction: column; justify-content: center;
}
.pb-shero-in h1 { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 12px 0 14px; color: #fff; }
.pb-shero-in .pb-au { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 15px; color: rgba(255,255,255,.9); margin-top: 14px; }
.pb-shero-in .pb-au .pb-sub2 { font-size: 13px; color: rgba(255,255,255,.68); font-weight: 400; }
.pb-shero-fig {
    grid-area: fig; background: rgba(0,0,0,.24);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.pb-shero-fig img {
    display: block; width: auto; height: auto;
    max-width: 100%; max-height: 320px; object-fit: contain;
    border-radius: var(--radius-md); box-shadow: 0 14px 32px rgba(0,0,0,.42);
}
.pb-shero-fig-zoom img { cursor: zoom-in; }

@media (max-width: 820px) {
    .pb-shero { grid-template-columns: 1fr; grid-template-areas: "fig" "txt"; }
    .pb-shero-in { padding: 26px 24px; }
    .pb-shero-in h1 { font-size: 28px; }
    .pb-shero-fig { padding: 20px; }
    .pb-shero-fig img { max-height: 280px; }
}
@media (max-width: 560px) {
    .pb-shero-in { padding: 22px 20px; }
    .pb-shero-in h1 { font-size: 24px; }
    .pb-shero-fig { padding: 16px; }
    .pb-shero-fig img { max-height: 230px; }
}

/* ==========================================================================
   Formular- und Kontoseiten (login.php, profile.php, CMS-Seiten)
   ========================================================================== */

/* --- Formularbausteine --------------------------------------------------- */
.pb-fgroup { margin-bottom: 20px; }
.pb-fgroup > label { display: block; margin-bottom: 7px; font-weight: 700; font-size: 14px; color: var(--text-dark); }
.pb-input {
    width: 100%; padding: 11px 14px; font-size: 15px; font-family: inherit;
    color: var(--text-dark); background: #fff;
    border: 2px solid var(--border-light); border-radius: var(--radius-sm);
    transition: var(--transition);
}
.pb-input:focus { border-color: var(--primary-color); outline: none; }
.pb-input:disabled { background: var(--bg-light); color: var(--text-light); cursor: not-allowed; }
textarea.pb-input { resize: vertical; min-height: 110px; line-height: 1.6; }
.pb-help { font-size: 12.5px; line-height: 1.55; color: var(--text-light); margin-top: 5px; }
.pb-help-ok { color: var(--success); }
.pb-help-warn { color: #b45309; }
.pb-check { display: flex; align-items: flex-start; gap: 10px; }
.pb-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary-color); }
.pb-check label { font-size: 14.5px; color: var(--text-dark); cursor: pointer; }
.pb-btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pb-btn-danger { background: var(--error); color: #fff; }
.pb-btn-danger:hover { background: #b91c1c; color: #fff; }
.pb-btn-neutral { background: var(--neutral-bg); color: var(--text-dark); }
.pb-btn-neutral:hover { background: #e5e7eb; color: var(--text-dark); }

/* Passwortfeld mit Sichtbarkeits-Umschalter */
.pb-pw { position: relative; }
.pb-pw .pb-input { padding-right: 48px; }
.pb-pw-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    display: flex; padding: 7px; border: none; background: none;
    color: var(--text-light); cursor: pointer; border-radius: var(--radius-sm);
}
.pb-pw-toggle:hover { color: var(--primary-color); background: var(--primary-light); }
.pb-pw-toggle svg { width: 20px; height: 20px; }

/* Passwort-Anforderungen und Abgleich */
.pb-req { margin-top: 10px; padding: 12px 14px; background: var(--bg-light); border-radius: var(--radius-sm); font-size: 13.5px; }
.pb-req > strong { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--text-light); }
.pb-req .requirement { display: flex; align-items: center; gap: 8px; color: var(--text-light); margin-bottom: 4px; }
.pb-req .requirement:last-child { margin-bottom: 0; }
.pb-req .requirement.valid { color: var(--success); font-weight: 600; }
.pb-match { margin-top: 7px; font-size: 13.5px; font-weight: 600; }
.pb-match.match { color: var(--success); }
.pb-match.no-match { color: var(--error); }

/* --- Hinweisboxen -------------------------------------------------------- */
.pb-note { border-left: 4px solid; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.62; }
.pb-note p { margin: 8px 0 0; }
.pb-note ul { margin: 8px 0 0; padding-left: 20px; }
.pb-note li { margin-bottom: 5px; }
.pb-note li:last-child { margin-bottom: 0; }
.pb-note a { color: inherit; text-decoration: underline; font-weight: 700; }
.pb-note-info  { background: var(--info-bg);         border-color: var(--info);    color: #1e40af; }
.pb-note-ok    { background: var(--primary-light-2); border-color: var(--success); color: var(--success-dark); }
.pb-note-warn  { background: var(--warning-bg);      border-color: var(--warning); color: #78350f; }
.pb-note-error { background: var(--error-bg);        border-color: var(--error);   color: #7f1d1d; }

/* --- Panel-Varianten ----------------------------------------------------- */
.pb-panel-danger { border-left: 4px solid var(--error); }
.pb-panel-danger > h2 { color: var(--error); }

/* --- Schmale Anmelde-/Formularspalte ------------------------------------- */
.pb-auth { max-width: 460px; margin: 0 auto; }
.pb-auth-links { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-light); }
.pb-auth-links a { color: var(--primary-color); font-weight: 700; text-decoration: none; }
.pb-auth-links a:hover { text-decoration: underline; }

/* --- CMS-Inhalte aus dem Seiteneditor ------------------------------------
   Der Inhalt kommt aus der Tabelle `pages` und bringt teils eigene
   Inline-Styles mit. Hier werden nur die Werte entschaerft, die responsive
   Darstellung verhindern (feste Bildbreiten, sehr grosse Abstaende).
   ------------------------------------------------------------------------ */
.pb-prose h4 { font-size: 19px; font-weight: 700; color: var(--primary-color); margin: 28px 0 10px; line-height: 1.32; }
.pb-cms img { max-width: 100% !important; height: auto !important; display: block; margin-left: auto !important; margin-right: auto !important; border-radius: var(--radius-md); }
.pb-cms > div[style] { margin: 36px 0 !important; }
.pb-cms > div[style]:first-child { margin-top: 0 !important; }
.pb-cms > div[style]:last-child { margin-bottom: 0 !important; }
.pb-panel-center { text-align: center; }

/* --- Bausteine fuer CMS-gepflegte Inhaltsseiten --------------------------
   Werden aus dem Seiteneditor heraus verwendet (Tabelle `pages`), damit dort
   kein eigener <style>-Block mehr noetig ist.
   ------------------------------------------------------------------------ */
.pb-lead { max-width: 720px; margin: 0 auto 36px; text-align: center; font-size: 16.5px; line-height: 1.75; color: var(--text-dark); }
.pb-lead strong { color: var(--primary-color); font-weight: 700; }
.pb-list { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14.5px; line-height: 1.55; }
.pb-list li { display: flex; gap: 9px; padding: 5px 0; color: var(--text-light); }
.pb-list li::before { content: "▸"; color: var(--primary-color); font-weight: 700; flex-shrink: 0; }
.pb-join-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pb-join-card-hl { background: var(--primary-light); border-color: var(--primary-color); }
.pb-join-card-center { align-items: center; text-align: center; }
.pb-join-card-center .pb-join-icon { margin-left: auto; margin-right: auto; }
.pb-fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.pb-fact { text-align: center; padding: 20px 16px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); }
.pb-fact h4 { font-size: 15px; font-weight: 700; color: var(--primary-color); margin-bottom: 5px; }
.pb-fact p { font-size: 13.5px; line-height: 1.55; color: var(--text-light); margin: 0; }

@media (max-width: 1000px) {
    .pb-join-grid-2 { grid-template-columns: 1fr; }
    .pb-fact-grid { grid-template-columns: 1fr; }
}
.pb-sec-head-gap { margin-top: 44px; }

/* --- Kontakt-Seite: Direktkontakt, Themenindex, Kennzahlenband -----------
   Bewusst kontrastreich aufgebaut: eine dunkle und eine helle Aktionskarte,
   ein typografischer Themenindex mit grossen Ziffern und ein dunkles
   Kennzahlenband - statt drei Reihen gleicher Kaesten.
   ------------------------------------------------------------------------ */
.pb-duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-bottom: 56px; }
.pb-cta { border-radius: 20px; padding: 34px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; position: relative; overflow: hidden; }
.pb-cta h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pb-cta p { font-size: 15px; line-height: 1.65; margin: 0; }
.pb-cta .pb-btn { margin-top: 8px; }
.pb-cta-mark { font-size: 40px; line-height: 1; margin-bottom: 2px; }

.pb-cta-dark { background: linear-gradient(135deg, #0F6148 0%, #0d5139 60%, #0a4230 100%); color: #fff; box-shadow: var(--shadow-lg); }
.pb-cta-dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 92% 8%, rgba(209,250,229,.20), transparent 58%); }
.pb-cta-dark > * { position: relative; z-index: 2; }
.pb-cta-dark h3 { color: #fff; }
.pb-cta-dark p { color: rgba(255,255,255,.86); }
.pb-cta-dark .pb-tag { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.pb-cta-dark .pb-micro { color: rgba(255,255,255,.7); }
.pb-cta-dark .pb-micro a { color: var(--primary-light-2); }

.pb-cta-light { background: #fff; border: 2px solid var(--primary-light-2); }
.pb-cta-light h3 { color: var(--primary-color); }
.pb-cta-light p { color: var(--text-light); }
.pb-cta-light .pb-tag { background: var(--primary-light-2); color: var(--success-dark); border: 1px solid transparent; }

.pb-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 5px 12px; border-radius: 999px; }
.pb-micro { font-size: 13px; color: var(--text-light); margin: 0; }
.pb-micro a { color: var(--primary-color); font-weight: 700; }
.pb-mail-btn { font-family: inherit; word-break: break-all; }

/* Themenindex mit grossen Ziffern */
.pb-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--primary-light-2); }
.pb-index-item { padding: 26px 26px 28px; border-right: 1px solid var(--border-light); }
.pb-index-item:last-child { border-right: none; }
.pb-index-num { font-size: 38px; font-weight: 800; line-height: 1; color: var(--primary-light-2); letter-spacing: -.03em; }
.pb-index-item h3 { font-size: 18px; font-weight: 700; color: var(--primary-color); margin: 10px 0 3px; line-height: 1.25; }
.pb-index-item > p { font-size: 13px; color: var(--text-light); margin: 0 0 12px; }

/* Kennzahlenband */
.pb-band { background: linear-gradient(135deg, #0F6148 0%, #0d5139 70%, #0a4230 100%); border-radius: 20px; padding: 34px 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 52px 0 34px; color: #fff; }
.pb-band-item { border-left: 2px solid rgba(255,255,255,.22); padding-left: 22px; }
.pb-band-item:first-child { border-left: none; padding-left: 0; }
.pb-band-num { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.pb-band-item h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; color: var(--primary-light-2); margin: 6px 0 5px; }
.pb-band-item p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.8); margin: 0; }

.pb-footline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: 14px; color: var(--text-light); }
.pb-footline a { color: var(--primary-color); font-weight: 700; text-decoration: none; }
.pb-footline a:hover { text-decoration: underline; }

@media (max-width: 1000px) {
    .pb-duo { grid-template-columns: 1fr; }
    .pb-index { grid-template-columns: 1fr; }
    .pb-index-item { border-right: none; border-bottom: 1px solid var(--border-light); padding: 22px 0 24px; }
    .pb-index-item:last-child { border-bottom: none; }
    .pb-band { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; }
    .pb-band-item { border-left: none; border-top: 1px solid rgba(255,255,255,.22); padding-left: 0; padding-top: 18px; }
    .pb-band-item:first-child { border-top: none; padding-top: 0; }
}
@media (max-width: 640px) {
    .pb-cta { padding: 26px 22px; }
    .pb-cta h3 { font-size: 22px; }
    .pb-cta .pb-btn { width: 100%; }
}

/* ==========================================================================
   Konto-Bereich (my-artist-profiles.php, pages/my-events.php)
   ========================================================================== */

/* --- Verwaltungskarten ---------------------------------------------------
   Basis ist .pb-post aus der News-Uebersicht; hier kommen nur die Teile
   dazu, die eine Verwaltungsansicht braucht: Statuszeile und Aktionsleiste.
   ------------------------------------------------------------------------ */
.pb-pill-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pb-post-meta-col { flex-direction: column; align-items: flex-start; gap: 5px; }
.pb-pill-error { background: var(--error-bg); color: #991b1b; }

.pb-card-actions {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch;
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-light);
}
.pb-card-actions > .pb-btn,
.pb-card-actions > form { flex: 1 1 130px; }
.pb-card-actions > form { margin: 0; display: flex; }
.pb-card-actions > form .pb-btn { width: 100%; }
.pb-card-actions > .pb-act-wide { flex: 1 1 100%; }

/* Platzhalter, wenn kein Bild hinterlegt ist */
.pb-post-media .pb-noimg {
    height: 100%; display: flex; align-items: center; justify-content: center;
    gap: 8px; font-size: 14px; font-weight: 700; color: var(--success-dark);
}

/* Kompakte Hinweisbox innerhalb einer Karte */
.pb-note-sm { font-size: 13px; line-height: 1.55; padding: 10px 12px; margin-bottom: 12px; }
.pb-note-sm p { margin: 6px 0 0; }
/* Abstand nach oben, wenn eine Hinweisbox direkt auf einen Block folgt */
.pb-note-gap { margin-top: 26px; }

/* Aktionsschaltflaeche im Leerzustand */
.pb-empty .pb-btn { margin-top: 18px; }

/* --- Filterleiste mit Beschriftungen ------------------------------------- */
.pb-tb-lbl { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--text-light); margin-bottom: 6px; }
.pb-tb-row-end { align-items: flex-end; }
.pb-tb-check { display: flex; align-items: center; gap: 9px; flex: 1 1 210px; padding-bottom: 11px; }
.pb-tb-check input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; accent-color: var(--primary-color); }
.pb-tb-check label { font-size: 14px; font-weight: 600; color: var(--text-dark); cursor: pointer; }

/* --- Modal --------------------------------------------------------------- */
.pb-modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(10,50,36,.55); overflow-y: auto; }
.pb-modal.pb-open { display: flex; align-items: center; justify-content: center; padding: 20px; }
.pb-modal-box { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 700px; max-height: 90vh; overflow-y: auto; }
.pb-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 26px; border-bottom: 1px solid var(--border-light); }
.pb-modal-head h2 { font-size: 20px; font-weight: 800; color: var(--primary-color); margin: 0; }
.pb-modal-x { border: none; background: none; font-family: inherit; font-size: 26px; line-height: 1; color: var(--text-light); cursor: pointer; padding: 2px 9px; border-radius: var(--radius-sm); }
.pb-modal-x:hover { color: var(--primary-color); background: var(--primary-light); }
.pb-modal-body { padding: 24px 26px; }
.pb-modal-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 18px 26px; border-top: 1px solid var(--border-light); }
.pb-modal textarea.pb-input { min-height: 180px; }
.pb-btn:disabled { background: var(--neutral); border-color: transparent; color: #fff; cursor: not-allowed; }

/* Wortzaehler unter Textfeldern */
.pb-counter { text-align: right; font-size: 12.5px; color: var(--text-light); margin-top: 5px; }
.pb-counter.pb-warn { color: #b45309; font-weight: 600; }
.pb-counter.pb-over { color: var(--error); font-weight: 600; }

@media (max-width: 640px) {
    .pb-modal.pb-open { padding: 12px; align-items: flex-start; }
    .pb-modal-head, .pb-modal-body, .pb-modal-foot { padding-left: 18px; padding-right: 18px; }
    .pb-modal-foot .pb-btn { flex: 1 1 100%; }
    .pb-card-actions > .pb-btn,
    .pb-card-actions > form { flex: 1 1 100%; }
}

/* ==========================================================================
   Bewerbungen und Förderanträge (pages/my-applications.php, pages/my-funding.php)
   ========================================================================== */

/* --- Auswaehlbare Optionen (Checkbox-Karten) -----------------------------
   Zustaende nach FARBSCHEMA.md: Rahmen neutral, Hover hell, Auswahl kraeftig.
   ------------------------------------------------------------------------ */
.pb-pick { display: flex; flex-direction: column; gap: 10px; }
.pb-pick-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; background: #fff;
    border: 2px solid var(--border-light); border-radius: var(--radius-md);
    cursor: pointer; transition: var(--transition);
}
.pb-pick-item:hover { border-color: var(--primary-color); background: var(--primary-light); }
.pb-pick-item.pb-selected { border-color: var(--primary-color); background: var(--primary-light-2); }
.pb-pick-item.pb-disabled { cursor: not-allowed; opacity: .65; background: var(--bg-light); }
.pb-pick-item.pb-disabled:hover { border-color: var(--border-light); background: var(--bg-light); }
.pb-pick-item input[type="checkbox"] { width: 19px; height: 19px; flex-shrink: 0; cursor: inherit; accent-color: var(--primary-color); }
.pb-pick-img { flex: 0 0 54px; width: 54px; height: 54px; display: block; object-fit: cover; border-radius: var(--radius-sm); }
.pb-pick-ph {
    flex: 0 0 54px; width: 54px; height: 54px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    background: linear-gradient(135deg, var(--primary-light-2), var(--primary-light));
}
.pb-pick-body { flex: 1 1 140px; min-width: 0; }
.pb-pick-body strong { display: block; font-size: 15.5px; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.pb-pick-body span { display: block; font-size: 13px; color: var(--text-light); line-height: 1.5; margin-top: 2px; }

/* --- Listenzeile fuer Vorgaenge (Bewerbungen, Antraege) ------------------ */
.pb-lrow {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.pb-lrow:hover { border-color: var(--primary-color); }
.pb-lrow-ok { border-color: var(--primary-light-2); background: var(--primary-light); }
.pb-lrow-bad { border-color: #fca5a5; background: #fef2f2; }
.pb-lrow-body { flex: 1 1 220px; min-width: 0; }
.pb-lrow-body h4 { font-size: 16.5px; font-weight: 700; color: var(--text-dark); line-height: 1.3; margin: 0 0 4px; }
/* Verlinkter Zeilentitel (partner-view.php): Link erbt die Titel-Optik */
.pb-lrow-body h4 a { color: inherit; text-decoration: none; }
.pb-lrow-body h4 a:hover { color: var(--primary-color); text-decoration: underline; }
.pb-lrow-body p { font-size: 13.5px; color: var(--text-light); line-height: 1.55; margin: 0; }
.pb-lrow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; margin-left: auto; }
.pb-lrow-side form { margin: 0; }
.pb-lrow-full { flex: 1 1 100%; }

/* --- Kennwerte-Raster innerhalb einer Karte ------------------------------ */
.pb-kv {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px;
    margin: 16px 0; padding: 16px 0;
    border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.pb-kv .pb-lbl { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--text-light); margin-bottom: 4px; }
.pb-kv b { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.pb-kv .pb-amount { font-size: 19px; font-weight: 800; color: var(--primary-color); }
.pb-kv .pb-amount-ok { color: var(--success); }
.pb-kv .pb-due-warn { color: #b45309; }
.pb-kv .pb-due-over { color: var(--error); }
.pb-kv .pb-sub4 { font-size: 12px; font-weight: 400; color: var(--text-light); }

/* Vorgangsnummer */
.pb-mono {
    display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px; font-weight: 700; color: var(--text-dark);
    background: var(--neutral-bg); padding: 4px 10px; border-radius: var(--radius-sm);
}
.pb-pill-info { background: var(--info-bg); color: #1d4ed8; }

/* Kopfzeile einer Vorgangskarte */
.pb-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pb-panel-head h3 { font-size: 18.5px; font-weight: 700; color: var(--text-dark); line-height: 1.3; margin: 0 0 8px; }
.pb-panel-ok { border-color: var(--primary-light-2); }
.pb-panel-bad { border-color: #fca5a5; background: #fef2f2; }

@media (max-width: 640px) {
    .pb-lrow-side { align-items: stretch; width: 100%; margin-left: 0; }
    .pb-lrow-side .pb-btn { width: 100%; }
    .pb-kv { grid-template-columns: 1fr; gap: 12px; }
    .pb-pick-item { flex-wrap: wrap; }
}

/* ==========================================================================
   Postfach (pages/my-messages.php)
   ========================================================================== */

/* --- Tabs (Aktiv / Archiv) ----------------------------------------------- */
.pb-tabs { display: flex; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.pb-tab { flex: 1; padding: 14px 18px; text-align: center; text-decoration: none; font-size: 14.5px; font-weight: 700; color: var(--text-light); background: #fff; transition: var(--transition); }
.pb-tab:hover { background: var(--primary-light); color: var(--primary-color); }
.pb-tab.pb-active { background: var(--primary-color); color: #fff; }
.pb-tab .pb-cnt { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--neutral-bg); color: var(--text-light); }
.pb-tab.pb-active .pb-cnt { background: rgba(255,255,255,.22); color: #fff; }

/* --- Konversationsliste -------------------------------------------------- */
.pb-conv-list { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.pb-conv-row { display: flex; align-items: stretch; transition: var(--transition); }
.pb-conv-row + .pb-conv-row { border-top: 1px solid var(--border-light); }
.pb-conv-row:hover { background: var(--primary-light); }
.pb-conv-row.pb-unread { background: var(--primary-light); box-shadow: inset 3px 0 0 var(--primary-color); }
.pb-conv-row.pb-unread:hover { background: var(--primary-light-2); }
.pb-conv-check { display: flex; align-items: center; padding: 0 0 0 16px; }
.pb-conv-check input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary-color); }
.pb-conv-link { flex: 1; min-width: 0; display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 18px 22px; text-decoration: none; color: inherit; }
.pb-conv-main { flex: 1; min-width: 0; }
.pb-conv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pb-conv-head h3 { min-width: 0; margin: 0; font-size: 16px; font-weight: 600; color: var(--text-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-conv-row.pb-unread .pb-conv-head h3 { font-weight: 800; }
.pb-conv-from { font-size: 13px; color: var(--text-light); margin: 0 0 5px; }
.pb-conv-prev { font-size: 14px; color: var(--text-light); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-conv-when { flex-shrink: 0; padding-top: 2px; font-size: 12px; color: var(--text-light); white-space: nowrap; }
.pb-pill-new { background: var(--primary-color); color: #fff; }

/* --- Auswahlleiste (Mehrfachaktionen) ------------------------------------ */
.pb-selbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--primary-color); color: #fff; border-radius: var(--radius-lg); padding: 12px 18px; margin-bottom: 15px; }
.pb-selbar-l { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pb-selbar label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.pb-selbar input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #fff; }
.pb-selbar-n { font-size: 14px; font-weight: 600; }

/* --- Konversationsansicht ------------------------------------------------ */
.pb-thread { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.pb-thread-head { padding: 20px 24px; border-bottom: 1px solid var(--border-light); background: var(--bg-light); }
.pb-thread-head h2 { font-size: 19px; font-weight: 800; color: var(--primary-color); margin: 0 0 5px; }
.pb-thread-head p { font-size: 14px; color: var(--text-light); margin: 0; }
.pb-thread-notice { padding: 16px 24px 0; }
.pb-thread-notice .pb-note { margin-bottom: 0; }
.pb-thread-body { padding: 24px; max-height: 520px; overflow-y: auto; }
.pb-msg { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
.pb-msg:last-child { margin-bottom: 0; }
.pb-msg-mine { align-items: flex-end; }
.pb-bubble { max-width: 80%; padding: 14px 18px; border-radius: 16px 16px 16px 4px; background: var(--neutral-bg); color: var(--text-dark); }
.pb-msg-mine .pb-bubble { border-radius: 16px 16px 4px 16px; background: var(--primary-color); color: #fff; }
.pb-bubble-who { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.pb-msg-mine .pb-bubble-who { color: rgba(255,255,255,.82); }
.pb-bubble-who .pb-role { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--info-bg); color: #1e40af; }
.pb-msg-mine .pb-bubble-who .pb-role { background: rgba(255,255,255,.2); color: #fff; }
.pb-bubble-text { font-size: 15px; line-height: 1.62; word-break: break-word; }
.pb-bubble-text a { color: var(--primary-color); }
.pb-msg-mine .pb-bubble-text a { color: #fff; }
.pb-msg-when { margin-top: 5px; padding: 0 5px; font-size: 11.5px; color: var(--text-light); }
.pb-msg-when .pb-read { margin-left: 6px; font-weight: 600; color: var(--primary-color); }
.pb-thread-reply { padding: 20px 24px; background: var(--bg-light); border-top: 1px solid var(--border-light); }
.pb-thread-reply .pb-fgroup { margin-bottom: 0; }
.pb-thread-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--border-light); }
.pb-thread-foot form { margin: 0; }
.pb-linkbtn { background: none; border: none; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text-light); cursor: pointer; padding: 4px 2px; }
.pb-linkbtn:hover { color: var(--primary-color); text-decoration: underline; }
.pb-linkbtn-danger { color: var(--error); }
.pb-linkbtn-danger:hover { color: #b91c1c; }

/* --- Empfaenger-Auswahl (nur Team) --------------------------------------- */
.pb-picker { position: relative; }
.pb-picker-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 14px; font-family: inherit; font-size: 15px; text-align: left; color: var(--text-light);
    background: #fff; border: 2px solid var(--border-light); border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition);
}
.pb-picker-trigger:hover,
.pb-picker.pb-open .pb-picker-trigger { border-color: var(--primary-color); }
.pb-picker-trigger svg { flex-shrink: 0; transition: transform .2s; }
.pb-picker.pb-open .pb-picker-trigger svg { transform: rotate(180deg); }
.pb-picker-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-picker-val b { color: var(--text-dark); font-weight: 700; }
.pb-picker-val i { font-style: normal; font-size: 13px; color: var(--text-light); }
.pb-picker-menu {
    display: none; position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 1000;
    background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.pb-picker.pb-open .pb-picker-menu { display: block; }
.pb-picker-search { padding: 12px; border-bottom: 1px solid var(--border-light); background: var(--bg-light); }
.pb-picker-search input { width: 100%; padding: 9px 13px; font-family: inherit; font-size: 14px; border: 2px solid var(--border-light); border-radius: var(--radius-sm); }
.pb-picker-search input:focus { border-color: var(--primary-color); outline: none; }
.pb-picker-scroll { max-height: 280px; overflow-y: auto; }
.pb-picker-opt {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 15px; font-family: inherit; text-align: left;
    background: none; border: none; border-bottom: 1px solid var(--bg-light);
    cursor: pointer; transition: var(--transition);
}
.pb-picker-opt:hover { background: var(--primary-light); }
.pb-picker-opt:last-child { border-bottom: none; }
.pb-picker-ini {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #0F6148 0%, #0d5139 100%);
}
.pb-picker-opt > span:not(.pb-picker-ini) { flex: 1 1 auto; min-width: 0; }
.pb-picker-opt strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--text-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-picker-opt em { display: block; font-style: normal; font-size: 13px; color: var(--text-light); }
.pb-picker-none { display: none; padding: 28px 15px; text-align: center; font-size: 14px; color: var(--text-light); }
.pb-picker-none.pb-show { display: block; }

@media (max-width: 640px) {
    .pb-tabs { flex-direction: column; }
    .pb-conv-link { flex-direction: column; gap: 6px; padding: 16px 18px; }
    .pb-conv-when { padding-top: 0; }
    .pb-bubble { max-width: 95%; }
    .pb-thread-head, .pb-thread-reply, .pb-thread-foot { padding-left: 18px; padding-right: 18px; }
    .pb-thread-body { padding: 18px; }
    .pb-thread-notice { padding: 14px 18px 0; }
    .pb-picker-menu { position: fixed; top: auto; right: 0; bottom: 0; left: 0; border-radius: 16px 16px 0 0; max-height: 70vh; }
    .pb-picker-scroll { max-height: calc(70vh - 84px); }
    .pb-selbar { justify-content: center; text-align: center; }
    .pb-selbar-l { justify-content: center; }
}

/* ==========================================================================
   Event-Formulare (pages/my-event-add.php, pages/my-event-edit.php)
   ========================================================================== */

/* --- Feldraster und Teilbereiche ----------------------------------------- */
.pb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pb-grid-2 > .pb-fgroup { margin-bottom: 0; }
.pb-subpanel { background: var(--bg-light); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 18px; }
.pb-req-mark { color: var(--error); }

/* --- Ortssuche und Karte ------------------------------------------------- */
.pb-status { display: inline-block; margin-left: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-light); }
.pb-status-ok { color: var(--success); }
.pb-status-error { color: var(--error); }
.pb-status-busy { color: #b45309; }
.pb-map-form { height: 350px; margin-bottom: 15px; border: 2px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; }
.pb-map-hidden { display: none; }

/* --- Datei-Ablageflaechen (Drag & Drop) ---------------------------------- */
.pb-drop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pb-drop {
    position: relative; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
    min-height: 132px; padding: 18px 14px; text-align: center;
    background: #fff; border: 2px dashed var(--border-light); border-radius: var(--radius-md);
    cursor: pointer; transition: var(--transition);
}
.pb-drop:hover { border-color: var(--primary-color); background: var(--primary-light); }
.pb-drop.pb-dragover { border-color: var(--primary-color); background: var(--primary-light-2); }
.pb-drop.pb-has-file { border-style: solid; border-color: var(--primary-color); background: var(--primary-light); }
.pb-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pb-drop-ic { font-size: 28px; line-height: 1; }
.pb-drop-txt { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-light); }
.pb-drop.pb-has-file .pb-drop-txt { color: var(--success-dark); }
.pb-drop-name { font-size: 12px; color: var(--success-dark); word-break: break-all; }
.pb-drop-x {
    position: absolute; top: 6px; right: 6px; z-index: 2; display: none;
    width: 24px; height: 24px; padding: 0; line-height: 1;
    font-family: inherit; font-size: 16px; font-weight: 700; color: #fff;
    background: var(--error); border: none; border-radius: 50%; cursor: pointer;
}
.pb-drop.pb-has-file .pb-drop-x { display: block; }
.pb-drop-x:hover { background: #b91c1c; }

/* --- Suchfeld mit Symbol ------------------------------------------------- */
.pb-searchbox { position: relative; margin-bottom: 12px; }
.pb-searchbox input {
    width: 100%; padding: 11px 14px 11px 40px; font-family: inherit; font-size: 14.5px;
    color: var(--text-dark); background: #fff;
    border: 2px solid var(--border-light); border-radius: var(--radius-sm); transition: var(--transition);
}
.pb-searchbox input:focus { border-color: var(--primary-color); outline: none; }
.pb-searchbox .pb-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .55; pointer-events: none; }

/* --- Mehrfachauswahl Kuenstler*innen ------------------------------------- */
.pb-count-line { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.pb-count-line b { color: var(--primary-color); }
.pb-acheck-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-height: 420px; overflow-y: auto; padding: 4px; }
.pb-acheck {
    display: flex; align-items: center; gap: 11px; padding: 9px 11px;
    background: #fff; border: 2px solid var(--border-light); border-radius: var(--radius-md);
    cursor: pointer; transition: var(--transition);
}
.pb-acheck:hover { border-color: var(--primary-color); background: var(--primary-light); }
.pb-acheck.pb-selected { border-color: var(--primary-color); background: var(--primary-light-2); }
.pb-acheck input[type="checkbox"] { width: 17px; height: 17px; flex-shrink: 0; cursor: inherit; accent-color: var(--primary-color); }
.pb-acheck-img { flex: 0 0 42px; width: 42px; height: 42px; display: block; object-fit: cover; border-radius: var(--radius-sm); }
.pb-acheck-ph {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 19px;
    background: linear-gradient(135deg, var(--primary-light-2), var(--primary-light));
}
.pb-acheck-info { flex: 1 1 auto; min-width: 0; }
.pb-acheck-info strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--text-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-acheck-info span { display: block; font-size: 12px; color: var(--text-light); }

@media (max-width: 1000px) {
    .pb-acheck-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .pb-grid-2 { grid-template-columns: 1fr; }
    .pb-drop-grid { grid-template-columns: 1fr; }
    .pb-acheck-grid { grid-template-columns: 1fr; }
    .pb-map-form { height: 280px; }
}

/* ==========================================================================
   Künstler*innen-Profil-Formular (my-artist-profile-edit.php)
   ========================================================================== */

/* --- Feldvarianten -------------------------------------------------------- */
.pb-input[readonly] { background: var(--bg-light); color: var(--text-light); cursor: default; }
.pb-input-plz { text-align: center; letter-spacing: .06em; font-weight: 600; }
.pb-help-gap { margin-top: 0; margin-bottom: 18px; }
.pb-check-gap { margin-top: 10px; }
.pb-status-inline { display: inline-block; margin-left: 0; margin-top: 6px; }

/* --- PLZ + Ort ------------------------------------------------------------ */
.pb-plz-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start; }

/* --- Einzelne Ablageflaeche ---------------------------------------------- */
.pb-drop-grid-1 { grid-template-columns: 1fr; }

/* --- Vorschau des aktuellen Bildes --------------------------------------- */
.pb-imgprev { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.pb-imgprev-fig {
    flex: 0 0 170px; width: 170px; aspect-ratio: 1/1; overflow: hidden;
    background: var(--bg-light); border: 1px solid var(--border-light); border-radius: var(--radius-md);
}
.pb-imgprev-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-imgprev-side { flex: 1 1 220px; min-width: 0; }
.pb-imgprev-side .pb-help { margin-top: 0; }

@media (max-width: 560px) {
    .pb-plz-row { grid-template-columns: 1fr; }
    .pb-imgprev-fig { flex: 0 0 120px; width: 120px; }
}

/* ==========================================================================
   Rechtstexte (pages/impressum.php, datenschutz.php, nutzungsbedingungen.php)
   --------------------------------------------------------------------------
   Die Inhalte kommen aus dem CMS bzw. aus `terms_of_service` und bringen
   eigene Inline-Styles mit. pb-cms-legal entschaerft nur, was fuer eine
   responsive Darstellung noetig ist: fixe Breiten, fixe Schriftgroessen der
   Zwischenueberschriften, breite Tabellen.

   Die Seitenueberschrift liefert ausschliesslich pb-page-hero. Die frueher
   noetige Regel ".pb-cms-legal h1 { display: none }" ist entfallen, weil das
   doppelte <h1> in den Inhalten (pages/impressum, pages/datenschutz,
   terms_of_service) geloescht wurde. Beim Pflegen der Texte deshalb kein
   neues <h1> setzen - Zwischenueberschriften beginnen bei <h2>.
   ========================================================================== */

/* --- Aeusserer Wrapper aus dem Editor flach legen ------------------------ */
.pb-cms-legal > div[style] { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.pb-cms-legal > div[style] > *:first-child { margin-top: 0 !important; }

/* --- Zwischenueberschriften auf die Typografie des Systems ziehen -------- */
.pb-cms-legal h2[style] { font-size: 25px !important; margin: 34px 0 12px !important; line-height: 1.25; }
.pb-cms-legal h3[style] { font-size: 20px !important; margin: 26px 0 10px !important; line-height: 1.3; }
.pb-cms-legal h4[style] { font-size: 18px !important; margin: 24px 0 8px !important; line-height: 1.32; }
.pb-cms-legal section[style] { margin-bottom: 34px !important; }
.pb-cms-legal section[style]:last-child { margin-bottom: 0 !important; }

/* --- Lange Adressen, Links und Paragraphenketten umbrechen lassen -------- */
.pb-cms-legal a { overflow-wrap: anywhere; }

@media (max-width: 640px) {
    .pb-cms-legal h2[style] { font-size: 21px !important; }
    .pb-cms-legal h3[style] { font-size: 18px !important; }
    .pb-cms-legal h4[style] { font-size: 16.5px !important; }
    /* Hinweiskaesten aus dem Editor: Innenabstand zuruecknehmen */
    .pb-cms-legal div[style*="background"] { padding: 15px !important; }
    /* Breite Tabellen (z. B. Cookie-Uebersicht) horizontal scrollbar machen */
    .pb-cms-legal table { display: block; overflow-x: auto; max-width: 100%; }
    .pb-cms-legal th, .pb-cms-legal td { min-width: 130px; }
}

/* ==========================================================================
   Mobile Feinschliff
   ========================================================================== */

/* --- iOS-Auto-Zoom verhindern -------------------------------------------
   Safari auf iOS zoomt beim Fokussieren automatisch in Eingabefelder mit
   einer Schriftgroesse unter 16px hinein und zoomt danach nicht zurueck.
   Auf kleinen Viewports gehen alle Eingabefelder deshalb auf 16px.
   ------------------------------------------------------------------------ */
@media (max-width: 820px) {
    .pb-input,
    .pb-field input, .pb-field select,
    .pb-searchbox input,
    #music-url-input .form-input {
        font-size: 16px;
    }
}

/* --- Groessere Beruehrungsflaechen auf Touch-Geraeten -------------------- */
@media (max-width: 640px) {
    /* A-Z-Filter auf der Kuenstler*innen-Seite */
    .pb-az { gap: 7px; }
    .pb-az a, .pb-az span { width: 42px; height: 42px; font-size: 15px; }
    /* Entfernen-Knopf auf Datei-Ablageflaechen */
    .pb-drop-x { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 20px; }
    /* Segment-Umschalter und Chips */
    .pb-seg button:not(.burger-menu):not(.user-btn) { padding: 11px 20px; }
    .pb-chip { padding: 10px 16px; }
}

/* --- Sehr schmale Geraete (ca. 360px) ------------------------------------ */
@media (max-width: 400px) {
    .container { padding: 0 14px; }
    .pb-page-hero { padding: 22px 16px; border-radius: 18px; }
    .pb-panel { padding: 18px 16px; }
    .pb-az a, .pb-az span { width: 38px; height: 38px; }
}

/* --- Nur fuer Screenreader ----------------------------------------------- */
.pb-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- Lightbox ------------------------------------------------------------
   Gemeinsame Bildvergroesserung fuer artist.php und event-detail.php.
   Bis 2026-08 hatten beide Seiten eine eigene Variante mit gleichen
   Klassennamen (.lightbox-content war auf der einen Seite der Wrapper,
   auf der anderen das Bild selbst) - hier zu einer Komponente vereinheitlicht.
   Aufbau:
     .pb-lightbox > .pb-lightbox-close
                  > .pb-lightbox-inner > img.pb-lightbox-img
                  > .pb-lightbox-hint
   Geoeffnet wird per Klasse .pb-open (nicht per style.display), damit der
   Zustand im DOM ablesbar bleibt.
   ------------------------------------------------------------------------ */
.pb-lightbox {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, .95); z-index: 9999; overflow: auto;
}
.pb-lightbox.pb-open { display: block; animation: pbLightboxFade .3s ease; }
.pb-lightbox-inner {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px; box-sizing: border-box;
}
.pb-lightbox-img {
    max-width: 95%; max-height: 95vh; object-fit: contain;
    border-radius: var(--radius-md); box-shadow: 0 10px 50px rgba(0, 0, 0, .5);
    animation: pbLightboxZoom .3s ease;
}
.pb-lightbox-close {
    position: fixed; top: 20px; right: 30px; z-index: 10000;
    color: #fff; font-size: 45px; font-weight: 700; line-height: 1;
    background: none; border: 0; padding: 0; cursor: pointer;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5); transition: var(--transition);
}
.pb-lightbox-close:hover { color: var(--primary-light-2); transform: scale(1.1); }
.pb-lightbox-close:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.pb-lightbox-hint {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 10000; color: rgba(255, 255, 255, .7); font-size: 14px; text-align: center;
}

@keyframes pbLightboxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pbLightboxZoom { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 640px) {
    .pb-lightbox-close { top: 15px; right: 20px; font-size: 35px; }
    .pb-lightbox-hint { bottom: 15px; font-size: 12px; }
}

/* Bewegungsreduktion respektieren */
@media (prefers-reduced-motion: reduce) {
    .pb-lightbox.pb-open, .pb-lightbox-img { animation: none; }
}

/* --- Kachel-Auswahl Kuenstler*innen (pb-apick) ---------------------------
   Bildkachel mit Haekchen-Overlay, benutzt im News-Editor (news.php).
   Abgrenzung zu pb-acheck: pb-acheck ist die schmale Zeilenvariante
   (42px-Thumbnail + Text, siehe my-event-add.php); pb-apick zeigt ein
   grosses quadratisches Bild. Eine Vereinheitlichung der beiden waere
   moeglich, aendert aber das Erscheinungsbild - bewusst offen gelassen.
   Aufbau:
     .pb-apick-grid > label.pb-apick > input[type=checkbox]
                                     + .pb-apick-media > img | .pb-apick-ph
                                                        > .pb-apick-mark
                                     + .pb-apick-info > .pb-apick-name
                                                      > .pb-apick-cat
   ------------------------------------------------------------------------ */
.pb-apick-wrap { margin-bottom: 25px; }
.pb-apick-search { position: relative; margin-bottom: 15px; }
.pb-apick-search .pb-input { padding-right: 40px; }
.pb-apick-search-ic {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 18px; pointer-events: none;
}
.pb-apick-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px; max-height: 400px; overflow-y: auto;
    padding: 10px; background: var(--bg-light); border-radius: var(--radius-md);
}
.pb-apick {
    position: relative; display: block; cursor: pointer; background: #fff;
    border: 2px solid var(--border-light); border-radius: var(--radius-md);
    overflow: hidden; transition: var(--transition);
}
.pb-apick:hover {
    border-color: var(--primary-color); transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 97, 72, .2);
}
.pb-apick input[type="checkbox"] { position: absolute; opacity: 0; cursor: pointer; }
.pb-apick input[type="checkbox"]:focus-visible ~ .pb-apick-media { outline: 3px solid var(--primary-color); outline-offset: -3px; }
.pb-apick input[type="checkbox"]:checked + .pb-apick-media { border-color: var(--primary-color); }
.pb-apick input[type="checkbox"]:checked + .pb-apick-media .pb-apick-mark { opacity: 1; }
.pb-apick input[type="checkbox"]:checked ~ .pb-apick-info { background: var(--primary-light-2); }
.pb-apick-media {
    position: relative; width: 100%; padding-top: 100%;
    background: var(--neutral-bg); border-bottom: 2px solid var(--border-light);
}
.pb-apick-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.pb-apick-ph {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 40px; opacity: .3;
}
.pb-apick-mark {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(15, 97, 72, .8); opacity: 0; transition: opacity .2s ease;
}
.pb-apick-mark::after { content: '✓'; color: #fff; font-size: 40px; font-weight: 700; }
.pb-apick-info { padding: 10px; text-align: center; transition: background .2s ease; }
.pb-apick-name { font-weight: 600; font-size: 13px; color: var(--text-dark); margin-bottom: 4px; line-height: 1.2; }
.pb-apick-cat { font-size: 11px; color: var(--text-light); }

@media (max-width: 700px) {
    .pb-apick-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .pb-apick:hover { transform: none; }
}

/* --- Quill-Editor-Anpassungen -------------------------------------------
   Nur wirksam, wo Quill geladen wird (news.php bei $canManageNews).
   Die !important sind noetig, weil Quill sein Toolbar-CSS selbst setzt.
   ------------------------------------------------------------------------ */
/* .ql-formats ist eine Quill-eigene Klasse und darf NICHT umbenannt werden -
   Quill wertet sie zur Gruppierung der Toolbar-Buttons selbst aus. */
#quillToolbar .ql-formats { margin-right: 12px; }
.pb-html-toggle {
    background: var(--neutral-bg) !important; color: var(--text-dark) !important;
    border: 1px solid #d1d5db !important; border-radius: var(--radius-sm) !important;
    padding: 4px 10px !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 14px !important; cursor: pointer !important; transition: var(--transition) !important;
}
.pb-html-toggle:hover { background: #e5e7eb !important; }
.pb-html-toggle.pb-active {
    background: var(--primary-color) !important; color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* Editor-Flaeche des Quill-Editors (news.php). ID-Selektoren, weil die
   Elemente nur dort existieren; greifen auf anderen Seiten ins Leere. */
/* Quill Editor Styles (quill.snow.css wird oben via $extra_css eingebunden) */
#quillEditorContainer {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
#quillToolbar {
    border: none !important;
    border-bottom: 2px solid #e5e7eb !important;
    background: #f9fafb;
    padding: 8px !important;
}
#quillEditor {
    border: none !important;
    font-size: 16px;
}
#quillEditor .ql-editor {
    min-height: 280px;
    padding: 15px 20px;
    line-height: 1.7;
}
#quillEditor .ql-editor p {
    margin-bottom: 12px;
}
#quillEditor .ql-editor h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 12px 0;
    color: #111827;
}
#quillEditor .ql-editor h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 18px 0 10px 0;
    color: #374151;
}
#quillEditor .ql-editor ul,
#quillEditor .ql-editor ol {
    padding-left: 20px;
    margin-bottom: 12px;
}
#quillEditor .ql-editor li {
    margin-bottom: 6px;
}
#quillEditor .ql-editor blockquote {
    border-left: 4px solid #0F6148;
    padding-left: 16px;
    margin: 16px 0;
    color: #4b5563;
    font-style: italic;
}
#quillEditor .ql-editor a {
    color: #0F6148;
    text-decoration: underline;
}
/* Mobile Optimierung (Editor-Modal) */

/* --- Eventseite (pages/events.php) ---------------------------------------
   Kalender, Suche, Ergebnisliste, Event-Modal und Represent-Bereich.
   Bis 2026-08 lag das als <style>-Block in der Seite selbst.
   Hinweis: .pb-cal-empty (leere Kalenderzelle) heisst bewusst nicht
   .pb-empty - das ist bereits der Leerzustand-Kasten weiter oben.
   ------------------------------------------------------------------------ */
/* Event-Suche */
.pb-event-search-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 2px solid #e5e7eb;
}

.pb-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.pb-search-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0F6148;
    margin: 0;
}

.pb-search-icon {
    font-size: 28px;
}

.pb-search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pb-search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pb-search-field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.pb-search-field input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.pb-search-field input:focus {
    border-color: #0F6148;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 97, 72, 0.1);
}

.pb-search-field select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.pb-search-field select:focus {
    border-color: #0F6148;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 97, 72, 0.1);
}

.pb-search-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.pb-btn-search {
    background: #0F6148;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-btn-search:hover {
    background: #0d5139;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 97, 72, 0.3);
}

.pb-btn-clear {
    background: #f3f4f6;
    color: #374151;
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pb-btn-clear:hover {
    background: #e5e7eb;
}

/* Suchergebnisse */
.pb-search-results {
    margin-top: 30px;
    display: none;
}

.pb-search-results.pb-active {
    display: block;
}

.pb-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.pb-results-count {
    font-size: 18px;
    font-weight: 700;
    color: #0F6148;
}

.pb-search-result-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
}

.pb-search-result-item:hover {
    border-color: #0F6148;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 97, 72, 0.15);
}

.pb-result-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.pb-result-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0F6148 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.pb-result-content {
    flex: 1;
}

.pb-result-name {
    font-size: 20px;
    font-weight: 700;
    color: #0F6148;
    margin-bottom: 8px;
}

.pb-result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #6b7280;
}

.pb-result-detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pb-result-artists {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pb-result-artist-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.pb-result-category-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.pb-result-price {
    color: #0F6148;
    font-weight: 600;
}

.pb-no-results {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.pb-no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.pb-no-results-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.pb-no-results-hint {
    font-size: 14px;
}

/* Loading-Spinner */
.pb-search-loading {
    display: none;
    text-align: center;
    padding: 30px;
}

.pb-search-loading.pb-active {
    display: block;
}

.pb-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #0F6148;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .pb-search-form {
        grid-template-columns: 1fr;
    }
    
    .pb-search-buttons {
        flex-direction: column;
    }
    
    .pb-btn-search, .pb-btn-clear {
        width: 100%;
    }
    
    .pb-search-result-item {
        grid-template-columns: 1fr;
    }
    
    .pb-result-image, .pb-result-image-placeholder {
        width: 100%;
        height: 150px;
    }
}

/* Event-Verwaltungs-Banner - Prominent! */
.pb-event-manage-banner {
    background: linear-gradient(135deg, #0F6148 0%, #0d5139 100%);
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px 0 40px 0;
    box-shadow: 0 8px 24px rgba(15, 97, 72, 0.3);
    border: 3px solid #059669;
}

.pb-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pb-banner-text {
    flex: 1;
    min-width: 250px;
}

.pb-banner-text strong {
    color: white;
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.pb-banner-text p {
    color: #d1fae5;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.pb-banner-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pb-btn-manage-primary {
    background: white;
    color: #0F6148;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.pb-btn-manage-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #f0fdf4;
}

.pb-btn-manage-primary span {
    font-size: 20px;
}

.pb-btn-manage-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.pb-btn-manage-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* Hinweis für eingeloggte User */
.pb-user-event-hint {
    background: #f0fdf4;
    border: 2px solid #0F6148;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 30px 0 40px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pb-user-event-hint .pb-hint-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.pb-user-event-hint .pb-hint-content {
    flex: 1;
    min-width: 200px;
}

.pb-user-event-hint .pb-hint-content strong {
    color: #0F6148;
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
}

.pb-user-event-hint .pb-hint-content p {
    color: #374151;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.pb-user-event-hint .pb-hint-btn {
    background: #0F6148;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pb-user-event-hint .pb-hint-btn:hover {
    background: #0d5139;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 97, 72, 0.3);
}

@media (max-width: 600px) {
    .pb-user-event-hint {
        flex-direction: column;
        text-align: center;
    }
    
    .pb-user-event-hint .pb-hint-btn {
        width: 100%;
    }
}

/* Text-Styling für Events-Seite */
.pb-events-intro {
    text-align: center;
    margin: 40px auto;
    max-width: 900px;
    padding: 0 20px;
}

.pb-events-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
}

/* Einklappbare REPRESENT-Section */
.pb-represent-section {
    margin: 60px 0;
    padding: 0 20px;
}

.pb-represent-toggle {
    background: var(--primary-light);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 24px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.pb-represent-toggle:hover {
    background: var(--primary-light-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 97, 72, 0.15);
}

.pb-represent-toggle h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-align: left;
}

.pb-toggle-icon {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.pb-toggle-icon.pb-active {
    transform: rotate(180deg);
}

.pb-represent-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0 0 12px 12px;
}

.pb-represent-content.pb-active {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.pb-represent-content-inner {
    padding: 30px;
}

.pb-represent-content-inner p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: left;
}

/* Kalender Styling */
.pb-calendar-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 35px;
    margin: 60px 0;
    border: 2px solid var(--border-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.pb-calendar-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

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

.pb-calendar-nav button {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.pb-calendar-nav button .pb-btn-text-short {
    display: none;
}

.pb-calendar-nav button .pb-btn-text-full {
    display: inline;
}

.pb-calendar-nav button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 97, 72, 0.2);
}

.pb-calendar-nav button:active {
    transform: translateY(0);
}

.pb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.pb-calendar-day-name {
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 13px;
    padding: 10px 6px;
    background: var(--primary-light);
    border-radius: 8px;
}

.pb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

/* Calendar Day - Apple Style mit Event-Chips */
.pb-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    min-height: 110px;
    padding: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pb-calendar-day.pb-cal-empty {
    border: none;
    cursor: default;
    background: transparent;
}

.pb-calendar-day-number {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.pb-calendar-day.pb-today .pb-calendar-day-number {
    background: #0F6148;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.pb-calendar-day:not(.pb-cal-empty):hover {
    border-color: #0F6148;
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pb-calendar-day.pb-today {
    border-color: #0F6148;
}

/* Event-Chips im Kalender */
.pb-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    flex: 1;
    overflow: hidden;
}

.pb-event-chip {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.3;
    min-height: 28px;
}

.pb-event-chip:hover {
    filter: brightness(0.9);
    transform: scale(1.02);
    z-index: 10;
}

/* Custom Tooltip für Event-Chips */
.pb-event-chip[data-tooltip] {
    position: relative;
}

.pb-event-chip[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
}

.pb-event-chip[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: #1f2937;
    z-index: 1000;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Kategorie-Farben - Apple Style */
.pb-event-chip-konzert {
    background: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.pb-event-chip-workshop-seminar {
    background: #fef3c7;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.pb-event-chip-sonstiges {
    background: #f3f4f6;
    color: #374151;
    border-left: 3px solid #6b7280;
}

.pb-more-events {
    font-size: 10px;
    color: #0F6148;
    font-weight: 700;
    margin-top: 4px;
    padding: 4px 8px;
    background: #d1fae5;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #0F6148;
}

.pb-more-events:hover {
    background: #0F6148;
    color: white;
    transform: scale(1.05);
}

.pb-more-events::after {
    content: ' →';
    font-size: 11px;
}

.pb-calendar-day.pb-today.has-event::after {
    background: white;
}

/* Event-Modal */
.pb-event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pb-event-modal.pb-active {
    display: flex;
}

.pb-event-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.pb-event-modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 25px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.pb-event-modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 20px;
}

.pb-close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pb-close-modal:hover {
    background: #f3f4f6;
    color: #111827;
}

.pb-event-modal-body {
    padding: 25px;
}

.pb-event-list-item {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pb-event-list-item:hover {
    border-color: #0F6148;
    background: #f0fdf4;
    transform: translateX(5px);
}

.pb-event-item-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    font-size: 16px;
}

.pb-event-item-details {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pb-event-category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

/* Preisanzeige im Modal */
.pb-event-price-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
    font-size: 13px;
}

.pb-event-price-info .pb-price-item {
    color: #0F6148;
    font-weight: 600;
    background: #f0fdf4;
    padding: 4px 10px;
    border-radius: 6px;
}

.pb-event-price-badge.pb-free {
    background: #d1fae5;
    color: #065f46;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    margin: 8px 0;
    font-size: 13px;
}

.pb-badge-konzert {
    background: #dbeafe;
    color: #1e40af;
}

.pb-badge-workshop-seminar {
    background: #fef3c7;
    color: #92400e;
}

.pb-badge-sonstiges {
    background: #f3f4f6;
    color: #374151;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    
    .pb-event-manage-banner {
        padding: 20px;
    }
    
    .pb-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pb-banner-text strong {
        font-size: 20px;
    }
    
    .pb-banner-text p {
        font-size: 14px;
    }
    
    .pb-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .pb-btn-manage-primary,
    .pb-btn-manage-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    
    
    .pb-events-intro p {
        font-size: 15px;
    }
    
    .pb-calendar-container {
        padding: 15px 10px;
        margin: 30px 0;
    }
    
    .pb-calendar-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .pb-calendar-header h3 {
        font-size: 18px;
    }
    
    .pb-calendar-nav {
        width: 100%;
        justify-content: space-between;
        gap: 6px;
    }
    
    .pb-calendar-nav button {
        padding: 6px 8px;
        font-size: 11px;
        flex: 1;
    }
    
    .pb-calendar-nav button .pb-btn-text-short {
        display: inline;
    }
    
    .pb-calendar-nav button .pb-btn-text-full {
        display: none;
    }
    
    .pb-calendar-nav button#today-btn {
        flex: 0 0 auto;
        min-width: 50px;
    }
    
    .pb-calendar-weekdays {
        gap: 2px;
        margin-bottom: 2px;
    }
    
    .pb-calendar-day-name {
        font-size: 10px;
        padding: 4px 1px;
    }
    
    .pb-calendar-grid {
        gap: 2px;
    }
    
    .pb-calendar-day {
        min-height: 90px;
        font-size: 12px;
        border-width: 1px;
        padding: 5px 4px;
    }
    
    .pb-calendar-day-number {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .pb-calendar-day.pb-today .pb-calendar-day-number {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .pb-event-chip {
        font-size: 9px;
        padding: 4px 6px;
        line-height: 1.3;
        border-radius: 4px;
        min-height: 24px;
    }
    
    .pb-event-chip[data-tooltip]:hover::before {
        font-size: 10px;
        padding: 6px 10px;
    }
    
    .pb-more-events {
        font-size: 9px;
        padding: 3px 6px;
        margin-top: 3px;
    }
    
    .pb-more-events::after {
        font-size: 9px;
    }
    
    .pb-represent-toggle {
        padding: 16px;
    }
    
    .pb-represent-toggle h2 {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .pb-toggle-icon {
        font-size: 20px;
        margin-left: 8px;
    }
    
    .pb-represent-content-inner {
        padding: 16px;
    }
    
    .pb-represent-content-inner p {
        font-size: 14px;
    }
}
