/* =====================================================
   KEENIX Website – Style
   ===================================================== */

/* ---------- Google Font laden ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- Basis ---------- */
:root {
    --keenix-navigation-accent: #8a2be2;
}

html, body {
    width: 100%;
    font-family: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
}
html { min-height: 100%; }
body { min-height: 100vh; }

/* ---------- Hintergrundbild ---------- */
body {
    background-image: url('/background.png');
    background-size: auto 100vh;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ---------- Toggle-Button (Hamburger) ---------- */
.toggle-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: rgba(30, 30, 30, 0.85);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background 0.2s;
}
.toggle-btn:hover { background: rgba(60, 60, 60, 0.9); }

/* Toggle-Button ausblenden, wenn Sidebar offen ist */
body.sidebar-is-open .toggle-btn {
    display: none;
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #1c1c1c;
    border-right: 1px solid rgba(255,255,255,0.08);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sidebar.sidebar-open { left: 0; }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.12em;
    color: #fff;
}
.sidebar-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s;
}
.sidebar-close:hover { color: #fff; }

.sidebar ul {
    list-style: none;
    padding: 10px 0 20px;
}
.sidebar-category {
    padding: 16px 18px 6px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666;
    font-family: Arial, sans-serif;
}
.sidebar-subcategory { padding-left: 30px; font-size: 0.64rem; color: #777; }
.sidebar-subcategory::before { content: "— "; }
.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    transition: color 0.2s, background 0.2s;
    border-left: 3px solid transparent;
}
.sidebar ul li a:hover,
.sidebar ul li.active a {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-left-color: var(--keenix-navigation-accent);
}

/* ---------- Overlay ---------- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ---------- Content ---------- */
/* ---------- Content Box ---------- */
.content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
}

.content-inner {
    width: 100%;
    max-width: 900px;
    min-height: 500px;
    background-color: rgba(40, 40, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Editor content starts at the top; its headings use the navigation accent. */
.content-inner:has(.wysiwyg-content) {
    justify-content: flex-start;
}
.wysiwyg-content {
    align-self: stretch;
    width: 100%;
    text-align: left;
    font-size: 18px;
}
.wysiwyg-content a {
    color: #e879f9;
    text-decoration: none;
}
.wysiwyg-content a:hover,
.wysiwyg-content a:focus-visible {
    color: #f0abfc;
    text-decoration: none;
}
.wysiwyg-content img[src*="/assets/icons/platforms/"] {
    display: inline-block;
    width: 34px;
    height: 34px;
    max-width: none;
    margin: 4px 6px;
    border-radius: 0;
    object-fit: contain;
    vertical-align: middle;
}
.wysiwyg-content .ql-size-small { font-size: .75em; }
.wysiwyg-content .ql-size-large { font-size: 1.5em; }
.wysiwyg-content .ql-size-huge { font-size: 2.5em; }
.wysiwyg-content table { width: auto; max-width: 100%; border: 0 !important; border-collapse: collapse; margin: 1.25em 0; }
.wysiwyg-content th, .wysiwyg-content td { padding: .35em .75em; border: 0 !important; background: transparent !important; text-align: left; vertical-align: top; }
.wysiwyg-content h1:not(.hero-title),
.wysiwyg-content h2,
.wysiwyg-content h3,
.wysiwyg-content h4,
.wysiwyg-content h5,
.wysiwyg-content h6 {
    width: 100%;
    padding: 12px 18px;
    margin: 0 0 22px;
    color: #fff;
    border-radius: 10px;
    text-align: center;
    letter-spacing: normal;
}
.wysiwyg-content h1:not(.hero-title) { font-size: 33px; }
.wysiwyg-content h2 { font-size: 25px; }
.wysiwyg-content h3 { font-size: 20px; }
.wysiwyg-content h4 { font-size: 17px; }
.wysiwyg-content h5 { font-size: 14px; }
.wysiwyg-content h6 { font-size: 12px; }
.wysiwyg-content h1:not(.hero-title) {
    background-color: var(--keenix-navigation-accent);
}
.wysiwyg-content h2,
.wysiwyg-content h3,
.wysiwyg-content h4,
.wysiwyg-content h5,
.wysiwyg-content h6 {
    background-color: rgba(255,255,255,0.06);
}
.wysiwyg-content p + h1,
.wysiwyg-content p + h2,
.wysiwyg-content p + h3,
.wysiwyg-content p + h4,
.wysiwyg-content p + h5,
.wysiwyg-content p + h6 {
    margin-top: 28px;
}
.wysiwyg-content .hero-wrapper {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ---------- Bilder im Content automatisch skalieren ---------- */
.content-inner img {
    max-width: 85%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

/* ---------- Hero / Home ---------- */
.hero-wrapper {
    text-align: center;
    animation: fadeUp 1.5s ease-out forwards;
}
.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5rem, 18vw, 14rem);
    letter-spacing: 0.18em;
    color: #fff;
    text-shadow: 0 0 60px rgba(100,50,200,0.3), 0 0 120px rgba(60,20,120,0.2);
}
.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.8rem);
    letter-spacing: 0.4em;
    color: #999;
    margin-top: 8px;
}

/* ---------- Page Header ---------- */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: 0.15em;
    color: #fff;
}

/* ---------- 404 ---------- */
.not-found-wrapper {
    text-align: center;
    padding: 40px;
}
.not-found-code {
    font-size: clamp(6rem, 20vw, 12rem);
    color: #8a2be2;
    letter-spacing: 0.1em;
}
.not-found-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #ccc;
    margin: 10px 0 20px;
    letter-spacing: 0.1em;
}
.not-found-wrapper p { color: #777; margin-bottom: 30px; }
.btn-home {
    display: inline-block;
    padding: 12px 30px;
    background: #8a2be2;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    transition: background 0.2s;
}
.btn-home:hover { background: #6a1b9a; }

/* ---------- Musik-Seite ---------- */
.musik-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.embed-section h2 {
    font-size: 1.3rem;
    letter-spacing: 0.15em;
    color: #999;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.embed-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
}
.embed-wrapper iframe {
    display: block;
}
.embed-wrapper--video {
    aspect-ratio: 16 / 9;
}
.embed-wrapper--video iframe {
    width: 100%;
    height: 100%;
}
.page-videos {
    width: min(900px, calc(100% - 32px));
    margin: 28px auto;
    display: grid;
    gap: 20px;
}
.page-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
}
.page-video video,
.page-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.page-video video { object-fit: contain; }
.page-share {
    width: 100%;
    min-height: 58px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background: rgba(25,25,25,0.88);
}
.page-share h2 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    letter-spacing: .04em;
}
.page-share-actions { display: flex; align-items: center; gap: 10px; }
.page-share-button {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.75), inset 0 -2px 3px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.38);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.page-share-button[hidden] { display: none; }
.page-share-button:hover,
.page-share-button:focus-visible { transform: translateY(-2px); filter: brightness(1.12); box-shadow: inset 0 1px 1px rgba(255,255,255,.85), inset 0 -2px 3px rgba(0,0,0,.2), 0 4px 9px rgba(0,0,0,.48); }
.page-share-button::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 2px;
    left: 3px;
    right: 3px;
    height: 45%;
    border-radius: 999px 999px 45% 45%;
    background: linear-gradient(to bottom, rgba(255,255,255,.72), rgba(255,255,255,.06));
    pointer-events: none;
}
.page-share-button svg { position: relative; z-index: 1; width: 100%; height: 100%; fill: #fff; color: #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.38)); }
.page-share-native, .page-share-whatsapp, .page-share-email, .page-share-copy { background: rgba(255,255,255,.08); }
.page-share-whatsapp:hover, .page-share-whatsapp:focus-visible, .page-share-whatsapp:active { background: linear-gradient(145deg, #7cf5a9 0%, #25d366 48%, #087b3c 100%); }
.page-share-email:hover, .page-share-email:focus-visible, .page-share-email:active { background: linear-gradient(145deg, #ffc4f5 0%, #d457e5 48%, #8521a7 100%); }
.page-share-copy:hover, .page-share-copy:focus-visible, .page-share-copy:active { background: linear-gradient(145deg, #d8b4fe 0%, #8a2be2 48%, #54158f 100%); }
.page-share-native:hover, .page-share-native:focus-visible, .page-share-native:active { background: linear-gradient(145deg, #d8f3ff 0%, #52aee8 48%, #1767a8 100%); }
.page-share-button:active { transform: translateY(0) scale(.94); }
.page-share-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---------- Contact-Seite ---------- */
.contact-container {
    width: 100%;
    max-width: 600px;
}
.contact-info { margin-bottom: 30px; }
.contact-info h2 {
    font-size: 2rem;
    letter-spacing: 0.12em;
    color: #fff;
    margin-bottom: 10px;
}
.contact-info p { color: #888; line-height: 1.6; }
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
}
.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    transition: border-color 0.2s;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8a2be2;
}
.btn-submit {
    padding: 14px 28px;
    background: #8a2be2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover { background: #6a1b9a; }
.email-section { margin-top: 10px; }
.email-section p { color: #777; margin-bottom: 8px; }
.email-link {
    color: #8a2be2;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}
.email-link:hover { text-decoration: underline; }

/* ---------- Links-Seite ---------- */
.links-container { width: 100%; max-width: 700px; }
.links-intro {
    text-align: center;
    color: #777;
    margin-bottom: 36px;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.social-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.2);
}
.social-icon {
    width: 48px;
    height: 48px;
}
.social-icon svg {
    width: 100%;
    height: 100%;
}
/* Farben pro Platform */
.social-card--instagram { color: #E1306C; }
.social-card--instagram:hover { border-color: #E1306C; }
.social-card--tiktok { color: #69C9D0; }
.social-card--tiktok:hover { border-color: #69C9D0; }
.social-card--spotify { color: #1DB954; }
.social-card--spotify:hover { border-color: #1DB954; }
.social-card--youtube { color: #FF0000; }
.social-card--youtube:hover { border-color: #FF0000; }
.social-card--soundcloud { color: #FF5500; }
.social-card--soundcloud:hover { border-color: #FF5500; }

.social-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: #ccc;
}

/* Social links and lyrics attached to an individual page. */
.page-social-links { width: 100%; max-width: 700px; margin: 28px auto 0; }
.social-card--facebook { color: #1877F2; }
.social-card--facebook:hover { border-color: #1877F2; }
.page-lyrics {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    margin: 24px 0 0;
    text-align: left;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.7;
    padding: 24px;
    border-radius: 12px;
}
.page-lyrics--with-image {
    background-image: linear-gradient(rgba(10,10,10,0.78), rgba(10,10,10,0.78)), var(--lyrics-background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    background-clip: padding-box;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.lyrics-sticky-headings {
    position: sticky;
    top: 0;
    z-index: 490;
    align-self: stretch;
    width: 100%;
    max-width: 900px;
    padding: 8px 0;
    margin: 0 auto 20px;
    background: transparent;
}
.lyrics-sticky-headings h1,
.lyrics-sticky-headings h2 {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    letter-spacing: normal;
}
.lyrics-sticky-headings h1 { background-color: var(--keenix-navigation-accent); }
.lyrics-sticky-headings h2 { margin-top: 8px; background-color: rgba(30,37,48,0.96); }
.lyrics-sticky-editor-content {
    margin: 8px 0 0;
    padding: 10px 14px;
    border: 1px solid rgba(255, 0, 170, 0.65);
    border-radius: 9px;
    background: rgba(30, 37, 48, 0.92);
    backdrop-filter: blur(6px);
}
.lyrics-sticky-editor-content > :first-child { margin-top: 0; }
.lyrics-sticky-editor-content > :last-child { margin-bottom: 0; }
.lyrics-sticky-editor-content > p:empty { display: none; }
.lyrics-sticky-editor-content > h1:has(+ p:empty) { margin-bottom: 0; }
.lyrics-sticky-editor-content > h1:only-child { margin-bottom: 0; }
.lyrics-sticky-video {
    width: min(100%, 900px);
    aspect-ratio: 16 / 9;
    margin: 8px auto 0;
    overflow: hidden;
    border-radius: 10px;
    background: #111;
}
.lyrics-sticky-video iframe,
.lyrics-sticky-video video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.lyrics-sticky-video video { object-fit: contain; }
.lyrics-sticky-headings .keenix-audio-player {
    position: static;
    margin: 8px 0 0;
}
.lyrics-image-preview {
    display: inline-flex;
    width: 100px;
    height: 100px;
    margin: 0 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    overflow: hidden;
    vertical-align: top;
}
.lyrics-image-preview img {
    display: block;
    width: 100px;
    height: 100px;
    max-width: none;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}
.lyrics-image-preview:focus-visible { outline: 2px solid var(--keenix-navigation-accent); outline-offset: 3px; }
.page-lyrics-text {
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* ---------- Animation ---------- */
@keyframes fadeUp {
    0%   { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    body { background-size: 100vw auto; }
    .sidebar { width: 100%; left: -100%; }
    .toggle-btn { top: 12px; left: 12px; }
    .content { padding: 76px 16px 40px; }
    .content-inner {
        min-height: 400px;
        padding: 30px 20px;
    }
    .social-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Tablets and compact screens in landscape: fill the wider viewport with the portrait background. */
@media (min-width: 601px) and (max-width: 1366px) and (orientation: landscape) {
    body {
        background-size: cover;
        background-position: center center;
    }
}

/* Keep page sharing beside the first page heading instead of at the footer. */
.page-heading-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-heading-row > h1 {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
}
.wysiwyg-content .page-heading-row > h1 { width: auto; margin: 0; }
.page-heading-row--generated > h1 {
    padding: 12px 18px;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: 33px;
}
.page-heading-row .page-share {
    width: auto;
    min-height: 0;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
}
.page-heading-row .page-share h2 { display: none; }
.page-heading-row .page-share-actions { gap: 7px; flex-shrink: 0; }
.page-heading-row .page-share-button { width: 34px; height: 34px; padding: 8px; }
.page-heading-row--accent { gap: 0; }
.page-heading-row--accent {
    min-height: 62px;
    align-items: stretch;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--keenix-navigation-accent);
}
.page-heading-row--accent > h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent !important;
}
.page-heading-row--accent .page-share {
    align-self: stretch;
    padding: 0 2px 0 10px;
    border-radius: 0;
    background: transparent;
}
.page-heading-row--generated { margin: 0 0 24px; }

@media (max-width: 600px) {
    .page-heading-row { gap: 8px; }
    .page-heading-row--accent { gap: 0; padding-right: 6px; padding-left: 6px; }
    .page-heading-row .page-share-actions { gap: 5px; }
    .page-heading-row .page-share-button { width: 32px; height: 32px; padding: 7px; }
    .page-heading-row > h1 { overflow-wrap: anywhere; }
    .page-heading-row > .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); letter-spacing: .1em; }
}
