/* === Globale Variablen === */
:root {
    --primary-color: #38596D; /* Dunkelblau */
    --secondary-color: #93C01F; /* Grün */
    --accent-color: #FF6B35; /* Neuer Akzentfarbton (Orange) für CTAs */
    --light-primary: #5A7D93; /* Hellere Version der Primärfarbe */
    --dark-primary: #2A4050; /* Dunklere Version der Primärfarbe */
    --white-color: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --text-color: #333;
    --transition-standard: all 0.3s ease;
}

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text-color);
    font-family: 'Figtree', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Hintergrund-Canvas */
#network-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* === Navigation === */
.navbar {
    background-color: rgba(56, 89, 109, 0.95); /* Leicht transparent */
    font-weight: bold;
    padding: 1rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition-standard);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 2rem;
    background-color: rgba(56, 89, 109, 0.98);
}

.navbar .navbar-brand, .navbar-nav .nav-link {
    color: var(--white-color);
    transition: var(--transition-standard);
}

.navbar .navbar-brand:hover, .navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-standard);
}

.navbar-nav .nav-link:hover:after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* === Masthead === */
.masthead {
    position: relative;
    background: linear-gradient(rgba(42, 64, 80, 0.7), rgba(42, 64, 80, 0.7)), url('../assets/img/hero-bg.jpg') center center/cover no-repeat fixed;
    height: 100vh;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding-top: 80px; /* Für die fixierte Navbar */
}

.masthead .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 64, 80, 0.8) 0%, rgba(56, 89, 109, 0.6) 100%);
}

.masthead .container {
    position: relative;
    z-index: 1;
}

.masthead .row {
    align-items: center;
}

.masthead-content {
    max-width: 600px;
}

.masthead .masthead-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.masthead .masthead-subtitle {
    font-size: 1.4rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.masthead-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: var(--transition-standard);
    text-decoration: none;
    margin-right: 1rem;
    border: 2px solid var(--accent-color);
}

.masthead-btn:hover {
    background-color: transparent;
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.masthead-btn.outline:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

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

/* === Cards === */
.card {
    background-color: var(--white-color);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-standard);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--white-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.card-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-text {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.card-link:after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition-standard);
}

.card-link:hover:after {
    margin-left: 10px;
}

/* === Buttons === */
.btn {
    background-color: var(--secondary-color);
    color: var(--white-color);
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-standard);
    border: 2px solid var(--secondary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: var(--primary-color);
}

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

.btn-accent:hover {
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

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

/* === Portfolio Section === */
#portfolio {
    background-color: var(--off-white);
    padding: 100px 0;
}

.portfolio-item {
    margin-bottom: 30px;
}

/* === About Section === */
#about {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-primary) 100%);
    color: var(--white-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#about:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.about-content {
    text-align: left;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.about-content h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-img {
    text-align: center;
}

#about img {
    border-radius: 50%;
    border: 5px solid var(--white-color);
    max-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-standard);
}

#about img:hover {
    transform: scale(1.05);
}

.skills {
    margin-top: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* === Contact Section === */
#contact {
    padding: 100px 0;
    background-color: var(--white-color);
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--white-color);
    font-size: 1.2rem;
}

.contact-text h4 {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
}

.contact-form .form-control {
    border: none;
    border-radius: 0;
    border-bottom: 2px solid var(--light-gray);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    transition: var(--transition-standard);
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.contact-form .form-control::placeholder {
    color: #aaa;
}

.contact-form textarea.form-control {
    min-height: 120px;
}

.contact-form .btn {
    margin-top: 1rem;
}

/* === Footer === */
.footer {
    background-color: var(--dark-primary);
    color: var(--white-color);
    padding: 3rem 0 1rem;
    position: relative;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

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

.footer-logo img {
    height: 50px;
}

.footer-about {
    flex: 0 0 100%;
    max-width: 350px;
    margin-bottom: 2rem;
}

.footer-about p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-links {
    flex: 0 0 100%;
    max-width: 200px;
    margin-bottom: 2rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-standard);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact {
    flex: 0 0 100%;
    max-width: 300px;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white-color);
    margin-right: 10px;
    transition: var(--transition-standard);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

/* === Animationen === */
/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flip-Text Animation */
.flip-animation {
    perspective: 1000px;
}

.flip-animation span {
    display: inline-block;
    transform: rotateX(90deg);
    animation: flipText 1s ease-in-out forwards;
    animation-delay: calc(var(--i) * 0.05s);
    opacity: 0;
}

@keyframes flipText {
    0% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

/* Parallax Scrolling */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Scroll Reveal */
.reveal {
    position: relative;
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
}

.active.fade-bottom {
    animation: fade-bottom 1s ease-in;
}

.active.fade-left {
    animation: fade-left 1s ease-in;
}

.active.fade-right {
    animation: fade-right 1s ease-in;
}

@keyframes fade-bottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-left {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-right {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hover Effekte */
.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* === Responsivität === */
@media (max-width: 992px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .masthead {
        height: auto;
        min-height: 100vh;
    }
    
    .masthead .masthead-title {
        font-size: 2.8rem;
    }
    
    .masthead .masthead-subtitle {
        font-size: 1.2rem;
    }
    
    .footer-content > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .masthead {
        text-align: center;
    }
    
    .masthead .masthead-title {
        font-size: 2.2rem;
    }
    
    .masthead .masthead-subtitle {
        font-size: 1.1rem;
    }
    
    .masthead-btn {
        display: block;
        margin: 0 auto 1rem;
        max-width: 80%;
    }
    
    .about-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .about-content h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .masthead .masthead-title {
        font-size: 1.8rem;
    }
    
    .masthead .masthead-subtitle {
        font-size: 1rem;
        max-width: 90%;
    }
    
    .card {
        margin-bottom: 30px;
    }
}

/* Accessibility in Navbar */
.accessibility-nav {
    display: flex;
    gap: 5px;
    align-items: center;
}

.btn-access {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-access:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Mobile Version */
.accessibility-mobile {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 999;
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 50px;
}

.accessibility-mobile .btn-access {
    background: #0056b3;
    color: white;
}

@media (min-width: 992px) {
    .accessibility-mobile {
        display: none;
    }
}



/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-primary);
    color: var(--white-color);
    padding: 1rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

.cookie-consent.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-text {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

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

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

