/* css */
:root {
    --card: #b55800;
    --accent: #b55800;
    --text: #000000;
    --headnav-height: 80px;
}

/* Reset */
* {
    box-sizing: border-box;
}
html, body {
    height: 100%;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial;
    color: var(--text);
}

/* Layout */
.wrapper {
    width: 900px;
    max-width: 96%;
    padding-top: var(--headnav-height); /* Platz für fixe Nav */
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 28px;
}

/* Section */
.section {
    background: var(--card);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(60, 58, 58, 0.6);
}

/* Headlines / Linie */
.headline h1,
.headline h2 {
    text-align: center;
    color: var(--text);
    margin: 0;
}

.hr {
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin: 10px auto 18px;
    border-radius: 2px;
}

/* Kopf-Navigation (alte Version ohne zentriertes IMG) */
.headnav {
    margin:auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--headnav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13%;
    padding: 0 32px;
    background: var(--accent);
    font-weight: 700;
    z-index: 1000;
    box-sizing: border-box;
}

/* Links */
.headnav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 3px solid transparent; /* Platz für Hover */
    border-radius: 35px;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

/* Bild im normalen Fluss */
.headnav a img {
    position: static;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    margin: 0;
    transition: border-color .15s ease, transform .15s ease;
}

.headnav a:hover img {
    border-color: #fff; /* Border um das Bild beim Hover sichtbar machen */
}

/* Hover */
.headnav a:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255,255,255,0.15);
}

/* Responsive Abstände */
@media (max-width: 900px) {
    .headnav { gap: 48px; }
}
@media (max-width: 560px) {
    .headnav { gap: 28px; padding: 0 16px; }
    .headnav a { padding: 6px 14px; }
    .headnav a img { width: 42px; height: 42px; }
}
@media (max-width: 560px) {
    .headnav a img { width: 42px; height: 42px; border-width: 3px; }
}

/* Utility */
footer {
    text-align: center;
    font-size: 12px;
    color: rgba(0,0,0,0.6);
    margin-top: 10px;
}
