/*
 * shecando-additions.css
 *
 * Ergänzungen zur ursprünglichen shecando.css für die PHP-Migration.
 * Ersetzt die im ASP-Original serverseitig gesetzten Pixel-Breiten
 * (nContentWidth = 530 oder 700, je nach User-Agent) durch responsives
 * Layout via CSS Media Queries.
 *
 * Die Original-shecando.css bleibt unangetastet — alle neuen Regeln
 * stehen hier, damit man sie leicht überblicken und ggf. wieder entfernen kann.
 */

/* ----- Layout-Container ----- */

main {
    display: block;
    margin: 0 auto;
    max-width: 700px;
    padding: 0 10px;
    box-sizing: border-box;
}

.main-table {
    width: 100%;
    border: 0;
    margin: 0 auto;
}

/* Auf schmalen Bildschirmen (Mobile/PDA-Ersatz): die feste 700px-Breite
   schrumpft auf die Bildschirmbreite. Das deckt den ehemaligen 530px-Pfad
   und alles darunter ab — bis hinunter zu Smartphones. */
@media screen and (max-width: 720px) {
    main {
        max-width: 100%;
        padding: 0 8px;
    }
}

/* ----- Tabellen-Spalten für Buch-Einträge ----- */

/* Cover-Spalte (im Original: width="134") */
.td-cover {
    vertical-align: top;
    width: 144px;   /* 134 + ein wenig Padding-Reserve */
}

/* Inhalts-Spalte (im Original: width=nContentWidth-134) */
.td-content {
    vertical-align: top;
}

/* Auf sehr schmalen Bildschirmen Cover und Text untereinander statt nebeneinander */
@media screen and (max-width: 480px) {
    .td-cover,
    .td-content {
        display: block;
        width: 100% !important;
    }
    .td-cover {
        text-align: center;
    }
    .coverfoto {
        margin: 15px auto 0;
    }
}

/* ----- Site-Header (Variante C — redaktionell, sticky) ----- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #000000;
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 10px 24px;
    box-sizing: border-box;
    color: #999999;
    transition: padding 0.3s ease;
}

/* Damit die sticky-Begrenzung links/rechts auf voller Breite schwarz ist
   (sonst sieht man beim Scrollen die Tabelle dahinter durchscheinen) */
.site-header::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background-color: #000000;
    z-index: -1;
}

@media screen and (max-width: 720px) {
    .site-header { max-width: 100%; padding-left: 8px; padding-right: 8px; }
}

.site-header .kicker {
    font-family: Laila, Georgia, serif;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: #888888;
    margin-bottom: 14px;
    max-height: 30px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
}

.site-header .name {
    font-family: Laila, Georgia, serif;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
    letter-spacing: -0.01em;
    font-size: 3.6em;
    transition: font-size 0.3s ease;
}

.site-header .accent-line {
    height: 2px;
    background: linear-gradient(90deg, #cc4444 0%, #cc4444 60px, #333333 60px, #333333 100%);
    margin: 22px 0 16px;
    width: 100%;
    transition: margin 0.3s ease;
}

.site-header .meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.85em;
    color: #888888;
    gap: 10px;
    max-height: 120px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
}

.site-header .meta .role {
    font-style: italic;
    white-space: nowrap;
}
.site-header .meta .role sup { font-style: normal; font-size: 0.7em; vertical-align: super; line-height: 0; }
.site-header .meta .contact a { color: #aaaaaa; text-decoration: none; }
.site-header .meta .contact a:hover { text-decoration: underline; background-color: #444444; color: #ffffff; }

/* ----- Eingeklappter Zustand (wird per JS gesetzt, sobald gescrollt) ----- */

.site-header.scrolled {
    padding-top: 14px;
    padding-bottom: 10px;
}
.site-header.scrolled .kicker,
.site-header.scrolled .meta {
    max-height: 0;
    opacity: 0;
    margin: 0;
}
.site-header.scrolled .name {
    font-size: 2.0em;
}
.site-header.scrolled .accent-line {
    margin: 10px 0 0;
}

@media screen and (max-width: 600px) {
    .site-header { padding: 35px 10px 20px; }
    .site-header .name { font-size: 2.4em; }
    .site-header .kicker {
        font-size: 0.62em;
        letter-spacing: 0.18em;
    }
    .site-header .meta {
        flex-direction: column;
        font-size: 0.72em;
    }
    .site-header.scrolled .name { font-size: 1.6em; }
}

/* Auf sehr schmalen Bildschirmen (kleine Phones) Kicker und Meta noch enger */
@media screen and (max-width: 380px) {
    .site-header .kicker {
        font-size: 0.55em;
        letter-spacing: 0.12em;
    }
    .site-header .meta {
        font-size: 0.65em;
    }
}

/* ----- Footer ----- */

.site-footer {
    text-align: center;
    padding: 30px 10px 20px;
    color: #999999;
}

/* ----- Bilder generell responsiv ----- */

img {
    max-width: 100%;
    height: auto;
}

/* Cover behält feste Breite, solange der Container das hergibt */
.coverfoto {
    width: 134px;
    max-width: 100%;
    height: auto;
}

/* ----- Lichtgut-Banner am Seitenende ----- */

.lichtgut-banner {
    display: block;
    text-decoration: none;
    color: #888888;
    padding: 40px 10px 30px;
    margin-top: 20px;
    border-top: 1px solid #222222;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.lichtgut-banner:hover {
    text-decoration: none;
    background-color: #14100e;
    color: #c8b8a8;
}

.lichtgut-kicker {
    font-family: Laila, Georgia, serif;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #666666;
    margin-bottom: 12px;
    white-space: nowrap;
}

.lichtgut-name {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: Laila, Georgia, serif;
    font-size: clamp(0.85em, 4.4vw, 1.85em);
    font-weight: 600;
    color: #d8cec5;
    line-height: 1.1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.lichtgut-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.lichtgut-logo-svg {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    transition: transform 0.4s ease, color 0.25s ease;
}

.lichtgut-banner:hover .lichtgut-logo-svg {
    transform: scale(1.06);
}

.lichtgut-accent {
    height: 2px;
    background: linear-gradient(90deg,
                                #847a71 0%,
                                #847a71 60px,
                                #333333 60px,
                                #333333 100%);
    margin: 18px 0 14px;
    width: 100%;
}

.lichtgut-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.82em;
    color: #888888;
    gap: 10px;
}

.lichtgut-role {
    font-style: italic;
    white-space: nowrap;
}

.lichtgut-url {
    color: #888888;
    letter-spacing: 0.05em;
}

@media screen and (max-width: 600px) {
    .lichtgut-banner { padding: 30px 10px 24px; }
    .lichtgut-name { gap: 10px; }
    .lichtgut-logo-svg { width: 38px; height: 38px; }
    .lichtgut-kicker { font-size: 0.62em; letter-spacing: 0.2em; }
    .lichtgut-meta { flex-direction: column; font-size: 0.72em; }
}
