/* × × × × × × × × × × × × × × × × × × × × × × × × × × × × */
/* × × × × × × × × × × CODEXBLAU  MANAGEMENT × × × × × × × */
/* × × × × × × × × × × ERGÄNZUNGEN ZUM CORE-DESIGN × × × × */
/* × × × × × × × × × × × × × × × × × × × × × × × × × × × × */

/*
   Nur Abschnitte, die es auf der Hauptseite nicht gibt:
   Fließtext (.richtext), Bild & Text, FAQ, Abstand, Talente (Raster, Detailseite), Kontaktinfos.
   Alles nutzt die Design-Tokens aus styleguide.css.
*/


/* × × × × × × × × × × × × × × × × × × × × × × × × × × × × ×
 × × × × × × × × × RICHTEXT (WRITER / KIRBYTEXT) × × × × × ×
× × × × × × × × × × × × × × × × × × × × × × × × × × × × × */

.richtext > * + * {
    margin-top: 1em;
}

.richtext ul,
.richtext ol {
    padding-left: 1.25em;
}

.richtext ul {
    list-style: disc;
}

.richtext ol {
    list-style: decimal;
}

.richtext li + li {
    margin-top: .35em;
}

.richtext a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: .15em;
}

.richtext strong {
    font-weight: 700;
}


/* × × × × × × × × × × × × × × × × × × × × × × × × × × × × ×
 × × × × × × × × × BILD & TEXT × × × × × × × × × × × × × × ×
× × × × × × × × × × × × × × × × × × × × × × × × × × × × × */

.section-text-image.is-gray {
    background: var(--color-natural-200);
}

.section-text-image .row {
    gap: calc(var(--gap) * 3);
    align-items: center;
}

.section-text-image .col-text {
    width: calc(55% - calc(var(--gap) * 1.5));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--gap) * 1.5);
}

.section-text-image .col-text .text-marked {
    padding-block: .6em;
    line-height: 1.75;
    hyphens: auto;
}

.section-text-image .col-image {
    width: calc(45% - calc(var(--gap) * 1.5));
}

.section-text-image .col-image .image-figure {
    border-radius: 1em;
}

.section-text-image.is-image-left .row {
    flex-direction: row-reverse;
}

@media screen and (max-width: 991px) {

    .section-text-image .row,
    .section-text-image.is-image-left .row {
        flex-direction: column;
        align-items: stretch;
    }

    .section-text-image .col-text,
    .section-text-image .col-image {
        width: 100%;
    }
}


/* × × × × × × × × × × × × × × × × × × × × × × × × × × × × ×
 × × × × × × × × × FAQ (AUFKLAPPLISTE) × × × × × × × × × × ×
× × × × × × × × × × × × × × × × × × × × × × × × × × × × × */

.section-faq .faq-list {
    margin-top: calc(var(--gap) * 2);
    border-top: 1px solid var(--color-natural-300);
}

.faq-item {
    border-bottom: 1px solid var(--color-natural-300);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding-block: 1.1em;
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    position: relative;
    flex: none;
    width: 1.25em;
    height: 1.25em;
    color: var(--color-primary);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto 0;
    height: 2px;
    background: currentColor;
    transition: transform .3s var(--ease-standard);
}

.faq-icon::after {
    transform: rotate(90deg);
}

.faq-item[open] .faq-icon::after {
    transform: rotate(0deg);
}

.faq-answer {
    padding-bottom: 1.5em;
    max-width: 52em;
}


/* × × × × × × × × × × × × × × × × × × × × × × × × × × × × ×
 × × × × × × × × × ABSTAND × × × × × × × × × × × × × × × × ×
× × × × × × × × × × × × × × × × × × × × × × × × × × × × × */

.section-spacer.is-small {
    padding-block: calc(var(--padding-section) * .25);
}

.section-spacer.is-medium {
    padding-block: calc(var(--padding-section) * .5);
}

.section-spacer.is-large {
    padding-block: var(--padding-section);
}


/* × × × × × × × × × × × × × × × × × × × × × × × × × × × × ×
 × × × × × × × × × TALENTE: RASTER × × × × × × × × × × × × ×
× × × × × × × × × × × × × × × × × × × × × × × × × × × × × */

.section-talents-grid .talent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    margin-top: calc(var(--gap) * 2);
}

.section-talents-grid .container.small + .container .talent-grid {
    margin-top: calc(var(--gap) * 2);
}

.talent-card {
    position: relative;
    border-radius: 1em;
    overflow: hidden;
    background: var(--color-natural-200);
}

.talent-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.talent-card .image-figure {
    transition: transform .8s var(--ease-standard);
}

.talent-card-link:hover .image-figure {
    transform: scale(1.04);
}

.talent-card .image-figure.default {
    overflow: visible;
}

.talent-card-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: calc(var(--gap) * 1.25) var(--gap) var(--gap);
    color: var(--color-white);
    background: linear-gradient(to top, rgba(var(--theme-color-rgb, 0, 59, 96), .92) 0%, rgba(var(--theme-color-rgb, 0, 59, 96), 0) 100%);
    display: flex;
    flex-direction: column;
    gap: .25em;
}

.talent-card-info .text-small {
    opacity: .85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.talent-grid-cta {
    display: flex;
    justify-content: center;
    margin-top: calc(var(--gap) * 3);
}

@media screen and (max-width: 1199px) {
    .section-talents-grid .talent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .section-talents-grid .talent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: calc(var(--gap) * .6);
    }
}


/* × × × × × × × × × × × × × × × × × × × × × × × × × × × × ×
 × × × × × × × × × TALENT: DETAILSEITE × × × × × × × × × × ×
× × × × × × × × × × × × × × × × × × × × × × × × × × × × × */

.section-talent {
    background: var(--color-natural-200);
    padding-top: calc(var(--padding-section) * 1.5);
}

.section-talent .btn-back {
    margin-bottom: calc(var(--gap) * 2);
}

.section-talent .btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    color: var(--color-natural-700);
    text-decoration: none;
    font-size: .9em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: var(--animation-ease-basic);
}

.section-talent .btn-back-link .btn-icon {
    width: 1em;
    height: 1em;
}

.section-talent .btn-back-link:hover {
    color: var(--color-primary);
}

.talent-hero {
    gap: calc(var(--gap) * 3);
    align-items: center;
}

.talent-hero .col-image {
    width: calc(40% - calc(var(--gap) * 1.5));
}

.talent-hero .col-image .image-figure {
    border-radius: 1em;
}

.talent-hero .col-text {
    width: calc(60% - calc(var(--gap) * 1.5));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--gap) * 1.25);
}

.talent-hero .talent-handle {
    color: var(--color-primary);
    font-weight: 700;
}

.talent-hero .talent-usp {
    padding-left: 1em;
    border-left: 3px solid var(--color-primary);
}

.section-talent-channels .channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17em, 1fr));
    gap: var(--gap);
    margin-top: calc(var(--gap) * 2);
}

.channel-card-inner {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    height: 100%;
    padding: var(--gap);
    border-radius: 1em;
    background: var(--color-natural-200);
    color: inherit;
    text-decoration: none;
    transition: background .4s var(--ease-standard), transform .4s var(--ease-standard);
}

a.channel-card-inner:hover {
    background: var(--color-natural-300);
    transform: translateY(-.25em);
}

.channel-head {
    display: flex;
    align-items: center;
    gap: var(--gap);
}

.channel-icon {
    flex: none;
    width: 2.75em;
    height: 2.75em;
    padding: .6em;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
}

.channel-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.channel-reach {
    font-weight: 700;
}

.channel-card .image-figure {
    border-radius: .75em;
}

@media screen and (max-width: 991px) {

    .talent-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .talent-hero .col-image,
    .talent-hero .col-text {
        width: 100%;
    }

    .section-talent-channels .channel-grid {
        grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
    }
}


/* × × × × × × × × × × × × × × × × × × × × × × × × × × × × ×
 × × × × × × × × × KONTAKT: INFOS × × × × × × × × × × × × ×
× × × × × × × × × × × × × × × × × × × × × × × × × × × × × */

.contact-infos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
    gap: var(--gap);
    margin-bottom: calc(var(--gap) * 2);
    padding-bottom: calc(var(--gap) * 2);
    border-bottom: 1px solid var(--color-natural-300);
}

.contact-infos li {
    display: flex;
    flex-direction: column;
    gap: .35em;
}

.contact-infos a {
    color: var(--color-primary);
}

.form-privacy {
    margin-top: var(--gap);
    color: var(--color-natural-600);
}


/* × × × × × × × × × × × × × × × × × × × × × × × × × × × × × 
 × × × × × × × × × BILDAUSSCHNITTE (PORTRÄTS, SCREENSHOTS) ×
× × × × × × × × × × × × × × × × × × × × × × × × × × × × × */

/* Gesichter sitzen im oberen Bilddrittel: nie den Kopf abschneiden */
.talent-card .image-figure img,
.talent-hero .image-figure img,
[data-radial-item] .image-figure img {
    object-fit: cover;
    object-position: 50% 18%;
}

/* Handy-Screenshots (ca. 1:2): komplett zeigen, nichts abschneiden */
.image-figure.default.phone::before {
    padding-top: 207.7%;
}

.channel-shot {
    width: min(100%, 15em);
    margin: 0 auto;
    filter: drop-shadow(0 1em 1.5em rgba(var(--color-natural-1000-rgb), .22));
}

.channel-shot .image-figure {
    overflow: visible;
}

.channel-shot .image-figure img {
    object-fit: contain;
    object-position: center;
}

.channel-card-inner {
    align-items: stretch;
}

.channel-card .channel-shot {
    margin-top: auto;
}

.talent-hero .col-image .image-figure {
    max-height: 80vh;
}

@media screen and (min-width: 992px) {
    .talent-hero {
        align-items: flex-start;
    }
    .talent-hero .col-image {
        position: sticky;
        top: 6em;
    }
}

/* Talent-Karten: Name lesbar, Bild wirkt ruhiger */
.talent-card {
    background: rgb(var(--theme-color-rgb, 0, 59, 96));
}

.talent-card-info {
    padding-top: calc(var(--gap) * 3);
}


/* × × × × × × × × × × × × × × × × × × × × × × × × × × × × × 
 × × × × × × × × × HERO: LOGO (FLACH, WIE DIE HAUPTSEITE) ×
× × × × × × × × × × × × × × × × × × × × × × × × × × × × × */

.section-hero-logo {
    background: var(--color-natural-200);
    color: var(--color-black);
}

/* Das markante X der Marke: statisch, unten angeschnitten – wie bei den Leistungen der Hauptseite */
.hero-logo-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-logo-x {
    position: absolute;
    bottom: -38%;
    left: 50%;
    width: min(110vh, 90vw);
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
}

.hero-logo-x::before,
.hero-logo-x::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 16%;
    background: var(--color-primary);
    transform: translate(-50%, -50%) rotate(45deg);
}

.hero-logo-x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.hero-logo-glow {
    display: none;
}

.hero-logo-content {
    position: absolute;
    top: 38%;
    left: 50%;
    z-index: 5;
    width: min(80vw, 60em);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--gap) * 1.5);
    text-align: center;
}

.hero-logo-mark {
    width: 100%;
    margin: 0;
    line-height: 0;
}

.hero-logo-mark svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Logo auf hellem Grund: weiße Teile schwarz einfärben */
.section-hero-logo .hero-logo-mark .logo-fill-white {
    fill: var(--color-black);
}

.hero-logo-tagline {
    font-size: var(--font-size-medium);
    font-weight: 800;
    letter-spacing: .5em;
    padding-left: .5em;
    text-transform: uppercase;
    color: var(--color-black);
}

@media screen and (max-width: 767px) {
    .hero-logo-tagline { letter-spacing: .3em; padding-left: .3em; }
}


/* × × × × × × × × × × × × × × × × × × × × × × × × × × × × × 
 × × × × × × × × × HERO: TALENT-COLLAGE × × × × × × × × × ×
× × × × × × × × × × × × × × × × × × × × × × × × × × × × × */

.section-hero-collage {
    height: auto;
    min-height: calc(var(--vh) * 100);
    background: var(--color-natural-200);
    padding-top: calc(var(--padding-section) * .6 + 5em) !important;
    padding-bottom: calc(var(--gap) * 2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: calc(var(--gap) * 3);
}

.section-hero-collage .marquee-group {
    position: relative;
    bottom: auto;
    width: 100%;
}

.hero-collage {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: calc(var(--gap) * 3);
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding-inline: var(--padding-container);
    box-sizing: border-box;
}

.hero-collage-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--gap) * 1.5);
}

.hero-collage-text h1 {
    font-size: clamp(2.6em, 5.2vw, 5.5em);
    line-height: 1.02;
    text-transform: uppercase;
    font-weight: 900;
}

.hero-collage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    align-items: start;
}

.hero-collage-item:nth-child(3n + 2) {
    margin-top: calc(var(--gap) * 3);
}

.hero-collage-item:nth-child(3n + 3) {
    margin-top: calc(var(--gap) * 1.2);
}

.hero-collage-item a {
    position: relative;
    display: block;
    border-radius: .9em;
    overflow: hidden;
    color: var(--color-white);
}

.hero-collage-item .image-figure.default {
    overflow: hidden;
}

.hero-collage-item img {
    object-fit: cover;
    object-position: 50% 18%;
    transition: transform .8s var(--ease-standard);
}

.hero-collage-item a:hover img {
    transform: scale(1.05);
}

.hero-collage-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.2em .9em .8em;
    font-weight: 700;
    background: linear-gradient(to top, rgba(var(--color-natural-1000-rgb), .6), rgba(var(--color-natural-1000-rgb), 0));
}

@media screen and (max-width: 991px) {
    .hero-collage {
        grid-template-columns: 1fr;
        gap: calc(var(--gap) * 2);
    }
    .hero-collage-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: calc(var(--gap) * .6);
    }
}

@media screen and (min-width: 992px) and (max-width: 1279px) {
    .hero-collage { gap: calc(var(--gap) * 1.5); grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
    .hero-collage-text h1 { font-size: clamp(2.2em, 4.6vw, 3.4em); }
}

@media screen and (max-width: 991px) {
    .hero-collage-text h1 { font-size: clamp(2.4em, 9vw, 4.2em); }
    .hero-collage-item:nth-child(3n + 2) { margin-top: calc(var(--gap) * 1.5); }
    .hero-collage-item:nth-child(3n + 3) { margin-top: calc(var(--gap) * .6); }
}

@media screen and (max-width: 575px) {
    /* Smartphone: 2 Spalten, nur 4 Portraits – ruhig statt gedrängt */
    .hero-collage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-collage-item:nth-child(n + 5) { display: none; }
    .hero-collage-item:nth-child(3n + 2),
    .hero-collage-item:nth-child(3n + 3) { margin-top: 0; }
    .hero-collage-item:nth-child(even) { margin-top: calc(var(--gap) * 1.5); }
    .section-hero-collage .marquee-group .marquee-content .word { font-size: 1.8em; }
}
