/* ==========================================================================
   1. SCHRIFTARTEN (Absolute Pfade über /fonts/)
   ========================================================================== */
@font-face { font-family: 'Comfortaa'; font-weight: 300; src: url('/fonts/comfortaa-v47-latin-300.woff2') format('woff2'); }
@font-face { font-family: 'Comfortaa'; font-weight: 400; src: url('/fonts/comfortaa-v47-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Comfortaa'; font-weight: 700; src: url('/fonts/comfortaa-v47-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'fredoka'; src: url('/fonts/Fredoka-VariableFont.ttf'); }

/* ==========================================================================
   2. RECHTLICHE UND GLOBALE KONSTANTEN
   ========================================================================== */
:root {
    --COLOR_BG_PAGE: #e5d3b3;
    --COLOR_BG_HEADER: #dfcca2;
    --COLOR_BG_BOX: rgba(227, 212, 182, 0.75);
    --COLOR_BG_FOOTER: #22252a;
    --COLOR_TEXT_MAIN: #2b2b2b;
    --COLOR_TEXT_MUTED: #5d5346;
    --COLOR_TEXT_FOOTER: #a0a5b0;

    --FONT_WEIGHT_HEADLINE: 700;
}

/* ==========================================================================
   3. BASICS & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Comfortaa';
    color: var(--COLOR_TEXT_MAIN);
    background-color: var(--COLOR_BG_PAGE);
    background-image: url('/img/bg.svg');
    background-repeat: repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   4. LAYOUT: HEADER
   ========================================================================== */
.main-header {
    background-color: var(--COLOR_BG_HEADER);
    background: linear-gradient(to bottom, #ebdcb9, #dfcca2);
    border-bottom: 1px solid #c8b793;
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.header-center {
    text-align: center;
}

.brand-title {
    font-family: 'fredoka';
    font-size: 2.2rem;
    font-weight: var(--FONT_WEIGHT_HEADLINE);
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.main-header .subtitle {
    font-size: 0.85rem;
    color: #555;
    margin-top: 4px;
    font-weight: 500;
}

/* ==========================================================================
   5. HAMBURGER-MENÜ-BUTTON & KEYFRAME-ANIMATION (0.5s)
   ========================================================================== */
.menu-toggle {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    width: 52px;
    background: transparent;
    border: 1px solid var(--COLOR_TEXT_MAIN);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
    z-index: 1020;
}

.menu-toggle .bar {
    display: block;
    width: 30px;
    height: 4px;
    background-color: var(--COLOR_TEXT_MAIN);
    border-radius: 2px;
    transform-origin: center center;
}

/* --- VORWÄRTS-ANIMATIONEN --- */
@keyframes open-top {
    0%   { transform: translateY(0px) rotate(0deg); }
    50%  { transform: translateY(10px) rotate(0deg); }
    100% { transform: translateY(10px) rotate(405deg); }
}
@keyframes open-middle {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes open-bottom {
    0%   { transform: translateY(0px) rotate(0deg); }
    50%  { transform: translateY(-10px) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(-405deg); }
}

/* --- RÜCKWÄRTS-ANIMATIONEN --- */
@keyframes close-top {
    0%   { transform: translateY(10px) rotate(405deg); }
    50%  { transform: translateY(10px) rotate(0deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes close-middle {
    0%   { opacity: 0; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes close-bottom {
    0%   { transform: translateY(-10px) rotate(-405deg); }
    50%  { transform: translateY(-10px) rotate(0deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.menu-toggle #bar-top { animation: close-top 0.5s ease-in-out forwards; }
.menu-toggle #bar-middle { animation: close-middle 0.5s ease-in-out forwards; }
.menu-toggle #bar-bottom { animation: close-bottom 0.5s ease-in-out forwards; }

.menu-toggle.is-active #bar-top { animation: open-top 0.5s ease-in-out forwards; }
.menu-toggle.is-active #bar-middle { animation: open-middle 0.5s ease-in-out forwards; }
.menu-toggle.is-active #bar-bottom { animation: open-bottom 0.5s ease-in-out forwards; }

/* ==========================================================================
   6. LAYOUT: MAIN CONTENT AREA & WRAPPER
   ========================================================================== */
.content-wrapper {
    position: absolute;
    top: 10.25vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
}

.main-content {
    background-color: var(--COLOR_BG_BOX);
    width: 100%;
    height: 82vh;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02), 0 4px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #d4c4a5;
    padding: 40px;
    overflow-y: auto;
}

/* ==========================================================================
   7. INHALTS-ELEMENTE
   ========================================================================== */
.section-title {
    font-family: 'fredoka';
    font-size: 2.2rem;
    font-weight: var(--FONT_WEIGHT_HEADLINE);
    color: var(--COLOR_TEXT_MUTED);
    margin-bottom: 20px;
}

.services-grid {
    margin-top: 30px;
}

.service-card h3 {
    font-family: 'fredoka';
    color: var(--COLOR_TEXT_MUTED);
    font-size: 1.2rem;
}

.service-card p {
    color: var(--COLOR_TEXT_MAIN);
}

.cta-section a {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta-section a:hover {
    background-color: #f5ebd5 !important;
}

/* ==========================================================================
   8. LAYOUT: FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--COLOR_BG_FOOTER);
    color: var(--COLOR_TEXT_FOOTER);
    border-top: 1px solid #1a1c20;
    height: 7.5vh;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    width: 100%;
    z-index: 1000;
}

.main-footer a {
    font-family: 'Comfortaa';
    font-weight: 400;
}

.main-footer a:hover {
    text-decoration: underline !important;
    color: #ebdcb9 !important;
}

/* ==========================================================================
   9. SEITEN-MENÜ (SIDE-MENU)
   ========================================================================== */
.side-menu {
    position: fixed;
    top: 10vh;
    right: 0;
    width: 20vw;
    height: 82.5vh;
    background-color: var(--COLOR_BG_FOOTER);
    border-radius: 12px 0 0 12px;
    border: 1px solid #1a1c20;
    border-right: none;
    box-shadow: -5px 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1010;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    
    display: flex;
    flex-direction: column;
}

.nav-content-container {
    width: 100%;
    flex-grow: 1; 
    overflow-y: auto;
    padding: 20px;
}

.nav-content-list {
    list-style: none;
    text-align: center;
}

.nav-content-list li a {
    color: var(--COLOR_TEXT_FOOTER);
    text-decoration: none;
    font-family: 'Comfortaa';
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
    transition: color 0.3s;
}

.nav-content-list li a:hover {
    color: #ebdcb9;
}

.nav-links-container {
    width: 100%;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links-container .menu-nav-list {
    list-style: none;
    text-align: center;
}

.nav-links-container .menu-nav-list li a {
    color: var(--COLOR_TEXT_FOOTER);
    text-decoration: none;
    font-family: 'Comfortaa';
    font-size: 1rem;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links-container .menu-nav-list li a:hover {
    color: #ebdcb9;
}

.side-menu.is-open {
    transform: translateX(0);
}

/* ========================================================
   10. Banner Email kopiert
   ======================================================== */
.banner-hidden {
    position: fixed;
    bottom: -60px; /* Startposition außerhalb */
    left: 50%;
    transform: translateX(-50%);
    background: #2b2b2b;
    color: #ebdcb9;
    padding: 10px 20px;
    border-radius: 20px;
    transition: bottom 0.3s ease-in-out;
    z-index: 2000;
}

.banner-visible {
    bottom: 20px; /* Sichtbare Position */
}

/* ========================================================
   12. RECHTSTEXTE (Spezielle Typografie)
   ======================================================== */
.legal-content {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
}