Schach-Turnierrechner | DWZ & Elo Live-Berechnung
by LuckyFlare17333 lines9.7 KB
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Schach-Turnierrechner | DWZ & Elo Live-Berechnung</title>
<style>
:root {
--primary: #1e3a8a;
--primary-hover: #172554;
--accent: #3b82f6;
--success: #10b981;
--danger: #ef4444;
--background: #f1f5f9;
--card-bg: #ffffff;
--text: #0f172a;
--text-light: #475569;
--border: #cbd5e1;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: var(--background);
color: var(--text);
line-height: 1.5;
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Header Navigation */
header {
background-color: var(--primary);
color: white;
padding: 15px 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header-container {
max-width: 1000px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 20px;
font-weight: 700;
letter-spacing: 0.5px;
}
.logo span {
color: var(--accent);
}
/* Hauptinhalt Layout */
main {
flex: 1;
max-width: 1000px;
width: 100%;
margin: 40px auto;
padding: 0 20px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
}
@media (max-width: 768px) {
main {
grid-template-columns: 1fr;
}
}
/* Card Styles */
.card {
background: var(--card-bg);
padding: 30px;
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
h1, h2 {
font-size: 22px;
font-weight: 700;
margin-bottom: 10px;
color: var(--primary);
}
.intro-text {
color: var(--text-light);
font-size: 14px;
margin-bottom: 24px;
}
/* Formular Elemente */
.form-group {
margin-bottom: 20px;
}
.flex-group {
display: flex;
gap: 12px;
}
.flex-group > div {
flex: 1;
}
label {
display: block;
font-size: 13px;
font-weight: 600;
margin-bottom: 6px;
color: var(--text-light);
text-transform: uppercase;
letter-spacing: 0.5px;
}
input, select {
width: 100%;
padding: 12px 14px;
font-size: 16px;
border: 1px solid var(--border);
border-radius: 8px;
background-color: #fff;
transition: all 0.2s;
}
input:focus, select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
/* Gegner-Liste */
.row-list {
max-height: 250px;
overflow-y: auto;
margin-bottom: 15px;
border: 1px solid var(--border);
border-radius: 8px;
padding: 10px;
background: #fafafa;
}
.input-row {
display: flex;
gap: 8px;
margin-bottom: 8px;
align-items: center;
}
.input-row input { flex: 2; }
.input-row select { flex: 1.5; }
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
padding: 14px;
font-size: 16px;
font-weight: 600;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.2s;
}
.btn-primary {
background-color: var(--accent);
color: white;
margin-top: 10px;
}
.btn-primary:hover { background-color: #2563eb; }
.btn-secondary {
background-color: transparent;
color: var(--accent);
border: 1px solid var(--accent);
font-size: 14px;
padding: 8px 12px;
margin-bottom: 20px;
}
.btn-secondary:hover { background-color: rgba(59, 130, 246, 0.05); }
.btn-icon {
background-color: transparent;
color: var(--text-light);
border: 1px solid var(--border);
width: 44px;
height: 44px;
border-radius: 8px;
cursor: pointer;
font-size: 20px;
}
.btn-icon:hover { color: var(--danger); border-color: #fca5a5; background: #fff5f5; }
/* Ergebnis-Anzeige */
.results {
margin-top: 24px;
display: none;
}
.results-box {
background: #ecfdf5;
border: 1px solid #a7f3d0;
padding: 20px;
border-radius: 8px;
}
.result-item {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid rgba(16, 185, 129, 0.2);
font-size: 15px;
}
.result-item:last-of-type { border-bottom: none; }
.final-score {
font-size: 22px;
font-weight: 800;
color: #065f46;
margin-top: 15px;
text-align: center;
background: white;
padding: 12px;
border-radius: 6px;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
/* Info-Box (Rechte Spalte) */
.info-card h2 { margin-bottom: 15px; }
.info-card p { font-size: 15px; color: var(--text-light); margin-bottom: 15px; line-height: 1.6; }
.info-card ul { margin-left: 20px; margin-bottom: 15px; color: var(--text-light); font-size: 14px; }
.info-card ul li { margin-bottom: 5px; }
/* Footer */
footer {
background-color: #0f172a;
color: #94a3b8;
text-align: center;
padding: 20px;
font-size: 13px;
margin-top: auto;
}
</style>
</head>
<body>
<header>
<div class="header-container">
<div class="logo">Caissa<span>Calc</span></div>
<div style="font-size: 13px; opacity: 0.8;">Klassischer DWZ-Rechner</div>
</div>
</header>
<main>
<!-- Linke Spalte: Der Rechner -->
<div class="card">
<h1>Turnierauswertung</h1>
<div class="intro-text">Rechnet präzise mit den von dir eingegebenen Zahlen nach dem offiziellen Elo/FIDE-Wertungssystem.</div>
<div class="flex-group">
<div class="form-group">
<label for="eigeneDwz">Deine Start-DWZ</label>
<input type="number" id="eigeneDwz" value="1430">
</div>
<div class="form-group">
<label for="kFaktor">K-Faktor (Entwicklung)</label>
<select id="kFaktor">
<option value="20">20 (Standard)</option>
<option value="40">40 (Jugendliche)</option>
<option value="15">15 (Top-Spieler)</option>
</select>
</div>
</div>
<label>Gegner & Resultate</label>
<div id="liste" class="row-list">
<div class="input-row">
<input type="number" class="gegner-dwz" placeholder="Gegner DWZ" value="1500">
<select class="gegner-ergebnis">
<option value="1">Sieg (1)</option>
<option value="0.5">Remis (0.5)</option>
<option value="0">Niederlage (0)</option>
</select>
<button class="btn-icon" onclick="removeZeile(this)">×</button>
</div>
</div>
<button type="button" class="btn btn-secondary" onclick="addZeile()">+ Gegner hinzufügen</button>
<button class="btn btn-primary" onclick="berechneTurnier()">Turnier berechnen</button>
<!-- Ergebnisse innerhalb der Karte -->
<div id="ausgabe" class="results">
<div class="results-box">
<div class="result-item">
<span>Erzielte Punkte:</span>
<span id="resPunkte" style="font-weight:600;">0</span>
</div>
<div class="result-item">
<span>Erwartete Punkte (We):</span>
<span id="resErwartung" style="font-weight:600;">0</span>
</div>
<div class="result-item">
<span>Reine Auswirkung:</span>
<span id="resAenderung" style="font-weight:600;">0</span>
</div>
<div class="final-score">Neue DWZ: <span id="resFinaleDwz">0</span></div>
</div>
</div>
</div>
<!-- Rechte Spalte: Erklärung & Regeln -->
<div class="card info-card">
<h2>Wie wird gerechnet?</h2>
<p>Dieser Online-Rechner nutzt die klassische mathematische Formel zur Auswertung von Schachpartien. Er führt keine automatischen Anpassungen durch, sondern kalkuliert exakt den Zuwachs oder Verlust deiner eingegebenen Zahl.</p>
Game Source: Schach-Turnierrechner | DWZ & Elo Live-Berechnung
Creator: LuckyFlare17
Libraries: none
Complexity: complex (333 lines, 9.7 KB)
The full source code is displayed above on this page.
Remix Instructions
To remix this game, copy the source code above and modify it. Add a ARCADELAB header at the top with "remix_of: schach-turnierrechner-dwz-elo-live-berec-luckyflare17" to link back to the original. Then publish at arcadelab.ai/publish.