/* datenschutz-impressum.css */

/* Farben */
:root {
    --primary: #5E9E3B;
    --text-gray: #555555;
    --sand: #fafaf8;
    --light: #ffffff;
    --light-gray: #BFC0C2;
    --accent-yellow: #F6D100;
    --accent-blue: #1C2F91;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
}

/* BODY */
body {
    font-family: 'Inter', sans-serif;
    background: var(--sand);
    color: var(--text-gray);
    line-height: 1.7;
}

/* Hintergrund-Muster */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(135deg, transparent 0%, transparent 48%, var(--primary) 48%, var(--primary) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 0%, transparent 68%, var(--accent-yellow) 68%, var(--accent-yellow) 72%, transparent 72%),
        linear-gradient(25deg, transparent 0%, transparent 78%, var(--accent-yellow) 78%, var(--accent-yellow) 82%, transparent 82%);
    background-size: 100% 100%;
    opacity: 0.08;
}

/* ===== HAMBURGER BUTTON – OBEN RECHTS MIT ABSTAND ===== */
.hamburger {
    position: fixed;
    top: 20px;        /* Abstand von oben */
    right: 20px;      /* Abstand von rechts */
    width: 50px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.hamburger:hover {
    transform: scale(1.05);
}

.hamburger .line {
    display: block;
    width: 100%;
    height: 4px;
    background: #5E9E3B; /* Grün */
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hover: Grün → Blau */
.hamburger:hover .line {
    background: #1C2F91; /* Blau */
}

/* Aktiv: X-Form (blau) */
.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
    background: #1C2F91;
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
    background: #1C2F91;
}

/* ===== DROPDOWN MENÜ – UNTEN RECHTS VOM HAMBURGER ===== */
.dropdown-menu {
    position: fixed;
    top: 80px;        /* 20px (oben) + 40px (Hamburger-Höhe) + 20px Abstand */
    right: 20px;      /* Gleicher Abstand wie Hamburger */
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 1.5rem 1.8rem;
    min-width: 210px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 1000;
    text-align: left;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Links im Dropdown */
.dropdown-menu a {
    display: block;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    color: #5E9E3B;
    padding-left: 8px;
}

/* ===== RESPONSIVE (kleinere Bildschirme) ===== */
@media (max-width: 480px) {
    .hamburger {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 36px;
    }
    .hamburger .line {
        height: 3.5px;
    }
    .dropdown-menu {
        top: 70px;
        right: 15px;
        min-width: 180px;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
}
 /* ===== DROPDOWN MENÜ ENDE ===== */

/* ===== CONTAINER ===== */
.container {
    max-width: 900px;
    background: var(--light);
    padding: 3rem;
    margin: 100px auto 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary);
}

/* Überschriften */
h1, h2, h3 {
    color: #2a2a2a;
}

h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #888;
    padding-bottom: 12px;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    padding-bottom: 0.8rem;
    color: var(--primary);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-yellow));
}

h3 {
    font-size: 1.3rem;
    margin-top: 1.8rem;
}

/* Text & Listen */
p, ul {
    margin-bottom: 1.2rem;
}

ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--accent-blue);
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
    color: white;
    margin-top: 3rem;
}

footer a {
    color: var(--accent-yellow);
    font-weight: 600;
    margin: 0 0.5rem;
}

footer .separator {
    color: var(--light-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }

    .hamburger {
        width: 44px;
        height: 36px;
        top: 15px;
        right: 15px;
    }
}
