/* =============================================================
   leseprobe.ch – Stylesheet
   ============================================================= */

/* Schreibschrift für Buchtitel */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&display=swap');

:root {
    --lp-primary:    #6B4C35;
    --lp-accent:     #C9A882;
    --lp-bg:         #F5EDE4;
    --lp-border:     #D6C4B0;
    --lp-muted:      #8B6E54;
    --lp-header-txt: #F5E6D3;
    --lp-map-bg:     #EAF3DE;
    --lp-map-ch:     #C9A882;
}

/* Entferne WordPress-Root-Padding – Header/Filterbar/Kacheln fluchten */
.wp-site-blocks {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Verhindere WordPress content-width Einschränkung auf dem Hauptinhalt */
/* --lp-header-h wird per JS dynamisch gesetzt (Header-Höhe) */
.lp-main-content {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: var(--lp-header-h, 104px) !important;
}

/* --- Header -------------------------------------------------- */
.lp-header {
    background: var(--lp-primary);
    padding: 14px 28px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lp-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
a.lp-logo:hover { opacity: 0.85; }
.lp-header-logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(245, 230, 211, 0.80);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.lp-header-logo { height: 62px; width: auto; display: block; filter: brightness(1.15); }
.lp-logo-text { color: var(--lp-header-txt); font-size: 20px; font-weight: 400; }
.lp-nav a     { color: var(--lp-accent); font-size: 13px; text-decoration: none; margin-left: 20px; }
.lp-nav a:hover { color: var(--lp-header-txt); }

/* WP navigation im Header */
.lp-header .wp-block-navigation a { color: var(--lp-header-txt) !important; }
.lp-header .wp-block-navigation a:hover { color: var(--lp-accent) !important; }

/* --- YouTube Lightbox --------------------------------------- */
#lp-yt-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#lp-yt-modal.lp-yt-open {
    display: flex;
}
.lp-yt-inner {
    position: relative;
    width: 90vw;
    max-width: 960px;
    animation: lpYtIn 0.22s ease;
}
@keyframes lpYtIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.lp-yt-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.lp-yt-ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.lp-yt-close {
    position: absolute;
    top: -36px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    opacity: 0.8;
}
.lp-yt-close:hover { opacity: 1; }

/* --- Filter-Bar --------------------------------------------- */
.lp-filterbar {
    background: var(--lp-bg);
    border-bottom: 1px solid var(--lp-border);
    padding: 6px 28px;
    padding-left: 98px !important;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    min-height: 38px;
    box-sizing: border-box;
}
.lp-filter-label {
    font-size: 11px;
    color: var(--lp-muted);
    white-space: nowrap;
    line-height: 1.4;
    align-self: center;
    flex-shrink: 0;
}

/* Kategorie-Balken: Label sichtbar, grosser Abstand vor "Alle",
   Breite passt zur "Stichwortsuche:"-Zeile. Suchfeld bleibt unverändert. */
.lp-filterbar:not(.lp-searchbar) .lp-filter-label {
    min-width: 0;
    width: 113px;
    margin-right: 28px;
}
@keyframes lpPillPop {
    0%   { transform: scale(0);   opacity: 0; }
    65%  { transform: scale(1.18); opacity: 1; }
    82%  { transform: scale(0.93); }
    100% { transform: scale(1);   opacity: 1; }
}
.lp-pill {
    border: 1px solid var(--lp-accent);
    background: transparent;
    color: var(--lp-primary);
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    line-height: 1.4;
    opacity: 0;
    transform: scale(0);
}
.lp-pill.lp-pill-visible {
    animation: lpPillPop 0.45s cubic-bezier(.2,.8,.3,1) forwards;
}
.lp-pill.active,
.lp-pill:hover {
    background: var(--lp-primary);
    color: var(--lp-header-txt);
    border-color: var(--lp-primary);
}
.lp-filterbar.lp-searchbar {
    flex-wrap: nowrap;
    align-items: center;
}
#lp-keyword-btn {
    background: var(--lp-primary);
    color: var(--lp-header-txt);
    border-color: var(--lp-primary);
}
#lp-keyword-btn:hover {
    background: var(--lp-accent);
    border-color: var(--lp-accent);
    color: var(--lp-primary);
}
.lp-filterbar.lp-searchbar .lp-pill,
.lp-filterbar.lp-searchbar .lp-search-input {
    flex-shrink: 0;
    height: 24px;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
}
.lp-search-input {
    border: 1px solid var(--lp-accent);
    border-radius: 20px;
    padding: 3px 14px;
    font-size: 11px;
    font-family: inherit;
    color: var(--lp-primary);
    background: #fff;
    flex: 0 1 220px;
    min-width: 0;
    outline: none;
    line-height: 1.4;
    box-sizing: border-box;
    align-self: center;
    vertical-align: middle;
    margin: 0;
}
.lp-search-input:focus {
    border-color: var(--lp-primary);
}

/* --- Video Grid --------------------------------------------- */
.lp-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 22px;
    row-gap: 130px;
    margin: 32px 0 152px;
}
/* Vollbreite Injektion innerhalb des Grids (Karte, KI-Fragen) */
.lp-grid-inject {
    grid-column: 1 / -1;
}
.lp-grid-inject #lp-karte-wrapper {
    margin: 0 65px;
}
.lp-vcard {
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s;
    width: 70%;
    justify-self: center;
}
.lp-vcard:hover { border-color: var(--lp-accent); }
.lp-vcard.featured {
    grid-column: span 2;
    justify-self: start;
    margin-left: calc((100% - 44px) / 3 * 0.15 + 20px);
}
.lp-video-grid .lp-vcard:nth-child(2) {
    width: 105%;
    justify-self: end;
    margin-right: 15%;
}

.lp-thumb {
    position: relative;
    background: var(--lp-accent);
    aspect-ratio: 16/9;
    overflow: hidden;
}
.lp-vcard.featured .lp-thumb { aspect-ratio: 16/7; }
.lp-thumb img  { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-thumb iframe { width: 100%; height: 100%; border: none; display: block; }

.lp-play {
    position: absolute;
    bottom: 10px; right: 10px;
    width: 36px; height: 36px;
    background: rgba(107, 76, 53, 0.82);
    border: 2px solid var(--lp-accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.30);
    text-decoration: none;
}
.lp-play:hover {
    background: var(--lp-accent);
    border-color: #fff;
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0,0,0,0.38);
}
.lp-play-icon {
    width: 16px; height: 18px;
    background: var(--lp-header-txt);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    margin-left: 3px;
    flex-shrink: 0;
}
.lp-play:hover .lp-play-icon {
    background: var(--lp-primary);
}
.lp-cat-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--lp-primary);
    color: var(--lp-header-txt);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}
/* Admin-only: Pinned-Badge (nur eingeloggte Admins sehen das) */
.lp-pinned-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: #e65100;
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.lp-vinfo { padding: 10px 14px 14px; }
.lp-vtitle {
    font-size: 14px; font-weight: 500; color: #1a1a1a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-vcard.featured .lp-vtitle { font-size: 16px; white-space: normal; }
.lp-vauthor { font-size: 12px; color: var(--lp-muted); margin-top: 3px; }
.lp-vdate   { font-size: 11px; color: #aaa; margin-top: 4px; }
.lp-vklapp  {
    font-size: 12px;
    color: #666;
    line-height: 1.55;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lp-vcard.featured .lp-vklapp { -webkit-line-clamp: 6; }
.lp-isbn    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* --- Literaturkarte ----------------------------------------- */
#lp-karte-wrapper {
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 65px 152px;
}
.lp-map-header {
    background: var(--lp-bg);
    padding: 12px 18px;
    border-bottom: 1px solid var(--lp-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lp-map-title { font-size: 20px; font-weight: 500; color: var(--lp-primary); }
.lp-map-sub   { font-size: 12px; color: var(--lp-muted); }

.lp-map-toggle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.lp-map-toggle-track {
    width: 320px;
    height: 12px;
    background: #C9A882;
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
    transition: background 0.3s;
}
.lp-map-toggle-track.lp-events-active  { background: #388E3C; }
.lp-map-toggle-track.lp-autoren-active { background: #E07020; }
.lp-map-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.lp-map-toggle-track.lp-events-active  .lp-map-toggle-thumb { transform: translateX(154px); }
.lp-map-toggle-track.lp-autoren-active .lp-map-toggle-thumb { transform: translateX(308px); }
.lp-map-toggle-labels {
    display: flex;
    width: 320px;
    justify-content: space-between;
}
.lp-toggle-label {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: inherit;
    color: var(--lp-muted);
    font-size: 11px;
    line-height: 1.2;
    width: 100px;
    transition: color 0.2s;
}
.lp-toggle-label.active { color: var(--lp-primary); font-weight: 600; }
.lp-toggle-label .lp-toggle-icon { font-size: 14px; }
.lp-map-body  {
    position: relative;
    background: var(--lp-map-bg);
    overflow: hidden;
    scrollbar-width: thin;
    scrollbar-color: #C9A882 #F5EDE4;
}
.lp-map-body::-webkit-scrollbar { height: 6px; width: 6px; }
.lp-map-body::-webkit-scrollbar-thumb { background: #C9A882; border-radius: 3px; }
.lp-map-body::-webkit-scrollbar-track { background: #F5EDE4; }
.lp-map-tooltip {
    position: absolute;
    background: #fff;
    border: 1px solid var(--lp-accent);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    width: 180px;
    pointer-events: none;
    z-index: 10;
}
.lp-map-tooltip-title { font-weight: 500; color: var(--lp-primary); font-size: 13px; }
.lp-map-tooltip-autor { color: var(--lp-muted); font-size: 11px; margin-top: 2px; }
.lp-map-tooltip-desc  { color: #555; font-size: 11px; margin-top: 4px; line-height: 1.4; }
.lp-map-tooltip-type  {
    display: inline-block;
    background: var(--lp-bg);
    color: var(--lp-muted);
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 8px;
    margin-top: 5px;
}

/* --- Sektion-Label ------------------------------------------ */
.lp-section-label {
    font-size: 12px;
    color: var(--lp-muted);
    letter-spacing: 0.6px;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* --- Video Embed (Single) ----------------------------------- */
.lp-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px 0;
}
.lp-video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* --- Single-Meta -------------------------------------------- */
.lp-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
    margin: 16px 0 24px;
    font-size: 13px;
    color: var(--lp-muted);
}

/* --- Rechte Seitennavigation -------------------------------- */
#lp-sidenav {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}
.lp-sidenav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    /* Label standardmässig versteckt */
}
.lp-sidenav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(107, 76, 53, 0.28);
    border: 2px solid rgba(107, 76, 53, 0.45);
    flex-shrink: 0;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
    order: 2;
}
.lp-sidenav-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--lp-primary);
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.25s, transform 0.25s;
    white-space: nowrap;
    order: 1;
    background: rgba(255,255,255,0.88);
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    pointer-events: none;
}
/* Label bei Hover einblenden */
.lp-sidenav-btn:hover .lp-sidenav-label,
.lp-sidenav-btn:focus .lp-sidenav-label {
    opacity: 1;
    transform: translateX(0);
}
.lp-sidenav-btn:hover .lp-sidenav-dot {
    background: rgba(107, 76, 53, 0.55);
    transform: scale(1.25);
}
/* Aktiver Abschnitt */
.lp-sidenav-btn.lp-sidenav-active .lp-sidenav-dot {
    background: var(--lp-primary);
    border-color: var(--lp-primary);
    transform: scale(1.4);
}
.lp-sidenav-btn.lp-sidenav-active .lp-sidenav-label {
    opacity: 1;
    transform: translateX(0);
    color: var(--lp-primary);
    font-weight: 700;
}
@media (max-width: 768px) {
    #lp-sidenav { display: none; }
}

/* --- Footer -------------------------------------------------- */
.lp-footer {
    background: var(--lp-bg);
    border-top: 1px solid var(--lp-border);
    padding: 14px 28px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lp-footer-text { font-size: 11px; color: var(--lp-muted); }
.lp-footer-nav { display: flex; gap: 20px; }
.lp-footer-nav a { font-size: 11px; color: var(--lp-muted); text-decoration: none; }
.lp-footer-nav a:hover { color: var(--lp-primary); }
.lp-yt-badge {
    background: #cc0000;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
}

/* --- Seitenbreite und Ränder --------------------------------- */
/* Zentrierter Inhalt mit Mindestabstand zum Rand */
.lp-main-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Filterbar: Inhalte nie bis zum Rand */
.lp-filterbar {
    padding-left: 28px;
    padding-right: 28px;
}

.lp-post-nav {
    padding-top: 24px;
}

/* Single-Seite: zentriert mit max-width */
.lp-single-content {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Sicherheitsnetz: kein Element direkt am Browserrand */
.wp-site-blocks {
    overflow-x: hidden;
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 768px) {
    .lp-video-grid { grid-template-columns: 1fr 1fr; }
    .lp-vcard.featured { grid-column: span 2; }
    .lp-header, .lp-footer { padding-left: 16px; padding-right: 16px; }
    .lp-filterbar { padding-left: 16px !important; padding-right: 16px; }
    .lp-main-content { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (max-width: 480px) {
    .lp-video-grid { grid-template-columns: 1fr; }
    .lp-vcard.featured { grid-column: span 1; }
    .lp-header { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* =============================================================
   BUCHFRAGE – Buch-Dialog mit KI
   ============================================================= */
#lp-buchfrage-section {
    max-width: none;
    margin: 0;
    padding: 48px 20px 60px;
    text-align: center;
    background: var(--lp-map-bg);
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* Im Grid-Inject: gleiche Seitenabstände wie Literaturkarte */
.lp-grid-inject #lp-buchfrage-section {
    margin: 0 65px;
}
.lp-book-scene {
    perspective: 900px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 240px;
}

/* ---- Bücherregal im Grid (eine Kachel) ---- */
.lp-regal-slot {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.lp-regal-slot:hover {
    opacity: 1;
}
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px 0 0;
}

/* Wrapper pro Buch – kein overflow:hidden, damit Tooltip sichtbar ist */
.lp-regal-buch-outer {
    position: relative;
    display: flex;
    align-items: flex-end;
}
a.lp-regal-buch {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.lp-regal-buch-outer:hover a.lp-regal-buch {
    transform: translateY(-10px);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.12),
        2px -6px 16px rgba(0,0,0,0.40);
}
.lp-regal-buch-outer:hover .lp-regal-tooltip {
    display: block;
}

/* Tooltip */
.lp-regal-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #C9A882;
    border-radius: 7px;
    padding: 9px 13px;
    min-width: 150px;
    max-width: 220px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.18);
    z-index: 200;
    white-space: normal;
    pointer-events: none;
}
/* Pfeil nach unten */
.lp-regal-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #C9A882;
}
/* Randkorrektur erstes/letztes Buch */
.lp-regal-buch-outer:first-child .lp-regal-tooltip {
    left: 0; transform: none;
}
.lp-regal-buch-outer:first-child .lp-regal-tooltip::after { left: 20px; }
.lp-regal-buch-outer:last-child .lp-regal-tooltip {
    left: auto; right: 0; transform: none;
}
.lp-regal-buch-outer:last-child .lp-regal-tooltip::after { left: auto; right: 20px; }

.lp-regal-tt-title {
    font-size: 12px;
    font-weight: 600;
    color: #3a2e1e;
    font-family: Georgia, serif;
    line-height: 1.45;
    margin-bottom: 4px;
}
.lp-regal-tt-autor {
    font-size: 11px;
    color: #6B4C35;
    line-height: 1.3;
}
.lp-regal-tt-verlag {
    font-size: 10px;
    color: #aaa;
    margin-top: 2px;
}

/* ---- Bücherregal ---- */
#lp-regal {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
#lp-regal:hover {
    opacity: 1;
}
.lp-regal {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    width: 100%;
}
.lp-regal-books {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 0 6px;
    justify-content: center;
}
.lp-regal-buch {
    width: calc(var(--w, 24px) * 1.7);
    flex: 1 1 calc(var(--w, 24px) * 1.7);
    max-width: calc(var(--w, 24px) * 2.6);
    height: calc(var(--h, 120px) * 1.72);
    background:
        linear-gradient(to right,
            rgba(0,0,0,0.40) 0px, rgba(0,0,0,0.18) 6px,
            rgba(255,255,255,0.07) 9px, transparent 15px),
        var(--c, #6B4C35);
    border-radius: 0 2px 2px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), 1px 0 4px rgba(0,0,0,0.30);
    overflow: hidden;
    cursor: default;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lp-regal-buch::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.09));
}
.lp-regal-buch span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 12px;
    color: rgba(255,255,255,0.68);
    letter-spacing: 0.06em;
    font-family: Georgia, serif;
    text-align: center;
    padding: 8px 3px;
    line-height: 1.25;
    overflow: hidden;
    max-height: 90%;
    user-select: none;
    pointer-events: none;
}
.lp-regal-buch-haupt span {
    font-size: 14px;
    color: rgba(255,230,170,0.92);
    font-weight: 600;
    letter-spacing: 0.08em;
}
.lp-regal-brett {
    width: 100%;
    height: 14px;
    background: linear-gradient(180deg, #a07828 0%, #7a5a18 50%, #4e3a08 100%);
    border-radius: 2px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,220,100,0.20);
    position: relative;
}
.lp-regal-brett::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #d4a030 20%, #e8b840 50%, #d4a030 80%, transparent);
    border-radius: 2px 2px 0 0;
}

/* Pull-out / Return animations */
@keyframes lpBuchHeraus {
    0%   { transform: translateY(0);     opacity: 1; }
    40%  { transform: translateY(-52px); opacity: 1; }
    70%  { transform: translateY(-52px); opacity: 0.7; }
    100% { transform: translateY(-200px); opacity: 0; }
}
@keyframes lpBuchZurueck {
    0%   { transform: translateY(-52px); opacity: 0; }
    35%  { opacity: 1; }
    100% { transform: translateY(0);     opacity: 1; }
}
.lp-buch-pull-out {
    animation: lpBuchHeraus 0.85s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}
.lp-buch-return {
    animation: lpBuchZurueck 0.75s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}
/* Default-Panel: Fragefeld – statisch neben der Bücherregal-Grafik */
.lp-bq-default {
    position: static;
    width: 260px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-12px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.lp-bq-default.lp-bq-default-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.lp-bq-default-text {
    font-size: 13px;
    color: var(--lp-primary);
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1.55;
    margin: 0 0 14px;
}
#lp-bq-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--lp-border);
    border-radius: 6px;
    background: #fff;
    color: var(--lp-primary);
    font-size: 12px;
    outline: none;
    box-sizing: border-box;
    font-family: Georgia, serif;
    font-style: italic;
}
#lp-bq-input::placeholder { color: var(--lp-muted); opacity: 0.7; }
#lp-bq-input:focus { border-color: var(--lp-accent); box-shadow: 0 0 0 2px rgba(201,168,130,0.18); }

/* ---- Aufgeschlagenes Buch ---- */
.lp-book-open-wrap {
    width: 640px;
    max-width: 100%;
    display: flex;
    border-left: 16px solid #3d2010;
    border-radius: 3px 10px 10px 3px;
    box-shadow:
        -12px  0px 0  #2a1508,
          5px  1px 0  #f2e8d0,
          7px  2px 0  #dbc49c,
          0px  8px 0  #dbc49c,
        -16px 12px 36px rgba(0,0,0,0.50),
         14px  8px 24px rgba(0,0,0,0.16);
    position: relative;
    min-height: 420px;
    transform: scale(0.94) rotateY(8deg);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(.2,.8,.4,1), opacity 0.55s;
}
.lp-book-open-wrap.lp-book-visible {
    transform: scale(1) rotateY(0deg);
    opacity: 1;
}
.lp-book-spine {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 10px;
    transform: translateX(-50%);
    background: linear-gradient(to right, #c4a87a, #ede0c6, #c4a87a);
    box-shadow: 0 0 6px rgba(0,0,0,0.14);
    z-index: 1;
}
.lp-book-page {
    flex: 1;
    padding: 32px 28px 28px;
    position: relative;
    min-width: 0;
}
.lp-book-page-left {
    background: linear-gradient(105deg, #f7edd6 0%, #fdf7ec 100%);
    border-right: 1px solid rgba(180,148,100,0.22);
    border-radius: 3px 0 0 3px;
}
.lp-book-page-right {
    background: linear-gradient(75deg, #fdf7ec 0%, #f7edd6 100%);
    border-radius: 0 10px 10px 0;
    padding-bottom: 64px;
}
.lp-book-page-header {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lp-muted);
    margin-bottom: 6px;
    font-weight: 600;
}
.lp-book-ornament-sm {
    font-size: 11px;
    color: var(--lp-accent);
    margin-bottom: 16px;
    letter-spacing: 0.35em;
}
#lp-bq-question-display {
    font-size: 14px;
    color: #3a2e1e;
    line-height: 1.75;
    font-style: italic;
    font-family: Georgia, serif;
    margin: 0;
}
#lp-bq-answer {
    font-size: 13.5px;
    color: #2a2218;
    line-height: 1.8;
    font-family: Georgia, serif;
    margin: 0;
    min-height: 48px;
    white-space: pre-wrap;
}

/* loading dots */
.lp-bq-loading {
    display: none;
    gap: 6px;
    margin-top: 14px;
    align-items: center;
}
.lp-bq-loading span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lp-muted);
    animation: lpBqDot 1.2s infinite;
}
.lp-bq-loading span:nth-child(2) { animation-delay: 0.22s; }
.lp-bq-loading span:nth-child(3) { animation-delay: 0.44s; }
@keyframes lpBqDot {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.75); }
    40%            { opacity: 1;   transform: scale(1); }
}

#lp-bq-close {
    position: absolute;
    bottom: 18px;
    right: 22px;
    background: transparent;
    border: 1px solid rgba(107,76,53,0.30);
    color: var(--lp-muted);
    font-size: 11px;
    padding: 5px 13px;
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    font-family: inherit;
}
#lp-bq-close:hover { background: rgba(107,76,53,0.08); color: var(--lp-primary); }

/* responsive */
@media (max-width: 660px) {
    .lp-book-closed::after { display: none; }
    .lp-buchfrage-outer { flex-direction: column; gap: 24px; }
    .lp-bq-default { width: 100%; max-width: 320px; }
    .lp-ort-fragen { position: static; width: 100%; margin-bottom: 20px; }
    .lp-book-open-wrap { flex-direction: column; width: 300px; min-height: auto; }
    .lp-book-page-left { border-right: none; border-bottom: 1px solid rgba(180,148,100,0.22); border-radius: 3px 3px 0 0; }
    .lp-book-page-right { border-radius: 0 0 10px 10px; padding-bottom: 64px; }
    .lp-book-spine { display: none; }
}

/* =============================================================
   ORT-SUCHE: Fragenvorschläge + Map-Popup
   ============================================================= */

/* Äusserer Wrapper: Fragefeld und Bücherregal nebeneinander */
.lp-buchfrage-outer {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    min-height: 320px;
    padding-top: 8px;
}

/* Fragenvorschläge-Panel – absolut am linken Rand, auf Buchhöhe */
.lp-ort-fragen {
    position: absolute;
    left: 0;
    top: 0;
    width: 210px;
    opacity: 0;
    transform: translateX(-12px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.lp-ort-fragen.lp-ort-fragen-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.lp-ort-fragen.lp-ort-fragen-hidden {
    opacity: 0;
    transform: translateX(-12px);
    pointer-events: none;
}
.lp-ort-fragen-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lp-muted);
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.4;
}
.lp-ort-fragen-label span {
    color: var(--lp-primary);
}
.lp-ort-fragen-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lp-ort-fragen-item {
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--lp-primary);
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
    position: relative;
    /* Typewriter-Cursor während des Tippens */
}
.lp-ort-fragen-item.lp-frage-typing span::after {
    content: '|';
    animation: lpCursor 0.7s steps(1) infinite;
    color: var(--lp-accent);
    font-style: normal;
}
@keyframes lpCursor {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
.lp-ort-fragen-item:hover {
    background: #fff;
    border-color: var(--lp-accent);
    transform: translateX(3px);
}
.lp-ort-fragen-item:hover::after {
    content: '→';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lp-accent);
    font-style: normal;
    font-size: 14px;
}
.lp-ort-fragen-hint {
    margin-top: 14px;
    font-size: 10.5px;
    color: var(--lp-muted);
    font-style: italic;
    line-height: 1.4;
}

/* Gesperrter Zustand – Buch ist offen */
.lp-ort-fragen.lp-fragen-locked {
    opacity: 0.22;
    pointer-events: none;
    filter: blur(0.8px);
    transition: opacity 0.6s ease, filter 0.6s ease;
}

/* Map-Rand Popup – Schriftrolle öffnet sich nach unten */
@keyframes lpUnroll {
    /* Aufgerollter Zustand: flacher Zylinder, oben eingeklemmt */
    0% {
        transform:     perspective(400px) scaleY(0.03) rotateX(-18deg);
        border-radius: 50% 50% 50% 50% / 90% 90% 10% 10%;
        opacity:       0;
        filter:        brightness(0.75);
    }
    /* Rolle beginnt sich zu öffnen */
    12% {
        transform:     perspective(400px) scaleY(0.18) rotateX(-12deg);
        border-radius: 45% 45% 40% 40% / 70% 70% 30% 30%;
        opacity:       0.5;
        filter:        brightness(0.88);
    }
    /* Mitte der Bewegung – Rolle ist halb offen */
    38% {
        transform:     perspective(400px) scaleY(0.72) rotateX(-5deg);
        border-radius: 20% 20% 22% 22% / 28% 28% 20% 20%;
        opacity:       0.9;
        filter:        brightness(0.96);
    }
    /* Über Ziel hinausschiessen – untere Kante noch etwas rund */
    60% {
        transform:     perspective(400px) scaleY(1.05) rotateX(2deg);
        border-radius: 10px 10px 18px 18px;
        opacity:       1;
        filter:        brightness(1);
    }
    /* Sanftes Zurückfedern */
    75% {
        transform:     perspective(400px) scaleY(0.97) rotateX(-1deg);
        border-radius: 10px 10px 12px 12px;
    }
    88% {
        transform:     perspective(400px) scaleY(1.01) rotateX(0.4deg);
        border-radius: 10px;
    }
    /* Vollständig aufgerollt, flach */
    100% {
        transform:     perspective(400px) scaleY(1) rotateX(0deg);
        border-radius: 10px;
        opacity:       1;
        filter:        brightness(1);
    }
}

/* Responsive: Panel auf schmalen Screens ausblenden */
@media (max-width: 860px) {
    .lp-ort-fragen {
        display: none;
    }
}

/* =============================================================
   Statische Seiten (Über uns, Impressum, Kontakt)
   ============================================================= */
.lp-page-content {
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: 60px 28px 80px !important;
}
.lp-page-title {
    font-size: clamp(26px, 4vw, 40px) !important;
    color: var(--lp-primary) !important;
    margin-bottom: 36px !important;
    border-bottom: 2px solid var(--lp-border);
    padding-bottom: 16px;
}
.lp-page-content h2 {
    font-size: 20px;
    color: var(--lp-primary);
    margin: 32px 0 10px;
    border-left: 3px solid var(--lp-accent);
    padding-left: 12px;
}
.lp-page-content p { line-height: 1.75; color: #444; margin-bottom: 14px; }
.lp-page-content a { color: var(--lp-primary); }
.lp-page-content a:hover { color: var(--lp-accent); }

/* Kontaktformular */
.lp-kontakt-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 16px;
}
.lp-kontakt-info h3 {
    font-size: 17px;
    color: var(--lp-primary);
    margin-bottom: 14px;
}
.lp-kontakt-info p { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 12px; }
.lp-kontakt-link {
    display: inline-block;
    color: var(--lp-primary) !important;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 6px;
}
.lp-kontakt-link:hover { color: var(--lp-accent) !important; }
.lp-form-row { margin-bottom: 16px; }
.lp-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-primary);
    margin-bottom: 5px;
}
.lp-form-row input,
.lp-form-row textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid var(--lp-border);
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}
.lp-form-row input:focus,
.lp-form-row textarea:focus {
    outline: none;
    border-color: var(--lp-accent);
}
.lp-form-row textarea { resize: vertical; }
.lp-kontakt-submit {
    background: var(--lp-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.lp-kontakt-submit:hover { background: var(--lp-accent); }
.lp-kontakt-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 15px;
}
.lp-kontakt-error {
    background: #fdecea;
    border: 1px solid #ef9a9a;
    color: #c62828;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}
@media (max-width: 640px) {
    .lp-kontakt-wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* ----------------------------------------------------------------
   Eintragen – Formular
   ---------------------------------------------------------------- */
.lp-form-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px 48px;
}
.lp-form-intro {
    font-size: 15px;
    color: var(--lp-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}
.lp-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.lp-form-section {
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    padding: 20px 22px;
    margin: 0;
}
.lp-form-section legend {
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-primary);
    padding: 0 6px;
}
.lp-optional {
    font-weight: 400;
    font-size: 12px;
    color: var(--lp-muted);
}
.lp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}
.lp-form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lp-form-field--full {
    grid-column: 1 / -1;
    margin-top: 14px;
}
.lp-form-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-primary);
}
.lp-maxlen {
    font-weight: 400;
    color: var(--lp-muted);
}
.lp-req {
    color: #c0392b;
}
.lp-form-field input,
.lp-form-field textarea {
    border: 1px solid var(--lp-border);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--lp-primary);
    background: #fff;
    transition: border-color 0.2s;
}
.lp-form-field input:focus,
.lp-form-field textarea:focus {
    outline: none;
    border-color: var(--lp-accent);
}
.lp-form-field textarea {
    resize: vertical;
    min-height: 90px;
}
.lp-charcount {
    font-size: 11px;
    color: var(--lp-muted);
    text-align: right;
}
.lp-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.lp-form-submit {
    background: var(--lp-accent);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}
.lp-form-submit:hover   { opacity: 0.85; }
.lp-form-submit:disabled { opacity: 0.55; cursor: default; }
.lp-form-note  { font-size: 12px; color: var(--lp-muted); }
.lp-form-legal { font-size: 11px; color: var(--lp-muted); line-height: 1.6; margin: 0 0 14px; }
.lp-form-legal--checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.lp-form-legal--checkbox input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; cursor: pointer; accent-color: var(--lp-primary, #5a3e2b); }
.lp-form-msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}
.lp-form-msg:not(:empty) { display: block; }
.lp-form-msg--ok  { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.lp-form-msg--err { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }
.lp-form-confirm {
    margin-top: 32px;
    padding: 28px 32px;
    background: #f0f7f0;
    border: 1px solid #a5d6a7;
    border-radius: 10px;
    font-size: 17px;
    color: #1b5e20;
    line-height: 1.7;
}

/* ----------------------------------------------------------------
   Formular: Datei-Upload + Lesung hinzufügen
   ---------------------------------------------------------------- */
.lp-file-input { padding: 6px 0; font-size: 13px; }
.lp-file-hint  { display: block; font-size: 11px; color: var(--lp-muted); margin-top: 3px; }
.lp-field-hint { font-size: 11px; color: var(--lp-muted); margin-left: 6px; }
.lp-ort-type-wrap { display: flex; gap: 20px; margin-top: 4px; }

/* Kategorien-Gruppen */
.lp-kat-group {
    padding: 12px 16px 10px;
    border-radius: 8px;
    margin-top: 8px;
}
.lp-kat-group--primary {
    background: #fdf6f0;
    border: 1px solid var(--lp-accent);
}
.lp-kat-group--secondary {
    background: #f9f9f9;
    border: 1px solid var(--lp-border);
    margin-top: 12px;
}
.lp-kat-group-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Kategorien-Checkboxes */
.lp-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}
.lp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}
.lp-checkbox-label.lp-cb-bold { font-weight: 700; }
.lp-checkbox-label input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--lp-primary); cursor: pointer; }

/* Handlungsorte */
.lp-ho-block {
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    padding: 10px 12px 10px;
    margin-bottom: 10px;
    background: #fafaf8;
}
.lp-ho-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.lp-ho-ort { flex: 1; }
.lp-ho-beschr {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--lp-border);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    color: #3a2a1a;
    font-family: inherit;
    resize: vertical;
    background: #fff;
}
.lp-ho-beschr:focus { outline: none; border-color: var(--lp-primary); }
.lp-ho-remove {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 26px; height: 26px;
    font-size: 16px; line-height: 1;
    cursor: pointer; color: #888;
    display: flex; align-items: center; justify-content: center;
    padding: 0; flex-shrink: 0;
}
.lp-ho-remove:hover { border-color: #c00; color: #c00; }

/* Tooltip: Ereignis */
.lp-map-tooltip-ereignis {
    font-size: 11px;
    color: #5A3C28;
    margin-top: 4px;
    font-style: italic;
    line-height: 1.4;
}

.lp-lesung-block {
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    padding: 16px 18px 10px;
    margin-bottom: 14px;
    background: #fafafa;
}
.lp-lesung-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.lp-lesung-remove {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 26px; height: 26px;
    font-size: 16px; line-height: 1;
    cursor: pointer; color: #888;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.lp-lesung-remove:hover { border-color: #c00; color: #c00; }
.lp-lesung-add-wrap { margin-top: 4px; }
.lp-lesung-add-btn {
    background: none;
    border: 1px dashed var(--lp-accent);
    color: var(--lp-accent);
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.lp-lesung-add-btn:hover { background: #fff5f0; }

/* ----------------------------------------------------------------
   Autorenseite [leseprobe_autor]
   ---------------------------------------------------------------- */
.lp-autor-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* Oberer Bereich: Foto floated, Text umfliesst (Zeitungsstil) */
.lp-autor-top {
    display: block;
    overflow: hidden; /* clearfix */
    align-items: start;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Foto-Bereich */
.lp-autor-foto-wrap {
    float: left;
    width: 200px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3ede6;
    margin: 4px 32px 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-autor-foto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Wasserzeichen-Platzhalter */
.lp-autor-foto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3ede6;
}
.lp-autor-logo-wm {
    width: 60%;
    max-width: 130px;
    opacity: 0.18;
    filter: grayscale(1);
    display: block;
}

/* Biografie-Bereich */
.lp-autor-biografie { display: block; }
.lp-autor-biografie > * { margin-bottom: 10px; }
.lp-autor-name,
.lp-autor-name.lp-autor-section-title {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: var(--lp-primary) !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    margin: 0 0 2px !important;
}
.lp-autor-ort  { font-size: 14px; color: var(--lp-muted); margin: 0; }
.lp-autor-bio  { font-size: 14px; color: #444; line-height: 1.8; margin: 0; }
.lp-autor-web a { font-size: 13px; color: var(--lp-accent); text-decoration: none; }
.lp-autor-web a:hover { text-decoration: underline; }

/* Unterer Bereich: Buchdetails */
.lp-autor-buch-section { }
.lp-autor-section-title {
    margin: 0 0 30px !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
/* Buchdetails: Cover + Titel oben nebeneinander,
   Verlag / ISBN / Klappentext darunter über volle Breite */
.lp-autor-buch-section { margin-top: 80px; }
.lp-autor-buch-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    column-gap: 28px;
    row-gap: 10px;
    align-items: start;
}
.lp-autor-buch-cover-wrap {
    grid-column: 1;
    grid-row: 1;
    margin-top: 40px;
}
.lp-autor-buchcover-img {
    width: 140px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    display: block;
}
.lp-autor-cover-placeholder {
    width: 140px;
    height: 200px;
    border-radius: 6px;
    background: #f3ede6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-autor-buch-titel {
    grid-column: 2;
    grid-row: 1;
    font-size: 22px;
    font-weight: 700;
    color: var(--lp-primary);
    margin: 0;
    align-self: center;
    text-align: left;
}
/* Alle weiteren Elemente spannen über beide Spalten */
.lp-autor-verlag,
.lp-autor-isbn,
.lp-autor-klappentext {
    grid-column: 1 / -1;
}
.lp-autor-verlag      { font-size: 14px; color: var(--lp-muted); margin: 0; }
.lp-autor-isbn        { font-size: 13px; color: var(--lp-muted); margin: 0; }
.lp-autor-klappentext { font-size: 14px; color: #444; line-height: 1.75; margin-top: 4px; }

@media (max-width: 640px) {
    .lp-autor-foto-wrap   { float: none; width: 100%; height: 220px; margin: 0 0 20px 0; }
    .lp-autor-buch-card   { grid-template-columns: 110px 1fr; column-gap: 18px; }
    .lp-autor-buchcover-img { width: 110px; }
}

/* ----------------------------------------------------------------
   Autorenliste [leseprobe_autoren_liste]
   ---------------------------------------------------------------- */
.lp-autoren-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 8px 0;
}
.lp-autoren-item {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--lp-primary);
    background: var(--lp-bg);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.lp-autoren-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); border-color: var(--lp-accent); }
.lp-autoren-item-name  { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.lp-autoren-item-buch  { font-size: 13px; color: #C75000; font-style: italic; margin-bottom: 4px; }
.lp-autoren-item-ort   { font-size: 12px; color: var(--lp-muted); }
@media (max-width: 600px) {
    .lp-form-row { grid-template-columns: 1fr; }
}

/* =============================================================
   FAQ [leseprobe_faq]
   ============================================================= */

.lp-faq-wrap {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 0 60px;
}
.lp-faq-intro {
    font-size: 15px;
    color: var(--lp-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}
.lp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.lp-faq-item {
    border-bottom: 1px solid var(--lp-border);
}
.lp-faq-item:first-child {
    border-top: 1px solid var(--lp-border);
}
.lp-faq-q {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--lp-primary);
    line-height: 1.4;
    transition: color 0.15s;
}
.lp-faq-q:hover { color: var(--lp-accent); }
.lp-faq-q[aria-expanded="true"] { color: var(--lp-primary); }
.lp-faq-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--lp-accent);
    color: var(--lp-primary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.lp-faq-qtext {
    flex: 1;
}
.lp-faq-icon {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 300;
    color: var(--lp-accent);
    line-height: 1;
    width: 24px;
    text-align: center;
    transition: transform 0.2s;
}
.lp-faq-q[aria-expanded="true"] .lp-faq-icon {
    color: var(--lp-primary);
}
.lp-faq-a {
    padding: 0 4px 20px 42px;
    font-size: 15px;
    line-height: 1.75;
    color: #4a3728;
}
.lp-faq-a p { margin: 0; }
@media (max-width: 600px) {
    .lp-faq-q { font-size: 14px; gap: 10px; padding: 14px 2px; }
    .lp-faq-a { padding-left: 38px; font-size: 14px; }
}

/* =============================================================
   Ort-Suggest Dropdown (lpOrtSuggest)
   ============================================================= */

.lp-ort-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid var(--lp-accent);
    border-radius: 10px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.13);
    overflow: hidden;
    min-width: 220px;
}
.lp-ort-dropdown-hdr {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--lp-muted);
    padding: 8px 14px 4px;
}
.lp-ort-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 14px;
    border: none;
    border-top: 1px solid #f0e8df;
    background: none;
    font-size: 13px;
    color: var(--lp-primary);
    cursor: pointer;
    transition: background 0.12s;
}
.lp-ort-dropdown-item:hover,
.lp-ort-dropdown-item:focus {
    background: #fdf6f0;
    outline: none;
}

/* =============================================================
   Admin-Eintragen-Formular (Section 27)
   ============================================================= */

/* Buchvideo-Liste Tabelle */
.lp-admin-bv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 500px;
}
.lp-admin-bv-table th {
    background: var(--lp-primary);
    color: #fff;
    padding: 7px 10px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
.lp-admin-bv-table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--lp-border);
    vertical-align: middle;
}
.lp-admin-bv-row {
    cursor: pointer;
    transition: background 0.15s;
}
.lp-admin-bv-row:hover { background: #fdf6f0; }
.lp-bv-row-active { background: #fce9d4 !important; font-weight: 600; }
.lp-admin-bv-table code {
    background: #f0ece8;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--lp-primary);
}
.lp-bv-status-publish { color: #2e6b2e; font-size: 12px; }
.lp-bv-status-draft   { color: #8B6E54; font-size: 12px; }
.lp-bv-status-pending { color: #b06000; font-size: 12px; }

/* Wrapper */
.lp-admin-form-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 0 60px;
    font-family: inherit;
}

/* Header badge */
.lp-admin-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    padding: 18px 24px;
    background: var(--lp-primary);
    border-radius: 12px;
    color: var(--lp-header-txt);
}
.lp-admin-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--lp-header-txt);
}
.lp-admin-badge {
    display: inline-block;
    background: var(--lp-accent);
    color: var(--lp-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}
.lp-admin-hint {
    font-size: 12px;
    color: var(--lp-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* Load-existing row */
.lp-admin-load-wrap {
    background: #f9f4ef;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 30px;
}
.lp-admin-load-wrap h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lp-primary);
}
.lp-admin-load-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.lp-admin-load-input {
    flex: 1 1 160px;
    min-width: 100px;
    padding: 8px 12px;
    border: 1px solid var(--lp-border);
    border-radius: 7px;
    font-size: 14px;
    background: #fff;
}
.lp-admin-load-input:focus {
    outline: none;
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 2px rgba(201,168,130,0.25);
}
.lp-admin-load-btn {
    padding: 8px 18px;
    background: var(--lp-primary);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
}
.lp-admin-load-btn:hover { background: #5a3e2b; }
.lp-admin-new-btn {
    padding: 8px 18px;
    background: transparent;
    color: var(--lp-primary);
    border: 1px solid var(--lp-border);
    border-radius: 7px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
}
.lp-admin-new-btn:hover { border-color: var(--lp-accent); background: #fdf6f0; }
.lp-admin-load-status {
    width: 100%;
    font-size: 12px;
    margin-top: 6px;
    color: var(--lp-muted);
    min-height: 18px;
}

/* Map-mode checkboxes */
.lp-admin-map-checks {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.lp-admin-map-label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    transition: border-color 0.18s, background 0.18s;
    user-select: none;
}
.lp-admin-map-label:has(input:checked) {
    border-color: var(--lp-accent);
    background: #fdf6f0;
    color: var(--lp-primary);
}
.lp-admin-map-label input[type="checkbox"] {
    accent-color: var(--lp-primary);
    width: 16px;
    height: 16px;
}
.lp-admin-map-icon {
    font-size: 18px;
    line-height: 1;
}

/* Kachel radio row (reuse within admin form) */
.lp-admin-form-wrap .lp-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-primary);
}

/* Lesungen section (toggled) */
#lp-admin-lesungen-section {
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    padding: 20px;
    background: #fafafa;
    margin-top: 8px;
}
#lp-admin-lesungen-section h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--lp-primary);
}

/* Submit button */
.lp-admin-submit {
    display: inline-block;
    padding: 13px 40px;
    background: var(--lp-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(107,76,53,0.15);
}
.lp-admin-submit:hover {
    background: #5a3e2b;
    box-shadow: 0 4px 16px rgba(107,76,53,0.25);
}
.lp-admin-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Result box */
.lp-admin-result {
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.65;
    border: 1px solid transparent;
}
.lp-admin-result-ok {
    background: #edf7ed;
    border-color: #b2dfb2;
    color: #2e6b2e;
}
.lp-admin-result-err {
    background: #fdecea;
    border-color: #f5b8b4;
    color: #a32a22;
}
.lp-admin-result a {
    color: inherit;
    font-weight: 600;
}
.lp-admin-result ul {
    margin: 8px 0 0 18px;
    padding: 0;
}
.lp-admin-result li {
    margin-bottom: 4px;
}

/* Image preview thumbnails */
.lp-admin-img-preview {
    display: block;
    max-width: 180px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid var(--lp-border);
    object-fit: contain;
    margin-top: 8px;
    background: #fff;
}

/* Section dividers within admin form */
.lp-admin-form-wrap .lp-form-section {
    border-top: 2px solid var(--lp-border);
    padding-top: 28px;
    margin-top: 32px;
}
.lp-admin-form-wrap .lp-form-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.lp-admin-form-wrap .lp-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--lp-primary);
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 600px) {
    .lp-admin-load-row { flex-direction: column; align-items: stretch; }
    .lp-admin-load-btn,
    .lp-admin-new-btn { width: 100%; text-align: center; }
    .lp-admin-map-checks { flex-direction: column; gap: 8px; }
    .lp-admin-map-label { justify-content: flex-start; }
    .lp-admin-submit { width: 100%; text-align: center; }
}

/* =============================================================
   COOKIE-BANNER
   ============================================================= */
#lp-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--lp-bg, #fff);
    border-top: 1px solid var(--lp-border, #e0d6cc);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}
#lp-cookie-banner.lp-cookie-visible {
    transform: translateY(0);
}
.lp-cookie-text {
    flex: 1 1 300px;
    margin: 0;
    font-size: 13px;
    color: var(--lp-text, #2c2c2c);
    line-height: 1.5;
}
.lp-cookie-link {
    color: var(--lp-primary, #5a3e2b);
    text-decoration: underline;
    white-space: nowrap;
    margin-left: 6px;
}
.lp-cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.lp-cookie-btn {
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.lp-cookie-btn--accept {
    background: var(--lp-primary, #5a3e2b);
    color: #fff;
    border-color: var(--lp-primary, #5a3e2b);
}
.lp-cookie-btn--accept:hover {
    background: var(--lp-accent, #c9a882);
    border-color: var(--lp-accent, #c9a882);
}
.lp-cookie-btn--decline {
    background: transparent;
    color: var(--lp-muted, #888);
    border-color: var(--lp-border, #e0d6cc);
}
.lp-cookie-btn--decline:hover {
    background: var(--lp-surface, #f7f3ef);
    color: var(--lp-text, #2c2c2c);
}
@media (max-width: 540px) {
    #lp-cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; }
    .lp-cookie-actions { justify-content: stretch; }
    .lp-cookie-btn { flex: 1; text-align: center; }
}
