:root {
    --bg-color: #ffffff;
    --text-color: #272626;
    --hover-color: #2f5aae;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --modal-bg: rgba(255, 255, 255, 0.98);
    --info-bg: rgba(255, 255, 255, 0.9);
    --content-width: 930px;
    scrollbar-gutter: stable;
}

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

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #ffffff;
    --hover-color: #4a7cd1;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --modal-bg: rgba(18, 18, 18, 0.98);
    --info-bg: rgba(18, 18, 18, 0.9);
}

/* Text & SVG transitions */
.gallery-title,
.about-content h2 {
    color: var(--text-color) !important;
    transition: color 1.5s ease !important;
}

.gallery-subtitle {
    color: var(--text-color) !important;
    opacity: 0.7;
    transition: color 1.5s ease, opacity 1.5s ease !important;
}

.gallery-info,
.gallery-info [lang],
.info-icon,
.info-icon svg,
.about-content p {
    color: var(--text-color) !important;
    transition: color 1.5s ease !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 60px;
    transition: background-color 0.3s ease;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 calc(20px + (100vw - 100%) / 2) 0 20px;
}

header {
    padding: 2rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color);
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 20px;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    width: 44px;
    height: 44px;
    margin-right: -11px;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    padding: 2rem 0;
}

.gallery-preview {
    text-decoration: none;
    color: var(--text-color);
}

.gallery-preview img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 8px 30px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-preview:hover img {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow-color);
}

.gallery-info {
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.gallery-title {
    font-weight: normal;
    font-size: 1.1rem;
    margin-bottom: 0.0rem;
}

.gallery-subtitle {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.gallery {
    width: 100%;
}

.gallery img {
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px var(--shadow-color);
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: calc((100vw - var(--content-width)) / 2);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 900;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle::after {
    content: "🌚";
    font-size: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .theme-toggle::after {
    content: "🌞";
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover::after {
    opacity: 1;
}

[lang="de"], [lang="en"] {
    display: none;
}

.about-content h2 {
    margin: 2rem 0 1rem 0;
    font-weight: normal;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 2rem;
}

/* Link Styles für About-Section */
.about-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 1.5s ease;
}

/* Der Hover-Effekt muss außerhalb der Theme-Transition stehen */
.about-content a:hover {
    color: var(--hover-color);
    transition: color 0.3s ease;
}

/* Allgemeine Link-Styles */
a {
    color: var(--text-color);
    text-decoration: none;
}

/* Override für den Site Title */
.site-title:hover {
    color: var(--text-color);
}

@media (max-width: 767px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .theme-toggle {
        right: 20px;
    }
}