/* ── Global ── */
html, body {
    font-family: 'Nunito', sans-serif;
    background: #FDFBF7;
    color: #2D2A26;
    margin: 0;
}

/* ── Hero Section ── */
.ck-hero {
    background: linear-gradient(135deg, #FFF8ED 0%, #F5E6CC 50%, #EAD5AD 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ck-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,144,50,.12) 0%, transparent 70%);
    pointer-events: none;
}

.ck-hero h1 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: #2D2A26;
    margin-bottom: 16px;
}

.ck-hero .ck-hero-subtitle {
    font-size: 1.15rem;
    color: #635B53;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ── Kicker (kleine Zeile über Titeln) ── */
.ck-kicker {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7A5410;
    margin-bottom: 8px;
}

.ck-hero .ck-kicker {
    font-size: .9rem;
    margin-bottom: 12px;
}

.ck-section-lead {
    color: #635B53;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px !important;
    line-height: 1.7;
}

/* ── Plattformen (WP4) ── */
.ck-platform-tile {
    background: #2D2A26;
    color: #E8DCC8;
    border-radius: 16px;
    padding: 28px 24px;
    height: 100%;
    text-align: center;
}

.ck-platform-tile .mud-typography-h6 {
    color: #FFF;
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 8px;
}

.ck-platform-tile .mud-typography-body2 {
    opacity: .85;
}

.ck-platform-icon.mud-icon-root {
    font-size: 3rem;
    color: #C49032;
    margin-bottom: 12px;
}

/* ── Häkchenliste ── */
.ck-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ck-check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: #635B53;
    line-height: 1.6;
}

.ck-check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #C49032;
    font-weight: 700;
}

/* ── Feature Cards ── */
.ck-feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}

.ck-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(196,144,50,.15);
}

.ck-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #C49032, #C87B52);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #FFF;
}

/* ── Section ── */
.ck-section {
    padding: 64px 0;
}

.ck-section-alt {
    padding: 64px 0;
    background: #F8F3EB;
}

.ck-section-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}

/* ── Integration Steps ── */
.ck-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.ck-step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C49032, #C87B52);
    color: #2D2A26;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
}

/* ── Code Embed Box ── */
.ck-code-box {
    background: #2D2A26;
    color: #E8DCC8;
    border-radius: 12px;
    padding: 24px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: .85rem;
    line-height: 1.6;
    overflow-x: auto;
    position: relative;
}

.ck-code-box .ck-tag {
    color: #C49032;
}

.ck-code-box .ck-attr {
    color: #87CEEB;
}

.ck-code-box .ck-string {
    color: #98C379;
}

/* ── Device Preview ── */
.ck-preview-devices {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.ck-preview-tablet {
    max-width: 520px;
    flex: 1 1 400px;
}

.ck-preview-mobile {
    max-width: 260px;
    flex: 0 0 200px;
}

.ck-preview-tablet img,
.ck-preview-mobile img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(45, 42, 38, .12);
}

/* ── Igel Hint ── */
.ck-igel-hint {
    display: flex;
    align-items: center;
    gap: 32px;
    text-align: left;
}

.ck-igel-img {
    width: 140px;
    height: auto;
    flex-shrink: 0;
}

.ck-igel-bubble {
    background: #F8F3EB;
    border-radius: 20px;
    padding: 28px 32px;
    position: relative;
    flex: 1;
}

.ck-igel-bubble::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-right-color: #F8F3EB;
}

@media (max-width: 600px) {
    .ck-preview-devices {
        gap: 24px;
    }

    .ck-preview-tablet {
        flex: 1 1 100%;
    }

    .ck-preview-mobile {
        flex: 0 0 160px;
    }

    .ck-igel-hint {
        flex-direction: column;
        text-align: center;
    }

    .ck-igel-img {
        width: 100px;
    }

    .ck-igel-bubble::before {
        display: none;
    }
}

/* ── CTA Section ── */
.ck-cta {
    background: linear-gradient(135deg, #8A5F14 0%, #9A5434 100%);
    padding: 64px 0;
    text-align: center;
    color: #FFF;
}

/* ── Footer ── */
.ck-site-footer {
    background: #2D2A26;
    color: #E8DCC8;
    padding: 48px 0 24px;
    margin-top: 0;
}

/* ── Contact Form ── */
.ck-contact-section {
    padding: 64px 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .ck-hero {
        padding: 48px 16px 40px;
    }

    .ck-hero h1 {
        font-size: 2rem;
    }

    .ck-hero .ck-hero-subtitle {
        font-size: 1rem;
    }

    .ck-section,
    .ck-section-alt {
        padding: 40px 0;
    }

    .ck-cta {
        padding: 40px 16px;
    }
}

/* Blazor fokussiert die h1 nach der Navigation – kein sichtbarer Rahmen */
h1:focus,
h1:focus-visible {
    outline: none;
}

/* Code-Kasten darf auf schmalen Bildschirmen nicht überstehen */
.ck-step > div:last-child {
    min-width: 0;
}

.ck-code-box {
    overflow-wrap: anywhere;
}

/* Lange deutsche Wörter in Überschriften trennen statt überstehen lassen */
.ck-section-title,
.ck-hero h1 {
    hyphens: auto;
    overflow-wrap: break-word;
}

/* ── Zielgruppen (Startseite) ── */
.ck-audience {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 20px 12px;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 1px 4px rgba(45, 42, 38, .08);
    height: 100%;
}

.ck-audience .mud-icon-root {
    font-size: 2.2rem;
    color: #C49032;
    margin-bottom: 4px;
}

.ck-audience strong {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
}

.ck-audience span {
    font-size: .85rem;
    color: #635B53;
    line-height: 1.4;
}

/* ── Marke oben links: Igel-Logo + Schriftzug ── */
.ck-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #C49032;
    padding: 4px 8px;
}

.ck-brand img {
    display: block;
    width: 32px;
    height: 32px;
}

/* ── Gefüllte Hauptbuttons: Markengold mit dunkler Schrift ──
   Primary ist dunkles Gold (Kontrast für Text). Weiße Schrift auf #C49032 hätte nur 2,7 : 1,
   dunkle Schrift erreicht 5 : 1. */
.mud-button-filled.mud-button-filled-primary {
    background-color: #C49032;
    color: #2D2A26;
}

@media (hover: hover) and (pointer: fine) {
    .mud-button-filled.mud-button-filled-primary:hover {
        background-color: #D2A04A;
    }
}

/* Icons bleiben im hellen Markengold – das dunkle Gold (Primary) gilt nur für Text, Links und Buttons. */
.mud-icon-root.mud-primary-text {
    color: #C49032 !important;
}
