/* ==========================================================
   Basis
   ========================================================== */

* {
    box-sizing: border-box;
}


:root {

    --bg: #f5f6f3;
    --surface: #ffffff;
    --surface-soft: #f8f9f6;

    --text: #171917;
    --text-soft: #6c716c;

    --line: #e2e5df;
    --line-strong: #cfd4cc;

    --accent: #1d6b45;
    --accent-dark: #155437;
    --accent-soft: #e6f2eb;

    --warning-bg: #fff8e8;
    --warning-line: #e9d69a;
    --warning-text: #725b17;

    --danger-bg: #fff0f0;
    --danger-line: #efbaba;
    --danger-text: #8b2424;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow:
        0 12px 35px rgba(20, 30, 23, 0.06);
}


html {
    -webkit-text-size-adjust: 100%;
}


body {

    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at top left,
            #edf5ef 0,
            transparent 420px
        ),
        var(--bg);

    color: var(--text);

    line-height: 1.5;
}


button,
input,
textarea {
    font: inherit;
}


button {
    -webkit-tap-highlight-color: transparent;
}


.container {

    width:
        min(
            1120px,
            calc(100% - 40px)
        );

    margin:
        0 auto;
}



/* ==========================================================
   Header
   ========================================================== */

.site-header {

    background:
        rgba(
            255,
            255,
            255,
            0.88
        );

    backdrop-filter:
        blur(14px);

    border-bottom:
        1px solid var(--line);
}


.header-inner {

    min-height: 86px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 24px;
}


.brand {

    color: inherit;

    text-decoration: none;

    display: flex;

    align-items: baseline;

    gap: 14px;
}


.brand-name {

    font-size: 32px;

    line-height: 1;

    font-weight: 850;

    letter-spacing: -1.5px;

    color: var(--accent);
}


.brand-subtitle {

    color: var(--text-soft);

    font-size: 14px;
}


.header-badge {

    padding:
        8px 12px;

    border:
        1px solid var(--line);

    border-radius:
        999px;

    background:
        var(--surface-soft);

    font-size:
        13px;

    color:
        var(--text-soft);
}



/* ==========================================================
   Main / Hero
   ========================================================== */

.site-main {

    padding:
        58px 0 70px;
}


.hero {

    max-width:
        820px;

    margin-bottom:
        42px;
}


.hero-kicker {

    display:
        inline-block;

    margin-bottom:
        15px;

    color:
        var(--accent);

    font-weight:
        750;

    font-size:
        13px;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


.hero h1 {

    margin:
        0;

    font-size:
        clamp(
            42px,
            6vw,
            72px
        );

    line-height:
        0.98;

    letter-spacing:
        -0.055em;

    font-weight:
        850;
}


.hero h1 span {

    color:
        var(--accent);
}


.hero-text {

    max-width:
        680px;

    margin:
        25px 0 0;

    font-size:
        19px;

    color:
        var(--text-soft);

    line-height:
        1.65;
}



/* ==========================================================
   Haupt-Eingabekarte
   ========================================================== */

.input-card,
.summary-card,
.result-card {

    background:
        var(--surface);

    border:
        1px solid var(--line);

    border-radius:
        var(--radius-lg);

    box-shadow:
        var(--shadow);
}


.input-card {

    padding:
        32px;
}


.section-heading {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap:
        24px;

    margin-bottom:
        22px;
}


.section-heading > div:first-child {

    display:
        flex;

    gap:
        16px;
}


.section-number {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        38px;

    height:
        38px;

    flex:
        0 0 auto;

    border-radius:
        50%;

    background:
        var(--accent);

    color:
        white;

    font-size:
        12px;

    font-weight:
        800;
}


.section-heading h2 {

    margin:
        0;

    font-size:
        26px;

    letter-spacing:
        -0.025em;
}


.section-heading p {

    margin:
        5px 0 0;

    color:
        var(--text-soft);
}


.tip-limit {

    border:
        1px solid var(--line);

    border-radius:
        999px;

    padding:
        7px 11px;

    font-size:
        12px;

    color:
        var(--text-soft);

    white-space:
        nowrap;
}



/* ==========================================================
   Tippzeilen
   ========================================================== */

.tipp-row {

    position:
        relative;

    display:
        grid;

    grid-template-columns:
        110px 1fr auto;

    align-items:
        center;

    gap:
        20px;

    padding:
        17px 0;

    border-bottom:
        1px solid var(--line);
}


.tipp-header {

    display:
        flex;

    align-items:
        center;

    gap:
        9px;
}


.tipp-index {

    color:
        var(--accent);

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        0.07em;
}


.tipp-header strong {

    font-size:
        15px;
}


.zahlen-row {

    display:
        flex;

    align-items:
        center;

    gap:
        18px;
}


.lotto-numbers {

    display:
        grid;

    grid-template-columns:
        repeat(6, 56px);

    gap:
        8px;
}


.lotto-numbers input,
.superzahl {

    width:
        56px;

    height:
        52px;

    border:
        1px solid var(--line-strong);

    border-radius:
        50%;

    background:
        var(--surface);

    color:
        var(--text);

    text-align:
        center;

    font-size:
        17px;

    font-weight:
        700;

    outline:
        none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}


.lotto-numbers input:focus,
.superzahl:focus {

    border-color:
        var(--accent);

    box-shadow:
        0 0 0 4px
        rgba(29, 107, 69, 0.10);

    transform:
        translateY(-1px);
}


.superzahl-wrapper {

    display:
        flex;

    align-items:
        center;

    gap:
        8px;
}


.superzahl-wrapper label {

    color:
        var(--text-soft);

    font-size:
        12px;

    font-weight:
        750;
}


.superzahl {

    border-radius:
        12px;

    background:
        var(--accent-soft);

    border-color:
        #bdd7c7;
}


.remove-tipp {

    border:
        0;

    background:
        none;

    color:
        #a34d4d;

    cursor:
        pointer;

    font-size:
        12px;

    padding:
        8px;

    white-space:
        nowrap;
}


.remove-tipp:hover {

    text-decoration:
        underline;
}



/* ==========================================================
   Tipp hinzufügen
   ========================================================== */

.add-tipp-button {

    width:
        100%;

    margin-top:
        18px;

    padding:
        14px;

    border:
        1px dashed var(--line-strong);

    border-radius:
        var(--radius-md);

    background:
        var(--surface-soft);

    color:
        var(--text);

    cursor:
        pointer;

    font-weight:
        700;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}


.add-tipp-button:hover {

    background:
        var(--accent-soft);

    border-color:
        var(--accent);
}


.plus-icon {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        24px;

    height:
        24px;

    margin-right:
        7px;

    border-radius:
        50%;

    background:
        var(--accent);

    color:
        white;
}



/* ==========================================================
   Divider
   ========================================================== */

.input-divider {

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    margin:
        30px 0;
}


.input-divider::before,
.input-divider::after {

    content:
        "";

    height:
        1px;

    flex:
        1;

    background:
        var(--line);
}


.input-divider span {

    color:
        var(--text-soft);

    font-size:
        12px;

    text-transform:
        uppercase;

    letter-spacing:
        0.09em;
}



/* ==========================================================
   Copy & Paste
   ========================================================== */

.paste-area {

    padding:
        24px;

    border:
        1px solid var(--line);

    border-radius:
        var(--radius-md);

    background:
        var(--surface-soft);
}


.paste-heading {

    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        20px;
}


.paste-heading h3 {

    margin:
        0;

    font-size:
        19px;
}


.paste-heading p {

    margin:
        5px 0 0;

    color:
        var(--text-soft);

    font-size:
        14px;
}


.paste-label {

    padding:
        6px 9px;

    border-radius:
        999px;

    background:
        var(--surface);

    border:
        1px solid var(--line);

    color:
        var(--text-soft);

    font-size:
        11px;

    white-space:
        nowrap;
}


#paste-tipps {

    display:
        block;

    width:
        100%;

    min-height:
        130px;

    margin:
        18px 0 12px;

    padding:
        15px;

    border:
        1px solid var(--line-strong);

    border-radius:
        12px;

    background:
        white;

    color:
        var(--text);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size:
        14px;

    line-height:
        1.6;

    resize:
        vertical;

    outline:
        none;
}


#paste-tipps:focus {

    border-color:
        var(--accent);

    box-shadow:
        0 0 0 4px
        rgba(29, 107, 69, 0.09);
}


.paste-example {

    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        7px;

    margin-bottom:
        15px;

    color:
        var(--text-soft);

    font-size:
        12px;
}


.paste-example code {

    padding:
        4px 7px;

    border-radius:
        6px;

    background:
        white;

    border:
        1px solid var(--line);

    color:
        var(--text);
}



/* ==========================================================
   Buttons
   ========================================================== */

.button {

    border:
        0;

    border-radius:
        12px;

    padding:
        12px 18px;

    cursor:
        pointer;

    font-weight:
        750;

    transition:
        transform 0.12s ease,
        background 0.12s ease,
        opacity 0.12s ease;
}


.button:hover {

    transform:
        translateY(-1px);
}


.button:disabled {

    cursor:
        wait;

    opacity:
        0.65;

    transform:
        none;
}


.button.primary {

    background:
        var(--accent);

    color:
        white;
}


.button.primary:hover {

    background:
        var(--accent-dark);
}


.button.secondary {

    background:
        #ebede9;

    color:
        var(--text);
}


.main-action {

    margin-top:
        30px;

    text-align:
        center;
}


.main-check-button {

    width:
        min(520px, 100%);

    min-height:
        58px;

    padding:
        15px 28px;

    border-radius:
        16px;

    font-size:
        18px;
}


.main-action p {

    margin:
        10px 0 0;

    color:
        var(--text-soft);

    font-size:
        12px;
}



/* ==========================================================
   Fehler
   ========================================================== */

.error-box {

    margin-top:
        22px;

    padding:
        14px 16px;

    border:
        1px solid var(--danger-line);

    border-radius:
        12px;

    background:
        var(--danger-bg);

    color:
        var(--danger-text);

    font-size:
        14px;
}



/* ==========================================================
   Summary
   ========================================================== */

.summary-card {

    margin-top:
        32px;

    padding:
        26px 30px;
}


.summary-card h2 {

    margin:
        0 0 8px;

    font-size:
        24px;
}


.summary-card p {

    margin:
        5px 0;

    color:
        var(--text-soft);
}



/* ==========================================================
   Ergebnisse
   ========================================================== */

.results {

    margin-top:
        20px;
}


.result-card {

    position:
        relative;

    padding:
        28px 30px;

    margin-bottom:
        18px;
}


.result-card.best {

    border:
        2px solid var(--accent);
}


.result-card.best::before {

    content:
        "Bester Tipp";

    position:
        absolute;

    top:
        -12px;

    right:
        24px;

    padding:
        5px 10px;

    border-radius:
        999px;

    background:
        var(--accent);

    color:
        white;

    font-size:
        11px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;
}


.result-header {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap:
        24px;
}


.result-numbers {

    font-size:
        18px;

    font-weight:
        750;
}


.result-count {

    color:
        var(--text-soft);

    font-size:
        13px;

    white-space:
        nowrap;
}


.result-best {

    margin-top:
        22px;

    padding:
        18px;

    border-radius:
        var(--radius-md);

    background:
        var(--accent-soft);

    font-size:
        20px;
}


.result-best-label {

    display:
        block;

    margin-bottom:
        5px;

    color:
        var(--accent-dark);

    font-size:
        11px;

    font-weight:
        850;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}


.result-meta {

    margin-top:
        8px;

    color:
        var(--text-soft);

    font-size:
        14px;
}



/* ==========================================================
   Gewinnstatistik
   ========================================================== */

.gewinn-statistik {

    margin-top:
        24px;
}


.gewinn-statistik h3 {

    margin:
        0 0 10px;

    font-size:
        16px;
}


.stat-row {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap:
        18px;

    padding:
        10px 0;

    border-bottom:
        1px solid var(--line);
}


.stat-row:last-child {

    border-bottom:
        0;
}


.stat-count {

    font-weight:
        800;

    white-space:
        nowrap;
}



/* ==========================================================
   Gewinn-Details
   ========================================================== */

.details-button {

    margin-top:
        22px;
}


.win-list {

    margin-top:
        20px;

    border-top:
        1px solid var(--line);
}


.win-entry {

    padding:
        18px 0;

    border-bottom:
        1px solid var(--line);
}


.win-entry:last-child {

    border-bottom:
        0;
}


.win-title {

    display:
        flex;

    align-items:
        baseline;

    flex-wrap:
        wrap;

    gap:
        7px;

    font-size:
        15px;
}


.win-quote {

    color:
        var(--accent-dark);

    font-size:
        16px;
}


.historical-note {

    margin-top:
        8px;

    font-size:
        12px;

    color:
        var(--text-soft);
}



/* ==========================================================
   Quote unbekannt
   ========================================================== */

.quote-unknown {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        5px;

    color:
        var(--warning-text);
}


.quote-info {

    margin-top:
        10px;

    padding:
        11px 13px;

    border:
        1px solid var(--warning-line);

    border-radius:
        10px;

    background:
        var(--warning-bg);

    color:
        var(--warning-text);

    font-size:
        12px;

    line-height:
        1.5;
}



/* ==========================================================
   Footer
   ========================================================== */

.site-footer {

    border-top:
        1px solid var(--line);

    padding:
        28px 0;

    color:
        var(--text-soft);

    font-size:
        12px;
}


.footer-inner {

    display:
        flex;

    justify-content:
        space-between;

    gap:
        20px;
}



/* ==========================================================
   MOBILE MODE
   ========================================================== */

@media (max-width: 760px) {

    .container {

        width:
            min(
                100% - 24px,
                720px
            );
    }


    .site-header {

        background:
            white;
    }


    .header-inner {

        min-height:
            68px;
    }


    .brand {

        display:
            block;
    }


    .brand-name {

        display:
            block;

        font-size:
            27px;
    }


    .brand-subtitle {

        display:
            block;

        margin-top:
            2px;

        font-size:
            11px;
    }


    .header-badge {

        display:
            none;
    }


    .site-main {

        padding:
            32px 0 45px;
    }


    .hero {

        margin-bottom:
            26px;
    }


    .hero-kicker {

        font-size:
            10px;
    }


    .hero h1 {

        font-size:
            42px;

        line-height:
            1.02;
    }


    .hero-text {

        margin-top:
            16px;

        font-size:
            15px;
    }


    .input-card {

        padding:
            18px;

        border-radius:
            18px;
    }


    .section-heading {

        margin-bottom:
            10px;
    }


    .section-number,
    .tip-limit {

        display:
            none;
    }


    .section-heading > div:first-child {

        display:
            block;
    }


    .section-heading h2 {

        font-size:
            22px;
    }


    .section-heading p {

        font-size:
            13px;
    }


    /* ------------------------------------------------------
       Mobile Tippfeld
       ------------------------------------------------------ */

    .tipp-row {

        display:
            block;

        padding:
            18px 0;
    }


    .tipp-header {

        margin-bottom:
            11px;
    }


    .zahlen-row {

        display:
            flex;

        align-items:
            flex-end;

        gap:
            10px;
    }


    .lotto-numbers {

        flex:
            1;

        grid-template-columns:
            repeat(3, 1fr);

        gap:
            8px;
    }


    .lotto-numbers input {

        width:
            100%;

        max-width:
            none;

        height:
            46px;

        border-radius:
            10px;
    }


    .superzahl-wrapper {

        display:
            block;

        width:
            54px;
    }


    .superzahl-wrapper label {

        display:
            block;

        margin-bottom:
            5px;

        text-align:
            center;
    }


    .superzahl {

        width:
            54px;

        height:
            46px;
    }


    .remove-tipp {

        display:
            block;

        margin:
            8px 0 0 auto;
    }


    .add-tipp-button {

        margin-top:
            14px;
    }


    /* ------------------------------------------------------
       Mobile Paste
       ------------------------------------------------------ */

    .input-divider {

        margin:
            24px 0;
    }


    .paste-area {

        padding:
            16px;
    }


    .paste-heading {

        display:
            block;
    }


    .paste-label {

        display:
            none;
    }


    #paste-tipps {

        min-height:
            115px;

        font-size:
            13px;
    }


    .paste-example {

        display:
            block;
    }


    .paste-example code {

        display:
            block;

        margin:
            5px 0 8px;

        overflow-wrap:
            anywhere;
    }


    .paste-area .button {

        width:
            100%;
    }


    .main-action {

        margin-top:
            24px;
    }


    .main-check-button {

        width:
            100%;

        min-height:
            56px;

        font-size:
            16px;
    }


    /* ------------------------------------------------------
       Mobile Ergebnisse
       ------------------------------------------------------ */

    .summary-card {

        padding:
            20px;

        border-radius:
            18px;
    }


    .result-card {

        padding:
            20px;

        border-radius:
            18px;
    }


    .result-card.best::before {

        right:
            14px;
    }


    .result-header {

        display:
            block;
    }


    .result-count {

        margin-top:
            8px;

        white-space:
            normal;
    }


    .result-numbers {

        font-size:
            16px;

        line-height:
            1.7;
    }


    .result-best {

        margin-top:
            18px;

        padding:
            15px;

        font-size:
            17px;
    }


    .stat-row {

        gap:
            10px;

        font-size:
            13px;
    }


    .details-button {

        width:
            100%;
    }


    .win-entry {

        padding:
            16px 0;
    }


    .win-title {

        display:
            block;

        line-height:
            1.65;
    }


    .win-title > * {

        display:
            inline;
    }


    .win-quote {

        display:
            block !important;

        margin-top:
            4px;
    }


    .footer-inner {

        display:
            block;
    }


    .footer-inner > div + div {

        margin-top:
            5px;
    }
}