:root {
  --gw-green:#89a23a;
  --gw-blue:#00a0a7;
  --ink:#263238;
  --muted:#5a5a5a;
  --line:#e8ebe6;
  --radius:16px;
  --shadow:0 12px 30px rgba(0,0,0,.08);
  --err:#c62828;
}

*,*::before,*::after { box-sizing:border-box; }

body {
  margin:0;
  font:16px/1.45 system-ui, Segoe UI, Roboto, Arial;
  color:var(--ink);
  background:url('img/blumelogo.jpg') no-repeat center center fixed;
  background-size:cover;
}

.bg-shape { display:none; }

/* ================= HEADER ================= */

header {
  position:sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid var(--line);
  z-index:10;
}

.nav {
  max-width:960px;
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  gap:16px;
}

.logo-img { width:200px; height:auto; }
.spacer { flex:1; }

/* ================= MAIN ================= */

main {
  max-width:960px;
  margin:0 auto;
  padding:24px;
  display:grid;
  gap:24px;
}

.hero,
.panel {
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.panel.pad { padding:22px; }

h1 {
  font-size:clamp(30px,4.6vw,46px);
  margin:0;
  color:var(--gw-green);
}

/* ================= STEPS ================= */

.stepper { display:grid; gap:16px; }

.step {
  padding:16px;
  border:1px solid #e6efd8;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(137,162,58,.06), transparent 45%);
}

.step h3 {
  margin:0 0 10px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:18px;
  color:var(--gw-blue);
}

.stepno {
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--gw-green);
  color:#fff;
  font-weight:800;
}

.two {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

@media (max-width:820px){
  .two { grid-template-columns:1fr; }
}

.field { display:grid; gap:6px; }

label { font-size:13px; color:#3b3b3b; }

input, select {
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid #dfe5d6;
  background:#fff;
}

input:focus,
select:focus {
  outline:none;
  border-color:var(--gw-blue);
  box-shadow:0 0 0 2px rgba(0,160,167,.35);
}

/* ================= BUTTONS ================= */

.actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn {
  padding:12px 16px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  border:0;
  background:var(--gw-green);
  color:#fff;
  box-shadow:0 6px 16px rgba(137,162,58,.28);
}

.btn:hover {
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(137,162,58,.35);
}

.btn.link {
  background:transparent;
  color:var(--gw-blue);
  box-shadow:none;
  font-size:16px;
}

/* ================= FEHLER ================= */

.error {
  min-height:1.1em;
  margin:6px 2px 0;
  font-size:12.5px;
  color:var(--err);
}

input.error-field {
  border-color:var(--err);
  box-shadow:0 0 0 2px rgba(198,40,40,.25);
}

/* ================= MODAL ================= */

dialog {
  border:0;
  padding:0;
  background:transparent;
}

.modal {
  width:min(720px, 92vw);
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 30px 60px rgba(0,0,0,.2);

  /* 🔴 ENTSCHEIDEND: Dialog scrollt NIE */
  overflow:hidden;
}

.modal-head,
.modal-foot {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 18px;
}

.modal-head { border-bottom:1px solid var(--line); }
.modal-foot { border-top:1px solid var(--line); justify-content:flex-end; }

.modal-head h3 {
  margin:0;
  font-size:20px;
  color:var(--gw-blue);
}

.modal-head .icon {
  background:none;
  border:none;
  font-size:20px;
  cursor:pointer;
}

/* ================= REGELN (NUR HIER SCROLL) ================= */

.rules {
  list-style:none;
  counter-reset:rule;
  margin:0;
  padding:18px 26px;
  display:grid;
  gap:14px;

  /* 🔴 NUR DER CONTENT DARF SCROLLEN */
  max-height:65vh;
  overflow-y:auto;
}

.rules li {
  counter-increment:rule;
  position:relative;
  padding:14px 16px 14px 54px;
  background:linear-gradient(
    180deg,
    rgba(137,162,58,.08),
    rgba(255,255,255,.95)
  );
  border:1px solid #e6efd8;
  border-radius:14px;
  font-size:14.5px;
  line-height:1.55;
}

.rules li::before {
  content:counter(rule);
  position:absolute;
  left:16px;
  top:14px;
  width:26px;
  height:26px;
  border-radius:50%;
  background:var(--gw-green);
  color:#fff;
  font-weight:800;
  display:grid;
  place-items:center;
  font-size:13px;
}

/* ================= FOOTER ================= */

.footer {
  text-align:center;
  padding:18px 14px;
  font-size:14px;
  color:var(--muted);
  border-top:1px solid var(--line);
  margin-top:30px;
}

.footer a {
  color:var(--gw-blue);
  text-decoration:none;
  margin:0 8px;
  font-weight:600;
}

.footer a:hover { text-decoration:underline; }
.sep { margin:0 6px; }

.hero p {
  color: #198c98;
  font-weight: 700;
}

.hero h1 {
  text-align: center;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 768px) {
  .nav {
    padding: 10px 16px;
  }

  .logo-img {
    width: 150px;
  }

  main {
    padding: 16px;
    gap: 16px;
  }

  h1 {
    font-size: clamp(24px, 5vw, 36px);
  }

  .panel.pad {
    padding: 16px;
  }

  .step {
    padding: 12px;
  }

  .step h3 {
    font-size: 16px;
  }

  .stepno {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  input,
  select {
    padding: 10px 12px;
    font-size: 15px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 15px;
  }

  .modal {
    width: 95vw;
  }

  .rules {
    padding: 14px 18px;
    max-height: 60vh;
  }

  .rules li {
    padding: 12px 14px 12px 48px;
    font-size: 13.5px;
  }

  .rules li::before {
    width: 24px;
    height: 24px;
    left: 14px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 8px 12px;
    flex-direction: column;
    gap: 8px;
  }

  .logo-img {
    width: 120px;
  }

  .spacer {
    display: none;
  }

  main {
    padding: 12px;
    gap: 12px;
  }

  h1 {
    font-size: 22px;
  }

  .panel.pad {
    padding: 12px;
  }

  .step {
    padding: 10px;
  }

  .step h3 {
    font-size: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  input,
  select {
    padding: 8px 10px;
    font-size: 14px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }

  .modal {
    width: 98vw;
  }

  .modal-head,
  .modal-foot {
    padding: 12px 14px;
  }

  .modal-head h3 {
    font-size: 16px;
  }

  .rules {
    padding: 12px 14px;
    max-height: 55vh;
  }

  .rules li {
    padding: 10px 12px 10px 44px;
    font-size: 12.5px;
  }

  .rules li::before {
    width: 22px;
    height: 22px;
    left: 12px;
    font-size: 11px;
  }
}
