/* 
============================================================================
   LEONARD SALTZWEDEL - PORTFOLIO DESIGN SYSTEM & CSS STYLESHEET
============================================================================
   Inhaltsverzeichnis:
   1. CSS RESET & GLOBAL STYLES
   2. COLOR PALETTE & VARIABLES
   3. TYPOGRAPHY & UTILITIES
   4. LAYOUT COMPONENTS & EFFECTS (Glassmorphism, Hover-Scales)
   5. DEKORATIVE STRUKTUREN (Neon Background Waves)
   6. HEADER & FLOATING NAVIGATION (Desktop & Mobil)
   7. SPECIFIC SECTIONS
      - Hero Section (Startseite)
      - About / Profile Sektion
      - Portfolio / Referenzen Grid Sektion
      - Contact Sektion (Formular)
      - Footer
      - SPA Subpages (Impressum, Datenschutz)
   8. RESPONSIVE DESIGN (Media Queries)
============================================================================ 
*/

/* ==========================================================================
   1. COLOR PALETTE & VARIABLES
   ========================================================================== */
:root {
    /* Brand Colors */
    --brand-light: #ffffff;
    --brand-dark: #1d1d1f;
    --brand-accent: #00ffff;
    --brand-dark-blue: #0b2c54;
    
    /* Slate Scale (Tailwind Palette mimicking) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

/* ==========================================================================
   2. CSS RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Kein blaues Aufleuchten beim Antippen auf Mobilgeräten. */
    -webkit-tap-highlight-color: transparent;
}

body {
    /* Systemschriften des jeweiligen Geräts (kein Self-Hosting, kein CDN). */
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--brand-light);
    color: var(--brand-dark);
    letter-spacing: -0.02em;
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

::selection {
    background-color: var(--brand-accent);
    color: #000;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar { 
    width: 6px; 
}
::-webkit-scrollbar-track { 
    background: #ffffff; 
}
::-webkit-scrollbar-thumb { 
    background: #1d1d1f; 
    border-radius: 4px; 
}
::-webkit-scrollbar-thumb:hover { 
    background: var(--brand-accent); 
}

/* ==========================================================================
   3. TYPOGRAPHY & UTILITIES
   ========================================================================== */
.letter-spacing-tight { letter-spacing: -0.035em; }
.letter-spacing-wide { letter-spacing: 0.12em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.font-light { font-weight: 300; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.hidden { display: none !important; }

/* Responsive Category & Title Classes (SEO-Friendly) */
.portfolio-category-title {
    font-size: 1.15rem; /* Einzeilig auf Mobilgeräten */
}

.contact-form-title {
    font-size: 1.4rem; /* Einzeilig auf Mobilgeräten */
    margin-bottom: 1.25rem;
}

/* Margin Utility Classes */
.margin-b-1 { margin-bottom: 0.25rem !important; }
.margin-b-2 { margin-bottom: 0.5rem !important; }
.margin-b-4 { margin-bottom: 1rem !important; }

/* Layout Containers */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }

/* Flexbox Helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ==========================================================================
   4. LAYOUT COMPONENTS & EFFECTS
   ========================================================================== */

/* Liquid Glass Cards */
.liquid-glass {
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Liquid Glass Nav Items */
.liquid-glass-nav-item {
    background: rgba(0, 0, 0, 0);
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0.5rem 1rem; 
    border-radius: 9999px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: var(--slate-900);
}

.liquid-glass-nav-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    color: var(--brand-dark);
}

/* Buttons & Animations */
.hover-scale {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-scale:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dark-shine-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--slate-900);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem; 
    border-radius: 9999px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

.dark-shine-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -150%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.6), transparent);
    transition: all 0.6s ease;
}

.dark-shine-btn:hover::before { left: 150%; }

.dark-shine-btn:hover {
    background-color: #1e293b;
    color: #fff;
}

.slate-btn {
    background-color: var(--slate-900);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem; 
    border-radius: 9999px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    transition: all 0.3s ease;
}

.slate-btn:hover {
    background-color: #1e293b;
    color: #fff;
}

/* Intersection Observer Animations */
.reveal-element {
    opacity: 0; 
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* Wort-für-Wort-Einblendung großer Überschriften: jedes Wort steigt von unten
   herein, zeitlich gestaffelt (transition-delay wird per JS pro Wort gesetzt).
   Bei prefers-reduced-motion bleibt der Text statisch (JS splittet dann nicht). */
.heading-anim .hw {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5em);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.heading-anim.active .hw {
    opacity: 1;
    transform: translateY(0);
}

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

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

/* ==========================================================================
   5. DEKORATIVE STRUKTUREN
   ========================================================================== */
.wave-pattern-neon {
    position: absolute; inset: 0; opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg width='1440' height='400' viewBox='0 0 1440 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 200C240 120 480 280 720 200C960 120 1200 280 1440 200' stroke='%2300ffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 230C240 150 480 310 720 230C960 150 1200 310 1440 230' stroke='rgba(0,255,255,0.2)' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 260C240 180 480 340 720 260C960 180 1200 340 1440 260' stroke='rgba(0,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 1440px 400px;
    background-repeat: repeat;
    animation: waveMove 30s linear infinite;
    pointer-events: none; z-index: 0;
}

@keyframes waveMove {
    0% { background-position: 0px 50%; }
    100% { background-position: 1440px 50%; }
}

/* ==========================================================================
   6. HEADER & FLOATING NAVIGATION
   ========================================================================== */

/* Kopfzeile (Top-Bar): fixe Leiste ganz oben mit dem Sprachumschalter.
   Klappt beim Scrollen nach oben weg (Klasse .hidden-top-bar). */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1.25rem;
    z-index: 49;
    /* Transparentes Glas im Dunkelblau des Kontakt-Buttons (--slate-900 = #0f172a). */
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
}

.top-bar.hidden-top-bar {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.fixed-header-wrapper {
    position: fixed;
    top: 2.75rem;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    pointer-events: none;
    width: 100%;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Beim Scrollen rückt der Header in den frei gewordenen Platz nach oben. */
body.nav-collapsed .fixed-header-wrapper {
    top: 0.75rem;
}

.main-header {
    width: 100%;
    max-width: 64rem;
    height: 4rem;
    padding: 0 1rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    pointer-events: auto;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.main-header.scrolled {
    border-color: rgba(0, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 15px rgba(0, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.8);
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-900);
    text-decoration: none;
    cursor: pointer;
}

.header-logo-dot {
    color: var(--slate-900);
    font-weight: 800;
    font-size: 1.5rem;
}

.desktop-nav {
    display: none;
    justify-content: center;
    gap: 1rem;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.desktop-btn {
    display: none;
}

/* Sprachumschalter (DE/EN) */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    pointer-events: auto;
}

.lang-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    color: #000;
    background-color: var(--brand-accent);
}

.lang-separator {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    user-select: none;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--slate-900);
    margin-left: auto;
}

/* Mobile Dropdown Wrapper */
.mobile-menu-wrapper {
    position: fixed;
    top: 7.25rem;
    left: 1rem;
    right: 1rem;
    z-index: 50;
    border-radius: 1.5rem;
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--brand-accent);
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform-origin: top;
    transition: all 0.3s ease;
}

/* Bei eingeklappter Kopfzeile rückt auch das Mobil-Menü nach oben mit. */
body.nav-collapsed .mobile-menu-wrapper {
    top: 5.5rem;
}

.mobile-menu-wrapper.hidden {
    opacity: 0;
    transform: scaleY(0.95);
    pointer-events: none;
}

.mobile-menu-wrapper a {
    display: block;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--slate-900);
    text-align: center;
    margin-bottom: 0.5rem;
}

.mobile-menu-wrapper a:hover {
    background-color: rgba(0, 255, 255, 0.1);
}

.mobile-menu-wrapper a.btn-mobile {
    background-color: var(--slate-900);
    color: #fff;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ==========================================================================
   7. SPECIFIC SECTIONS
   ========================================================================== */

/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center; /* Vertikal zentriert */
    justify-content: center;
    background-color: var(--slate-900);
    background-size: cover;
    background-position: center 30%; /* Setzt Fokuspunkt bei Handys leicht nach oben */
    background-repeat: no-repeat;
    border-bottom: 3px solid var(--brand-accent); /* Türkisfarbene Kantenlinie */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: transparent; /* Entfernte Abdunkelung für maximale Bildqualität */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    margin-top: 4rem;
    padding: 0 1rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin-bottom: 0.5rem; /* Margins an Design angepasst */
}

.hero-subnav-container {
    margin-top: 3rem;
}

.hero-subnav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

.hero-subnav-link span {
    transition: color 0.3s ease;
}

.hero-subnav-link:hover span {
    color: var(--brand-accent);
}

.hero-subnav-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* --- About / Profile Section --- */
.about-wrapper {
    position: relative;
    background-image: url('images/hintergrundbild-webseite.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.py-section-about {
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.about-intro {
    position: relative;
    z-index: 10;
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about-img-wrapper {
    width: 8rem;
    height: 8rem;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.about-card-new {
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    border-color: var(--brand-accent) !important;
}

.gmbh-btn {
    justify-content: flex-start !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}
.gmbh-btn:hover {
    transform: scale(1.04) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* --- Portfolio / Referenzen Section --- */
.portfolio-wrapper {
    position: relative;
    padding: 4rem 0;
    background-color: #fff;
}

.portfolio-header {
    margin-bottom: 2.5rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-900);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1;
    margin-top: 0.5rem;
}

.title-underline {
    height: 3px;
    width: 5rem;
    background-color: var(--brand-accent);
    margin-top: 1rem;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten Standard auf Mobilgeräten */
    gap: 1rem;
    align-items: stretch;
}

.portfolio-card {
    border-radius: 1rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.portfolio-card:hover {
    border-color: var(--brand-accent);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.15), 0 0 15px rgba(0, 255, 255, 0.25);
    transform: translateY(-4px);
}

.portfolio-image-container {
    background-color: var(--brand-light);
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 4 / 3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-100);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem; /* Kompaktes Padding für Logos auf Mobilgeräten */
    filter: grayscale(0%); /* Mobil standardmäßig farbig */
    transition: all 0.5s ease;
}

.portfolio-image-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
}

.portfolio-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--slate-900);
}

.portfolio-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Klick-zu-Laden Platzhalter für YouTube (lädt das Video erst nach Klick) */
.video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background-color: var(--slate-900);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-facade-play {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.video-facade-play::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-left: 0.35rem;
    border-style: solid;
    border-width: 0.65rem 0 0.65rem 1.1rem;
    border-color: transparent transparent transparent #ffffff;
}

.video-facade:hover .video-facade-play,
.video-facade:focus-visible .video-facade-play {
    transform: scale(1.08);
    background-color: var(--brand-accent);
}

.portfolio-content {
    padding: 0 0.25rem 0.25rem 0.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.25rem;
}

.portfolio-text {
    font-size: 0.75rem;
    color: var(--slate-900);
    font-weight: 300;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-dark);
    padding-top: 0.25rem;
    padding-bottom: 0.125rem;
    border-bottom: 2px solid var(--brand-accent);
    margin-top: auto;
    align-self: flex-start;
}

.portfolio-link:hover {
    color: var(--brand-accent);
}

/* --- Contact Section --- */
.contact-wrapper {
    position: relative;
    background-image: url('images/hintergrundbild-webseite.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.py-section-contact {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.contact-container-new {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
}

.contact-form-new {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--slate-900);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    margin-left: 0.25rem;
}

.form-input {
    width: 100%;
    background-color: var(--slate-50);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: var(--slate-900);
    border: 1px solid var(--slate-200);
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus {
    outline: none;
    border-color: var(--slate-400);
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05), 0 0 0 1px var(--slate-400);
    transform: translateY(-1px);
}

/* --- Footer Section --- */
.footer {
    background-color: var(--slate-900);
    color: #fff;
    padding: 2.5rem 0;
    position: relative;
    z-index: 10;
    border-top: 4px solid var(--brand-accent);
}

/* --- SPA Subpage Views --- */
.view-container {
    min-height: 100vh;
    /* Oberer Abstand muss den schwebenden Header (bis ~6.75rem) freihalten. */
    padding: 8rem 1rem 4rem 1rem;
    background-color: #fff;
}

.page-card {
    padding: 1.25rem;
    border-radius: 1.5rem;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Mobile specific header adjustments */
@media (max-width: 767px) {
    .main-header {
        /* Mobile: Zentriertes Logo, Menu Button rechts */
        grid-template-columns: 1fr auto 1fr; 
    }
    .header-logo {
        grid-column: 2;
        justify-content: center;
    }
    .mobile-menu-btn {
        grid-column: 3;
    }
    
    .py-section-about {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }
    .portfolio-wrapper {
        padding: 2.5rem 0;
    }
    .py-section-contact {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Small devices (sm, min-width: 640px) */
@media (min-width: 640px) {
    .hero-title { font-size: 3rem; }
    
    .portfolio-card { 
        border-radius: 1.5rem; 
        padding: 1rem; 
        gap: 1rem; 
    }
    .portfolio-image-container { 
        border-radius: 1rem; 
    }
    .portfolio-img { 
        padding: 2.5rem; 
    }
    .portfolio-content { 
        padding: 0 0.5rem 0.5rem 0.5rem; 
    }
    .portfolio-title { 
        font-size: 1.125rem; 
        margin-bottom: 0.5rem; 
    }
    .portfolio-text { 
        font-size: 0.875rem; 
        margin-bottom: 0.5rem; 
        line-height: 1.5; 
    }
    .portfolio-link { 
        font-size: 0.75rem; 
        padding-top: 0.5rem; 
        padding-bottom: 0.25rem; 
    }
    
    .section-title { font-size: 2.25rem; }
    .page-card { padding: 2rem; }
}

/* Medium devices (md, min-width: 768px) */
@media (min-width: 768px) {
    .fixed-header-wrapper {
        top: 3rem;
        padding: 0 1.5rem;
    }
    body.nav-collapsed .fixed-header-wrapper {
        top: 1.5rem;
    }
    
    .main-header { 
        padding: 0 2.5rem; 
        height: 4.5rem; 
        width: max-content;
        gap: 3rem;
        margin: 0 auto;
        /* Desktop: Logo, Nav, CTA Button */
        grid-template-columns: auto auto auto;
    }
    
    .header-logo { grid-column: 1; justify-content: flex-start; }
    .desktop-nav { display: flex; }
    .desktop-btn { display: inline-flex; }
    .mobile-menu-btn { display: none; }
    
    .hero-section {
        min-height: 85vh;
        align-items: center; /* Vertikal zentriert auf Desktop */
        padding-bottom: 0;
        background-position: center 30%;
    }
    
    .hero-content {
        margin-top: 8rem;
    }
    
    .hero-title { font-size: 4.5rem; }
    
    .portfolio-wrapper { padding: 6rem 0; }
    .portfolio-header { margin-bottom: 4rem; }
    .section-title { font-size: 3rem; }
    
    /* Category Title overrides for Desktop */
    .portfolio-category-title {
        font-size: 1.5rem;
    }
    
    .contact-form-title {
        font-size: 2.25rem;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-intro {
        flex-direction: row;
        padding: 3.5rem;
        gap: 3rem;
        text-align: left;
    }
    
    .about-text {
        text-align: left;
    }
    
    .about-img-wrapper {
        width: 12rem;
        height: 12rem;
    }

    .view-container {
        padding: 9.5rem 2rem 6rem 2rem;
    }

    /* Grayscale transition only for Desktop Hover */
    .portfolio-img {
        filter: grayscale(100%);
    }
    .portfolio-card:hover .portfolio-img {
        transform: scale(1.08);
        filter: grayscale(0%);
    }

    /* Centering Instagram button vertically relative to the left card's 3 buttons */
    .about-instagram-wrapper {
        margin-top: auto;
        margin-bottom: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
    }
    .about-card-new:has(.about-instagram-wrapper) .about-card-paragraph {
        flex-grow: 0;
    }
}

/* Large devices (lg, min-width: 1024px) */
@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   9. MIGRATED STYLES FOR CLEAN HTML & LAYOUT REFACTORING
   ========================================================================== */

/* About Section */
.about-card-title {
    font-weight: 700;
    letter-spacing: -0.025em;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--slate-900);
}

.about-card-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate-400);
    margin-bottom: 1rem;
}

.about-instagram-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: auto;
}

.about-instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    border: 1px solid rgba(0,0,0,0.1);
}

.gmbh-btn-solutions {
    width: 100%;
    background-color: var(--slate-800) !important;
    color: #ffffff !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
}

.gmbh-btn-solutions:hover {
    background-color: #000000 !important;
}

/* Portfolio Section */
.portfolio-grid-spacing {
    margin-bottom: 4rem;
}

.portfolio-img-rounded {
    border-radius: 50%;
}

/* Contact Section */
.contact-container-flex {
    z-index: 10;
    display: flex;
    justify-content: center;
}

.contact-form-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form-description {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--slate-900);
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
}

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

.form-submit-container {
    margin-top: 1.5rem;
}

.btn-full-width {
    width: 100%;
}

/* Impressum & Datenschutz Legal SPA Pages */
.legal-back-link {
    margin-bottom: 1.5rem;
    border-bottom: none !important;
}

.legal-title-underline {
    margin-bottom: 2rem;
}

.legal-content-grid {
    gap: 2rem;
    font-size: 0.875rem;
}

.legal-email-link {
    padding: 0 !important;
    border: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.legal-paragraph-spacing {
    margin-top: 1rem;
}

.legal-scroll-box {
    font-size: 0.875rem;
    line-height: 1.625;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.legal-heading-3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.legal-heading-4 {
    margin-top: 1rem;
}

.legal-text-paragraph {
    margin-bottom: 1rem;
}

/* Footer Section */
.footer-top {
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-logo-text {
    font-size: 1.25rem;
}

.footer-logo-dot {
    color: var(--brand-accent);
    font-weight: 800;
    font-size: 1.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--slate-300);
    margin-top: 0.5rem;
}

.footer-nav {
    gap: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-nav a {
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--brand-accent);
}

.footer-bottom {
    margin-top: 1.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    gap: 1rem;
}

.footer-bottom-links {
    gap: 1.5rem;
}

.footer-bottom-links a {
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* Additional migrated rules */
.about-intro p, .about-card-new p {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.625;
    color: var(--slate-900);
}

.about-card-paragraph {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.625;
    color: var(--slate-900);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.about-card-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-card-btn-white {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.1);
}

.about-card-btn-accent {
    width: 100%;
    background-color: var(--brand-accent);
    color: var(--brand-dark);
    border: none;
}

.portfolio-container-rel {
    position: relative;
    z-index: 10;
}

/* 
============================================================================
   ABOUT SECTION BUTTONS REFACTOR (White background, dark blue border/text)
============================================================================
*/
#about .slate-btn,
.hero-subnav-btn {
    background-color: #ffffff !important;
    color: var(--brand-dark-blue) !important;
    border: 2px solid var(--brand-dark-blue) !important;
}

#about .slate-btn:hover,
.hero-subnav-btn:hover {
    background-color: #ffffff !important;
    color: var(--brand-dark-blue) !important;
    border-color: var(--brand-dark-blue) !important;
    transform: scale(1.04) !important;
    box-shadow: 0 10px 25px rgba(11, 44, 84, 0.12) !important;
}

/* ==========================================================================
   TOAST NOTIFICATIONS (Glassmorphism, passend zur Website)
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast-msg {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 24rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: var(--slate-900);
    border: 1px solid var(--slate-800);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.toast-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-msg svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.toast-success svg { color: #4ade80; }
.toast-error svg { color: #f87171; }
.toast-info svg { color: var(--brand-accent); }

/* ==========================================================================
   REDUCED MOTION: respektiert die Systemeinstellung der Besucher
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-element {
        opacity: 1 !important;
        transform: none !important;
    }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Cookie-/Consent-Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    background-color: var(--slate-900);
    color: var(--slate-200);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    padding: 1.25rem 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-light);
    margin: 0 0 0.35rem 0;
}

.cookie-banner-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--brand-accent);
}

.cookie-banner-text {
    font-size: 0.8125rem;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--brand-accent);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.cookie-banner-link:hover {
    opacity: 0.8;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    flex: 1;
    padding: 0.7rem 1.4rem;
    border-radius: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cookie-btn-decline {
    background-color: transparent;
    color: var(--slate-200);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    border-color: var(--brand-light);
    color: var(--brand-light);
}

.cookie-btn-accept {
    background-color: var(--brand-accent);
    color: var(--slate-900);
}

.cookie-btn-accept:hover {
    background-color: var(--brand-light);
}

.footer-cookie-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-cookie-btn:hover {
    color: #ffffff;
}

@media (min-width: 768px) {
    .cookie-banner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
    .cookie-banner-actions {
        width: auto;
    }
    .cookie-btn {
        flex: 0 0 auto;
    }
}
