* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body[darkmode="off"] .darkmode {
    display: none;
}

body[darkmode="on"] .lightmode {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-wrap: break-word;
    color: #000000;
    background-color: #ffffff;
    font-family: "Gill Sans", "Gill Sans MT", Helvetica, sans-serif;
    font-size: 16px;
    overflow: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body[darkmode="on"] {
    color: #ffffff;
    background-color: #000000;
    transition: background-color 0.5s ease, color 0.5s ease;
}

header {
    position: fixed;
    top: 0;
    display: flex;
    align-items: center;
    width: 100vw;
    padding: 30px;
    color: #ffffff;
    background: transparent;
}

body[darkmode="on"] header {
    color: #ffffff;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

footer {
    position: fixed;
    bottom: 0;
    display: flex;
    align-items: center;
    width: 100vw;
    padding: 30px;
    color: #000000;
    background: transparent;
    font-size: 0.8rem;
    text-align: center;
}

body[darkmode="on"] footer {
    color: #ffffff;
}

/* Titel (SVG) */
.title-svg {
    display: inline-block;
    width: clamp(300px, 50vw, 800px);
    height: auto;
    padding: clamp(1rem, 3vw, 3rem);
    box-sizing: border-box;
    opacity: 0;
    transform: scale(0.9);
    filter: brightness(1);
    
    /* Animation */
    animation: electricShock 0.5s ease-out forwards;
    animation-delay: 0.7s;
}

/* Titel (SVG) Animation */
@keyframes electricShock {
    0%   { opacity: 0; transform: scale(0.9); filter: brightness(1); }
    10%  { opacity: 1; transform: scale(1.2); filter: brightness(4); } /* starker Blitz */
    20%  { opacity: 0.8; transform: scale(1.05); filter: brightness(2.5); }
    30%  { opacity: 1; transform: scale(1.15); filter: brightness(3.5); } /* kurzer zweiter Blitz */
    40%  { opacity: 0.7; transform: scale(1); filter: brightness(1.5); }
    50%  { opacity: 1; transform: scale(1.1); filter: brightness(3); } /* letzter Schlag */
    100% { opacity: 1; transform: scale(1); filter: brightness(1); } /* normal sichtbar */
}

/* Toogle-Button: Modus wechseln */
.mode-toggle {
    position: absolute;
    right: 30px;
    width: 60px;
    padding: 4px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

body[darkmode="on"] .mode-toggle {
    background: linear-gradient(90deg, #00487a 0%, #26a2e0 100%);
}

body[darkmode="off"] .mode-toggle {
    background: linear-gradient(90deg, #fba53a 0%, #fce047 100%); 
}


.mode-toggle>span {
    display: block;
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 100%;
    background-color: white;
    box-shadow: 0px 1px 1px rgba(3, 7, 18, 0.06),
                0px 2px 5px rgba(3, 7, 18, 0.12),
                0px 5px 12px rgba(3, 7, 18, 0.18),
                0px 10px 20px rgba(3, 7, 18, 0.24),
                0px 15px 32px rgba(3, 7, 18, 0.30);
    left: 0;
    transition: all 300ms ease-in-out;
}

body[darkmode="on"] .mode-toggle>span {
    left: 100%;
    transform: translateX(-100%);
}

.mode-toggle>span>img {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    transition: all 0.5s ease-in-out;
}

body[darkmode="off"] .mode-toggle>span>img:nth-child(1) {
    opacity: 1;
}

body[darkmode="off"] .mode-toggle>span>img:nth-child(2) {
    opacity: 0;
}

body[darkmode="on"] .mode-toggle>span>img:nth-child(1) {
    opacity: 0;
}

body[darkmode="on"] .mode-toggle>span>img:nth-child(2) {
    opacity: 1;
}