/**
 * IKL Kompetenztest – Grundlayout
 * Speicherort: /bereb/kompetenztest/assets/css/style.css
 */

:root {
    --bg: #f4f6f8;
    --card: #ffffff;
    --primary: #1f2a44;
    --primary-soft: #eef3f8;
    --accent: #f28c28;
    --accent-hover: #d97816;
    --text: #222222;
    --muted: #666666;
    --border: #d9dee5;

    --red: #c62828;
    --yellow: #f9a825;
    --green: #2e7d32;
    --blue: #1565c0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page {
    width: 100%;
    min-height: 100vh;
    padding: 24px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(31, 42, 68, 0.10);
}

h1,
h2,
h3 {
    color: var(--primary);
    margin-top: 0;
}

h1 {
    font-size: 30px;
    margin-bottom: 12px;
}

h2 {
    font-size: 24px;
    margin-bottom: 14px;
}

p {
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 13px 18px;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--accent-hover);
    text-decoration: none;
}

.btn-secondary {
    background: var(--primary);
}

.btn-secondary:hover {
    background: #111a2e;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--primary);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(242, 140, 40, 0.25);
    border-color: var(--accent);
}

.notice {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    margin: 18px 0;
}

.success {
    background: #e8f5e9;
    color: var(--green);
}

.error {
    background: #ffebee;
    color: var(--red);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/**
 * Alter Farbkachel-Bereich.
 * Bleibt vorerst erhalten, falls er später an anderer Stelle genutzt wird.
 */
.color-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.color-box {
    border-radius: 12px;
    padding: 16px;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

.color-red {
    background: var(--red);
}

.color-yellow {
    background: var(--yellow);
    color: #222222;
}

.color-green {
    background: var(--green);
}

.color-blue {
    background: var(--blue);
}

/**
 * Neuer Farbverlauf anstelle der vier Farbkacheln.
 * Die Höhe entspricht ungefähr der bisherigen Kachel-Höhe.
 */
.gradient-row {
    width: 100%;
    margin-top: 18px;
    border-radius: 12px;
    overflow: hidden;
    height: 74px;
    border: 1px solid var(--border);
}

.gradient-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/**
 * Responsive Darstellung für Handy und kleine Bildschirme.
 */
@media (max-width: 720px) {
    .page {
        padding: 14px;
    }

    .card {
        padding: 20px;
    }

    .grid-2,
    .color-row {
        grid-template-columns: 1fr;
    }

    .gradient-row {
        height: 64px;
    }

    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 21px;
    }

    .btn {
        display: block;
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 10px;
    }
}