/* ═══════════════════════════════════════════════════
   LAYOUT.CSS — Sections, Containers, Grid
   KI Telefon Agent · Rebuild 2026
   ═══════════════════════════════════════════════════ */

/* ─── Section Containers ─── */
/* M1: Reduced section padding for tighter layout */
.section {
    padding: 4rem 5%;
    position: relative;
}

.section--light {
    background-color: var(--color-light);
}

.section--white {
    background-color: var(--color-white);
}

.section--dark {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1e293b 100%);
    color: var(--color-white);
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-white);
}

.section--dark p {
    color: rgba(255, 255, 255, 0.7);
}

/* ─── Inner Containers ─── */
.section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-inner--wide {
    max-width: var(--container-wide);
}

.section-inner--narrow {
    max-width: var(--container-narrow);
}

/* ─── Section Header ─── */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Section Label (small uppercase badge above h2) ─── */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

/* ─── Grid Systems ─── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ─── Flex Utilities ─── */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

/* ─── Split Layout (Text + Media side by side) ─── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split--reverse {
    direction: rtl;
}

.split--reverse > * {
    direction: ltr;
}

/* ─── Hero Layout ─── */
/* M4: Scope hero to avoid conflict with onoffice-demo's own .hero */
body:not(.page-onoffice-demo) .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-light) 100%);
}

.hero-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    width: 100%;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-media {
    position: relative;
}
