/* -----------------------------------------------
   Grundlegende Styles & Variablen
----------------------------------------------- */
:root {
    --primary-color: #497e76; /* Deine Hauptfarbe */
    --primary-dark: #2e635b; /* Dunklere Variante für Hover-Effekte */
    --primary-light: #8bc3bb;
    --secondary-color: #f3f4f6; /* Ein helles Grau */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --max-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -----------------------------------------------
   Smooth Scroll mit Header-Offset
----------------------------------------------- */
html {
    scroll-padding-top: 150px; /* Höhe des Headers (150px) + etwas Luft */
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

/* Kleiner dekorativer Unterstrich für die Überschriften */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* -----------------------------------------------
   Header & Navigation - Logo links, Navigation rechts
----------------------------------------------- */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 150px;
    padding: 20px 20px;
}

/* Logo Styles - Jetzt links */
.logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo-img {
    height: 110px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Navigation - Jetzt rechts */
.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    font-size: 1.2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* -----------------------------------------------
   Hero Bereich
----------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #497e76 0%, #2e635b 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    color: var(--white);
}

.hero .subheadline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* -----------------------------------------------
   Buttons
----------------------------------------------- */
.button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.button-primary {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.button-primary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* -----------------------------------------------
   Leistungen Grid
----------------------------------------------- */
.leistungen {
    background-color: var(--white);
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.leistung-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
    border-top: 4px solid var(--primary-color);
}

.leistung-card:hover {
    transform: scale(1.03);
}

.leistung-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* -----------------------------------------------
   NEU: Projekte Section - Modern & Fresh
----------------------------------------------- */
.projekte {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Gradient Text für extra Freshness */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), #6ab0a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.projekte-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: -2rem;
    margin-bottom: 4rem;
    line-height: 1.6;
}

/* Modernes Grid für Projekte */
.projekte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Projekt Card - Clean & Modern */
.projekt-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(73, 126, 118, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(73, 126, 118, 0.1);
}

.projekt-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(73, 126, 118, 0.25);
    border-color: var(--primary-light);
}

/* Media Bereich mit coolen Platzhaltern */
.projekt-media {
    position: relative;
    overflow: hidden;
}

.projekt-bild-wrapper {
    position: relative;
    width: 100%;
    height: 100%; /* Volle Höhe des Media-Bereichs */
    background: linear-gradient(145deg, var(--secondary-color), #ffffff);
}

.projekt-bild {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 375px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Mockup Elemente für Projekt 1 */
.placeholders {
    background: radial-gradient(circle at 30% 50%, rgba(73, 126, 118, 0.05) 0%, transparent 50%);
}

.mockup-element {
    background: var(--primary-color);
    border-radius: 12px;
    opacity: 0.1;
    transition: all 0.3s ease;
}

.projekt-card:hover .mockup-element {
    opacity: 0.15;
}

.mockup-1 {
    width: 80%;
    height: 30px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 8px;
    animation: slideInLeft 0.5s ease;
}

.mockup-2 {
    width: 60%;
    height: 30px;
    background: linear-gradient(90deg, var(--primary-light), #9fd3cd);
    border-radius: 8px;
    animation: slideInRight 0.6s ease;
}

.mockup-3 {
    width: 70%;
    height: 30px;
    background: linear-gradient(90deg, #9fd3cd, var(--primary-color));
    border-radius: 8px;
    animation: slideInLeft 0.7s ease;
}

/* Mockup für Projekt 2 - Abstrakte Shapes */
.mockup-shape {
    position: absolute;
    background: var(--primary-color);
    opacity: 0.1;
}

.shape-1 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: 20%;
    left: 20%;
    background: radial-gradient(circle, var(--primary-color), transparent);
    animation: pulse 3s infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: 10%;
    right: 10%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    animation: morph 8s infinite;
}

.shape-3 {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    opacity: 0.05;
    animation: rotate 10s linear infinite;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 0.1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 0.1;
    }
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* Overlay mit Tag */
.projekt-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.projekt-tag {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.5);
}

/* Content Bereich - Nimmt restlichen Platz und drückt Footer nach unten */
.projekt-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1; /* Nimmt den verfügbaren Platz */
}

.projekt-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
}

.projekt-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
}

.projekt-jahr {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    padding: 4px 12px;
    background: var(--secondary-color);
    border-radius: 50px;
}

.projekt-beschreibung {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Tech Stack Chips */
.projekt-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.projekt-tech span {
    background: var(--secondary-color);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.projekt-tech span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Projekt Links */
.projekt-links {
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(73, 126, 118, 0.1);
    padding-top: 20px;
    margin-top: auto; /* DAS IST DER TRICK! Drückt den Footer nach unten */
    flex-shrink: 0;
}

.projekt-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.projekt-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.projekt-link:hover {
    color: var(--primary-color);
}

.projekt-link:hover::after {
    width: 100%;
}

.github-link {
    color: var(--text-light);
}

.link-icon {
    transition: transform 0.3s ease;
}

.projekt-link:hover .link-icon {
    transform: translateX(3px) translateY(-3px);
}

/* Alternative Card Styling */
.card-alt .projekt-bild-wrapper {
    background: linear-gradient(135deg, #f8fafc, #eef2f6);
}

/* CTA Bereich */
.projekte-cta {
    text-align: center;
    padding: 60px 0 20px;
}

.projekte-cta p {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 500;
}

.projekte-cta .button {
    font-size: 1.1rem;
    padding: 16px 40px;
    border-radius: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
}

.projekte-cta .button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(73, 126, 118, 0.3);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .projekte-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projekt-header h3 {
        font-size: 1.5rem;
    }
    
    .projekte-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .projekt-content {
        padding: 25px;
    }
    
    .projekte-cta p {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .projekt-tech {
        gap: 6px;
    }
    
    .projekt-tech span {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .projekt-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* -----------------------------------------------
   BACKSTAB - ULTIMATIVE CLEAN VERSION (KEIN RAUM!)
----------------------------------------------- */

.projekt-backstab .projekt-bild-wrapper {
    background: linear-gradient(145deg, #6B4EFF, #4A2FD6);
}

/* Hauptbild - Vollflächig, kein Raum! */
.projekt-backstab .projekt-bild {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.hauptbild-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild wird zugeschnitten, aber füllt den Raum */
    display: block;
    transition: all 0.4s ease;
}

/* Hover-Details - Clean und raumlos */
.detail-screens-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.projekt-card:hover .detail-screens-hover {
    opacity: 1;
    visibility: visible;
}

.detail-screen {
    flex: 0 1 auto;
    width: 35%;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4);
}

.detail-screen:first-child {
    transition-delay: 0.1s;
}

.detail-screen:last-child {
    transition-delay: 0.2s;
}

.projekt-card:hover .detail-screen {
    transform: translateY(0);
}

.detail-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Feature Pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px 0;
}

.feature-pill {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(73, 126, 118, 0.15);
}

/* Tech Stack Clean */
.projekt-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.projekt-tech span {
    background: transparent;
    color: var(--text-light);
    padding: 4px 0;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 400;
    border: none;
    border-right: 1px solid var(--text-light);
    padding-right: 12px;
}

.projekt-tech span:last-child {
    border-right: none;
}

.projekt-tech span:hover {
    background: transparent;
    color: var(--primary-color);
    transform: none;
}

/* Links Clean */
.projekt-links {
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(73, 126, 118, 0.1);
    padding-top: 20px;
}

.projekt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    position: relative;
}

.projekt-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

.projekt-link:hover {
    color: var(--primary-color);
}

.projekt-link:hover::after {
    width: 100%;
}

.link-icon {
    transition: transform 0.2s ease;
}

.projekt-link:hover .link-icon {
    transform: translate(2px, -2px);
}

/* Responsive */
@media (max-width: 768px) {
    .detail-screens-hover {
        gap: 16px;
    }
    
    .detail-screen {
        width: 40%;
    }
    
    .projekt-tech span {
        font-size: 0.75rem;
        padding-right: 8px;
    }
    
    .feature-pill {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .detail-screens-hover {
        flex-direction: column;
        gap: 12px;
    }
    
    .detail-screen {
        width: 70%;
    }
}

/* -----------------------------------------------
   123-DAHEIM - CLEAN VERSION
----------------------------------------------- */

.projekt-daheim .projekt-bild-wrapper {
    background: linear-gradient(145deg, #2C3E50, #1A2634);
}

.projekt-daheim .projekt-bild {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Hauptbild */
.projekt-daheim .hauptbild-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
}

/* Hover-Details - Speziell für Daheim */
.daheim-hover {
    background: rgba(44, 62, 80, 0.85) !important;
    backdrop-filter: blur(4px);
    gap: 30px;
}

.daheim-detail {
    width: auto !important;
    min-width: 120px;
    text-align: center;
    transform: translateY(30px) scale(0.95);
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.detail-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
    display: block;
}

/* Eigene Animation für Daheim */
@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(255,255,255,0.6)); }
}

.projekt-daheim:hover .detail-icon {
    animation: glowPulse 2s infinite;
}

/* Responsive für Daheim */
@media (max-width: 768px) {
    .daheim-hover {
        gap: 15px;
    }
    
    .daheim-detail {
        min-width: 80px;
    }
    
    .detail-icon {
        font-size: 1.8rem;
    }
    
    .detail-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .daheim-hover {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }
    
    .daheim-detail {
        min-width: 70px;
    }
    
    .detail-icon {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }
}

/* -----------------------------------------------
   Moderner Über-mich-Bereich mit Foto
----------------------------------------------- */
.ueber-mich {
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

/* Modernes Layout mit Grid */
.modern-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Foto Container mit coolem Rahmen */
.foto-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foto-rahmen {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Unregelmäßige runde Form */
    overflow: hidden;
    box-shadow: 
        20px 20px 40px rgba(0,0,0,0.1),
        -20px -20px 40px rgba(255,255,255,0.5);
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.foto-rahmen:hover {
    transform: scale(1.02);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.profil-foto {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    filter: grayscale(20%) contrast(105%);
}

.foto-rahmen:hover .profil-foto {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(110%);
}

/* Dekorative Elemente */
.dekor-kreis {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.2;
    z-index: -1;
}

.dekor-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    animation: rotate 20s linear infinite;
}

.dekor-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: -30px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dekor-linie {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle, transparent 30%, var(--primary-light) 70%);
    opacity: 0.05;
    z-index: -2;
}

/* Moderner Bio-Bereich */
.modern-bio {
    text-align: left;
}

.bio-header {
    margin-bottom: 30px;
}

.bio-name {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    margin-top: 50px;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bio-title {
    font-size: 1.3rem;
    color: var(--text-light);
}

.title-highlight {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.title-highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.bio-text {
    margin-bottom: 30px;
}

.bio-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--primary-light);
}

.text-akzent {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.text-akzent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary-light);
    opacity: 0.3;
    z-index: -1;
}

/* Social Icons */
.bio-social {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.3rem;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(73, 126, 118, 0.2);
    background: var(--primary-color);
}

.social-icon:hover span {
    filter: brightness(0) invert(1);
}

/* Moderner Button */
.modern-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modern-button:hover {
    background: var(--primary-color);
    color: white;
    gap: 15px;
    padding-right: 40px;
}

.button-pfeil {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.modern-button:hover .button-pfeil {
    transform: translateX(5px);
}

/* Responsive Anpassungen */
@media (max-width: 968px) {
    .modern-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .foto-container {
        order: -1;
    }
    
    .foto-rahmen {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .modern-bio {
        text-align: center;
    }
    
    .bio-text p {
        text-align: left;
    }
    
    .bio-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .bio-name {
        font-size: 2.2rem;
    }
    
    .bio-title {
        font-size: 1.1rem;
    }
    
    .bio-text p {
        font-size: 1rem;
    }
    
    .dekor-1, .dekor-2 {
        opacity: 0.1;
    }
}

/* -----------------------------------------------
   HALLO EFFEKT - Verbesserte Version
----------------------------------------------- */
.hallo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

.hallo-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(73, 126, 118, 0.2);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.5);
    z-index: 100; /* Höherer z-index */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.4s ease, 
                visibility 0.4s ease;
}

/* Positionierung über CSS-Variablen */
.hallo-item {
    --x: 0px;
    --y: 0px;
}

/* Active State - Sauberes Ein- und Ausblenden */
.foto-container.active .hallo-item {
    opacity: 1;
    visibility: visible;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.3s ease 0.1s, 
                visibility 0.3s ease 0.1s;
    --max-x: 350px;
    --max-y: 300px;
}

/* Verschiedene Stile für Abwechslung - Jetzt mit !important für Konsistenz */
.hallo-item:nth-child(odd) {
    background: var(--primary-color) !important;
    color: white !important;
}

.hallo-item:nth-child(3n) {
    font-size: 1.1rem !important;
    padding: 6px 14px !important;
}

.hallo-item:nth-child(4n) {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    background: white !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Individuelle Verzögerungen für jedes Element */
.hallo-item:nth-child(1) { transition-delay: 0s; }
.hallo-item:nth-child(2) { transition-delay: 0.03s; }
.hallo-item:nth-child(3) { transition-delay: 0.06s; }
.hallo-item:nth-child(4) { transition-delay: 0.09s; }
.hallo-item:nth-child(5) { transition-delay: 0.12s; }
.hallo-item:nth-child(6) { transition-delay: 0.15s; }
.hallo-item:nth-child(7) { transition-delay: 0.18s; }
.hallo-item:nth-child(8) { transition-delay: 0.21s; }
.hallo-item:nth-child(9) { transition-delay: 0.24s; }
.hallo-item:nth-child(10) { transition-delay: 0.27s; }
.hallo-item:nth-child(11) { transition-delay: 0.30s; }
.hallo-item:nth-child(12) { transition-delay: 0.33s; }

.foto-container.active .hallo-item:nth-child(1) { transition-delay: 0s; }
.foto-container.active .hallo-item:nth-child(2) { transition-delay: 0.03s; }
.foto-container.active .hallo-item:nth-child(3) { transition-delay: 0.06s; }
.foto-container.active .hallo-item:nth-child(4) { transition-delay: 0.09s; }
.foto-container.active .hallo-item:nth-child(5) { transition-delay: 0.12s; }
.foto-container.active .hallo-item:nth-child(6) { transition-delay: 0.15s; }
.foto-container.active .hallo-item:nth-child(7) { transition-delay: 0.18s; }
.foto-container.active .hallo-item:nth-child(8) { transition-delay: 0.21s; }
.foto-container.active .hallo-item:nth-child(9) { transition-delay: 0.24s; }
.foto-container.active .hallo-item:nth-child(10) { transition-delay: 0.27s; }
.foto-container.active .hallo-item:nth-child(11) { transition-delay: 0.30s; }
.foto-container.active .hallo-item:nth-child(12) { transition-delay: 0.33s; }

/* Leichtes Wackeln beim Hovern über aktivem Container */
.foto-container.active:hover .hallo-item:hover {
    animation: wackel 0.3s ease infinite;
}

@keyframes wackel {
    0%, 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(0deg); }
    25% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(2deg); }
    75% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(-2deg); }
}

/* -----------------------------------------------
   Mobile Anpassungen für Hallo-Schriftzüge
----------------------------------------------- */
@media (max-width: 768px) {
    .hallo-item {
        font-size: 0.9rem !important;        /* Viel kleiner auf Mobile */
        padding: 4px 10px !important;         /* Kleinere Padding */
        white-space: nowrap;
        transform: translate(-50%, -50%);
    }
    
    /* Noch kleiner für sehr kleine Handys */
    @media (max-width: 480px) {
        .hallo-item {
            font-size: 0.8rem !important;
            padding: 3px 8px !important;
        }
    }
    
    /* Die Ländercodes in Minischrift auch anpassen */
    .hallo-item span {
        font-size: 0.5rem !important;         /* Noch kleiner für Ländercodes */
    }
    
    /* Positionen für Mobile - viel näher am Bild */
    .foto-container.active .hallo-item {
        /* Individuelle Anpassungen über JavaScript oder feste Werte */
        --mobile-faktor: 0.9; /* Halbe Distanz */
    }
}

/* Alternative: Feste kleinere Positionen für Mobile */
@media (max-width: 768px) {
    .hallo-item:nth-child(1) { --x: -190px !important; --y: -90px !important; }
    .hallo-item:nth-child(2) { --x: -200px !important; --y: -40px !important; }
    .hallo-item:nth-child(3) { --x: -160px !important; --y: -230px !important; }
    .hallo-item:nth-child(4) { --x: -190px !important; --y: -160px !important; }
    .hallo-item:nth-child(5) { --x: -155px !important; --y: 90px !important; }
    .hallo-item:nth-child(6) { --x: -40px !important; --y: -270px !important; }
    .hallo-item:nth-child(7) { --x: 45px !important; --y: -215px !important; }
    .hallo-item:nth-child(8) { --x: 165px !important; --y: -175px !important; }
    .hallo-item:nth-child(9) { --x: 170px !important; --y: -110px !important; }
    .hallo-item:nth-child(10) { --x: 140px !important; --y: -60px !important; }
    .hallo-item:nth-child(11) { --x: 180px !important; --y: 50px !important; }
    .hallo-item:nth-child(12) { --x: 140px !important; --y: 110px !important; }
    .hallo-item:nth-child(13) { --x: 30px !important; --y: 150px !important; }
    .hallo-item:nth-child(14) { --x: -130px !important; --y: 180px !important; }
}

/* Extra kleine Handys */
@media (max-width: 480px) {
    .hallo-item:nth-child(1) { --x: -160px !important; --y: -60px !important; }
    .hallo-item:nth-child(2) { --x: -170px !important; --y: -10px !important; }
    .hallo-item:nth-child(3) { --x: -130px !important; --y: -200px !important; }
    .hallo-item:nth-child(4) { --x: -160px !important; --y: -130px !important; }
    .hallo-item:nth-child(5) { --x: -125px !important; --y: 60px !important; }
    .hallo-item:nth-child(6) { --x: -10px !important; --y: -240px !important; }
    .hallo-item:nth-child(7) { --x: 15px !important; --y: -185px !important; }
    .hallo-item:nth-child(8) { --x: 135px !important; --y: -145px !important; }
    .hallo-item:nth-child(9) { --x: 140px !important; --y: -80px !important; }
    .hallo-item:nth-child(10) { --x: 110px !important; --y: -30px !important; }
    .hallo-item:nth-child(11) { --x: 150px !important; --y: 20px !important; }
    .hallo-item:nth-child(12) { --x: 110px !important; --y: 80px !important; }
    .hallo-item:nth-child(13) { --x: 0px !important; --y: 120px !important; }
    .hallo-item:nth-child(14) { --x: -100px !important; --y: 150px !important; }
}

/* -----------------------------------------------
   Kontakt
----------------------------------------------- */
.kontakt {
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9eef5 100%);
}

.kontakt .button {
    font-size: 1.2rem;
    padding: 15px 40px;
    margin: 20px 0;
}

.kontakt .oder {
    color: var(--text-light);
    margin: 10px 0;
}

/* -----------------------------------------------
   Footer
----------------------------------------------- */
.site-footer {
    background-color: var(--text-dark);
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* -----------------------------------------------
   Responsivität - Angepasst
----------------------------------------------- */
@media (max-width: 1024px) {
    .site-header .container {
        height: auto;
        flex-direction: column;
        padding: 20px;
    }
    
    .logo {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .logo-img {
        height: 120px;
    }
    
    .main-nav ul {
        font-size: 1.1rem;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .logo-img {
        height: 100px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 80px;
    }
}