/*
Theme Name: Bricks Child (devsolution Edition)
Template: bricks
Author: devsolution - Webentwicklung Dominik Schratl
Description: Child Theme for Bricks Builder - Customized for High-End Interior Portfolio
Version: 1.0.0
*/

/* =========================================
   DS Project Single Template (Vanilla)
   Author: devsolution - Webentwicklung Dominik Schratl
   ========================================= */

/* --- Container & Layout --- */
.ds-container {
    margin-top: 120px;
    margin-bottom: 120px;
}
.ds-project-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

/* Linke Spalte: Galerie */
.ds-project-layout__gallery {
    flex: 1 1 60%;
    min-width: 300px;
}

/* Rechte Spalte: Content (Sticky) */
.ds-project-layout__content {
    flex: 1 1 35%;
    min-width: 300px;
}

.ds-sticky-content {
    position: sticky;
    top: 120px; /* Etwas Luft nach oben */
}

/* --- Typografie (Basierend auf Kunden-Styles) --- */

/* Überschrift Groß (H1) */
.ds-project-title {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    line-height: 100%;
    font-size: 32px;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: var(--bricks-color-aqigkg); /* Farbe vom Fließtext übernommen für Konsistenz */
    hyphens: auto;
}

/* Überschrift Klein / Overhead (für Labels) */
.ds-meta-label {
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    color: var(--bricks-color-aqigkg);
    font-weight: 300;
    line-height: 120%;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

/* Fließtext (auch für Werte genutzt) */
.ds-project-text,
.ds-meta-value,
.ds-nav-link,
.ds-tag-link {
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    color: var(--bricks-color-aqigkg);
    font-weight: 300;
    line-height: 120%;
}

/* Spezifische Anpassungen für Textblöcke */
.ds-project-text p {
    margin-bottom: 1.5rem;
}

/* --- Meta Data Grid --- */
.ds-project-meta {
    display: grid;
    grid-template-columns: 1fr; /* ÄNDERUNG: Nur 1 Spalte -> Untereinander */
    gap: 20px; /* Abstand zwischen den Zeilen */
    margin-bottom: 40px;
    padding-top: 30px;
}

.ds-meta-item {
    display: flex;
    flex-direction: column;
}

/* --- Galerie Grid System --- */
.ds-gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ds-gallery-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ds-gallery-row {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

/* Grid Varianten */
.ds-row--full { grid-template-columns: 1fr; }

.ds-row--half { grid-template-columns: 1fr 1fr; }
.ds-row--half img { aspect-ratio: 3/4; }

.ds-row--asymetric { grid-template-columns: 2fr 1fr; }
.ds-row--asymetric .ds-gallery-item img { height: 100%; }

/* Lightbox Cursor */
.ds-lightbox-trigger {
    display: block;
    cursor: zoom-in;
    transition: opacity 0.3s ease;
    height: 100%;
    width: 100%;
}

.ds-lightbox-trigger:hover {
    opacity: 0.95;
}

/* --- Tags --- */
.ds-project-tags {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ds-tag-link {
    font-size: 14px; /* Tags etwas kleiner als Fließtext für Hierarchie */
    padding: 5px 10px;
    background: #f0f0f0;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
}

.ds-tag-link:hover {
    background: var(--bricks-color-aqigkg);
    color: #fff;
}

/* --- Navigation --- */
.ds-project-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
}

.ds-nav-link {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px; /* Etwas kleiner für Navigation */
}

.ds-nav-link:hover {
    text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .ds-project-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .ds-sticky-content {
        position: static; 
    }

    .ds-project-title { 
        font-size: 40px; /* Kleiner auf Tablet/Mobile */
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .ds-row--asymetric { grid-template-columns: 1fr; } 
    .ds-project-meta { grid-template-columns: 1fr; gap: 20px; }
    .ds-container { padding: 20px; }
}

/* --- Footer Wrapper (Tags + Nav) --- */
.ds-footer-wrapper {
    margin-top: 60px;
    padding-top: 20px;
}

/* --- Tags (Text Style) --- */
.ds-project-tags {
    margin-bottom: 20px;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    color: var(--bricks-color-aqigkg);
    font-weight: 300;
    align-items: center;
}

.ds-project-tags .ds-meta-label {
    margin: 0 !important;
}

.ds-text-link {
    color: var(--bricks-color-aqigkg);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.ds-text-link:hover {
    border-bottom-color: var(--bricks-color-aqigkg);
}

/* --- Navigation --- */
.ds-project-navigation {
    display: flex;
    justify-content: space-between;
    /* Border Top hier entfernt, da nun im Wrapper */
}

.ds-nav-link {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px; 
    color: #000; /* Oder Bricks Color Variable */
}
.ds-nav-link:hover {
    text-decoration: underline;
}

/* =========================================
   DS Grid & Filter System
   ========================================= */

/* --- Filter Bar --- */
.ds-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
    justify-content: flex-start; /* Linksbuendig */
    padding-bottom: 20px;
}

.ds-filter-item {
    font-family: "Roboto", sans-serif; /* Deine Font */
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    color: #999;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.ds-filter-item:hover {
    color: #000;
}

/* Active State & Highlight Color */
.ds-filter-item--active {
    color: #000;
    font-weight: 500;
}
/* Optional: Unterstrich in Highlight Farbe */
.ds-filter-item--active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6633;
}

/* Tag Header (Fokus: ...) */
.ds-tag-header {
    margin-bottom: 50px;
}
.ds-tag-label {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
}
.ds-tag-title {
    font-family: "Inter", sans-serif;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    color: #000;
    hyphens: auto;
}
.ds-tag-highlight {
    color: #ff6633;
}


/* --- Project Grid --- */
.ds-project-grid {
    display: grid;
    /* Responsive Grid: Mindestens 350px breit, sonst Umbruch */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px; /* Abstand zwischen den Kacheln */
    width: 100%;
}

/* Die Karte */
.ds-grid-card {
    position: relative;
    display: block; /* Damit Link funktioniert */
    width: 100%;
    aspect-ratio: 1 / 1; /* Quadrat erzwingen */
    overflow: hidden;
    background-color: #f0f0f0; /* Platzhalterfarbe */
    text-decoration: none;
}

/* Das Bild */
.ds-grid-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

/* Hover Effekt: Zoom */
.ds-grid-card:hover .ds-grid-card__image {
    transform: scale(1.05);
}

/* Der Overlay (Gradient für Lesbarkeit) */
.ds-grid-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Verlauf über die untere Hälfte */
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    pointer-events: none; /* Klick geht durch aufs Bild/Link */
}

/* Text im Grid */
.ds-grid-card__meta {
    transform: translateY(0); /* Immer sichtbar */
    transition: transform 0.3s ease;
}

.ds-grid-card__title {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #fff; /* Weißer Text auf dunklem Gradient */
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.ds-grid-card__location {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .ds-project-grid {
        grid-template-columns: 1fr; /* Mobile: 1 Spalte */
        gap: 20px;
    }
    .ds-filter-bar {
        gap: 20px;
        overflow-x: auto; /* Scrollbar wenn zu viele Kategorien */
        white-space: nowrap;
    }
}

/* --- Shortcode & Button Styles --- */

.ds-shortcode-wrapper {
    margin: 40px 0;
}

.ds-button-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.ds-btn-highlight {
    background-color: #ff6633; /* Deine Highlight-Color */
    color: #ffffff;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 0; /* Eckig für High-End Look */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
    display: inline-block;
    letter-spacing: 0.1em;
}

.ds-btn-highlight:hover {
    background-color: #e6552a; /* Etwas dunklerer Ton */
    transform: scale(1.08); /* Deine Anforderung: "Etwas größer werden" */
    color: #ffffff;
}

/* Responsivität für den Button */
@media (max-width: 768px) {
    .ds-btn-highlight {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }
}