/* style.css - Universelles animiertes Partner-Template v6.2 (FINAL) */

/* ================= CSS-VARIABLEN & GRUNDLAGEN ================= */
:root {
    --bg-dark: #100f0f;
    --bg-soft: #1B1918;
    --text-light: #ECE0BA;
    --text-mid: #a0977d;
    --accent-orange: #DE7D16;
    --accent-glow: #ff9900;
    --accent-green: #6DE828;
    --font-body: 'Roboto', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================= PRELOADER & HINTERGRUND ================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}
.preloader.hide {
    opacity: 0;
    visibility: hidden;
}
@keyframes pulse-preloader {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}
.preloader-icon svg {
    width: 80px;
    height: 80px;
    animation: pulse-preloader 2s infinite ease-in-out;
}
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
@keyframes move-stars { from { transform: translateY(0px); } to { transform: translateY(-1000px); } }
.stars {
    width: 200%;
    height: 200%;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="800"><circle cx="100" cy="100" r="1" fill="%23a0977d"/><circle cx="300" cy="400" r="1.5" fill="%23ECE0BA"/><circle cx="600" cy="150" r="1" fill="%23a0977d"/><circle cx="700" cy="600" r="2" fill="%23ECE0BA"/></svg>');
    animation: move-stars 150s linear infinite;
}
.scanline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(16, 15, 15, 0) 50%, rgba(16, 15, 15, 0.2) 51%);
    background-size: 100% 4px;
    opacity: 0.2;
}

/* ================= HEADER & LAYOUT ================= */
.site-header {
    padding: 20px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-heima svg { height: 45px; width: auto; }
.back-button {
    font-family: var(--font-body);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.back-button:hover {
    background-color: var(--accent-green);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(109, 232, 40, 0.5);
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 5;
    animation: fade-in-up 1s 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes fade-in-up {
    to { opacity: 1; transform: translateY(0); }
}

/* ================= INHALTS-STYLING ================= */
h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.intro-text {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 80%;
    margin-bottom: 2rem;
}
.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, var(--accent-orange), transparent);
    margin: 3rem 0;
}
h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}
p {
    line-height: 1.7;
    color: var(--text-mid);
    margin-bottom: 1em;
}

/* ================= LEISTUNGEN-LISTE STYLING ================= */
.leistungen-liste {
    list-style: none;
    padding: 0;
}
.leistungen-liste li {
    background-color: rgba(27, 25, 24, 0.5);
    border-left: 3px solid var(--accent-orange);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.leistungen-liste li:hover {
    transform: translateX(10px);
    background-color: var(--bg-soft);
}
.leistungen-liste strong {
    display: block;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* ================= FOOTER ================= */
.footer {
    padding: 25px;
    text-align: center;
    color: var(--text-mid);
    border-top: 1px solid rgba(222, 125, 22, 0.1);
    position: relative;
    z-index: 5;
    margin-top: 40px;
}
.footer a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.footer a:hover {
    color: var(--accent-glow);
    text-shadow: 0 0 5px var(--accent-glow);
}

/* ================= FLOATING CALL-TO-ACTION BUTTON (NUR FÜR NEXUS-SEITE) ================= */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 990;
    font-family: var(--font-heading);
    background-color: var(--accent-orange);
    color: var(--bg-dark);
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    transform: translateY(150%);
    /* Start-Animation OHNE Verzögerung */
    animation: slide-in 0.8s ease-out forwards;
}
.floating-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px var(--accent-glow);
}
@keyframes slide-in {
    to {
        transform: translateY(0);
    }
}
.partner-logo {
    max-width: 500px;
    height: auto;
    display: block;
    margin: 15px auto;
}