:root {
  --orange: #f5a623;
  --orange-deep: #ee7c00;
  --black: #101010;
  --white: #ffffff;
  --light: #f6f6f6;
  --mid: #6e6e6e;
  --border: #dddddd;
  --success: #176b3a;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--black);
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  line-height: 1.5;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-title {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: .01em;
}

.brand-subtitle {
  color: #d2d2d2;
  font-size: .9rem;
}

main { min-height: 70vh; }

.hero {
  background:
    radial-gradient(circle at 15% 10%, rgba(245,166,35,.24), transparent 32%),
    linear-gradient(135deg, #111 0%, #1b1b1b 55%, #0b0b0b 100%);
  color: var(--white);
  padding: 64px 20px 56px;
}

.hero-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.03em;
}

.hero h1 span { color: var(--orange); }
.hero p {
  max-width: 720px;
  color: #ececec;
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin: 0 0 26px;
}

.hero-logo {
  width: min(280px, 70vw);
  margin: 0 auto;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.35));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #111;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 22px rgba(238,124,0,.25);
}
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(238,124,0,.32); }
.button.secondary { background: #fff; box-shadow: none; border: 1px solid var(--border); }

.content-wrap {
  max-width: 980px;
  margin: -22px auto 0;
  padding: 0 20px 60px;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #efefef;
  overflow: hidden;
}

.card-head {
  padding: 28px 30px 10px;
}
.card-head h2 { margin: 0 0 8px; font-size: 1.6rem; }
.card-head p { margin: 0; color: var(--mid); }

.form {
  padding: 20px 30px 32px;
}

.section-title {
  margin: 28px 0 12px;
  padding-top: 4px;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #353535;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field { margin-bottom: 16px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
.required::after { content: " *"; color: var(--orange-deep); }
.helper { color: var(--mid); font-size: .86rem; margin-top: 5px; }

input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(245,166,35,.16);
}

.check-card {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #e7e7e7;
  margin-bottom: 14px;
}
.check-card input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--orange-deep); }
.check-card label { margin: 0; font-weight: 600; }
.check-card p { margin: 7px 0 0; color: #555; font-size: .92rem; }

.notice {
  border-left: 4px solid var(--orange);
  background: #fff8ed;
  padding: 14px 16px;
  border-radius: 10px;
  margin: 18px 0;
  font-size: .94rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.fineprint { color: var(--mid); font-size: .82rem; }

.alert {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff3f2;
  color: var(--danger);
  border: 1px solid #ffd0cc;
}

.simple-page {
  max-width: 860px;
  margin: 60px auto;
  padding: 0 20px;
}
.simple-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.simple-card h1 { margin-top: 0; }

.site-footer {
  background: #0f0f0f;
  color: #d7d7d7;
  padding: 28px 20px;
}
.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .9rem;
}
.footer-inner a { color: #fff; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 760px) {
  .hero { padding-top: 44px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-logo { width: 180px; }
  .content-wrap { margin-top: -12px; }
  .card-head, .form { padding-left: 18px; padding-right: 18px; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .header-logo { width: 54px; height: 54px; }
}

/* Geschützter Verwaltungsbereich */
.admin-login { max-width: 520px; margin: 0 auto; }
.admin-logout { margin-left: auto; }
.admin-page { max-width: 1100px; }
.admin-record { border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin: 18px 0; background: #fff; }
.admin-record-head { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-bottom:12px; border-bottom:1px solid #eee; margin-bottom:14px; }
.admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 22px; margin-bottom:16px; }
.admin-grid > div { min-width:0; overflow-wrap:anywhere; }
.admin-grid span { display:block; color:var(--mid); font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin-bottom:3px; }
.button.danger { background:#7f1d1d; color:#fff; box-shadow:none; }
.local-test { border-left-color:#2563eb; background:#eff6ff; }
input[type="password"] { width:100%; min-height:48px; padding:11px 13px; border:1px solid var(--border); border-radius:12px; background:#fff; font:inherit; }
code { font-family:Consolas, Monaco, monospace; font-size:.92em; }
@media (max-width:760px) { .admin-grid { grid-template-columns:1fr; } }
