/* =========================================================
   SONGLAB SONGPAGE – Klassisches Layout (Style 1.0)
   ========================================================= */

/* ---------- BASIS ---------- */
* {
    box-sizing: border-box;
}

body, h1, h2, h3, p, pre, a, footer {
    font-family: "Courier New", monospace;
    color: #444;
}

body {
    background: url("https://www.songlab.de/pat.gif") repeat;
    margin: 0;
}

/* ---------- LOGO BAR ---------- */
.logo-bar {
    text-align: center;
    padding: 18px 10px 6px 10px;
}

.logo-bar img {
    height: 60px;
    max-width: 100%;
    cursor: pointer;
}

.back-button {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background: #d6ecff;
    border: 1px solid #7fb7e6;
    border-radius: 8px;
    color: #00009C;
    font-weight: bold;
    text-decoration: none;
}

/* ---------- HAUPTBEREICH ---------- */
.lyrics-container {
    max-width: 920px;
    margin: 0 auto;
}

/* ---------- CONTENT BOX ---------- */
.content-box {
    max-width: 900px;
    margin: 10px auto 20px auto;
    padding: 18px 22px;
    background: #eee;
    border-radius: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

/* ---------- COVER ---------- */
.cover-image {
    width: 280px;
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    margin: 14px auto 20px auto;
    display: block;
    box-shadow: 0 0 8px rgba(0,0,0,0.25);
}

/* ---------- TITEL & META ---------- */
.lyrics-title {
    margin-top: 6px;
    color: #00009C;
    font-size: 1.6em;
}

/* Einheitliche Meta-Texte */
.meta-text,
.lyrics-meta,
.share-label {
    margin: 6px 0 10px 0;
    color: #00009C;
    font-size: 0.95em;
    font-weight: bold;
}

/* ---------- AUDIO ---------- */
audio {
    display: block;
    margin: 8px auto 12px auto;
    width: 80%;
    max-width: 520px;

    /* kompaktere Optik */
    transform: scale(0.92);
    transform-origin: center;
}

/* ---------- LYRICS ---------- */
.lyrics {
    max-width: 820px;
    margin: 14px auto 0;
}

.lyrics pre {
    margin: 0;
    white-space: pre-wrap;
    font-size: 1.12em;
    line-height: 1.55;
    color: #333;
    text-align: left;
}

/* ---------- KAPITEL ---------- */
.chapter {
    max-width: 890px;
    margin: 16px auto 24px auto;
    padding: 0 12px;
    text-align: left;
}

.chapter h2 {
    color: #00009C;
    margin-top: 24px;
    margin-bottom: 6px;
}

/* ---------- ALTERNATIVE VERSIONEN ---------- */

.alt-controls {
    text-align: center;
    margin: 10px 0 14px 0;
}

.alt-controls button {
    margin: 0 6px;
    padding: 6px 12px;
    font-family: "Courier New", monospace;
    font-weight: bold;
    background: #d6ecff;
    border: 1px solid #7fb7e6;
    border-radius: 8px;
    cursor: pointer;
}

.alt-versions {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    margin-top: 10px;
}

.alt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    padding: 4px 0;
    border-bottom: 1px dashed #ccc;
}

.alt-item:last-child {
    border-bottom: none;
}

.alt-title {
    min-width: 170px;
    font-weight: bold;
    color: #00009C;
    white-space: nowrap;
}

.alt-item audio {
    width: 240px;
    height: 28px;
}

/* ---------- FOOTER ---------- */
footer {
    text-align: center;
    margin: 30px auto 20px auto;
    font-size: 0.9em;
}

/* ===============================
   SHARE BAR (Social / Messenger)
   =============================== */

/* ===== Share-Bar Container ===== */
.share-bar {
    display: flex;
    justify-content: center;    /* Zentriert Elemente horizontal */
    align-items: center;        /* Zentriert Elemente vertikal */
    flex-wrap: wrap;            /* Erlaubt Umbruch auf kleinen Bildschirmen */
    gap: 15px;                  /* Gleichmäßiger Abstand zwischen allen Elementen */
    margin: 20px auto;          /* Automatische horizontale Zentrierung + vertikaler Abstand */
    padding: 15px;
}

/* ===== Share-Bar Links (für Icons) ===== */
.share-bar a {
    display: inline-flex;       /* Flexbox für perfekte Icon-Zentrierung */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;             /* Verhindert Quetschen der Icons */
}

/* ===== Icon-Bilder in der Share-Bar ===== */
.share-bar img {
    width: 28px;
    height: 28px;
    display: block;
    opacity: 0.85;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.share-bar img:hover {
    transform: scale(1.15);     /* Leichter Zoom-Effekt bei Hover */
    opacity: 1;
}

/* ===== Native Share Button ===== */
.share-native {
    display: inline-block;
    margin: 6px auto 16px auto;
    padding: 6px 14px;
    background: #d6ecff;
    border: 1px solid #7fb7e6;
    border-radius: 8px;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    font-weight: bold;
    color: #00009c;
    cursor: pointer;
    flex-shrink: 0;             /* Konsistenz: Button wird nicht gequetscht */
}

.share-native:hover {
    background: #cbe4ff;
}

.responsive-image {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    display: block;
    margin-top: 10px; /* Optional: Abstand nach oben */
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {

    .content-box {
        padding: 14px;
    }

    .lyrics pre {
        font-size: 1.05em;
    }

    audio {
        width: 100%;
        transform: scale(0.9);
    }

    .cover-image {
        width: 240px;
    }

    .alt-item {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .alt-title {
        min-width: auto;
    }

    .share-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .share-bar img {
        width: 24px;
        height: 24px;
    }
}
