/* style.css - Globale Styles und Portfolio */
:root {
    --bg-color: #050505;
    --text-color: #f1f1f1;
    --text-muted: #888888;
    --accent: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --dot-green: #2ecc71;
    --dot-yellow: #f1c40f;
    --dot-blue: #3498db;
    --dot-red: #e74c3c;
    --accent-gold: rgb(252, 180, 0);
}

/* Sketch Underline Style */
.sketch-underline {
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.sketch-underline svg {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 10px;
    pointer-events: none;
    overflow: visible;
}

.sketch-underline path {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 1s cubic-bezier(0.2, 0, 0.2, 1);
}

.sketch-underline.active path {
    stroke-dashoffset: 0;
}

.text-accent {
    color: var(--accent-gold);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Animations & Utilities --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

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

.filter-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.9), transparent);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
}

.logo-sub::after {
    /* Text wird via CSS generiert - das schützt fast immer vor Google Indizierung */
    content: "by S\00f6nke Tunn";
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 5px;
    margin-left: 20px;
    /* Leicht versetzt nach rechts */
    color: var(--text-muted);
    text-transform: none;
    user-select: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-muted);
}

.nav-links a.nav-active {
    color: var(--text-color) !important;
    position: relative;
    font-weight: 500;
}

.nav-links a.nav-active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    animation: fadeWidth 0.3s ease forwards;
}

@keyframes fadeWidth {
    0% {
        width: 0;
        opacity: 0;
    }

    100% {
        width: 100%;
        opacity: 1;
    }
}

.nav-highlight {
    border: 1px solid var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
}

.nav-highlight:hover {
    background-color: var(--text-color);
    color: var(--bg-color) !important;
}

/* --- New Studio Floor Gallery (Scattered Look) --- */
.image-grid-broken {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px 50px 150px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-item-edgy {
    position: relative;
    background: transparent;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1), z-index 0.6s;
    z-index: 1;
    max-width: 400px; /* Begrenzung für bessere Verteilung */
}

.grid-item-edgy img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.8s ease, transform 0.6s ease;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.3);
}

/* "Studio Floor" Variationen - Starke Überlappung und 8-15° Neigung */
.grid-item-edgy:nth-child(1) { transform: rotate(-8deg) translateY(20px); z-index: 1; margin-left: -20px; }
.grid-item-edgy:nth-child(2) { transform: rotate(12deg) translateY(-40px); margin-left: -120px; z-index: 3; margin-top: 40px; }
.grid-item-edgy:nth-child(3) { transform: rotate(-10deg) translateY(50px); margin-left: -80px; z-index: 2; margin-top: -30px; }
.grid-item-edgy:nth-child(4) { transform: rotate(15deg) translateY(-20px); margin-left: -140px; z-index: 4; margin-top: 60px; }
.grid-item-edgy:nth-child(5) { transform: rotate(-13deg) translateY(30px); margin-left: -100px; z-index: 2; margin-top: -40px; }
.grid-item-edgy:nth-child(6) { transform: rotate(9deg) translateY(10px); margin-left: -90px; z-index: 5; margin-top: 20px; }
/* Frame Draw Effect */
.grid-item-edgy svg.frame-svg {
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

.grid-item-edgy path.frame-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.grid-item-edgy:hover {
    z-index: 10 !important;
    transform: rotate(0deg) scale(1.05) translateY(0) !important;
}

.grid-item-edgy:hover path.frame-path {
    stroke-dashoffset: 0;
}

.grid-item-edgy:hover img {
    filter: grayscale(0%);
    box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
}

@media (max-width: 1024px) {
    .image-grid-broken {
        gap: 60px;
        padding: 50px 20px;
    }

    .grid-item-edgy {
        max-width: 45%;
        transform: none !important;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    .grid-item-edgy {
        max-width: 100%;
        margin-bottom: 50px !important;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* --- Neue Startseiten Sektionen --- */

/* Focus Areas */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.focus-item {
    position: relative;
    overflow: hidden;
}

.focus-left {
    margin-top: 50px;
}

.focus-center {
    margin-top: -50px;
}

.focus-right {
    margin-top: 100px;
}

.focus-img-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.focus-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease, transform 1s ease;
}

.focus-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.focus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.focus-item:hover .focus-overlay {
    opacity: 1;
}

.focus-overlay h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    margin: 0;
    font-style: italic;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.focus-item:hover .focus-overlay h3 {
    transform: translateY(0);
}

/* Packages */
.package-card {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.package-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.package-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.best-seller-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-gold);
    color: #000;
    padding: 8px 15px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    z-index: 10;
    font-family: var(--font-body);
    /* Leicht schräg für den Skizzen-Look */
    transform: rotate(2deg);
    box-shadow: 5px 5px 0px rgba(255, 255, 255, 0.1);
}

/* Spezialisierung der Unterstreichung im Badge */
.best-seller-badge .sketch-underline path {
    stroke: #000;
}

.best-seller-badge .sketch-underline svg {
    bottom: -5px;
    /* Etwas tiefer setzen */
}

.package-card:hover .package-img img {
    filter: grayscale(0%);
}

.package-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.package-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0 0 20px 0;
}

.pkg-sub {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pkg-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex: 1;
}

.pkg-features li {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-weight: 300;
}

.pkg-features li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.book-btn {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}

.book-btn:hover {
    background: #fff;
    color: #000 !important;
}

@media (max-width: 900px) {
    .focus-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .focus-left,
    .focus-center,
    .focus-right {
        margin-top: 0;
    }

    .hero-headline {
        font-size: 2.5rem !important;
    }
}

/* Footer */
.footer {
    padding: 100px 50px 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-color);
}

/* Legal Pages */
.legal-container {
    animation: fadeIn 1s ease forwards;
}

.legal-content section {
    margin-bottom: 50px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    margin-top: 40px;
}

.legal-content a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.3s;
}

.legal-content a:hover {
    opacity: 0.7;
}

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

@media (max-width: 768px) {
    .legal-container {
        padding: 120px 20px 60px !important;
    }
    .legal-container h1 {
        font-size: 2.2rem !important;
    }
}

/* --- Hero Epic Section (PRIORITY) --- */
.hero-epic-section {
    position: relative;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    padding: 160px 30px 100px !important; /* Extra padding for fixed navbar */
    background-color: #050505;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 1;
    transform: scale(1);
    animation: kenBurns 40s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(5,5,5,0.4) 100%), 
                linear-gradient(to bottom, rgba(5,5,5,0.1), rgba(5,5,5,0.8));
    z-index: 2;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 10vw, 5.5rem) !important;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
    position: relative;
    z-index: 3;
    animation: staggeredFadeUp 1.2s both 0.3s;
}

.hero-location-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent-gold);
    margin-bottom: 35px;
    font-weight: 500;
    display: block;
    position: relative;
    z-index: 3;
    animation: staggeredFadeUp 1.2s both 0.1s;
}

.hero-subtext {
    font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 60px;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 3;
    animation: staggeredFadeUp 1.2s both 0.5s;
}

.studio-badge {
    display: inline-block;
    padding: 30px 45px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    max-width: 650px;
    position: relative;
    z-index: 3;
    animation: staggeredFadeUp 1.2s both 0.7s;
}

.scroll-guide {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: bounce 2s infinite ease-in-out;
}

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

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

/* --- Contact System (Minimalist) --- */
.contact-cta-section {
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cta-button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-copy {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #fff !important;
}

.btn-copy:hover {
    background: transparent !important;
    color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
}

.vertical-contact-trigger {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1500;
    cursor: pointer;
    padding: 20px 10px;
    background: transparent;
}

.vertical-contact-trigger span {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: color 0.3s, transform 0.3s;
    opacity: 0.6;
}

.vertical-contact-trigger:hover span {
    color: #fff;
    opacity: 1;
    transform: scale(1.05);
}

/* Hide on small screens to avoid clutter */
@media (max-width: 768px) {
    .vertical-contact-trigger { display: none; }
}

.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.contact-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.overlay-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    transform: translateY(30px);
    transition: transform 0.6s ease;
}

.contact-overlay.active .overlay-content {
    transform: translateY(0);
}

.overlay-close {
    position: absolute;
    top: 40px;
    right: 50px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    font-weight: 100;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.overlay-close:hover {
    opacity: 1;
}

.contact-details {
    margin: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #fff;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--accent-gold);
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.contact-social a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.contact-social a:hover {
    opacity: 1;
}

/* --- Mobile Navigation (Glassmorphism Overlay) --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2002;
}

.mobile-menu-btn span {
    width: 30px;
    height: 1px;
    background: #fff;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Hamburger open state */
.mobile-menu-btn.open span:first-child {
    transform: rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.mobile-nav-links a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    padding: 10px 20px; /* Große Hit-Area für Daumen */
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.2s, opacity 0.2s; /* Für haptisches Feedback */
    will-change: transform;
}

.mobile-nav-links a:active {
    transform: scale(0.95);
    opacity: 0.8 !important;
}

.mobile-nav-links a.nav-active {
    color: var(--accent-gold);
    font-weight: 400;
}

.mobile-nav-overlay.active .mobile-nav-links a {
    animation: slideUpFade 0.6s forwards;
}

/* Staggered animation delays */
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(1) a { animation-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(2) a { animation-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(3) a { animation-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(4) a { animation-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(5) a { animation-delay: 0.3s; }

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-footer {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 35px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
    width: 80%;
    max-width: 300px;
    justify-content: center;
    padding-top: 30px;
}

.mobile-nav-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.mobile-nav-overlay.active .mobile-nav-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.mobile-nav-footer a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: color 0.3s, transform 0.3s;
}

.mobile-nav-footer a svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.mobile-nav-footer a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .nav-links {
        display: none !important; /* Verstecke normale Links */
    }
    .mobile-menu-btn {
        display: flex;
    }
    /* Client Login Button bleibt sichtbar */
    .navbar .client-login-btn {
        display: block !important;
        margin-right: 20px;
    }
    .navbar {
        padding: 20px 25px;
    }
}

/* Für Desktop verstecken wir das Mobile Footer-Zeug & Overlay falls aktiv */
@media (min-width: 901px) {
    .mobile-nav-overlay { display: none !important; }
    .mobile-menu-btn { display: none !important; }
}