/*
Theme Name: dotCLOUD Split
Author: Gemini
Description: Ein modernes 50/50 Split-Screen One-Page-Theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-logo, custom-header, full-width-template
Text Domain: dotcloud-split
*/

/* --- 1. CSS-Variablen (Ihre Farben) --- */
:root {
    --color-background-light: #F1EAD6; /* Ihr heller Farbton */
    --color-text-accent: #00416B;      /* Ihr dunkler Blauton */
}

/* --- 2. Grundlegendes Layout (Mobile-First) --- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--color-background-light); /* Standard-Hintergrund */
}

/* Wrapper, der sicherstellt, dass der Footer unten bleibt */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Mindestens volle Bildschirmhöhe */
}

.site-main {
    display: flex;
    flex-direction: column; /* Stapelt auf Mobilgeräten */
    flex: 1; /* Füllt den verfügbaren Platz */
}

/* --- 3. Die 50/50-Sektionen --- */
.split-left, .split-right {
    flex-grow: 1;
    min-height: 50vh; /* Mindesthöhe für Mobile */
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 2rem;
}

/* Linke Seite (Logo & Titel) */
.split-left {
    background-color: var(--color-background-light);
    color: var(--color-text-accent);
    text-align: center;
}

.split-left-content {
    max-width: 400px;
}

.split-left .custom-logo {
    max-width: 150px; /* Logo-Grösse anpassen */
    height: auto;
    margin-bottom: 1.5rem;
}

.split-left .site-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text-accent);
}

/* Rechte Seite (Bild) */
.split-right {
    background-color: var(--color-text-accent); /* Fallback-Farbe */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Ein leeres DIV braucht eine Mindesthöhe auf Mobile */
    min-height: 300px; 
}

/* --- 4. Der Footer --- */
.site-footer {
    background-color: var(--color-text-accent);
    color: var(--color-background-light);
    padding: 1.5rem 2rem;
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

.footer-content {
    display: flex;
    flex-direction: column; /* Stapeln auf Mobile */
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content .copyright {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-content .contact-button {
    background-color: var(--color-background-light);
    color: var(--color-text-accent);
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.footer-content .contact-button:hover {
    transform: scale(1.05);
}

/* --- 5. Desktop-Layout (ab 769px) --- */
@media (min-width: 769px) {
    .site-main {
        flex-direction: row; /* Nebeneinander auf Desktop */
    }

    .split-left, .split-right {
        flex-basis: 50%; /* Beide 50% breit */
        min-height: auto; /* Höhe wird durch Flexbox bestimmt */
    }
    
    .split-right {
        min-height: auto; /* Zurücksetzen */
    }
    
    .footer-content {
        flex-direction: row; /* Nebeneinander auf Desktop */
    }
}