/* Daria Ivanovna Portfolio - Final Master Style
   Color Theme: All Headings & Accents in #330c2f
*/

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #999999;
    --brand-color: #330c2f; /* Deine Hauptfarbe für Überschriften & CTA */
    --grid-line: #f0f0f0;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
}

/* 1. Basis & Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Links global bereinigen */
a {
    text-decoration: none;
    color: inherit;
    outline: none;
}

/* 2. Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--grid-line);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 28px;
    width: auto;
    display: block;
    transition: opacity 0.4s ease;
}

.logo img:hover {
    opacity: 0.6;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--accent-color);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
}

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

/* 3. Galerie Raster */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(33.333%, 1fr));
    border-top: 1px solid var(--grid-line);
}

.artwork-card {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
    background: #fff;
    opacity: 1 !important; 
    transform: none !important;
}

/* 4. Image Wrapper & CTA Hover Effect */
.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f9f9f9;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.4s ease;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
}

.cta-overlay span {
    background: var(--brand-color);
    color: #fff;
    padding: 12px 25px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

/* Hover-Logik */
.artwork-card:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.artwork-card:hover .cta-overlay {
    opacity: 1;
}

.artwork-card:hover .cta-overlay span {
    transform: translateY(0);
}

/* 5. Artwork Info (Überschriften in #330c2f) */
.artwork-info {
    padding: 35px 25px;
    background: #fff;
}

.artwork-info h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--brand-color); /* HIER ANGEPASST */
}

.artwork-info p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
}

/* 6. Detailansicht Werk (H1 in #330c2f) */
.detail-view {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    position: relative;
    width: 100%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.image-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    user-select: none;
}

.detail-info h1 {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.1;
    color: var(--brand-color); /* HIER ANGEPASST */
}

.work-description {
    max-width: 650px;
    margin: 30px auto;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.back-link {
    margin-top: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    transition: color 0.3s;
}

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

/* 7. Footer */
footer {
    padding: 80px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    border-top: 1px solid var(--grid-line);
    padding-top: 25px;
}

/* 8. Responsive Anpassungen */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 20px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .artwork-info h2 { font-size: 1.5rem; }
    .cta-overlay { display: none; }
}

/* Styling für Links in den rechtlichen Sektionen */
.legal-container a {
    color: var(--brand-color); /* Nutzt dein #330c2f */
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.legal-container a:hover {
    border-bottom: 1px solid var(--brand-color);
}

/* Verhindert, dass die Platzhalter-Texte kurz aufblitzen */
#mail-link, #phone-link {
    font-variant-numeric: tabular-nums; /* Sorgt für gleichmäßige Zahlenbreite */
}
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--grid-line);
    padding: 25px 40px;
    z-index: 1000;
    display: none; /* Wird per JS angezeigt */
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.cookie-content a {
    color: var(--brand-color);
    text-decoration: underline;
}

/* Der Button im Stil deiner anderen CTAs, aber etwas kleiner */
.cookie-content .cta-button {
    padding: 10px 25px;
    font-size: 0.7rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

.hero-overlay-darken {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Ein sehr feiner radialer Verlauf: in der Mitte etwas dunkler, nach außen transparent */
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    z-index: 2;
}
.display-large {
    font-weight: 500; /* Etwas kräftiger als normal */
    text-shadow: 0 2px 10px rgba(255,255,255,0.5); /* Ein "Lichthof" um die Buchstaben */
    backdrop-filter: blur(2px); /* Erzeugt einen sehr edlen Milchglas-Effekt direkt hinter der Schrift */
}

