/* Grundlegende Stile und Variablen */
:root {
    --primary-color: #1a1a1a;
    --text-color: #cccccc;
    --header-height: 80px; /* Feste Höhe für den Header */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Neuer Wrapper für den Header/Footer-Container */
.header-container-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Standard-Container für Content-Bereiche */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header und Navigation */
.site-header {
    height: var(--header-height);
    box-sizing: border-box;
}

.logo a {
    text-decoration: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    transition: text-shadow 0.3s ease;
}

.logo a:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.nav-wrapper {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 16px;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

/* Hero-Bereich (Startseite) */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(80vh - var(--header-height));
}

.hero .container {
    flex-direction: column;
    justify-content: center;
}

/* Animations-Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animierte Formel */
.animated-formula {
    font-size: 2.8rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0.2em 0;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.animated-formula span {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    margin: 0 0.2em;
}

.animated-formula span:nth-child(1) { animation-delay: 0.5s; }
.animated-formula span:nth-child(2) { animation-delay: 1.0s; }
.animated-formula span:nth-child(3) { animation-delay: 1.5s; }
.animated-formula span:nth-child(4) { animation-delay: 2.0s; }
.animated-formula span:nth-child(5) { animation-delay: 2.5s; }
.animated-formula span:nth-child(6) { animation-delay: 3.0s; }
.animated-formula span:nth-child(7) { animation-delay: 3.5s; }
.animated-formula .arrow { color: #888888; }

.sub-headline {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 700px;
    margin: 30px auto 0 auto;
    color: var(--text-color);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 4.2s;
}

/* Generische Seiten-Stile */
.page-header {
    text-align: center;
    padding: 60px 0;
    border-bottom: 1px solid #333333;
}
.page-header h1 {
    font-size: 3rem;
    color: #ffffff;
    margin: 0;
}

/* --- Content Sektionen (Rechtstexte & Co) --- */
.content-section {
    padding: 60px 0;
}
.content-section .container {
    flex-direction: column;
}

#impressum h2 {
    text-align: center;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 40px;
}

.content-section h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 40px;
    margin-top: 0;
}

.content-section h2 {
    text-align: left;
    font-size: 1.8rem;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-section p,
.content-section ul, 
.content-section ol,
.legal-source {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: left;
}

.content-section ul, 
.content-section ol {
    padding-left: 40px;
    box-sizing: border-box;
}
.content-section li {
    margin-bottom: 10px;
}

.legal-source {
    margin-top: 4em !important;
    margin-bottom: 3em !important;
    font-size: 0.9rem !important;
    color: #888 !important;
}
.legal-source a {
    color: #888;
}

.content-section.text-center {
    text-align: center;
}

/* Projekt-Sektion mit Teaser */
.project {
    border-top: 1px solid #333333;
    padding: 60px 0;
}
.project:first-child {
    border-top: none;
}
.project .container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.project-text {
    flex: 2;
    text-align: left;
}
.project-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Smartphone Mockup Stile */
.smartphone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 0 auto;
    background-color: #1c1c1e;
    border-radius: 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5), inset 0 2px 2px #555, inset 0 -2px 2px #000;
    padding: 12px;
    box-sizing: border-box;
}
.smartphone-screen {
    background: #ffffff;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
}

.visual-caption {
    text-align: center;
    font-size: 0.8em;
    color: #888888;
    margin-top: 15px;
}

/* Footer */
.site-footer {
    padding: 30px 0;
    border-top: 1px solid #333333;
    margin-top: 50px;
}
.site-footer .header-container-wrapper {
    font-size: 14px;
    color: #888888;
    text-align: center;
    flex-direction: column;
    justify-content: center;
}
.site-footer a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
}
.site-footer a:hover {
    color: #ffffff;
}

/*
-------------------------------------------------------------------
Mobiles Hamburger-Menü (DAS HAT GEFEHLT)
-------------------------------------------------------------------
*/
.menu-toggle {
    display: none; /* Standardmäßig auf Desktop versteckt */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Über dem Inhalt */
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Animation für Hamburger -> X */
.menu-toggle.is-open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-open .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav.is-open {
    display: flex;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav li {
    margin: 20px 0;
}

.mobile-nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}
.mobile-nav a:hover {
    color: #007aff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .project .container { flex-direction: column; }
    .project-text { text-align: center; flex: 1; }
    .project-visual { margin-top: 40px; flex: 1; }
}

@media (max-width: 768px) {
    .animated-formula, .page-header h1 { font-size: 2rem; }
    .sub-headline, .content-section p { font-size: 1rem; }
    
    .site-header { height: var(--header-height); }
    .header-container-wrapper { flex-direction: row; }
    
    .nav-wrapper {
        display: none; 
    }
    .menu-toggle {
        display: block; 
    }
    .content-section h2, .content-section p, .content-section ul {
        padding-left: 0;
    }
}

/* PLAN B: MailerLite Eingebettetes Formular */
.toggle-form-button {
    display: inline-block;
    background-color: #007aff;
    color: #ffffff !important;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
}
.toggle-form-button:hover {
    background-color: #3395ff;
}

.hidden-form-wrapper {
    display: none;
    margin-top: 40px;
    padding: 30px;
    background-color: #2e2e2e;
    border-radius: 8px;
    border: 1px solid #444;
}

/* MailerLite Design-Anpassungen */
#mlb2-32824649 .ml-form-embedWrapper,
#mlb2-32824649 .ml-form-embedWrapper .ml-form-embedBody,
#mlb2-32824649 .ml-form-embedWrapper .ml-form-successBody {
    background-color: transparent !important;
    padding: 0 !important;
}
#mlb2-32824649 .ml-form-embedContent h4,
#mlb2-32824649 .ml-form-embedContent p {
    color: var(--text-color) !important;
    text-align: left !important;
}
#mlb2-32824649 .ml-form-embedContent h4 {
    font-size: 24px !important;
    color: #ffffff !important;
}
#mlb2-32824649 input.form-control,
#mlb2-32824649 textarea.form-control {
    background-color: #1c1c1e !important;
    color: #ffffff !important;
    border-color: #555 !important;
}
#mlb2-32824649 input.form-control::placeholder,
#mlb2-32824649 textarea.form-control::placeholder {
    color: #888 !important;
}
#mlb2-32824649 .custom-control-label {
    color: var(--text-color) !important;
    font-size: 14px !important;
    font-weight: normal !important;
}
#mlb2-32824649 .custom-control-label::before {
    background-color: #1c1c1e !important;
    border-color: #555 !important;
}
#mlb2-32824649 .custom-radio .custom-control-input:checked~.custom-control-label::before {
    background-color: #007aff !important;
    border-color: #007aff !important;
}
#mlb2-32824649 .ml-form-embedSubmit button {
    background-color: #007aff !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-transform: none !important;
}
#mlb2-32824649 .ml-form-embedSubmit button:hover {
    background-color: #3395ff !important;
}
#mlb2-32824649 .ml-form-successBody h4,
#mlb2-32824649 .ml-form-successBody p {
    color: #ffffff !important;
    text-align: center !important;
}

/* Cookie-Consent-Banner Anpassungen */
#cc-main .cc-con,
#cc-main .cc-box,
#cc-main .cc-box:hover {
    background-color: #2e2e2e !important;
    color: var(--text-color) !important;
    border: 1px solid #444 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

#cc-main .cc-title {
    color: #ffffff !important;
}

#cc-main .cc-btn {
    color: #ffffff !important;
    background-color: #007aff !important;
}

#cc-main .cc-btn:hover {
    background-color: #3395ff !important;
}

#cc-main .cc-btn.cc-secondary {
    color: #ffffff !important;
    background-color: #555 !important;
}
#cc-main .cc-btn.cc-secondary:hover {
    background-color: #777 !important;
}

/* Fallback für fehlenden Consent */
.consent-wrapper[data-consent] {
    display: none;
}