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

:root {
    --black: #000000;
    --white: #ffffff;
    --blue: #0066ff;
    --red: #ff0033;
    --text-dark: #111111;
    --bg-light: #fafafa;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.3px;
}

/* Überschriften: Grobe, charaktervolle Schrift */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: -0.2px;
}

/* Headline-Blöcke: Schwarz mit weißer Schrift */
h1, h2, h3, h4, h5, h6 {
    display: inline-block;
    background-color: var(--black);
    color: var(--white);
    padding: 0.4em 0.6em;
    line-height: 1.2;
    position: relative;
}

h1 {
    padding: 0.3em 0.5em;
}

h2 {
    padding: 0.35em 0.55em;
}

/* Mark-Tag: Blau zu Rot Farbverlauf */
mark {
    background: linear-gradient(90deg, var(--blue), var(--red));
    color: var(--white);
    padding: 0.2em 0.4em;
    font-weight: 500;
    border-radius: 2px;
    text-decoration: none;
}


/* Bilder & Medien */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    margin: 2rem 0;
}

/* Bilder mit Border-Effekt */
img {
    border: 1px solid var(--black);
    transition: all 0.3s ease;
}

img:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Figure & Caption */
figure {
    margin: 2.5rem 0;
    text-align: center;
}

figure img {
    width: 100%;
    margin: 0;
    border-radius: 2px;
}

figcaption {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 1rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.2px;
}

/* Bilder im Fließtext */
p img {
    margin: 1.5rem auto;
    display: block;
}

/* Responsive Bilder */
@media (max-width: 600px) {
    img {
        margin: 1.5rem 0;
    }

    figure {
        margin: 2rem 0;
    }
}

/* Bild-Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin: 0;
}

.gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

/* Bild mit farbigem Border */
.img-accent {
    border: 3px solid var(--black);
    padding: 0;
}

/* Bild mit Gradient-Rahmen */
.img-gradient-frame {
    position: relative;
    display: inline-block;
}

.img-gradient-frame::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--blue), var(--red));
    z-index: -1;
    border-radius: 2px;
}

.img-gradient-frame img {
    border: none;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Halbbreite Bilder */
.img-half {
    width: 50%;
    margin: 2rem auto;
}

@media (max-width: 600px) {
    .img-half {
        width: 100%;
    }
}



/* Container & Layout */
body {
    padding: 2rem;
}

main {
    max-width: 800px;
    margin: 0 auto;
}

section {
    margin-bottom: 4rem;
}

/* Subtile Animationen */
h1, h2, h3, h4, h5, h6 {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

h1:hover, h2:hover, h3:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

mark {
    position: relative;
    transition: all 0.2s ease;
}

mark:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    transform: scale(1.02);
}

/* Text-Feinheiten */
strong {
    font-weight: 500;
}

em {
    font-style: italic;
}

a {
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid var(--blue);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* Code-Blöcke */
code {
    font-family: 'Monaco', 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.9em;
    letter-spacing: 0;
}

pre {
    background-color: var(--black);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Liste */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
    font-weight: 400;
}

/* Blockquote */
blockquote {
    border-left: 3px solid var(--black);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(0, 0, 0, 0.7);
}

/* Trennlinie */
hr {
    border: none;
    height: 1px;
    background-color: var(--black);
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    body {
        padding: 1rem;
    }

    main {
        max-width: 100%;
    }
}

/* Page Load Animation */
main {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }