/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
    /* Farbpalette */
    --clr-bg: #0f0f11;
    --clr-card: #18181c;
    --clr-text: #f4f4f6;
    --clr-muted: #a0a0ab;
    --clr-accent: #ff3366;
    --clr-accent-hover: #e02454;
    --clr-glass: rgba(255, 255, 255, 0.05);
    
    /* Typografie */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Hero Tattoo / Custom Image Controls */
    --hero-tattoo-width: 200px;      /* Standard-Breite */
    --hero-tattoo-max-width: 80%;    /* Maximal-Breite auf kleinen Bildschirmen */
    --hero-tattoo-margin: 1.5rem;    /* Abstand nach oben/unten */
    
    /* Layout & Spacing */
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================
   BASE & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--clr-accent);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--clr-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   BUTTONS & BADGES
   ========================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.5);
}

.btn-outline {
    border: 2px solid var(--clr-accent);
    color: var(--clr-accent);
}

.btn-outline:hover {
    background-color: var(--clr-accent);
    color: #fff;
}

.badge {
    background: var(--clr-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo span {
    color: var(--clr-accent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--clr-muted);
    transition: var(--transition);
}

.nav a:not(.btn):hover {
    color: var(--clr-text);
}

/* ==========================================
   HERO SECTION & TATTOO IMAGE
   ========================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 15, 17, 0.3) 0%, var(--clr-bg) 100%),
                radial-gradient(circle at center, rgba(255, 51, 102, 0.15) 0%, transparent 70%);
    padding-top: 80px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--clr-muted);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hero Tattoo Image Base Styling */
.hero-tattoo-img {
    width: var(--hero-tattoo-width);
    max-width: var(--hero-tattoo-max-width);
    height: auto;
    margin: var(--hero-tattoo-margin) auto;
    display: block;
    transition: var(--transition);
}

/* Utility-Klassen zur schnellen Größenanpassung im HTML */
.hero-tattoo-img.sm { width: 80px; }
.hero-tattoo-img.md { width: 150px; }
.hero-tattoo-img.lg { width: 250px; }
.hero-tattoo-img.xl { width: 350px; }

/* ==========================================
   PORTFOLIO GALLERY
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background-color: var(--clr-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 17, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--clr-accent);
    padding-bottom: 4px;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

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

/* ==========================================
   STATS / SEDCARD
   ========================================== */
.stats {
    background-color: var(--clr-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-box {
    padding: 20px;
}

.stat-box h3 {
    color: var(--clr-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.stat-box p {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--clr-text);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-muted);
    font-size: 0.85rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .nav {
        display: none; /* Für mobile Endgeräte erweiterbar */
    }
    
    .section {
        padding: 60px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
