/* ==========================================================================
   Goldwyn Partners Group AG — Brand Stylesheet
   Kommunikationstraining
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --gp-navy: #030c4b;
    --gp-navy-light: #16205e;
    --gp-white: #ffffff;
    --gp-gold: #bda006;
    --gp-bg: #f6f7fb;
    --gp-text: #1c2033;
    --gp-text-muted: #5b6072;
    --gp-border: #e2e4ee;
    --gp-success: #1a7f4e;
    --gp-success-bg: #e8f7ef;
    --gp-error: #b3261e;
    --gp-error-bg: #fdecea;
    --gp-info-bg: #eef1fd;
    --font-brand: 'Libre Baskerville', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --shadow: 0 2px 10px rgba(3,12,75,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background: var(--gp-bg);
    color: var(--gp-text);
    line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--font-brand); color: var(--gp-navy); margin: 0 0 .5em; }
a { color: var(--gp-navy); }
p { margin: 0 0 1em; }

.gp-gold-bar { height: 4px; background: var(--gp-gold); }

.gp-header {
    background: var(--gp-white);
    color: var(--gp-navy);
    border-bottom: 1px solid var(--gp-border);
}
.gp-header { position: relative; }
.gp-header__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}
.gp-header a { color: var(--gp-navy); text-decoration: none; }
.gp-header__brand { font-family: var(--font-brand); font-size: 1.3rem; font-weight: 700; color: var(--gp-navy); }
.gp-header__brand-wrap { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.gp-header__back-link { font-size: .75rem; color: var(--gp-text-muted); opacity: .9; }
.gp-header__back-link:hover { opacity: 1; color: var(--gp-gold); text-decoration: underline; }
.gp-header__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    justify-content: flex-end;
    font-size: .95rem;
    row-gap: 8px;
}
.gp-header__nav a:hover { color: var(--gp-gold); }
.gp-header__nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--gp-border);
    border-radius: 8px;
    width: 40px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}
.gp-header__nav-toggle span,
.gp-header__nav-toggle::before,
.gp-header__nav-toggle::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: var(--gp-navy);
    margin: 3px auto;
}
.gp-credits-pill {
    background: var(--gp-bg);
    border: 1px solid var(--gp-border);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    transition: background .15s ease, border-color .15s ease;
}
a.gp-credits-pill:hover { background: rgba(189,160,6,.12); border-color: rgba(189,160,6,.4); color: var(--gp-navy) !important; }

.gp-container { max-width: 1080px; margin: 0 auto; padding: 40px 24px; }
.gp-container--narrow { max-width: 620px; margin: 0 auto; padding: 40px 24px; }

.gp-card {
    background: var(--gp-white);
    border: 1px solid var(--gp-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 24px;
    overflow-wrap: break-word;
}
.gp-card--accent { border-top: 4px solid var(--gp-gold); }
.gp-card--clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.gp-card--clickable:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(3,12,75,0.12); }

.gp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, opacity .15s ease;
}
.gp-btn--primary { background: var(--gp-navy); color: var(--gp-white); }
.gp-btn--primary:hover { background: var(--gp-navy-light); }
.gp-btn--gold { background: var(--gp-gold); color: var(--gp-navy); }
.gp-btn--outline { background: transparent; color: var(--gp-navy); border-color: var(--gp-navy); }
.gp-btn--outline:hover { background: var(--gp-info-bg); }
.gp-btn--ghost { background: transparent; color: var(--gp-text-muted); }
.gp-btn--sm { padding: 6px 14px; font-size: .85rem; }
.gp-btn--lg { padding: 16px 32px; font-size: 1.1rem; }
.gp-btn:disabled { opacity: .5; cursor: not-allowed; }
.gp-btn--danger { background: var(--gp-error); color: #fff; }

.gp-field { margin-bottom: 18px; }
.gp-label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .9rem; color: var(--gp-text); }
.gp-input, .gp-select, textarea.gp-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--gp-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .95rem;
    background: var(--gp-white);
}
.gp-input:focus, .gp-select:focus { outline: none; border-color: var(--gp-navy); }
textarea.gp-input { resize: vertical; min-height: 140px; }

.gp-table-wrap { overflow-x: auto; }
.gp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.gp-table th, .gp-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--gp-border); }
.gp-table th { color: var(--gp-text-muted); font-weight: 500; }

.gp-alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: .92rem; }
.gp-alert--success { background: var(--gp-success-bg); color: var(--gp-success); }
.gp-alert--error { background: var(--gp-error-bg); color: var(--gp-error); }
.gp-alert--info { background: var(--gp-info-bg); color: var(--gp-navy); }

.gp-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.gp-badge--navy { background: var(--gp-navy); color: #fff; }
.gp-badge--success { background: var(--gp-success-bg); color: var(--gp-success); }
.gp-badge--neutral { background: var(--gp-bg); color: var(--gp-text-muted); border: 1px solid var(--gp-border); }
.gp-badge--error { background: var(--gp-error-bg); color: var(--gp-error); }
.gp-badge--gold { background: var(--gp-gold); color: var(--gp-navy); }

.gp-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; }
.gp-avatar--md { width: 40px; height: 40px; font-size: .9rem; }
.gp-avatar--navy { background: var(--gp-navy); color: #fff; }

.gp-progress { background: var(--gp-border); border-radius: 999px; height: 10px; overflow: hidden; }
.gp-progress__bar { background: var(--gp-gold); height: 100%; transition: width .4s ease; }

.gp-divider { border: none; border-top: 1px solid var(--gp-border); margin: 24px 0; }
.gp-footer { text-align: center; padding: 32px 24px; color: var(--gp-text-muted); font-size: .85rem; }
.gp-animate-up { animation: gpUp .3s ease; }
@keyframes gpUp { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

/* ---- Homepage / Marketing ---- */
.gp-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(3,12,75,.05), transparent 45%),
        linear-gradient(180deg, #fbf9f1 0%, var(--gp-white) 55%);
    color: var(--gp-text);
    padding: 88px 24px 96px;
}
.gp-hero::before,
.gp-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
    pointer-events: none;
}
.gp-hero::before {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(189,160,6,.45), transparent 70%);
    top: -180px; right: -140px;
}
.gp-hero::after {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(3,12,75,.16), transparent 70%);
    bottom: -200px; left: -120px;
}
.gp-hero__inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.gp-hero__text { flex: 1 1 420px; }
.gp-hero h1 { color: var(--gp-navy); font-size: 2.6rem; letter-spacing: -.01em; }
.gp-hero p { color: var(--gp-text-muted); font-size: 1.12rem; }
.gp-stat-row { display: flex; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.gp-stat { }
.gp-stat__num { font-family: var(--font-brand); font-size: 2.1rem; color: var(--gp-gold); font-weight: 700; }
.gp-stat__label { font-size: .85rem; color: var(--gp-text-muted); max-width: 220px; }
.gp-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }

/* ---- Tool / Situation / Level selection ---- */
.gp-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
/* Grid-Items sizen sich standardmässig auf ihren max-content-Inhalt (min-width:auto) —
   bei langen Texten (z.B. Kachel-Beschreibungen im Firmen-Dashboard) liess das Karten
   über ihre Spalte hinausragen statt umzubrechen. min-width:0 erzwingt korrektes Wrapping. */
.gp-choice-grid > * { min-width: 0; }
.gp-level-badge-einstieg { background: var(--gp-info-bg); color: var(--gp-navy); }
.gp-level-badge-professional { background: #fff4e0; color: #8a5a00; }
.gp-level-badge-topcrack { background: #fde8e8; color: #a3231e; }

/* ---- Theory ---- */
.gp-theory__source { font-size: .8rem; color: var(--gp-text-muted); margin-top: -8px; }
.gp-theory__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin: 18px 0; }
.gp-theory__item { border-left: 4px solid var(--gp-navy); padding: 8px 14px; background: var(--gp-bg); border-radius: 0 8px 8px 0; }
.gp-theory__item p { margin: 4px 0 0; font-size: .88rem; color: var(--gp-text-muted); }

/* ---- Training flow ---- */
.gp-timer { font-family: var(--font-brand); font-size: 1.6rem; font-weight: 700; color: var(--gp-navy); }
.gp-timer--warning { color: var(--gp-error); }
.gp-situation-box { background: var(--gp-info-bg); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; white-space: pre-wrap; }
.gp-question-box { background: #fff8e6; border: 1px solid #f1e2a8; border-radius: var(--radius); padding: 24px; margin-bottom: 20px; font-weight: 500; }
.gp-record-btn { width: 84px; height: 84px; border-radius: 50%; background: var(--gp-error); color: #fff; border: none; font-size: 1.6rem; cursor: pointer; }
.gp-record-btn.is-recording { animation: gpPulse 1.2s infinite; }
@keyframes gpPulse { 0% { box-shadow: 0 0 0 0 rgba(179,38,30,.5);} 70% { box-shadow: 0 0 0 18px rgba(179,38,30,0);} 100% { box-shadow: 0 0 0 0 rgba(179,38,30,0);} }

.gp-score-ring { width: 140px; height: 140px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-brand); font-size: 2.2rem; font-weight: 700; color: var(--gp-navy); background: conic-gradient(var(--gp-gold) calc(var(--score,0)*1%), var(--gp-border) 0); position: relative; }
.gp-score-ring::before { content: ""; position: absolute; inset: 10px; background: #fff; border-radius: 50%; }
.gp-score-ring span { position: relative; }

@media (max-width: 860px) {
    .gp-header__inner { flex-wrap: nowrap; }
    .gp-header__nav-toggle { display: inline-flex; }
    .gp-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: var(--gp-white);
        border-bottom: 1px solid var(--gp-border);
        box-shadow: var(--shadow);
        padding: 12px 24px 16px;
        z-index: 40;
    }
    .gp-header__nav.is-open { display: flex; }
    .gp-header__nav a,
    .gp-header__nav .gp-credits-pill { padding: 6px 0; width: 100%; }
}

@media (max-width: 640px) {
    .gp-hero h1 { font-size: 1.8rem; }
}

/* ---- Weiterempfehlen / Social-Share-Buttons ---- */
.gp-share__text { color: var(--gp-text-muted); margin-bottom: 16px; }
.gp-share__row { display: flex; flex-wrap: wrap; gap: 10px; }
.gp-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    border: 1px solid var(--gp-border);
    background: var(--gp-white);
    color: var(--gp-navy);
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.gp-share__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(3,12,75,.10); border-color: var(--gp-gold); color: var(--gp-navy); }
.gp-share__icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.gp-share__icon svg { width: 16px; height: 16px; }
.gp-share__icon--linkedin { background: #0A66C2; }
.gp-share__icon--x { background: #000; }
.gp-share__icon--facebook { background: #1877F2; }
.gp-share__icon--whatsapp { background: #25D366; }
.gp-share__icon--telegram { background: #26A5E4; }
.gp-share__icon--email { background: var(--gp-navy); }
.gp-share__icon--copy { background: var(--gp-gold); color: var(--gp-navy); }

/* ==========================================================================
   Cookie-Consent-Banner (DSGVO / TTDSG)
   ========================================================================== */
.gp-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--gp-navy);
    color: var(--gp-white);
    box-shadow: 0 -4px 20px rgba(0,0,0,.18);
    padding: 16px 20px;
}
.gp-cookie-banner[hidden] { display: none; }
.gp-cookie-banner__inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.gp-cookie-banner__text {
    flex: 1 1 420px;
    font-size: .87rem;
    line-height: 1.55;
    color: rgba(255,255,255,.92);
    margin: 0;
}
.gp-cookie-banner__text a { color: var(--gp-gold); text-decoration: underline; }
.gp-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}
.gp-cookie-banner__actions .gp-btn--outline { color: var(--gp-white); border-color: rgba(255,255,255,.55); }
.gp-cookie-banner__actions .gp-btn--outline:hover { background: rgba(255,255,255,.12); }
.gp-cookie-banner__link-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.85);
    text-decoration: underline;
    font-size: .85rem;
    font-family: var(--font-body);
    cursor: pointer;
    padding: 6px 4px;
}

.gp-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(3,12,75,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gp-cookie-modal[hidden] { display: none; }
.gp-cookie-modal__card {
    background: var(--gp-white);
    border-radius: var(--radius);
    max-width: 520px;
    width: 100%;
    padding: 26px 26px 22px;
    box-shadow: var(--shadow);
    max-height: 88vh;
    overflow-y: auto;
}
.gp-cookie-modal__card h3 { margin-top: 0; }
.gp-cookie-modal__intro { font-size: .87rem; color: var(--gp-text-muted); }
.gp-cookie-category {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid var(--gp-border);
}
.gp-cookie-category:first-of-type { border-top: none; padding-top: 6px; }
.gp-cookie-category__label { font-weight: 700; color: var(--gp-navy); margin: 0 0 4px; }
.gp-cookie-category__desc { font-size: .84rem; color: var(--gp-text-muted); margin: 0; }
.gp-cookie-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; margin-top: 2px; }
.gp-cookie-switch input { opacity: 0; width: 0; height: 0; }
.gp-cookie-switch__track { position: absolute; inset: 0; background: var(--gp-border); border-radius: 999px; transition: background .15s; cursor: pointer; }
.gp-cookie-switch__track::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.gp-cookie-switch input:checked + .gp-cookie-switch__track { background: var(--gp-gold); }
.gp-cookie-switch input:checked + .gp-cookie-switch__track::before { transform: translateX(18px); }
.gp-cookie-switch input:disabled + .gp-cookie-switch__track { opacity: .55; cursor: not-allowed; }
.gp-cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

@media (max-width: 560px) {
    .gp-cookie-banner__inner { flex-direction: column; align-items: stretch; }
    .gp-cookie-banner__actions { justify-content: flex-start; }
}
