/* ==========================================================================
   INTRO FRAME (Pain-Point-Terminal) - CUSTOM SELECT
   ========================================================================== */
.intro_frame {
    position: relative;
    width: 100%;
    background-color: var(--infinite_gray_dark);
    background-image: url('../graphics/infinite-werbeagentur-oberoesterreich-leistungen-intro-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.intro_frame .main-wrapper {
    position: relative;
    z-index: 2;
}

/* --- Typografie --- */
.intro_frame_subtitle {
    font-family: 'RedHatDisplay';
    font-weight: 400;
    font-size: clamp(19px, 2.2vw, 25px); 
    color: var(--infinite_tango);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.intro_frame_headline {
    font-family: 'Barlow';
    font-weight: 900;
    font-size: clamp(28px, 4vw, 65px);
    line-height: 1.05; 
    text-transform: uppercase;
    color: #ffffff;
}

/* --- Der Container des Custom Dropdowns --- */
.intro_frame_select_wrapper {
    position: relative;
    display: inline-block; 
    margin: 15px 0; 
    min-width: 40%; 
    max-width: 100%; 
    box-sizing: border-box; 
    vertical-align: middle;
    z-index: 10; /* Basis Z-Index */
	
	transform: translateY(-6px);
}

/* Wenn das Dropdown offen ist, legen wir es über alles andere auf der Seite */
.intro_frame_select_wrapper.is-open {
    z-index: 1000; 
}

/* --- Die sichtbare Klick-Fläche (Der Rahmen) --- */
.intro_frame_select_trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 3px solid var(--infinite_tango); 
    background-color: transparent;
    padding: 10px 65px 10px 15px; /* Rechts 65px Platz für den Pfeil */
    cursor: pointer;
    min-height: 40px;
}

/* --- Der umbrechende Text im Kasten --- */
.trigger_text {
    font-family: 'RedHatDisplay', sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: clamp(24px, 3.4vw, 55px); 
    
    /* HIER PASSIERT DIE UMBRUCH-MAGIE */
    white-space: normal; 
    word-wrap: break-word;
    text-align: left;
}

.intro_frame_select_icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%); 
    width: clamp(24px, 4vw, 48px);
    height: clamp(24px, 4vw, 48px);
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* Pfeil dreht sich, wenn Dropdown offen ist */
.intro_frame_select_wrapper.is-open .intro_frame_select_icon {
    transform: translateY(-50%) rotate(180deg);
}

/* --- Die aufklappende Liste --- */
.intro_frame_options_list {
    position: absolute;
    top: calc(100% + 3px); /* Sitzt direkt unter dem Rahmen */
    left: 0;
    right: 0;
    background-color: var(--infinite_gray_dark);
    border: 3px solid var(--infinite_tango);
    border-top: none;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none; /* Standardmäßig versteckt */
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.intro_frame_select_wrapper.is-open .intro_frame_options_list {
    display: block;
}

/* --- Die einzelnen Optionen in der Liste --- */
.intro_frame_option {
    padding: 8px 15px;
    font-family: 'RedHatDisplay', sans-serif;
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    
    /* AUCH HIER: Voller Umbruch! */
    white-space: normal;
    line-height: 1.4;
}

.intro_frame_option:last-child {
    border-bottom: none;
}

.intro_frame_option:hover {
    background-color: var(--infinite_tango);
}

/* --- Einblend-Logik --- */
.intro_frame_hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.intro_frame_hidden.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#intro_part_2 {
    display: inline;
}

/* --- Die finale Antwort-Box --- */
.intro_frame_response {
    display: block; 
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05); 
    border-left: 4px solid var(--infinite_tango);
    font-weight: 300;
    font-size: clamp(18px, 1.5vw, 24px);
    line-height: 1.35;
    color: #ffffff;
}

.intro_frame_response a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--infinite_tango);
    transition: color 0.3s ease;
}

.intro_frame_response a:hover {
    color: var(--infinite_tango);
}

/* ==========================================================================
   CONTENT FRAME (Erlebnis-Monolithen)
   ========================================================================== */

.h4-leistungen {
  color: var(--infinite_gray_dark);
}

/* Der wuchtige Row-Container (volle Breite) */
.unit_monolith {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    background-color: transparent;
    color: var(--infinite_gray_dark);
    border-bottom: 1px solid rgba(51, 57, 68, 0.1);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow: hidden;
    padding: 20px 0;
}

.unit_monolith:first-of-type {
    border-top: 1px solid rgba(51, 57, 68, 0.1);
}

/* Hover-Farben der jeweiligen Units */
.unit_monolith.design:hover { background-color: var(--unit_design); }
.unit_monolith.marketing:hover { background-color: var(--unit_marketing); }
.unit_monolith.digital:hover { background-color: var(--unit_digital); }
.unit_monolith.media:hover { background-color: var(--unit_media); }
.unit_monolith.druck:hover { background-color: var(--unit_druck); }

/* Textwechsel auf Weiß beim Hovern des Blocks */
.unit_monolith:hover {
    color: #ffffff;
}

/* Der Stretched Link für den Monolithen (macht die ganze Zeile klickbar) */
.unit_main_link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

/* --- GRID LAYOUT --- */
.unit_grid {
    position: relative;
    z-index: 2; /* Liegt ÜBER dem klickbaren Hintergrund */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
    pointer-events: none; /* Lässt den Klick auf den Monolith-Link durch... */
}

/* --- LINKE SPALTE (Title & Keyline) --- */
.unit_left {
    text-align: left;
}

.unit_title {
    font-family: 'RedHatDisplay', sans-serif;
    font-weight: 900;
    font-size: clamp(32px, 5vw, 75px);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.02em;
}

.unit_keyline {
    font-family: 'RedHatDisplay', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 22px);
    opacity: 0.8;
}

/* --- MITTLERE SPALTE (Icon) --- */
.unit_center {
    text-align: center;
}

.unit_icon {
    width: clamp(100px, 15vw, 140px);
    height: auto;
    /* CSS Filter-Magie: Wandelt schwarze SVGs in infinite_gray_dark um */
    filter: brightness(0) saturate(100%) invert(20%) sepia(13%) saturate(1028%) hue-rotate(182deg) brightness(94%) contrast(89%);
    transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Beim Hover wird das Icon strahlend weiß und vergrößert sich minimal */
.unit_monolith:hover .unit_icon {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

/* --- RECHTE SPALTE (Sub-Links) --- */
.unit_right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 15px 25px;
    pointer-events: auto; /* ...aktiviert die Klicks für Sublinks wieder! */
    position: relative;
    z-index: 10;
}

.unit_sublink {
    font-family: 'RedHatDisplay', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 1.2vw, 22px);
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
}

/* Dezente Unterstreichung der Sublinks beim direkten Hovern */
.unit_sublink::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.unit_sublink:hover::after {
    width: 100%;
}

/* ==========================================================================
   MEDIA QUERIES (Responsivität)
   ========================================================================== */

/* Max 1440px */
@media (max-width: 1440px) {
    .unit_monolith { min-height: 200px; }
}

/* Max 1000px (Tablet - Umbruch auf 2 Zeilen) */
@media (max-width: 1000px) {
    .intro_frame_select_wrapper {
        width: 100%;
        display: block; /* Erzwingt eigenen Block, falls Inline-Elemente davor stehen */
        margin-top: 25px; /* Etwas mehr Luft nach oben */
    }
	.intro_frame_options_list {
		max-height: 240px;
	}
    .unit_grid {
        grid-template-columns: 1fr auto; 
        grid-template-areas: 
            "left icon"
            "right right";
        gap: 20px;
    }
    .unit_left { grid-area: left; }
    .unit_center { grid-area: icon; text-align: right; }
    
    .unit_right { 
        grid-area: right; 
        justify-content: flex-start; /* Sublinks wandern nach links unter den Titel */
        margin-top: 15px; 
    }
}

/* Max 600px (Mobile - Alles vertikal zentriert) */
@media (max-width: 600px) {
	.intro_frame_options_list {
		max-height: 200px;
	}
    .unit_monolith { padding: 40px 0; }
    .unit_grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "icon"
            "left"
            "right";
        text-align: center;
        gap: 15px;
    }
    
    .unit_center { grid-area: icon; text-align: center; margin-bottom: 10px; }
    .unit_left { grid-area: left; text-align: center; }
    .unit_right { 
        grid-area: right; 
        justify-content: center; 
        margin-top: 10px; 
    }
}