/* ===== EWALDINI PROJEKT – Stylesheet ===== */
/* Stand: November 2026 */

/* ===== VARIABLEN ===== */
:root {
    --bg: #111111;
    --bg-card: #1a1a1a;
    --bg-header: #0f0f0f;
    --text: #e0e0e0;
    --text-muted: #aaaaaa;
    --creme: #FAF0D9;
    --accent: #8C499E;
    --accent-hover: #D99164;
    --border: #2a2a2a;
    --font: 'Bellota', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== GRUNDFARBEN ===== */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.1rem;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

input,
textarea,
button {
    font-family: var(--font);
}

/* ===== HEADER ===== */
header {
    background-color: var(--bg-header);
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 100px;
    width: auto;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.05em;
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 1rem;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

nav a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

nav a.active {
    color: var(--creme);
    border-color: var(--accent);
}

nav a.btn-primary {
    background-color: var(--accent);
    color: var(--creme);
    border-color: var(--accent);
    font-weight: 700;
}

nav a.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #111111;
}

/* ===== HAUPTINHALT ===== */
main {
    flex: 1;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 40px 80px;
}

main img {
    max-width: 100%;
    height: auto;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 16px;
}

p {
    color: var(--text);
    margin-bottom: 16px;
}

.zentriert {
    text-align: center;
}

/* ===== KNOPF (Links im Button-Stil) ===== */
.knopf {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    background-color: var(--accent);
    color: var(--creme);
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.knopf:hover {
    background-color: var(--accent-hover);
    color: #111111;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--bg-header);
    padding: 32px 40px;
}

.footer-grid {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-left {
    text-align: left;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.footer-left p,
.footer-center p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-right a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: var(--accent);
}

/* ===== PROJEKTE GRID ===== */
.projekte {
    padding: 40px 20px;
}

.projekte-titel {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: left;
}

.projekte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.projekte-grid a,
.projekte-grid a:hover {
    text-decoration: none !important;
}

.projekt-karte {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
    display: block;
}

.projekt-karte:hover {
    border-color: var(--accent-hover);
    transform: translateY(-4px);
}

.projekt-karte img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    text-decoration: none !important;
}

.projekt-info {
    padding: 16px;
}

.projekt-info h3 {
    color: var(--accent);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.projekt-info p {
    color: var(--text);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== KONTAKTFORMULAR (Modul in /formular) ===== */
.kf {
    --kf-akzent: var(--accent);
    --kf-feld-grund: var(--bg-card);
    --kf-widget-grund: var(--bg-card);
    --kf-widget-text: var(--creme);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
        height: auto;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
        gap: 12px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    main {
        padding: 32px 20px 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        text-align: center;
    }

    .footer-right a {
        display: inline;
        margin: 0 8px;
    }
}
