/* --- BENTO VARIABLES --- */
:root {
    --bg-body: #f2f4f6;       /* Sehr helles Grau für den Hintergrund */
    --card-bg: #ffffff;       /* Weiß für die Kacheln */
    --text-main: #111111;
    --text-muted: #666666;
    --accent: #0057ff;        /* Electric Blue */
    --accent-dark: #003bb5;
    
    --radius: 28px;           /* Der typische Bento-Radius */
    --gap: 20px;
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.5;
    padding: 20px;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius); }
ul { list-style: none; }

/* --- HEADER (Floating Pill Style) --- */
header {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    background: var(--card-bg);
    padding: 15px 30px;
    border-radius: 50px; /* Pill Shape */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
    z-index: 100;
}

.logo { font-weight: 900; font-size: 1.5rem; letter-spacing: -1px; }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* --- BENTO GRID SYSTEM --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Das Haupt-Grid für die Startseite */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Spalten Desktop */
    grid-template-rows: repeat(2, 300px); /* Feste Höhe für Zeilen */
    gap: var(--gap);
}

/* Basis-Stil für Bento-Boxen */
.bento-box {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Spezifische Box-Größen */
.box-hero {
    grid-column: span 2;
    grid-row: span 2;
    background: #111;
    color: white;
}

.box-feature { grid-column: span 1; grid-row: span 1; }
.box-wide { grid-column: span 2; grid-row: span 1; }
.box-tall { grid-column: span 1; grid-row: span 2; }

/* Inhalte innerhalb der Boxen */
.box-hero h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; z-index: 2; position: relative; }
.box-hero p { font-size: 1.2rem; color: #ccc; margin-bottom: 30px; z-index: 2; position: relative; }
.hero-img-bg {
    position: absolute; top: 0; right: 0; width: 100%; height: 100%;
    opacity: 0.6; z-index: 1; object-fit: cover;
}

.icon-circle {
    width: 50px; height: 50px; background: var(--bg-body);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.icon-circle svg { width: 24px; height: 24px; stroke: var(--text-main); }

h2 { font-size: 1.5rem; margin-bottom: 10px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
p { color: var(--text-muted); font-size: 0.95rem; }

/* Button */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    position: relative; z-index: 2;
}
.btn:hover { background: var(--accent-dark); }

/* --- OTHER PAGES (Content Layout) --- */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--gap);
}
.content-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
}

/* --- FOOTER --- */
footer {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    background: #111;
    color: #fff;
    border-radius: var(--radius);
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
footer a:hover { color: var(--accent); }
.phone-de { font-size: 1.2rem; font-weight: bold; color: var(--accent); }

/* --- MOBILE --- */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: var(--text-main); margin: 5px; }

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr; /* Alles untereinander */
        grid-template-rows: auto;
    }
    .box-hero, .box-feature, .box-wide, .box-tall {
        grid-column: span 1;
        grid-row: auto;
        min-height: 250px; /* Mindesthöhe für Mobile */
    }
    .box-hero { min-height: 400px; }
    
    .nav-links {
        display: none;
        position: absolute; top: 70px; left: 0; width: 100%;
        background: var(--card-bg); padding: 20px;
        border-radius: var(--radius); flex-direction: column; text-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .burger { display: block; }
    
    .content-grid { grid-template-columns: 1fr; }
}