body.light {
    background: linear-gradient(135deg, #fafafa, #e6e6e6);
    color: #2f2f2f;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}





h1.box {
    border: 2px solid #444;
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    /* Fett, kriterium erfüllt*/
    font-size: 2.4rem;
    color: #222;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

h1.box:hover {
    background-color: #e63946;
    color: white;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.7);
    text-shadow: 0 0 12px #f1c40f;
}

body.light h2 {
    color: #555;
    font-size: 1.8em;
    margin-top: 60px;
    position: sticky;
    top: 0;
    background-color: #fafafa;
    padding: 12px 15px;
    border-left: 6px solid #e63946;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    font-weight: 600;
}

p {
    line-height: 1.65;
    margin-bottom: 1.3em;
    font-size: 1.05rem;
}

body.light p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #444;
    background-color: #fffafa;
    padding: 12px 18px;
    border-left: 4px solid #e63946;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.1);
    transition: background-color 0.3s ease;
}

body.light p:hover {
    background-color: #fff1f3;
}

img {
    border-radius: 14px;
    margin-top: 35px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.source a {
    color: #666;
    font-style: italic;
    text-decoration: none;
    transition: color 0.25s ease;
}

.source a:hover {
    color: #e63946;
    text-decoration: underline;
}

body.dark {
    background-color: #121212;
    color: #e0dede;
}

body.dark h1.box {
    background-color: #2a0000;
    border-color: #ff0000;
    color: #ffcc00;
    text-shadow: 0 0 10px #ffcc00;
}

body.dark h1.box:hover {
    background-color: #ff0000;
    color: black;
    text-shadow: 0 0 20px yellow;
}

body.dark h2 {
    color: #ffcc00;
    background-color: #0d0d0d;
    border-left: 5px solid red;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

body.dark img {
    box-shadow: 0 0 15px rgba(255, 80, 80, 0.4), 0 0 30px rgba(255, 80, 80, 0.2);
    transition: box-shadow 0.4s ease;
}

html {
    scroll-padding-top: 60px;
}

body.dark img:hover {
    box-shadow: 0 0 25px rgba(255, 100, 100, 0.6), 0 0 40px rgba(255, 100, 100, 0.3);
}

/* Imagereveal */
.image-reveal {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.6s ease, max-height 0.6s ease;
}


body.dark p {
    background-color: #1e1e1e;
    padding: 14px 18px;
    margin-bottom: 18px;
    border-left: 4px solid #ff4444;
    border-radius: 6px;
    transition: background-color 0.4s ease, box-shadow 0.3s ease;
}


body.dark p:hover {
    background-color: #2a2a2a;
    box-shadow: 0 0 10px rgba(255, 80, 80, 0.3);
}



.image-reveal img {
    width: 45%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.6s ease;
}

/* hoverabsatz */
#p1:hover+.image-reveal {
    opacity: 1;
    max-height: 500px;
}

#p1:hover+.image-reveal img {
    transform: translateY(0);
}

/* Cursor-Glow ig */
#cursor-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 80, 80, 0.3) 0%, rgba(255, 0, 0, 0) 80%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Sichtbar dmode */
body.dark #cursor-glow {
    opacity: 1;
}