
/*
=====================================
KLAUS HACKE SKULPTUREN WEBSITE
CSS Stylesheet für die Webseite
=====================================
*/

/* CSS Custom Properties (CSS-Variablen) für konsistente Gestaltung */
:root {
    /* Farbschema der Website */
    --color-primary: #757575;       /* Primärfarbe für Akzente */
    --color-secondary: #101010;     /* Sekundärfarbe für Überschriften */
    --color-text: #333;             /* Haupttextfarbe */
    --color-background: #fff;       /* Hintergrundfarbe */

    /* Einheitliche Abstände für konsistentes Layout */
    --spacing-small: 20px;
    --spacing-medium: 40px;
    --spacing-large: 80px;

    /* Navigationsleiste Höhen für verschiedene Bildschirmgrößen */
    --nav-height: 80px;             /* Desktop Navigation */
    --nav-height-mobile: 60px;      /* Mobile Navigation */

    /* Schriftarten der Website */
    --font-primary: 'Inter', sans-serif;   /* Hauptschrift für Fließtext */
    --font-secondary: 'Roboto', sans-serif; /* Sekundärschrift */
}


/* CSS Reset - Entfernt Browser-Standardstile für konsistente Darstellung */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Grundlegende Body-Styles für die gesamte Website */
body {
    font-family: var(--font-primary);
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    /* Verhindert automatische Skalierung des Textes auf mobilen Geräten */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


/* 
=====================================
NAVIGATION STYLES
Fixierte Navigationsleiste mit Glasmorphismus-Effekt
=====================================
*/
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    /* Glasmorphismus-Effekt mit Gradient */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95));
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    backdrop-filter: blur(8px) saturate(180%);
    z-index: 1000;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Mehrstufiger Schatten für Tiefeneffekt */
    box-shadow: 
        0 1px 0 rgba(0,0,0,0.05),
        0 1px 6px rgba(0,0,0,0.05),
        0 8px 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Fallback für Browser ohne backdrop-filter Unterstützung */
@supports not (backdrop-filter: blur(8px)) {
    nav {
        background: rgba(255, 255, 255, 0.95);
    }
}
/* Navigationsmenü */
nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    transition: all 0.3s ease;
}

/* Navigationslinks */
nav a {
    position: relative;
    top: 0;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* Hover-Effekt für Navigationslinks */
nav a:hover {
    opacity: 1;
    color: #000;
}

/* Aktiver Navigationslink */
nav a.active {
    color: var(--color-text);
    font-weight: 400;
}


/* 
=====================================
LOGO STYLES
Zweizeiliges Logo für Klaus Hacke Skulpturen
=====================================
*/
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--color-secondary);
    line-height: 1.2;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Haupttitel des Logos */
.logo-name {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 1.7rem;
    letter-spacing: 0.07em;
    transition: all 0.3s ease;
}

/* Untertitel des Logos */
.logo-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 250;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}


/* Mobile Navigation Toggle Button (nur auf mobilen Geräten sichtbar) */
.nav-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    cursor: pointer;
    color: var(--color-primary);
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    z-index: 1000;
}

/* 
=====================================
LAYOUT SECTIONS
Grundlegende Sektions-Styles
=====================================
*/
.section {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}


/* 
=====================================
GALLERY STYLES (Legacy - wird durch neuere Gallery-Grid ersetzt)
Grundlegende Galerie-Styles
=====================================
*/
.gallery {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    overflow: hidden;
}

.gallery-item {
    width: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* 
=====================================
SLIDESHOW STYLES (Splide.js)
Vollbildhöhe Slideshow für Startseite und Werke-Seite
=====================================
*/
.splide {
    position: relative;
    margin-top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    width: 100%;
}

.splide__track,
.splide__list {
    height: 100%;
}

.splide__slide {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.splide__slide img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}


/* 
=====================================
CONTENT PAGES STYLES
Styles für Vita, Kontakt und Impressum mit Hintergrundbild
=====================================
*/
.vita-content, .contact-content, .impressum-content {
    position: relative;
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    padding: 40px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(var(--nav-height) + 30px);
}
.vita-content {
    position: relative;
    min-height: 85vh;
    background-image: url('../images/klaus.webp');
    background-size: cover;
    background-position: center;
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
}
.vita-text {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    padding: 40px;
    max-width: 500px;
    margin-left: 0;
    margin-right: auto;
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 1;
    text-align: left;
}

.vita-content h2,
.contact-content h2,
.impressum-content h2 {
    text-align: left;
    margin-bottom: 2rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    color: var(--color-secondary);
    letter-spacing: 0.05em;
    padding-bottom: 0.5rem;
    display: inline-block;
}
.vita-entry,
.contact-entry {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding-bottom: 0.8rem;
}
.vita-year,
.contact-label {
    font-weight: 550;
    color: #4f4f4f;
    white-space: nowrap;
    min-width: 90px;
    font-size: 1.1rem;
}
.vita-description,
.contact-detail {
    margin: 0;
    line-height: 1.5;
    font-size: 1.05rem;
}
.vita-entry.life-dates {
    font-size: 1.1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #000;
}
.vita-entry.life-dates .vita-year {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-secondary);
}
.vita-entry.life-dates .vita-description {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-secondary);
}
.contact-content {
    position: relative;
    min-height: 85vh;
    background-image: url('../images/kontakt.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(var(--nav-height) + 30px);
}

.contact-card {
    position: absolute;
    bottom: 15%; /* Standard Position für hohe Bildschirme */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    max-width: 950px; /* Vergrößert für vollständige Anzeige aller Kontaktdaten */
    min-width: 700px; /* Mindestbreite für korrekte Darstellung der Telefonnummer */
}

/* Sicherstellung der Sichtbarkeit für niedrige Browser-Höhen */
@media screen and (max-height: 800px) and (min-width: 901px) {
    .contact-card {
        bottom: 10%; /* Näher am unteren Rand */
    }
}

/* Anpassung für verschiedene Bildschirmhöhen */
@media screen and (min-height: 900px) and (min-width: 901px) {
    .contact-card {
        bottom: 20%; /* Zurück zur ursprünglichen Position */
    }
}

/* Responsive Anpassungen für Vita-Seite bei niedrigen Bildschirmen */
@media screen and (max-height: 800px) and (min-width: 651px) {
    .vita-content {
        min-height: 70vh; /* Reduzierte Mindesthöhe für niedrige Bildschirme */
        display: flex;
        align-items: center; /* Zentriert den Inhalt vertikal */
        justify-content: flex-end; /* Behält die rechte Ausrichtung bei */
    }
    
    .vita-text {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 20px 40px 20px auto;
    }
}

@media screen and (max-height: 700px) and (min-width: 651px) {
    .vita-content {
        min-height: 60vh; /* Weitere Reduzierung der Mindesthöhe */
    }
}

@media screen and (max-height: 600px) and (min-width: 651px) {
    .vita-content {
        min-height: 50vh; /* Minimale Höhe für extrem niedrige Bildschirme */
        padding: 20px;
    }
    
    .vita-text {
        padding: 30px;
        margin: 10px 20px 10px auto;
    }
}

/* Fallback für niedrige Bildschirme - Desktop */
@media screen and (max-height: 750px) and (min-width: 901px) {
    .contact-content {
        min-height: 70vh; /* Reduzierte Mindesthöhe für niedrige Bildschirme */
        display: flex;
        align-items: center; /* Zentriert die Karte vertikal */
        justify-content: center; /* Zentriert die Karte horizontal */
    }
    
    .contact-card {
        position: relative !important; /* Erzwinge relative Positionierung */
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 20px auto;
        max-width: 700px;
        min-width: 600px;
    }
    
    .contact-card:hover {
        transform: translateY(-8px) !important;
    }
}

/* Sehr niedrige Bildschirme - verbesserte Behandlung */
@media screen and (max-height: 650px) and (min-width: 901px) {
    .contact-content {
        min-height: 60vh; /* Weitere Reduzierung der Mindesthöhe */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 20px auto;
        max-width: 700px;
        min-width: 600px;
    }
    
    .contact-card:hover {
        transform: translateY(-8px) !important;
    }
}

/* Extrem niedrige Bildschirme - Desktop */
@media screen and (max-height: 500px) and (min-width: 901px) {
    .contact-content {
        min-height: 50vh; /* Minimale Höhe für extrem niedrige Bildschirme */
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 15px auto;
        max-width: 600px;
        min-width: 500px;
    }
    
    .contact-card:hover {
        transform: translateY(-8px) !important;
    }
}

.contact-card:hover {
    transform: translateX(-50%) translateY(-8px);
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.2),
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.contact-card-photo {
    flex-shrink: 0;
    width: 300px; /* Optimiert für bessere Balance zwischen Foto und Text */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owner-photo-elegant {
    width: 130%;
    height: 130%;
    object-fit: cover;
    object-position: center center;
    /* Transition entfernt - kein Hover-Effekt mehr */
}

.contact-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info {
    margin-top: 0px;
    text-align: left;
    font-size: 1.2rem;
}
.contact-detail a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-detail a:hover {
    color: var(--color-primary);
}
#vita .container, #kontakt .container {
    width: 100%;
    min-height: auto;
    display: block;
}


.section:nth-of-type(2) .vita-content {
    min-height: auto;
    margin-top: 0;
    background-image: none;
    padding: 0 40px;
}

.section:nth-of-type(2) .vita-text {
    position: relative;
    background: none;
    max-width: 800px;
    margin: 0;
    padding: 20px 0;
    bottom: auto;
    left: auto;
}


@media screen and (max-width: 900px) {
    :root {
        --logo-scale: 0.88;
        --content-width: var(--content-width-mobile);
        --padding-content: var(--padding-content-mobile);
    }
    
    nav ul {
        display: none;
        position: fixed;
        top: var(--nav-height-mobile);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        padding: 20px;
        
        &.active {
            display: flex;
        }
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav a {
        display: inline-block;
        width: auto;
        top: 0;
    }
    
    .splide__slide {
        align-items: flex-start;
    }
    .nav-toggle {
        display: block;
    }
    .vita-content, .contact-content, .impressum-content {
        margin-top: var(--nav-height-mobile);
        max-width: 90%;
    }
}
@media screen and (max-width: 768px) {
    .logo-name {
        font-size: 1.5rem;
    }
    .logo-subtitle {
        font-size: 1.15rem;
    }
    .splide__slide {
        align-items: flex-start;
    }
    /* Contact-content now inherits from general rule above */

    .two-column-section {
        flex-direction: column;
        margin: 0 1rem;
    }

    .two-column-section .column + .column {
        margin-top: 1rem;
    }
}

/* Fix für Vita-Text-Clipping bei mittleren Viewport-Größen */
@media screen and (max-width: 650px) {
    .vita-content {
        min-height: auto;
        padding: 20px;
    }
    
    .vita-text {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 20px auto;
        width: 100%;
        max-width: none;
    }
}

@media screen and (max-width: 600px) {
    :root {
        --logo-scale: 0.76;
        --gap-default: var(--gap-mobile);
    }
    
    .vita-entry,
    .contact-entry {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .vita-year,
    .contact-label {
        font-weight: 500;
        color: var(--color-primary);
    }
    .splide__slide {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }
    .splide__slide img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
  
    .vita-content {
        width: 95%;
        padding: 2.8rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .vita-text {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: none;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .vita-entry,
    .contact-entry {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .section:nth-of-type(2) .vita-content {
        width: 95%;
        padding: 20px;
    }
    
    .section:nth-of-type(2) .vita-text {
        padding: 10px 0;
    }
}
@media screen and (max-width: 550px) {
    nav {
        height: var(--nav-height-mobile);
        padding: 0 20px;
    }
    .logo-name {
        font-size: 1.3rem;
    }
    .logo-subtitle {
        font-size: 1rem;
    }
    .splide {
        margin-top: var(--nav-height-mobile);
        height: calc(100vh - var(--nav-height-mobile));
    }
    nav ul {
        top: var(--nav-height-mobile);
    }
    .nav-toggle {
        font-size: 1.8rem;
        padding: 5px;
    }
    .vita-content, .contact-content, .impressum-content {
        padding: 1rem 1.5rem;
        margin-top: calc(var(--nav-height-mobile) + 10px);
    }
    .splide__slide {
        align-items: flex-start;
    }
    /* Contact-content now inherits from general rule above */
    .vita-content {
        width: 95%;
        padding: 2.8rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .vita-text {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: none;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .vita-entry.life-dates {
        font-size: 0.95rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .vita-entry.life-dates .vita-year,
    .vita-entry.life-dates .vita-description {
        font-size: 0.95rem;
    }

    .vita-year {
        font-size: 0.9rem;
    }

    .vita-description {
        font-size: 0.85rem;
    }
}

.two-column-section {
    display: flex;
    gap: 2rem;
    margin: 0 2rem;
    margin-bottom: 2rem;
}

.two-column-section .column {
    flex: 1;
}

.two-column-section .column:first-child {
    text-align: right;
}

.two-column-section .column:last-child {
    text-align: left;
}

@media screen and (max-width: 768px) {
    .two-column-section {
        flex-direction: column;
        margin: 0 1rem;
    }
}


@media screen and (max-height: 700px) {
    .two-column-section {
        gap: 1.5rem;
    }
    
    .two-column-section .column .vita-content {
        padding: 15px;
    }
    
    .two-column-section .column .vita-text {
        padding: 15px 0;
    }
    
    .two-column-section .column p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .two-column-section .column h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .two-column-section .column h3 {
        font-size: 1rem;
        margin: 0.8rem 0 0.4rem;
    }
}

@media screen and (max-height: 500px) {
    .two-column-section {
        flex-direction: column;
        gap: 1rem;
        margin: 0 1rem 1rem;
    }
    
    .two-column-section .column .vita-content {
        padding: 10px;
    }
    
    .two-column-section .column .vita-text {
        padding: 10px 0;
    }
    
    .two-column-section .column p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }
    
    .two-column-section .column h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .two-column-section .column h3 {
        font-size: 0.95rem;
        margin: 0.6rem 0 0.3rem;
    }
}

.two-column-section .column:first-child,
.two-column-section .column:last-child {
    text-align: justify;
    padding-right: 40px;
}


.two-column-section .column:first-child h2,
.two-column-section .column:first-child h3 {
    text-align: left;
}

.two-column-section .column:last-child h2,
.two-column-section .column:last-child h3 {
    text-align: right;
}


.two-column-section .column:last-child .vita-year {
    text-align: left;
}

.two-column-section .column:last-child .vita-description {
    text-align: left;
}


.two-column-section .column:last-child .vita-entry {
    grid-template-columns: auto 1fr;
    text-align: left;
}

.two-column-section .column:last-child .vita-year {
    text-align: left;
    min-width: 80px;
}

.two-column-section .column:last-child .vita-description {
    text-align: left;
}

.two-column-section .column:last-child h2,
.two-column-section .column:last-child h3 {
    text-align: left;
}


.two-column-section .column:last-child * {
    text-align: left !important;
}


.two-column-section .column:first-child p {
    text-align: justify;
}


.two-column-section .column:first-child h2,
.two-column-section .column:first-child p[style*="font-style: italic"] {
    text-align: left;
}

.two-column-section .column:last-child h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
    text-align: right;
}

.footer {
    width: 100%;
    padding: 1.5rem 2rem;
    background-color: white;
    border-top: 1px solid #eaeaea;
    margin-top: auto;
    font-family: 'Josefin Sans', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

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


.visitor-counter {
    color: var(--color-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.visitor-counter .count {
    font-weight: bold;
    margin-left: 0.3rem;
}

/* Responsive Styles für elegante Kontakt-Karte */
@media screen and (max-width: 1200px) and (min-width: 901px) {
    .contact-card {
        bottom: 12%; /* Zurück zur besseren Sichtbarkeit */
        max-width: 860px; /* Vergrößert für vollständige Anzeige aller Kontaktdaten */
        min-width: 650px; /* Mindestbreite für korrekte Darstellung */
    }
    
    .contact-card-photo {
        width: 290px; /* Vergrößert für bessere Desktop-Darstellung */
    }
    
    .contact-card-content {
        padding: 25px;
        font-size: 1.15rem;
    }
    
    .contact-card .contact-label {
        font-size: 1.05rem;
    }
    
    .contact-card .contact-detail {
        font-size: 1rem;
    }
}

@media screen and (max-width: 900px) {
    .contact-card {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 30px auto;
        max-width: 540px; /* 20% größer: 450px * 1.2 */
        flex-direction: column;
        width: 90%;
        min-width: auto; /* Entferne Min-Width für mobile Geräte */
    }
    
    .contact-card:hover {
        transform: translateY(-8px);
    }
    
    .contact-card-photo {
        width: 100%;
        height: 264px; /* 20% größer: 220px * 1.2 */
    }
    
    .contact-card-content {
        padding: 25px; /* Reduziert für mobile Geräte */
    }
    
    .contact-card .contact-info {
        font-size: 1.1rem; /* Kleinere Schrift für mobile Geräte */
    }
    
    .contact-card .contact-label {
        font-size: 1rem;
    }
    
    .contact-card .contact-detail {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 768px) {
    .contact-card {
        margin: 20px auto;
        width: 85%;
        max-width: 520px;
    }
    
    .contact-card-photo {
        height: 240px; /* 20% größer: 200px * 1.2 */
    }
    
    .contact-card-content {
        padding: 20px; /* Reduziert für kleinere Tablets */
    }
    
    .contact-card .contact-info {
        font-size: 1.05rem;
    }
    
    .contact-card .contact-label {
        font-size: 0.95rem;
    }
    
    .contact-card .contact-detail {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 600px) {
    .contact-card {
        margin: 15px auto;
        width: 90%;
        max-width: 450px;
        border-radius: 12px;
    }
    
    .contact-card-photo {
        height: 216px; /* 20% größer: 180px * 1.2 */
    }
    
    .contact-card-content {
        padding: 18px; /* Reduziert für mobile Phones */
    }
    
    .contact-card .contact-info {
        font-size: 1rem;
    }
    
    .contact-card .contact-label {
        font-size: 0.9rem;
    }
    
    .contact-card .contact-detail {
        font-size: 0.85rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}


.impressum-content {
    position: relative;
    min-height: 80vh;
    background-image: url('../images/impressum.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px;
    display: flex;
    align-items: flex-end;
}

.impressum-overlay {
    background: rgba(255, 255, 255, 0.756);
    padding: 25px;
    max-width: 500px;
    margin-left: 0;
    margin-right: auto;
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 1;
    text-align: left;
}

.impressum-overlay h2 {
    font-size: 1.8rem;
}

.impressum-overlay h3 {
    font-size: 1.1rem;
    margin-top: 1.2rem;
}

.impressum-overlay p,
.impressum-overlay .contact-detail {
    font-size: 0.9rem;
    line-height: 1.5;
}

@media screen and (max-width: 600px) {
    .impressum-overlay {
        max-width: 320px;
        padding: 20px;
        margin: 20px;
    }
}


/* 
=====================================
MODERN GALLERY STYLES
Hauptgalerie mit Grid-Layout und Lightbox
=====================================
*/
.gallery-container {
    margin-top: var(--nav-height);
    padding: 120px 80px;
    min-height: calc(100vh - var(--nav-height));
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid-Layout für Galeriebilder */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 160px;
    padding: 0;
}

/* Einzelne Galerieelemente */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 3/4;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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


.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.2s ease;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s ease;
    touch-action: pan-x pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}


/* Removed lightboxZoomIn animation for better performance */


.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 1110;
    opacity: 0.9;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 20px;
    color: white;
    font-weight: 300;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 28px;
    height: 28px;
    fill: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}


.lightbox-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    font-size: 14px;
    font-weight: 300;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    display: none; /* Verstecke die Lightbox-Info komplett */
}

.lightbox.active .lightbox-info {
    opacity: 0; /* Halte es versteckt auch wenn aktiv */
    display: none; /* Verstecke es komplett */
}


.lightbox-swipe-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: center;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}


@media screen and (max-width: 768px) {
    .lightbox {
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 56px;
        height: 56px;
        background: rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.2);
        touch-action: manipulation;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 64px;
        height: 64px;
    }

    .lightbox-prev svg,
    .lightbox-next svg {
        width: 24px;
        height: 24px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
        touch-action: pan-x pan-y;
    }
    
    .lightbox-content img {
        max-height: 85vh;
        border-radius: 8px;
        touch-action: pan-x pan-y;
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
    
    .lightbox-info {
        bottom: 20px;
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .lightbox-swipe-hint {
        bottom: 60px;
        font-size: 11px;
    }
}


.lightbox:not(.active) .lightbox-close,
.lightbox:not(.active) .lightbox-prev,
.lightbox:not(.active) .lightbox-next {
    opacity: 0;
    pointer-events: none;
}


@media screen and (min-width: 2000px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 180px;
    }
}

@media screen and (max-width: 1800px) {
    .gallery-container {
        padding: 100px 60px;
    }
    
    .gallery-grid {
        gap: 130px;
    }
}

@media screen and (max-width: 1400px) {
    .gallery-container {
        padding: 90px 50px;
    }
    
    .gallery-grid {
        gap: 100px;
    }
}

@media screen and (max-width: 1200px) {
    .gallery-container {
        padding: 80px 40px;
    }
    
    .gallery-grid {
        gap: 80px;
    }
}

@media screen and (max-width: 900px) {
    .gallery-container {
        margin-top: var(--nav-height-mobile);
        padding: 70px 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 70px;
    }
}

@media screen and (max-width: 768px) {
    .gallery-container {
        padding: 60px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }
    
    .gallery-item {
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
        border-radius: 1px;
    }
    
    .gallery-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

@media screen and (max-width: 480px) {
    .gallery-container {
        padding: 40px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 350px;
        margin: 0 auto;
    }
}




@media screen and (max-height: 750px) {

    .vita-content {
        min-height: auto;
        padding: 20px;
    }
    
    .vita-text {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 20px auto;
        width: 100%;
        max-width: 500px;
        padding: 30px;
    }
}

@media screen and (max-height: 650px) {

    .vita-content {
        padding: 15px;
    }
    
    .vita-text {
        padding: 25px;
    }
    

    .vita-entry .vita-year {
        font-size: 0.95rem;
    }
    
    .vita-entry .vita-description {
        font-size: 0.85rem;
    }
    
    .vita-entry.life-dates {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

@media screen and (max-height: 550px) {

    .vita-content {
        padding: 10px;
        background-position: top center;
    }
    
    .vita-text {
        margin: 15px auto;
        padding: 20px;
    }
    

    .vita-entry {
        padding-bottom: 0.3rem;
        gap: 1rem;
    }
    
    .vita-entry .vita-year {
        font-size: 0.9rem;
        min-width: 70px;
    }
    
    .vita-entry .vita-description {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .vita-entry.life-dates {
        padding-bottom: 0.6rem;
        margin-bottom: 0.6rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media screen and (max-width: 900px) {
    .vita-content, .contact-content, .impressum-content {
        padding: 20px;
        max-width: 100%;
    }
    
    .container {
        padding: 0 10px;
    }
}

@media screen and (max-height: 700px) {
    .contact-content {
        min-height: auto;
        padding: 20px;
    }

    .contact-overlay, .impressum-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 20px auto;
        width: 100%;
        max-width: 600px;
        padding: 25px;
    }
    
    .contact-overlay h2, .impressum-overlay h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-entry {
        padding-bottom: 0.6rem;
    }
    
    .contact-label {
        font-size: 0.95rem;
    }
    
    .contact-detail {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .contact-card {
        margin: 10px auto;
        width: 95%;
        max-width: 400px;
        border-radius: 10px;
    }
    
    .contact-card-photo {
        height: 180px; /* Reduziert für sehr kleine Bildschirme */
    }
    
    .contact-card-content {
        padding: 18px; /* Etwas mehr Platz für bessere Lesbarkeit */
    }
    
    .contact-card h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-card .contact-info {
        font-size: 1.05rem;
    }
    
    .contact-card .contact-label {
        font-size: 0.95rem;
    }
    
    .contact-card .contact-detail {
        font-size: 0.9rem;
    }
}

@media screen and (max-height: 500px) {
    .contact-content {
        padding: 15px;
        background-position: top center;
        min-height: auto; /* Entferne starre Höhenbeschränkungen */
    }

    .contact-overlay, .impressum-overlay {
        padding: 20px;
        max-width: 100%;
    }
    
    .contact-overlay h2, .impressum-overlay h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .contact-card {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 15px auto;
        max-width: 456px; /* 20% größer: 380px * 1.2 */
        width: 90%;
        flex-direction: column;
    }
    
    .contact-card:hover {
        transform: translateY(-8px);
    }
    
    .contact-card-photo {
        height: 168px; /* 20% größer: 140px * 1.2 */
    }
    
    .contact-card-content {
        padding: 18px; /* 20% größer: 15px * 1.2 */
    }
    
    .contact-entry {
        padding-bottom: 0.4rem;
    }
    
    .contact-label {
        font-size: 0.9rem;
    }
    
    .contact-detail {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .impressum-overlay h3 {
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .impressum-overlay p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* Universelle Sicherheitsmaßnahme für extrem niedrige Browser-Höhen */
@media screen and (max-height: 400px) {
    .contact-content, .vita-content, .impressum-content {
        min-height: auto !important;
        padding: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .contact-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 10px auto !important;
        max-width: 90% !important;
        min-width: auto !important;
    }
    
    .contact-card:hover {
        transform: translateY(-4px) !important;
    }
}