@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local('Plus Jakarta Sans Light'),
         url('../fonts/PlusJakartaSans-Light.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Plus Jakarta Sans Regular'),
         url('../fonts/PlusJakartaSans-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Plus Jakarta Sans Medium'),
         url('../fonts/PlusJakartaSans-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Plus Jakarta Sans SemiBold'),
         url('../fonts/PlusJakartaSans-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Plus Jakarta Sans Bold'),
         url('../fonts/PlusJakartaSans-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: local('Plus Jakarta Sans ExtraBold'),
         url('../fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('JetBrains Mono Regular'),
         url('../fonts/JetBrainsMono-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('JetBrains Mono Medium'),
         url('../fonts/JetBrainsMono-Medium.woff2') format('woff2');
}

:root {
    --primary: #ffffff;
    --secondary: #f8fafb;
    --accent: #2BB8D6;
    --accent-light: #e8f7fa;
    --accent-dark: #1a9bb8;
    --accent-glow: rgba(43, 184, 214, 0.25);
    --text: #1a2b3c;
    --text-muted: #5a6d7e;
    --text-light: #8295a6;
    --surface: #ffffff;
    --border: rgba(43, 184, 214, 0.2);
    --border-light: #e5eaef;
    --gradient-1: linear-gradient(135deg, #2BB8D6 0%, #1a9bb8 50%, #0d7a94 100%);
    --gradient-2: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(43, 184, 214, 0.12), transparent);
    --shadow-sm: 0 2px 8px rgba(26, 43, 60, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 43, 60, 0.08);
    --shadow-lg: 0 8px 40px rgba(26, 43, 60, 0.12);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', "SF Mono", Monaco, "Cascadia Mono", monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

body.legal-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.redirect-page {
    background: var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

/* ── Navigation ── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.legal-page .nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: none;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.6rem 2rem;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    transition: height 0.4s;
}

body.legal-page .logo img {
    height: 40px;
    transition: none;
}

.nav.scrolled .logo img {
    height: 38px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    display: block;
}

/* ── Buttons ── */

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn svg {
    transition: transform 0.3s;
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    border: none;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px var(--accent-glow);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* ── Hero (Startseite) ── */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
    background: var(--secondary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        var(--gradient-hero),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(43, 184, 214, 0.06), transparent),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(43, 184, 214, 0.04), transparent),
        var(--secondary);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(43, 184, 214, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 184, 214, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
    opacity: 0.5;
}

.hero-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 184, 214, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    top: auto;
    bottom: -150px;
    left: -150px;
    right: auto;
    animation-delay: -4s;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text);
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

/* ── Sections (Startseite) ── */

section {
    padding: 8rem 2rem;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* ── Services (Startseite) ── */

.services {
    background: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.service-title-wrap h3 {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: var(--text);
}

.service-title-wrap .service-subtitle {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.service-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    transition: gap 0.3s;
}

.service-cta:hover {
    gap: 0.85rem;
}

.service-cta svg {
    transition: transform 0.3s;
}

.service-cta:hover svg {
    transform: translateX(4px);
}

/* ── Parallax / Stats (Startseite) ── */

.parallax-section {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-1);
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -50%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    will-change: transform;
}

.parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 900px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.75rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 500;
}

/* ── About (Startseite) ── */

.about {
    background: var(--secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-shape {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a2b3c 0%, #2a3d4e 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-shape::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(from 0deg, transparent, var(--accent), transparent 30%);
    animation: rotate 10s linear infinite;
    opacity: 0.2;
}

.about-code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #a0b3c4;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    text-align: left;
    line-height: 2;
}

.about-code .keyword { color: #ff79c6; }
.about-code .string { color: #50fa7b; }
.about-code .comment { color: #6272a4; }
.about-code .type { color: var(--accent-light); }

.about-content h3 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-list li::before {
    content: '→';
    color: var(--accent);
    font-weight: bold;
}

/* ── Contact (Startseite) ── */

.contact {
    background: var(--primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-main h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text);
}

.contact-main > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.contact-cta-box {
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.contact-cta-box h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--accent-dark);
    font-weight: 700;
}

.contact-cta-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--text);
}

.contact-value a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-value a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--accent);
}

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ── Footer ── */

.footer {
    background: var(--secondary);
    border-top: 1px solid var(--border-light);
    padding: 4rem 2rem 2rem;
}

body.legal-page .footer {
    padding: 2rem;
    margin-top: auto;
}

body.redirect-page .footer {
    position: absolute;
    bottom: 2rem;
    padding: 0;
    background: none;
    border: none;
    font-size: 0.85rem;
    color: var(--text-light);
}

body.redirect-page .footer a {
    color: var(--accent);
    text-decoration: none;
}

body.redirect-page .footer a:hover {
    text-decoration: underline;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

body.legal-page .footer-container {
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo img {
    height: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-made-with {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-made-with .heart {
    color: #e25555;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ── Legal-Seiten (Impressum / Datenschutz) ── */

main {
    flex: 1;
    padding: 8rem 2rem 4rem;
    background: var(--secondary);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: gap 0.3s;
}

.back-link:hover {
    gap: 0.75rem;
}

.back-link svg {
    transition: transform 0.3s;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

.legal-content h2 {
    font-size: 1.35rem;
    color: var(--accent-dark);
    margin: 2.5rem 0 1rem;
    font-weight: 600;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.9;
}

.legal-content ul {
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.legal-content address {
    font-style: normal;
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

.legal-content a:hover {
    opacity: 0.8;
}

.legal-content strong {
    color: var(--text);
    font-weight: 600;
}

.update-notice {
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 3rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ── Weiterleitungsseite ── */

body.redirect-page .logo {
    margin-bottom: 2.5rem;
}

body.redirect-page .logo img {
    height: 64px;
    width: auto;
    transition: none;
}

body.redirect-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

body.redirect-page p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.container {
    max-width: 480px;
    animation: fadeIn 0.8s ease-out;
}

.redirect-notice {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.redirect-notice span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 1.5s infinite;
}

/* ── Animationen ── */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

/* ── Scroll-Reveal ── */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-wrapper,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        order: -1;
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

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

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

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

    section {
        padding: 5rem 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    main {
        padding: 6rem 1rem 3rem;
    }

    .content-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    body.legal-page .footer-container {
        flex-direction: column;
        text-align: center;
    }

    body.redirect-page .logo img {
        height: 52px;
    }
}

@media (max-width: 480px) {
    body.redirect-page h1 {
        font-size: 1.5rem;
    }

    body.redirect-page p {
        font-size: 1rem;
    }

    body.redirect-page .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}