/* ============================================================
   RESET / BASE
   ============================================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    background: #f5f6f8;
    color: #111;
}

/* ============================================================
   HEADER
   ============================================================ */

header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    background: #8eaeed; /* von dir vorgegeben */
}

header img {
    height: 80px; /* Logo deutlich größer */
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #0b2a5b;
}

/* ============================================================
   LAYOUT
   ============================================================ */

main.layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.content {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ============================================================
   FORM
   ============================================================ */

.h2h-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.h2h-form select,
.h2h-form button {
    padding: 4px 8px;
    font-size: 0.95rem;
}

.h2h-form button {
    cursor: pointer;
}

/* ============================================================
   SUMMARY BOX
   ============================================================ */

.summary {
    margin: 12px 0 20px;
    padding: 12px 14px;
    background: #f0f5ff;
    border-left: 4px solid #5a7bd8;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* ============================================================
   TABLE
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

thead th {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}

tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

tbody tr:nth-child(even) td {
    background: #fafafa;
}

/* ------------------------------------------------------------
   COLUMN TUNING (positions based on current HTML)
   ------------------------------------------------------------ */

/* Date */
td:nth-child(1),
th:nth-child(1) {
    white-space: nowrap;
}

/* Score */
td:nth-child(5),
th:nth-child(5) {
    min-width: 80px;
    text-align: center;
    font-weight: 700;
}

/* Stadium */
td:nth-child(7),
th:nth-child(7) {
    min-width: 260px;
}

/* City */
td:nth-child(8),
th:nth-child(8) {
    min-width: 160px;
}

/* Attendance */
td:last-child,
th:last-child {
    text-align: right;
    white-space: nowrap;
}

/* ============================================================
   LINKS
   ============================================================ */

a {
    color: #1a4fd8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================================
   FOOTER TEXT (simple paragraph at bottom)
   ============================================================ */

.content p:last-of-type {
    margin-top: 24px;
    font-size: 0.85rem;
    color: #555;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
    main.layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }
}
/* ============================================================
   TEAM LOGOS IN TABLE (FIX SIZE, NO LAYOUT BREAK)
   ============================================================ */

/* Nur Logos IN DER TABELLE anfassen */
table img {
    height: 22px;
    width: auto;
    max-width: 28px;
    vertical-align: middle;
    margin-right: 6px;
}

/* Falls Logo + Text nebeneinander stehen */
table td {
    white-space: nowrap;
}

/* ============================================================
   TEAM LOGOS – SUMMARY BLOCK (FIX SIZE)
   ============================================================ */

.summary img {
    height: 32px;
    width: auto;
    max-width: 38px;
    vertical-align: middle;
    margin: 0 4px;
}

/* ============================================================
   CLEAR BUTTON – SAME LOOK AS FORM BUTTON
   ============================================================ */

.h2h-form .btn-clear {
    display: inline-block;
    padding: 4px 8px;              /* identisch zu button */
    font-size: 0.95rem;
    line-height: 1.2;
    border-radius: 3px;
    border: 1px solid #c7cbd6;
    background: #eef1f6;
    color: #111;
    text-decoration: none;
    cursor: pointer;
}

.h2h-form .btn-clear:hover {
    background: #e0e5ef;
    border-color: #b5bbca;
    text-decoration: none;
}

.h2h-form .btn,
.h2h-form button {
    padding: 4px 10px;
    font-size: 0.95rem;
    cursor: pointer;
}

.h2h-form .btn.secondary {
    background: #eef1f6;
    border: 1px solid #ccd3dc;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
}

.h2h-form .btn.secondary:hover {
    background: #e2e7f0;
}
/* ============================================================
   INTRO TEXT (SEO + USER CONTEXT)
   ============================================================ */

/* ============================================================
   INTRO / HERO TEXT
   ============================================================ */

.intro {
    background: linear-gradient(
        to bottom,
        #8eaeed 0%,
        #8eaeed 40%,
        #f5f6f8 40%,
        #f5f6f8 100%
    );
    padding: 28px 24px 8px;
}

.intro-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 18px 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.intro p {
    margin: 0 0 10px;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #222;
}

.intro-lead {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0b2a5b;
}

.intro-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 12px;
}

