From c2242e4eb32671a341b3df17717a741ae1e159bb Mon Sep 17 00:00:00 2001 From: torsten Date: Sun, 4 Oct 2026 23:38:41 +0200 Subject: [PATCH] stylesheet --- public/css/style.css | 296 +++++++++++++++++++++++++++++---- src/Views/admin/roundmails.php | 4 +- src/Views/admin/rounds.php | 2 +- src/Views/admin/seasons.php | 2 +- src/Views/admin/users.php | 2 +- src/Views/info/guide.php | 8 +- src/Views/partials/footer.php | 2 + src/Views/partials/header.php | 8 +- src/Views/ranking.php | 16 +- src/Views/tipps/index.php | 2 + 10 files changed, 290 insertions(+), 52 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index 6a4614d..2f51b1f 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1,55 +1,258 @@ -/* Globale Stile */ -body { font-family: sans-serif; margin: 2em; } -nav { background: #f4f4f4; padding: 1em; margin-bottom: 2em; } -nav a { margin-right: 1em; text-decoration: none; color: #333; font-weight: bold; } +/* ========================================================================== + Tippspiel 2027 – Stadion-Design + Nur Systemschriften (keine externen Webfonts, datenschutzfreundlich). + ========================================================================== */ -/* Dropdown in der Navigation (Info -> Quoten / Geldrangliste) */ +:root { + --pitch-dark: #0b3d23; /* Rasen dunkel: Navigation, Tabellenköpfe */ + --pitch: #14632f; /* Rasen: Buttons, Akzente */ + --pitch-light: #e8f3ec; /* Rasen hell: Zebra-Zeilen, Hover */ + --gold: #f2c230; /* Pokal-Gold: Akzentlinie, Platz 1 */ + --silver: #c0c6cc; + --bronze: #cd8a4f; + --ink: #1c2421; /* Text */ + --muted: #66706b; + --line: #d5ddd8; /* Rahmen */ + --page-bg: #eef1ef; + --link: #14632f; + + /* Trefferfarben (Rangliste, Legende, Anleitung) */ + --col-tendenz: #7b8794; + --col-exact: #f0a020; + --col-joker-exact: #d62d2d; + + --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + --font-display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", "Segoe UI", system-ui, sans-serif; +} + +/* Grundlayout ------------------------------------------------------------- */ +* { box-sizing: border-box; } + +body { + margin: 0; + font-family: var(--font); + color: var(--ink); + background: + repeating-linear-gradient(90deg, rgba(20, 99, 47, 0.025) 0 80px, transparent 80px 160px), + var(--page-bg); + line-height: 1.45; +} + +.page { + max-width: 1400px; + margin: 1.5em auto; + padding: 1.5em 2em 2em; + background: #fff; + border-radius: 10px; + box-shadow: 0 2px 12px rgba(11, 61, 35, 0.08); +} + +h1, h2, h3 { + font-family: var(--font-display); + font-weight: 800; + letter-spacing: 0.02em; + color: var(--pitch-dark); +} +h1 { + text-transform: uppercase; + margin-top: 0.2em; + padding-bottom: 0.25em; + border-bottom: 4px solid var(--gold); + display: inline-block; +} +h2 { margin-top: 1.4em; } + +a { color: var(--link); } + +/* Sprungziele (#round-…, #playerid_…) nicht unter der fixierten Navigation verstecken */ +[id] { scroll-margin-top: 90px; } +a:hover { color: var(--pitch-dark); } + +/* Navigation ("Stadionbanner") -------------------------------------------- */ +.site-nav { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 0.2em 0.4em; + padding: 0.55em 1.5em; + background: linear-gradient(180deg, #145a32 0%, var(--pitch-dark) 100%); + border-bottom: 4px solid var(--gold); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); + position: sticky; + top: 0; + z-index: 20; +} +.site-nav a { + color: #fff; + text-decoration: none; + font-family: var(--font-display); + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.04em; + padding: 0.35em 0.7em; + border-radius: 6px; +} +.site-nav > a:hover, +.site-nav .nav-dropdown > a:hover, +.site-nav .nav-dropdown:focus-within > a { background: rgba(255, 255, 255, 0.12); color: var(--gold); } + +.site-nav .brand { + font-size: 1.15em; + font-weight: 900; + letter-spacing: 0.06em; + margin-right: 0.8em; + padding-left: 0; +} +.site-nav .brand:hover { background: none; } +.brand-ball { display: inline-block; transition: transform 0.4s; } +.site-nav .brand:hover .brand-ball { transform: rotate(180deg); } +.brand-year { color: var(--gold); } + +.nav-user { margin-left: auto; } + +/* Dropdowns in der Navigation (Administration, Info, Spielermenü) */ .nav-dropdown { position: relative; display: inline-block; } .nav-dropdown-content { display: none; position: absolute; left: 0; top: 100%; - z-index: 10; - min-width: 12em; - padding: 0.5em 0; - background: #f4f4f4; - border: 1px solid #ccc; - box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); + z-index: 30; + min-width: 13em; + padding: 0.4em 0; + background: #fff; + border-top: 3px solid var(--gold); + border-radius: 0 0 8px 8px; + box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); + white-space: nowrap; } -.nav-dropdown-content a { display: block; margin: 0; padding: 0.3em 1em; font-weight: normal; } -.nav-dropdown-content a:hover { background: #e4e4e4; } -.nav-dropdown-form { margin: 0.3em 0 0; padding-top: 0.3em; border-top: 1px solid #ccc; } +.nav-user .nav-dropdown-content { left: auto; right: 0; } +.site-nav .nav-dropdown-content a { + display: block; + margin: 0; + padding: 0.45em 1.1em; + border-radius: 0; + color: var(--ink); + font-family: var(--font); + font-weight: 500; + text-transform: none; + letter-spacing: 0; +} +.site-nav .nav-dropdown-content a:hover { background: var(--pitch-light); color: var(--pitch-dark); } +.nav-dropdown-form { margin: 0.3em 0 0; padding-top: 0.3em; border-top: 1px solid var(--line); } .nav-dropdown-form button { display: block; width: 100%; - padding: 0.3em 1em; + padding: 0.45em 1.1em; border: none; + border-radius: 0; background: none; - color: #333; + color: var(--ink); font: inherit; + font-weight: 500; text-align: left; + text-transform: none; + letter-spacing: 0; white-space: nowrap; cursor: pointer; + box-shadow: none; } -.nav-dropdown-form button:hover { background: #e4e4e4; } -.nav-dropdown-form small { color: #777; } -.nav-dropdown-content { white-space: nowrap; } +.nav-dropdown-form button:hover { background: var(--pitch-light); } +.nav-dropdown-form small { color: var(--muted); } .nav-dropdown:hover .nav-dropdown-content, .nav-dropdown:focus-within .nav-dropdown-content { display: block; } -/* Standard-Tabellen */ +/* Fußzeile */ +.site-footer { + text-align: center; + color: var(--muted); + font-size: 0.75em; + padding: 0 0 2em; + letter-spacing: 0.05em; + text-transform: uppercase; +} + +/* Tabellen ("Anzeigetafel") ------------------------------------------------ */ table { - border-collapse: collapse; + border-collapse: separate; + border-spacing: 0; width: 100%; max-width: 800px; margin-top: 1em; + border: 1px solid var(--line); + border-radius: 8px; + overflow: hidden; } -th, td { border: 1px solid #ccc; padding: 8px; text-align: left; } -th { background-color: #f4f4f4; } -/* tr:nth-child(even) { background-color: #f9f9f9; } */ /* Deaktiviert, da es mit Zell-Farben interferiert */ +th, td { + border: none; + border-bottom: 1px solid var(--line); + padding: 8px 10px; + text-align: left; +} +tbody tr:last-child td { border-bottom: none; } +th { + background: var(--pitch-dark); + color: #fff; + font-family: var(--font-display); + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.04em; + font-size: 0.85em; +} +th a { color: var(--gold); } +tbody tr:nth-child(even) td { background-color: #f6faf7; } +tbody tr:hover td { background-color: var(--pitch-light); } +tfoot th, tfoot td { background: #f0f4f1; color: var(--ink); border-top: 2px solid var(--pitch-dark); } -/* Utility-Klassen */ +/* Formulare --------------------------------------------------------------- */ +input[type="text"], input[type="email"], input[type="password"], input[type="number"], +input[type="datetime-local"], select, textarea { + font: inherit; + padding: 0.35em 0.55em; + border: 1px solid #b9c4bd; + border-radius: 6px; + background: #fff; + color: var(--ink); +} +input:focus, select:focus, textarea:focus { + outline: none; + border-color: var(--pitch); + box-shadow: 0 0 0 3px rgba(20, 99, 47, 0.18); +} +input[readonly] { background: #f2f4f3; color: var(--muted); } +input[type="checkbox"] { accent-color: var(--pitch); width: 1.1em; height: 1.1em; vertical-align: middle; } + +button { + font: inherit; + font-family: var(--font-display); + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.05em; + padding: 0.4em 1.2em; + color: #fff; + background: linear-gradient(180deg, #1b7a3b, var(--pitch)); + border: none; + border-radius: 999px; + box-shadow: 0 2px 0 var(--pitch-dark); + cursor: pointer; +} +button:hover { background: var(--pitch-dark); } +button:active { transform: translateY(1px); box-shadow: none; } +button:disabled { background: #b8c2bc; box-shadow: none; cursor: not-allowed; } +/* Link-artige Buttons (z.B. "Löschen", "Als aktiv setzen") bleiben schlicht */ +button.link-button { + background: none; + box-shadow: none; + color: var(--link); + text-transform: none; + letter-spacing: 0; + font-family: var(--font); + font-weight: normal; + padding: 0; + border-radius: 0; +} + +/* Utility-Klassen ---------------------------------------------------------- */ .text-center { text-align: center !important; } /* Container für breite, scrollbare Tabellen (Rangliste, Rundenansicht) */ @@ -58,17 +261,30 @@ th { background-color: #f4f4f4; } overflow-x: auto; margin-top: 20px; } -/* Spezifische Stile für Tabellen in diesem Container */ .table-container table { width: auto; min-width: 100%; } -/* Stile für Zellen in Rangliste/Rundenansicht */ -td.tipp-cell { text-align: center !important; position: relative; } -td.tipp-cell.col_exact { background-color: orange !important; color: white; } /* Exaktes Ergebnis */ -td.tipp-cell.col_tendenz { background-color: grey !important; color: white; } /* Richtige Tendenz */ -td.tipp-cell.col_joker_exact { background-color: red !important; color: white; } /* Exaktes Ergebnis mit Joker */ +/* Rangliste --------------------------------------------------------------- */ +td.tipp-cell { text-align: center !important; position: relative; font-weight: 700; } +td.tipp-cell.col_exact { background-color: var(--col-exact) !important; color: #fff; } /* Exaktes Ergebnis */ +td.tipp-cell.col_tendenz { background-color: var(--col-tendenz) !important; color: #fff; } /* Richtige Tendenz */ +td.tipp-cell.col_joker_exact { background-color: var(--col-joker-exact) !important; color: #fff; } /* Exakt mit Joker */ + +/* Platz-Plakette, Gold/Silber/Bronze für die Top 3 */ +.rank-badge { + display: inline-block; + min-width: 2em; + padding: 0.1em 0.4em; + border-radius: 999px; + font-weight: 800; + text-align: center; +} +tr.rank-1 .rank-badge { background: var(--gold); color: #3d2d00; } +tr.rank-2 .rank-badge { background: var(--silver); color: #23292e; } +tr.rank-3 .rank-badge { background: var(--bronze); color: #fff; } +tr.me td:not(.tipp-cell) { background-color: #fff6d6 !important; font-weight: 700; } .round-filter { margin-bottom: 20px; } .joker-icon { @@ -82,9 +298,11 @@ th.game-header { white-space: normal; } /* Legende */ .legend { margin: 20px 0; - padding: 10px; - border: 1px solid #ccc; - background-color: #f9f9f9; + padding: 10px 14px; + border: 1px solid var(--line); + border-left: 5px solid var(--pitch); + border-radius: 8px; + background-color: #f7faf8; display: flex; flex-wrap: wrap; gap: 15px; @@ -98,5 +316,13 @@ th.game-header { white-space: normal; } .legend-color { width: 20px; height: 20px; - border: 1px solid #666; + border-radius: 4px; + border: 1px solid rgba(0, 0, 0, 0.2); +} + +/* Kleine Bildschirme ------------------------------------------------------- */ +@media (max-width: 700px) { + .page { margin: 0.6em; padding: 1em; border-radius: 6px; } + .site-nav { padding: 0.5em 0.6em; position: static; } + .nav-user { margin-left: 0; } } diff --git a/src/Views/admin/roundmails.php b/src/Views/admin/roundmails.php index d9b0949..b17377b 100644 --- a/src/Views/admin/roundmails.php +++ b/src/Views/admin/roundmails.php @@ -169,9 +169,9 @@ require __DIR__ . '/../partials/header.php'; .mail-form .hint { color: #666; font-size: 0.8em; } .pagination { margin-top: 1em; display: flex; flex-wrap: wrap; gap: 0.3em; align-items: center; } .pagination a, .pagination span { padding: 0.2em 0.6em; border: 1px solid #ccc; border-radius: 3px; text-decoration: none; } -.pagination a { color: #007bff; } +.pagination a { color: var(--link); } .pagination a:hover { background: #f4f4f4; } -.pagination .current { background: #007bff; border-color: #007bff; color: white; font-weight: bold; } +.pagination .current { background: var(--link); border-color: var(--link); color: white; font-weight: bold; } .pagination .disabled { color: #aaa; } .pagination .gap { border: none; } .pagination-info { color: #666; font-size: 0.8em; } diff --git a/src/Views/admin/rounds.php b/src/Views/admin/rounds.php index d8396dd..a0b26c0 100644 --- a/src/Views/admin/rounds.php +++ b/src/Views/admin/rounds.php @@ -118,7 +118,7 @@ $failedRoundId = $failedForm ? (int)($failedForm['round_id'] ?? 0) : null; -