/* Custom styles beyond Tailwind */

@import url('fonts.css');
@import url('accessibility.css');

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-size: 100% 100%;
    background-attachment: fixed;
}

/* Text Gradients */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    background-size: 100%;
}

/* Glassmorphism Effect */
.glassmorphism {
    background: rgba(23, 25, 35, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Navigation Links */
.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    color: rgb(209, 213, 219);
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    border-radius: 1px;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: rgb(209, 213, 219);
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Buttons */
.btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    color: #ffffff;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.2);
    background: linear-gradient(to right, #4338ca, #6d28d9);
}

/* Availability button variant: same sizing/behavior as .btn-primary but green */

/* Search input removed -- search frontend was removed because site aggregates peer feeds (cached under /cache).
    Kept the main .btn-secondary definition below for other buttons. */

.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.7);
    color: #ffffff;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.05);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(107, 114, 128, 0.6);
}

/* Animation Delays */
.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-500 { animation-delay: 0.5s; }
.animation-delay-700 { animation-delay: 0.7s; }
.animation-delay-900 { animation-delay: 0.9s; }
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-2000 { animation-delay: 2s; }
.delay-1000 { animation-delay: 1s; }
.delay-2000 { animation-delay: 2s; }

/* Background Elements */
.grid-dot-pattern {
    background-size: 25px 25px;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    width: 100%;
    height: 100%;
    /* Entferne absolute Positionierung, da es bereits im HTML als fixed positioniert ist */
}

.blur-circle {
    position: absolute;
    /* Entferne die vw-basierten Größen, da die Positionierung bereits im HTML festgelegt ist */
    width: 500px;
    height: 500px;
    border-radius: 100%;
    filter: blur(150px);
    opacity: 0.5;
    z-index: -1;
}

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 17, 23, 1) 0%, rgba(29, 35, 42, 1) 100%);
    background-size: cover; /* Skaliert den Hintergrund proportional */
    background-position: center center; /* Zentriert den Hintergrund */
    background-repeat: no-repeat; /* Verhindert Kacheln des Hintergrunds */
    padding-top: 0; /* Entferne das obere Padding */
    height: 100vh; /* Setze exakt 100% der Viewport-Höhe */
    min-height: 700px; /* Mindesthöhe für kleinere Screens */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.hero-badge span {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

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

/* Terminal Window Styling */
.terminal-window {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
}

.terminal-header {
    background: #2d333b;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.red { background-color: #ff5f56; }
.terminal-btn.yellow { background-color: #ffbd2e; }
.terminal-btn.green { background-color: #27c93f; }

.terminal-content {
    background: #1e2227;
    color: white;
    position: relative;
}

/* Tech badges */
.tech-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

/* Floating elements */
.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.hero-backdrop {
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    z-index: 5;
}

.tech-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Typing effect */
.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.15em solid #6366f1;
    width: 0;
    animation: typing 2s steps(20, end) forwards,
               blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #6366f1 }
}

/* Typewriter Effect - Verbesserte Version mit responsiven Anpassungen */
.typewriter-container {
    display: inline-block;
    position: relative;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    background-color: #6366f1;
    margin-left: 4px;
    animation: cursor-blink 1s infinite;
    position: relative;
    vertical-align: middle;
    height: 1em;
    top: -0.1em; /* Feine Anpassung der vertikalen Position */
}

@keyframes cursor-blink {
    0%, 40% { opacity: 1; }
    50%, 90% { opacity: 0; }
}

/* Einfache und zuverlässige Gradient-Text Lösung */
.hero-title {
    display: inline-block;
    position: relative;
    animation: hero-title-fade-in 1.2s ease-out;
}

.gradient-text {
    position: relative;
    display: inline-block;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Sehr subtiler Glow-Effekt für den Hero-Titel */
.gradient-primary {
    color: #8b5cf6; /* Schöne Lila-Farbe */
    text-shadow:
        0 0 4px rgba(139, 92, 246, 0.3);
}

.gradient-secondary {
    color: #a855f7; /* Schöne Blau-Lila-Farbe */
    text-shadow:
        0 0 4px rgba(168, 85, 247, 0.3);
}

/* Fade-in Animation für den Titel */
@keyframes hero-title-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtile Puls-Animation für die Gradient-Texte */
@keyframes gradient-pulse {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 20px rgba(99, 102, 241, 0.2));
    }
    50% {
        filter: brightness(1.05) drop-shadow(0 0 30px rgba(99, 102, 241, 0.4));
    }
}

.gradient-text {
    animation: gradient-pulse 4s ease-in-out infinite;
}

/* Spezielle Anpassungen für die Mobilansicht */
@media (max-width: 768px) {
    .typewriter-cursor {
        height: 0.9em;
        top: -0.05em;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Custom text highlighting */
::selection {
    background-color: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* Section Headers */
.section-header {
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    border-radius: 3px;
}

/* About Section Styles */
#about {
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    z-index: 1;
}

.skill-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    transition: all 0.2s;
}

.skill-tag:hover {
    background-color: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.2);
    color: #818cf8;
}

.stat-box {
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.3);
}

/* Code styling */
pre code {
    display: block;
    line-height: 1.5;
    color: #a5b4fc;
}

/* Prose settings for text content */
.prose {
    color: #d1d5db;
    max-width: 65ch;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.75;
}

.prose .lead {
    font-size: 1.25em;
    line-height: 1.6;
    margin-top: 1em;
    margin-bottom: 1em;
    color: #e5e7eb;
}

/* Header & Navigation Fixes */
header {
    height: auto; /* Ensure header takes only necessary height */
}

#mobile-menu {
    top: 100%; /* Position mobile menu right below the header */
    z-index: 49; /* Ensure it's below the header but above content */
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    main {
        padding-top: 7rem; /* More top padding on mobile for the header */
    }
    
    #hero {
        height: 100vh; /* Auch auf Mobilgeräten volle Höhe */
        min-height: 600px; /* Angepasste Mindesthöhe für Mobilgeräte */
        padding-top: 4rem; /* Padding für den Header */
        padding-bottom: 2rem;
    }
    
    .hero-image-container {
        margin-top: 2rem; /* Add space between image and text on mobile */
    }

    .blur-circle {
        width: 300px;
        height: 300px;
        filter: blur(100px);
    }
}

/* Tech Icons im Hero-Bereich */
.tech-icon-card {
    transition: transform 0.3s ease;
}

.tech-icon-card:hover {
    transform: translateY(-5px);
}

/* Tech Icons Container für bessere Responsivität */
.tech-icons-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Terminal-Animation im Hero-Bereich */
.interactive-terminal {
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.terminal-body {
    position: relative;
}

.terminal-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.5) 0%, rgba(124, 58, 237, 0.5) 100%);
    z-index: 10;
}

.command-line {
    white-space: nowrap;
    line-height: 1.5;
}

.response {
    padding-left: 1rem;
    color: #a5b4fc;
    line-height: 1.4;
}

.typing-cursor {
    display: inline-block;
    width: 0.6em;
    height: 1em;
    background-color: #a5b4fc;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Kleinere Tech-Icons unter dem Terminal */
.tech-mini-icon {
    transition: transform 0.3s, background-color 0.3s;
}

.tech-mini-icon:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.1);
}

/* CSS für die Textanimation im Terminal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.command-visible {
    display: block !important;
    animation: fadeInUp 0.5s ease forwards;
}

/* Code Editor im Hero-Bereich */
.code-editor-container {
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.5s ease;
    will-change: transform;
    max-width: 100%;
    width: 100%; /* Ensure full width within container */
    margin: 0 auto; /* Center horizontally */
}

.editor-tabs .tab.active {
    background-color: rgba(17, 24, 39, 0.7);
    color: #fff;
    border-bottom: 2px solid #6366f1;
}

.code-area {
    height: 300px;
    overflow-y: hidden;
}

.line-numbers {
    user-select: none;
    width: 3rem;
}

.line-numbers div {
    line-height: 1.5rem;
}

.code-content {
    line-height: 1.5rem;
    position: relative;
}

.code-line {
    white-space: nowrap;
    height: 1.5rem;
    position: relative;
}

/* Cursor animation */
.code-line:last-child::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 0;
    height: 1.2rem;
    width: 2px;
    background-color: rgba(99, 102, 241, 0.7);
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Tech tags */
.tech-tag {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.4);
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.tech-tag:hover::before {
    left: 100%;
}

/* Wiki Section Styles */
.wiki-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    transition: all 0.2s;
}

.wiki-tag:hover {
    background-color: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.2);
    color: #a5b4fc;
}

.wiki-preview-window {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    will-change: transform, box-shadow;
}

.wiki-preview-window:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

.preview-scrollable-content {
    height: 300px;
}

.recent-article {
    cursor: pointer;
}

.recent-article:hover i {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

/* Wiki preview image - add a placeholder until you create one */
.preview-scrollable-content img {
    min-height: 300px;
    background-color: #1a1e2a; /* Fallback color if image doesn't load */
}

/* Wiki Section Styles - komplett überarbeitet */
.wiki-topic-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    background-color: rgba(255,255,255,0.06);
    border-radius: 999px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    transition: all 0.2s;
}

.wiki-category-card {
    transition: all 0.3s ease;
}

.wiki-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.3);
}

.wiki-article {
    position: relative;
    transition: all 0.2s ease;
}

.wiki-article:hover .article-arrow {
    transform: translateX(3px);
    color: var(--tw-text-primary-400);
}

.article-arrow {
    transition: transform 0.2s ease, color 0.2s ease;
}

.article-icon {
    transition: all 0.2s ease;
}

.wiki-article:hover .article-icon {
    transform: scale(1.05);
}

/* Media Queries für Wiki-Bereich */
@media (max-width: 640px) {
    .wiki-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wiki-article {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wiki-article .article-icon {
        margin-bottom: 10px;
    }
    
    .wiki-article .article-arrow {
        display: none;
    }
}

/* Projektkarten-Styling */
.project-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.4);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.github-link {
    transition: all 0.3s ease;
}

.github-link:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Animation für projektbezogene Icons */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.project-card:hover i.fab,
.project-card:hover i.fas {
    animation: float-slow 3s ease-in-out infinite;
}

/* Größere Icons in der Projektvorschau */
.project-card .fa-hdd,
.project-card .fa-apple {
    filter: blur(1px);
    opacity: 0.3;
    transform: scale(1);
    transition: all 0.4s ease;
}

.project-card:hover .fa-hdd,
.project-card:hover .fa-apple {
    filter: blur(0);
    opacity: 0.4;
    transform: scale(1.1);
}

/* Feature-Liste styling */
.project-card ul li {
    position: relative;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-card ul li i {
    opacity: 0.8;
}

.project-card:hover ul li i {
    opacity: 1;
}

/* Media Queries für die Projektkarten */
@media (max-width: 640px) {
    .project-card {
        margin-bottom: 1.5rem;
    }
}

/* Services Section Styles */
.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease-out;
}

.service-card .service-icon {
    position: relative;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

.service-card .service-icon i {
    transition: all 0.3s ease;
}

.service-card ul {
    margin-top: auto;
}

.service-card ul li i {
    transition: all 0.2s ease;
}

.service-card:hover ul li i {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .service-card {
        height: auto;
    }
}

/* Accordion/Legal Section Styles */
#impressum-content, 
#nutzungsbedingungen-content, 
#datenschutz-content {
    transition: max-height 0.4s ease;
}

/* Accordion content spacing */
.accordion-content {
    padding-top: 1.5rem !important; /* Force top padding even if overridden */
}

/* Verbesserte Abstände für Accordion-Inhalte */
#legal .prose h3:first-of-type,
#legal .prose h4:first-of-type {
    margin-top: 0.5rem;
}

#legal .prose p + h4,
#legal .prose p + h3 {
    margin-top: 2rem;
}

/* Rotate icon animation */
.rotate-180 {
    transform: rotate(180deg);
}

/* Media Queries für bessere Reaktivität */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px; /* Larger container on very wide screens */
    }
    
    .code-editor-container {
        max-width: 650px; /* Larger editor on wide screens */
    }
}

/* Partner Logos Styles - Verbessert für einheitliche Sichtbarkeit */
.partner-logo {
    transition: all 0.3s ease;
}

.partner-logo .h-16 {
    opacity: 0.8; /* Höhere Grundopazität für alle Logos */
    filter: grayscale(70%) brightness(1.3); /* Optimierte Werte für bessere Sichtbarkeit dunkler Logos */
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.partner-logo:hover .h-16 {
    opacity: 1;
    filter: grayscale(0) brightness(1.3); /* Keine Graustufung und erhöhte Helligkeit beim Hover */
}

/* Styling für die Kontakt-Sektion */
#contact .glassmorphism {
    transition: transform 0.3s, box-shadow 0.3s;
}

#contact .glassmorphism:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Modal-Styling für Datenschutz und Nutzungsbedingungen */
#nutzungsbedingungen.modal-open,
#datenschutz.modal-open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#nutzungsbedingungen.modal-open .glassmorphism,
#datenschutz.modal-open .glassmorphism {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-in-out;
}

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

.modal-close {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-active {
    overflow: hidden;
}

/* Responsive Anpassungen für die Kontaktsektion */
@media (max-width: 768px) {
    #contact .grid {
        gap: 2rem;
    }
}

/* Entfernung der Blog-Style-Sektion */
/* Alle anderen Stile bleiben unverändert */

/* Scroll-triggered animations */
.reveal-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-from-left {
  transform: translateX(-30px);
}
.reveal-from-right {
  transform: translateX(30px);
}
.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Typewriter Cursor Animation - verbessert */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.4em;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    margin-left: 3px;
    vertical-align: baseline;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    /* Animation standardmäßig deaktiviert */
    animation: none;
    transition: all 0.2s ease;
}

.typewriter-cursor.blink {
    animation: typewriter-blink 1.2s ease-in-out infinite;
}

@keyframes typewriter-blink {
    0%, 60% { 
        opacity: 1; 
        transform: scaleY(1);
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    }
    61%, 100% { 
        opacity: 0.3; 
        transform: scaleY(0.8);
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.2);
    }
}

/* Zusätzliche Typewriter-Effekte */
.typewriter-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 8px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.typewriter-container:hover::before {
    opacity: 1;
}

/* Letter-Spacing Animation für besseren Tipp-Effekt */
.typewriter-gradient-primary,
.typewriter-gradient-secondary {
    letter-spacing: 0.5px;
    transition: letter-spacing 0.2s ease;
}

.typewriter-container:hover .typewriter-gradient-primary,
.typewriter-container:hover .typewriter-gradient-secondary {
    letter-spacing: 1px;
}

/* Typewriter Container Fade-In Animation */
@keyframes typewriter-fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.typewriter-container {
    animation: typewriter-fade-in 0.8s ease-out;
}