:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dbe3ef;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --danger: #b91c1c;
  --success: #15803d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page-center {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.card {
  background: var(--card);
  width: 100%;
  max-width: 420px;
  padding: 36px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.panel {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

h1,h2,h3 { margin-top: 0; }

p { color: var(--muted); }

label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

input[type="file"] {
  padding: 10px;
  background: #f8fafc;
}

button, .btn {
  display: inline-block;
  border: none;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

button:hover, .btn:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.msg {
  margin-top: 16px;
  min-height: 22px;
  font-size: 14px;
  color: var(--danger);
}

.msg.success {
  color: var(--success);
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.password-rules {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

.password-rules ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.password-rules li {
  margin-bottom: 3px;
}

.navlinks {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}

.navlinks a {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.navlinks a:hover {
  border-color: var(--primary);
}

.form-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.section-title {
  margin-top: 0;
  margin-bottom: 6px;
}

.upload-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f8fb;
}

/* LOGO oben rechts fixiert */
.header {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1000;
}

/* kleines, elegantes Logo */
.logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.logo:hover {
  opacity: 1;
}

/* Seite bleibt schön zentriert */
.page-center {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Login Card */
.card {
  width: 100%;
  max-width: 380px;
  background: white;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

@media (max-width: 600px) {
  .header {
    top: 10px;
    right: 15px;
  }

  .logo {
    height: 60px;
  }
}