/* ===== CSS Variables (Custom Properties) ===== */
:root {
    --primary-bg: #0f1419;
    --secondary-bg: #1a1f29;
    --accent-color: #00d4ff;
    --accent-hover: #00b8e6;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c1;
    --card-bg: #1e2530;
    --border-color: #2d3748;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --max-width: 1400px;
    --header-height: 80px;
}

/* ===== CSS Reset & Base Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Accessibility ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: var(--primary-bg);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-speed) ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all var(--transition-speed) ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Main Content Sections ===== */
main {
    min-height: 100vh;
}

section {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--header-height) + 2rem);
}

.home-content {
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.home-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-content h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.home-content h3 span,
.multiple-text {
    color: var(--accent-color);
    font-weight: 600;
}

.home-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ===== Content Sections ===== */
.beschreibung,
.beschreibung-two {
    padding: 4rem 2rem;
    margin: 0 auto;
    max-width: var(--max-width);
}

.beschreibung-berufe {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.beschreibung-berufe h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.beschreibung-berufe h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--accent-color);
    margin: 2rem 0 1rem;
}

.beschreibung-berufe h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 1.5rem 0 0.75rem;
}

.beschreibung-berufe p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.beschreibung-berufe ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.beschreibung-berufe ul li {
    padding: 1rem 0 1rem 2rem;
    position: relative;
    border-left: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.beschreibung-berufe ul li::before {
    content: '▸';
    position: absolute;
    left: 0.5rem;
    color: var(--accent-color);
    font-weight: bold;
}

.beschreibung-berufe a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-speed) ease;
}

.beschreibung-berufe a:hover {
    border-bottom-color: var(--accent-color);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: var(--accent-color);
    color: var(--primary-bg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    margin: 1rem 0;
}

.btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.btn a {
    color: inherit;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
}

.sozial-media {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.sozial-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.5rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.sozial-media a:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

/* ===== Footer ===== */
footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1rem;
    transition: color var(--transition-speed) ease;
    font-size: 0.95rem;
}

footer a:hover {
    color: var(--accent-color);
}

/* ===== Legal Pages Styles ===== */
.impressum,
.datenschutz-content {
    max-width: 900px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 2rem) 2rem 4rem;
}

.impressum h1,
.datenschutz-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.impressum h2,
.datenschutz-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.impressum h3,
.datenschutz-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.impressum p,
.datenschutz-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.impressum ul,
.datenschutz-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.impressum li,
.datenschutz-content li {
    margin-bottom: 0.5rem;
}

.impressum a,
.datenschutz-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.impressum a:hover,
.datenschutz-content a:hover {
    text-decoration: underline;
}

.impressum strong,
.datenschutz-content strong {
    color: var(--text-primary);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--secondary-bg);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform var(--transition-speed) ease;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1.25rem;
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .home {
        padding-top: calc(var(--header-height) + 1rem);
        min-height: calc(100vh - var(--header-height));
    }

    section {
        padding: 3rem 1.5rem;
    }

    footer a {
        display: block;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 60px;
    }

    .navbar {
        padding: 0 1rem;
    }

    .home-content h1 {
        font-size: 2rem;
    }

    .home-content h3 {
        font-size: 1.1rem;
    }

    .beschreibung-berufe h1 {
        font-size: 1.75rem;
    }

    .beschreibung-berufe h3 {
        font-size: 1.4rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .sozial-media,
    footer,
    .menu-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
