/* Kewitz-Clan Stylesheet - Fixes fuer zerstueckelte Bilder */

/* Tabellen-Layout korrigieren */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Tabellenzellen ohne Abstaende */
td, th {
    padding: 0;
    margin: 0;
    vertical-align: top;
}

/* Allgemeine Bild-Styles */
img {
    border: 0;
    vertical-align: middle;
}

/* NUR Bilder in Tabellenzellen als Block (fuer Image-Slicing) */
td > img,
th > img,
td > a > img,
th > a > img {
    display: block;
}

/* Allgemeine Styles */
body {
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* Link-Hover-Effekt */
a:hover {
    text-decoration: none;
    color: #ff0000;
}

/* Veraltete font-size Attribute ueberschreiben */
font[size="-1"], font[size="-2"] {
    font-size: 12px !important;
}

font[size="1"] {
    font-size: 10px !important;
}

font[size="2"] {
    font-size: 13px !important;
}

/* Text-Absaetze */
p {
    margin: 0.5em 0;
}

/* Navigation-Tabellen mit Abstand (Cellspacing erhalten) */
table[cellspacing="20"] {
    border-collapse: separate !important;
    border-spacing: 20px !important;
}

/* ============================================
   LIGHTBOX - Einfache Bildvergroesserung
   ============================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-title {
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.lightbox-close {
    position: absolute;
    top: -35px;
    right: 0;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #ff0000;
}

/* Thumbnail-Bilder klickbar machen */
a.lightbox-trigger {
    cursor: pointer;
}

a.lightbox-trigger img {
    transition: opacity 0.2s;
}

a.lightbox-trigger:hover img {
    opacity: 0.8;
}
