/* ===== VARIABLEN & RESET ===== */
:root {
    --primary-blue: #0066b3;
    --primary-dark: #004d88;
    --primary-light: #e6f2ff;
    --accent-color: #00a8ff;
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --white: #ffffff;
    --gray-light: #f8fafc;
    --shadow: 0 10px 30px rgba(0, 102, 179, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 102, 179, 0.2);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

h2:after {
    padding-top: 0 0px;
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-color));
    bottom: -15px;
    left: 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Text auf blauem Hintergrund */
.white-text {
    color: var(--white) !important;
}

.white-text p,
.white-text .hero-subtitle,
.white-text .hero-description,
.white-text .contact-title,
.white-text .contact-content p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 102, 179, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.logo-text {
    font-weight: 800;
}
.logo-image {
    height: 100px;
    width: auto;
    margin-right: 10px;
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

.nav-link:hover:after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 5px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease-in-out;
    z-index: 1001;
    padding: 80px 30px 30px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 1.5rem;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: var(--primary-blue);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-nav-overlay.active {
    display: block;
}

/* ===== HERO SECTION ===== */
.hero {
    color: var(--white);
    padding: 0px 0 0px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/1.00_Greifer.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-blue);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(0, 102, 179, 0.5) 0%, 
                rgba(0, 77, 136, 0.55) 35%, 
                rgba(0, 53, 94, 0.6) 70%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.3s forwards;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--white);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--white);
    font-size: 1.5rem;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* ===== STATS SECTION ===== */
.stats {
    padding: 5000px 0 0px;
    background-color: var(--gray-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    background: var(--white);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.5s forwards;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), rgba(0, 168, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 3.5rem;
}

.feature-content {
    padding: 30px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ===== SERVICES DETAIL SECTION ===== */
.services-detail {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.services-list {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.7s forwards;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-category h4 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.service-category ul {
    list-style: none;
}

.service-category li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.service-category li:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 12px;
    top: 14px;
}

/* ===== ABOUT SECTION MIT KLASSEN ===== */
.about-container {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.about-image-wrapper {
    flex: 0 0 100px;
}

.about-image-frame {
    width: 230px;
    height: 360px;
    border-radius: 0%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,102,179,0.1);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-cards {
    flex: 1;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.about-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,102,179,0.1);
    border: 1px solid rgba(0,102,179,0.1);
}

.about-card-title {
    color: #0066b3;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #e6f2ff;
    padding-bottom: 10px;
}

.about-card-title i {
    color: #00a8ff;
    margin-right: 10px;
}

.about-card-list {
    list-style: none;
    padding: 0;
}

.about-card-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.about-card-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00a8ff;
    font-weight: bold;
}

.about-card-list li:last-child {
    border-bottom: none;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .about-image-wrapper {
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .about-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .about-card {
        width: 100% !important;
    }
}

/* ===== COMPETENCES SECTION ===== */
.competences {
    padding: 100px 0;
    background-color: var(--white);
}

.competences h2 {
    margin-bottom: 50px;
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.competence-tag {
    background-color: var(--primary-light);
    color: var(--primary-blue);
    padding: 20px 15px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    line-height: 1.4;
    word-break: break-word;
    box-shadow: 0 5px 15px rgba(0, 102, 179, 0.05);
}

.competence-tag:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 102, 179, 0.15);
}

/* ===== CONTACT BANNER ===== */
.contact-banner {
    background: #00355e;  /* Dunkles Blau - gleiche Farbe wie im Hero am Ende des Verlaufs */
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}



.contact-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.contact-person h3 {
    color: white !important;
}

.contact-person p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.contact-person {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
}

.contact-person h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.contact-person p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.contact-address,
.contact-phone,
.contact-email {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-address:hover,
.contact-phone:hover,
.contact-email:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.contact-address {
    grid-column: 1 / -1;
}

.contact-icon {
    font-size: 1.8rem;
    color: #1a1a1a;
    min-width: 30px;
}

.contact-address p,
.contact-phone p,
.contact-email p {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0;
}

/* ===== FOOTER ===== */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 80px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-links li i {
    width: 25px;
    color: var(--accent-color);
    margin-right: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.875rem;
    color: #888;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE OPTIMIERUNG (NUR FÜR HANDY) ===== */
@media (max-width: 768px) {
    /* Header */
    .mobile-menu-btn {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    /* Typography */
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    /* Hero */
    .hero {
        padding: 150px 0 100px;
    }
    
    /* Über mich Bereich - Karten untereinander */
    .about .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .about .service-category {
        padding: 25px;
    }
    
    .about .service-category h4 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .about .service-category li {
        padding: 12px 0 12px 30px;
        font-size: 0.95rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-list {
        padding: 30px;
    }
    
    /* Kompetenzen */
    .competences {
        padding: 80px 0;
    }
    
    .competences-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .competence-tag {
        min-height: 90px;
        padding: 15px 12px;
        font-size: 0.95rem;
    }
    
    /* Contact - ALLES untereinander */
    .contact-details {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .contact-address,
    .contact-phone,
    .contact-email {
        width: 100%;
        padding: 15px;
        grid-column: 1 / -1;
    }
    
    .contact-person h3 {
        font-size: 1.5rem;
    }
    
    .contact-icon {
        font-size: 1.5rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .competences-grid {
        grid-template-columns: 1fr;
    }
    
    .services-list {
        padding: 20px;
    }
    
    .service-category li {
        font-size: 0.95rem;
    }
    
    .competence-tag {
        min-height: 80px;
        padding: 12px 10px;
    }
    
    .contact-address,
    .contact-phone,
    .contact-email {
        padding: 12px;
    }
}

/* Touch-Optimierung */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
    }
    
    .competence-tag:hover {
        transform: none;
    }
    
    .about .service-category:hover {
        transform: none;
    }
    
    .contact-item:hover {
        transform: none;
    }
}