```
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Baustein: for-Schleife</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "Segoe UI", sans-serif;
  background: #f0f0f5;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.card {
  background: #ffffff;
  width: 100%;
  max-width: 1000px;
  border-radius: 12px;
  padding: 28px 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.5;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.beschreibung {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 6px;
}

.zweck {
  font-size: 14px;
  font-style: italic;
  color: #5a6470;
  margin-bottom: 22px;
}

.examples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.code-block {
  background: #1e2a3a;
  color: #e6e6e6;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: 8px;
  white-space: pre;
}

.code-block .label {
  font-family: -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8be9fd;
  margin-bottom: 6px;
  display: block;
}

.k { color: #ff79c6; }
.v { color: #ffb86c; }
.n { color: #ffb86c; }
</style>
</head>
<body>

<div class="card">

  <h1>for-Schleife</h1>

  <p class="beschreibung">Wiederholt einen Code-Block.</p>

  <p class="zweck">Liste oder Bereich durchgehen.</p>

  <div class="examples">

    <div class="code-block"><span class="label">Vorwärts zählen</span><span class="k">for</span> (<span class="v">$i</span> = <span class="n">0</span>; <span class="v">$i</span> &lt; <span class="n">10</span>; <span class="v">$i</span>++) {
  <span class="k">echo</span> <span class="v">$i</span>;
}</div>

  </div>

</div>

</body>
</html>
```