/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary: #00ff88;
    --primary-dim: #00cc6e;
    --dark: #0a0e27;
    --dark-lighter: #14192f;
    --dark-light: #1e2540;
    --text: #e8ecf5;
    --text-dim: #a0a8c0;
    --accent: #ff0066;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Background Effects
   ======================================== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, var(--dark-lighter) 1px, transparent 1px),
        linear-gradient(180deg, var(--dark-lighter) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.bg-gradient {
    position: fixed;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, transparent 70%);
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

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

/* ========================================
   Navigation
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.logo {
    font-family: 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

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

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* ========================================
   Sections
   ======================================== */
section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ========================================
   Home Section
   ======================================== */
#home {
    text-align: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-tag {
    display: inline-block;
    font-family: 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
	margin-top: 0.5rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

h1 {
    /* font-size: clamp(2.5rem, 8vw, 5rem); */
	font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
	padding: 0 1rem; /* ← NEU: Innenabstand */
    background: linear-gradient(135deg, var(--primary) 0%, var(--text) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
	word-break: break-word;  /* ← NEU: Hartes Umbrechen */
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.7s both;
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.service-card {
    background: var(--dark-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ========================================
   Contact Section
   ======================================== */
#kontakt {
    background: var(--dark-lighter);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--dark-light);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* ========================================
   Impressum Section
   ======================================== */
#impressum {
    min-height: auto;
}

.impressum-content {
    max-width: 850px;
    margin: 0 auto;
	text-align: center;
	padding: 0 1.5rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.impressum-content h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
	hyphens: auto;
}

.impressum-content h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

/* ========================================
   Footer
   ======================================== */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */
   
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-top: 1px solid rgba(0, 255, 136, 0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Section Padding - NUR EINMAL! */
    section {
        padding: 7rem 1rem 3rem !important;
    }
    
    /* Fix 1: Hero-Tag Rahmen oben */
    .hero-tag {
        margin-top: 1rem !important;
        padding: 0.6rem 1.5rem !important;
    }
    
    /* Fix 2: Datenschutzerklärung h1 zu breit */
    .impressum-content h1 {
        font-size: 1.8rem !important;
        padding: 0 !important;
        margin: 0 0 1.5rem 0 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
    }
    
    /* Fix 3: Container breiter auf Mobile */
    .impressum-content {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
}