/* ==========================================================================
   Telegram-Seite
   ========================================================================== */

.telegram-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* ==========================================================================
   Seitenkopf
   ========================================================================== */

.telegram-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    padding: clamp(2rem, 5vw, 4rem);
    background:
        radial-gradient(
            circle at top right,
            rgba(56, 189, 248, 0.2),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(15, 45, 77, 0.96),
            rgba(8, 25, 48, 0.98)
        );
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.telegram-header::after {
    position: absolute;
    right: -5rem;
    bottom: -7rem;
    width: 18rem;
    height: 18rem;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.telegram-header__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.telegram-header__eyebrow,
.telegram-section__eyebrow {
    display: block;
    margin-bottom: 0.65rem;
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.telegram-header h1 {
    margin: 0;
    color: var(--color-text, #f8fafc);
    font-size: clamp(2.3rem, 6vw, 4.3rem);
    line-height: 1.05;
}

.telegram-header__intro {
    max-width: 700px;
    margin: 1.25rem 0 0;
    color: var(--color-text-muted, #cbd5e1);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
}


/* ==========================================================================
   Allgemeine Abschnitte
   ========================================================================== */

.telegram-section {
    margin-bottom: 3.5rem;
}

.telegram-section:last-child {
    margin-bottom: 0;
}

.telegram-section__header {
    max-width: 760px;
    margin-bottom: 1.7rem;
}

.telegram-section__header--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.telegram-section__header h2,
.telegram-info-box h2,
.telegram-recommendation h2 {
    margin: 0;
    color: var(--color-text, #f8fafc);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.3;
}

.telegram-section__header p {
    margin: 0.8rem 0 0;
    color: var(--color-text-muted, #94a3b8);
    line-height: 1.75;
}


/* ==========================================================================
   Telegram-Karten
   ========================================================================== */

.telegram-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.telegram-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(21, 43, 72, 0.9),
            rgba(11, 28, 51, 0.97)
        );
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.telegram-card::before {
    display: block;
    width: 100%;
    height: 4px;
    background: #38bdf8;
    content: "";
}

.telegram-card--news::before {
    background: #60a5fa;
}

.telegram-card--media::before {
    background: #818cf8;
}

.telegram-card:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 211, 252, 0.3);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.telegram-card__header {
    padding: 1.5rem 1.5rem 0;
}

.telegram-card__label {
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.65rem;
    background: rgba(14, 165, 233, 0.13);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 999px;
    color: #bae6fd;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
}

.telegram-card__header h3 {
    margin: 0;
    color: var(--color-text, #f8fafc);
    font-size: 1.25rem;
    line-height: 1.4;
}

.telegram-card__content {
    flex: 1;
    padding: 1rem 1.5rem 1.4rem;
}

.telegram-card__content p {
    margin: 0;
    color: var(--color-text-muted, #cbd5e1);
    font-size: 0.95rem;
    line-height: 1.75;
}

.telegram-card__list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
}

.telegram-card__list li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--color-text-muted, #cbd5e1);
    font-size: 0.9rem;
    line-height: 1.55;
}

.telegram-card__list li::before {
    position: absolute;
    top: 0.66em;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    background: #38bdf8;
    border-radius: 50%;
    content: "";
}

.telegram-card--news .telegram-card__list li::before {
    background: #60a5fa;
}

.telegram-card--media .telegram-card__list li::before {
    background: #818cf8;
}

.telegram-card__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0 1.5rem 1.5rem;
}

.telegram-card__address {
    color: var(--color-text-muted, #94a3b8);
    font-size: 0.82rem;
    line-height: 1.4;
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.telegram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.telegram-button--primary {
    background: #0284c7;
    border-color: #0ea5e9;
    color: #ffffff;
}

.telegram-button--primary:hover,
.telegram-button--primary:focus-visible {
    background: #0369a1;
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
}

.telegram-button--secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.telegram-button--secondary:hover,
.telegram-button--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.telegram-button:focus-visible,
.telegram-action:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 3px;
}


/* ==========================================================================
   Anmeldung
   ========================================================================== */

.telegram-info-box {
    position: relative;
    overflow: hidden;
    padding: clamp(1.6rem, 4vw, 2.5rem);
    background:
        linear-gradient(
            135deg,
            rgba(30, 64, 175, 0.2),
            rgba(14, 116, 144, 0.13)
        ),
        rgba(8, 25, 48, 0.75);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-left: 5px solid #38bdf8;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.telegram-info-box__content {
    max-width: 850px;
}

.telegram-info-box p {
    margin: 0.85rem 0 0;
    color: var(--color-text-muted, #cbd5e1);
    line-height: 1.75;
}


/* ==========================================================================
   Empfehlung
   ========================================================================== */

.telegram-recommendation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.6rem, 4vw, 2.4rem);
    background:
        linear-gradient(
            135deg,
            rgba(2, 132, 199, 0.9),
            rgba(3, 105, 161, 0.95)
        );
    border: 1px solid rgba(125, 211, 252, 0.34);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.telegram-recommendation__content {
    max-width: 760px;
}

.telegram-recommendation .telegram-section__eyebrow {
    color: #e0f2fe;
}

.telegram-recommendation p {
    margin: 0.8rem 0 0;
    color: #e0f2fe;
    line-height: 1.75;
}


/* ==========================================================================
   Hinweise und Regeln
   ========================================================================== */

.telegram-guidelines {
    padding: clamp(1.5rem, 4vw, 2.2rem);
    background: rgba(8, 22, 42, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
}

.telegram-guidelines__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.telegram-guideline {
    padding: 1.25rem;
    background: rgba(15, 36, 64, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
}

.telegram-guideline h3 {
    margin: 0 0 0.5rem;
    color: var(--color-text, #f8fafc);
    font-size: 1rem;
    line-height: 1.4;
}

.telegram-guideline p {
    margin: 0;
    color: var(--color-text-muted, #cbd5e1);
    font-size: 0.9rem;
    line-height: 1.65;
}


/* ==========================================================================
   Abschlussaktionen
   ========================================================================== */

.telegram-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.telegram-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    padding: 1.3rem;
    background:
        linear-gradient(
            145deg,
            rgba(21, 43, 72, 0.9),
            rgba(11, 28, 51, 0.96)
        );
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 14px;
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.telegram-action:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.telegram-action__title {
    color: var(--color-text, #f8fafc);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
}

.telegram-action__text {
    margin-top: 0.4rem;
    color: var(--color-text-muted, #94a3b8);
    font-size: 0.86rem;
    line-height: 1.5;
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 980px) {

    .telegram-grid {
        grid-template-columns: 1fr;
    }

    .telegram-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .telegram-card::before {
        grid-column: 1 / -1;
    }

    .telegram-card__header,
    .telegram-card__content {
        grid-column: 1;
    }

    .telegram-card__footer {
        grid-column: 2;
        grid-row: 2 / 4;
        align-self: center;
        min-width: 13rem;
        padding: 1.5rem;
    }

    .telegram-actions {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================================
   Smartphone
   ========================================================================== */

@media (max-width: 700px) {

    .telegram-header {
        margin-bottom: 2.5rem;
        padding: 2rem 1.4rem;
        border-radius: 15px;
    }

    .telegram-section {
        margin-bottom: 2.7rem;
    }

    .telegram-card {
        display: flex;
    }

    .telegram-card__header {
        padding: 1.35rem 1.25rem 0;
    }

    .telegram-card__content {
        padding: 1rem 1.25rem 1.25rem;
    }

    .telegram-card__footer {
        align-self: stretch;
        min-width: 0;
        padding: 0 1.25rem 1.35rem;
    }

    .telegram-button {
        width: 100%;
    }

    .telegram-recommendation {
        flex-direction: column;
        align-items: stretch;
        gap: 1.4rem;
    }

    .telegram-guidelines__grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================================
   Reduzierte Bewegung
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .telegram-card,
    .telegram-button,
    .telegram-action {
        transition: none;
    }

}