/* Unterseiten – gleiches Feeling wie die Startseite (ruhig, modern, lesbar) */

body.site-subpage {
    animation: none;
    background-color: var(--color-background);
    background-image:
        radial-gradient(ellipse 90% 50% at 50% -20%, rgba(168, 85, 247, 0.14), transparent 55%),
        radial-gradient(800px 400px at 100% 0%, rgba(99, 102, 241, 0.1), transparent 50%),
        radial-gradient(600px 360px at 0% 100%, rgba(56, 189, 248, 0.06), transparent 50%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
}

/* Nur Breite begrenzen – vertikales Padding kommt von main (style.css) */
main.page-shell {
    max-width: min(56rem, 100%);
    margin-left: auto;
    margin-right: auto;
}

.page-shell .main-content {
    gap: clamp(1.75rem, 4vw, 2.5rem);
}

/* Hero: Karte statt Vollflächen-Bild */
.site-subpage .hero-section.page-hero,
.site-subpage section.hero-section.page-hero {
    text-align: left;
    min-height: auto;
    min-height: clamp(280px, 42vh, 420px);
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
    border-radius: clamp(18px, 2.5vw, 26px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    background-color: #12121a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    margin-top: 0.5rem;
    overflow: hidden;
}

.site-subpage .hero-section.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, transparent 45%),
        linear-gradient(225deg, rgba(56, 189, 248, 0.1) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.site-subpage .hero-section.page-hero::after {
    background: rgba(8, 8, 12, 0.72);
    z-index: 1;
}

.site-subpage .hero-section.page-hero .hero-content {
    z-index: 2;
    max-width: 40rem;
    margin-left: 0;
    margin-right: auto;
}

.site-subpage .hero-section.page-hero h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
}

.site-subpage .hero-section.page-hero .section-intro {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    color: rgba(235, 235, 245, 0.82);
    max-width: 48ch;
}

/* Inhalts-Sektionen wie „Glass“-Blöcke */
.site-subpage section.page-section {
    text-align: left;
    padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
    background: rgba(26, 26, 36, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: calc(var(--border-radius) * 1.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-subpage section.page-section h2 {
    text-align: left;
    margin-bottom: 0.65rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.site-subpage section.page-section > .section-intro {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.site-subpage .competency-grid .card,
.site-subpage .list-style-card {
    background: rgba(18, 18, 26, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
}

.site-subpage .competency-card .icon img {
    width: 48px;
    height: 48px;
}

.site-subpage .competency-card .icon.icon--fa {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem auto;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a5f3fc;
    font-size: 1.45rem;
}

.site-subpage section.page-section .tech-grid {
    justify-content: flex-start;
}

.site-subpage section.page-section .tech-item {
    background: rgba(12, 12, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 0.65rem 1rem;
}

@media (max-width: 640px) {
    .site-subpage .hero-section.page-hero {
        min-height: 240px;
    }
}
