/* ============================================
   HD Energy — phantasialand.hdenergypro.de
   Mobile-first, Premium Direktvertrieb
   ============================================ */

:root {
  --navy: #0D1B2A;
  --navy-2: #142a44;
  --navy-3: #1c3a60;
  --orange: #F4800A;
  --orange-2: #FFA94D;
  --white: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.55);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Decorative background glow */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background: radial-gradient(
      ellipse 60% 40% at 80% 0%,
      rgba(244, 128, 10, 0.18),
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 40% at 10% 100%,
      rgba(244, 128, 10, 0.12),
      transparent 60%
    );
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--orange-2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1080px;
}

/* ---------- Header ---------- */
.site-header {
  padding: 24px 0 8px;
  display: flex;
  justify-content: center;
}

.site-header .logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 36px 0 24px;
}

.hero h1 {
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #e8eef7 60%, #ffd09a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .recommend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero .recommend strong {
  color: var(--white);
  font-weight: 600;
}

.hero .recommend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(244, 128, 10, 0.18);
}

/* ---------- Video ---------- */
.video-section {
  margin: 28px 0;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
  padding: 20px;
}

.video-placeholder .play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(244, 128, 10, 0.18);
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--orange-2);
}

/* ---------- CTAs ---------- */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, border-color 0.18s ease;
  letter-spacing: 0.01em;
  text-align: center;
  font-family: inherit;
  width: 100%;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #ff9522 100%);
  color: #1a0d00;
  box-shadow: 0 14px 34px rgba(244, 128, 10, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: pulse-orange 2.6s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(244, 128, 10, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes pulse-orange {
  0%, 100% {
    box-shadow: 0 14px 34px rgba(244, 128, 10, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow: 0 14px 34px rgba(244, 128, 10, 0.55),
      0 0 0 6px rgba(244, 128, 10, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

.btn-secondary {
  background: rgba(13, 27, 42, 0.55);
  color: var(--white);
  border-color: var(--orange);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(244, 128, 10, 0.12);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 20px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 20px;
}

.trust-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.trust-item .num {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange-2);
  display: block;
  line-height: 1.1;
}
.trust-item .lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
  padding: 22px 0 30px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-muted);
  margin: 0 8px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  background: rgba(13, 27, 42, 0.92);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 16px 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  display: none;
  font-size: 14px;
  color: var(--text-muted);
}
.cookie-banner.show {
  display: block;
  animation: slide-up 0.35s ease;
}
.cookie-banner p {
  margin-bottom: 12px;
}
.cookie-banner .actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.cookie-banner button {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
}
.cookie-banner button.accept {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a0d00;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   KARRIERE
   ============================================ */
.section {
  padding: 36px 0;
}

.section h2 {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  text-align: center;
}

.lead {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (min-width: 600px) {
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.benefit-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.benefit-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244, 128, 10, 0.25), rgba(244, 128, 10, 0.08));
  border: 1px solid rgba(244, 128, 10, 0.35);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 700;
}

.benefit-card p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Bewerbungs-Form */
.form-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

@media (min-width: 600px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--white);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.09);
}

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  margin: 12px 0 18px;
  line-height: 1.5;
}

.form-success {
  display: none;
  background: rgba(20, 160, 80, 0.15);
  border: 1px solid rgba(20, 160, 80, 0.4);
  color: #b8f5cf;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

.form-error {
  display: none;
  background: rgba(220, 60, 60, 0.15);
  border: 1px solid rgba(220, 60, 60, 0.4);
  color: #ffc6c6;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 14px;
  font-size: 14px;
}

/* ============================================
   ADMIN
   ============================================ */
.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(13, 27, 42, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.admin-topbar .brand img {
  height: 32px;
}
.admin-topbar button {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.admin-topbar button:hover {
  border-color: var(--orange);
}

.admin-main {
  padding: 24px 0 60px;
}

.admin-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-card h2 {
  font-size: 18px;
  margin-bottom: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card .hint {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 14px;
}

.row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--white);
  font-family: inherit;
}

.btn-sm.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a0d00;
}

.btn-sm:hover {
  border-color: var(--orange);
}

/* Tabelle */
.table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}
.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
.table-wrap th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}
.table-wrap tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.empty-state {
  text-align: center;
  padding: 30px 16px;
  color: var(--text-dim);
}

/* Login */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 30px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.login-card .logo-wrap {
  text-align: center;
  margin-bottom: 22px;
}
.login-card .logo-wrap img {
  height: 44px;
  display: inline-block;
}
.login-card h1 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 6px;
}
.login-card p {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
}

/* ============================================
   QR-Codes Übersicht
   ============================================ */
.qr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 24px;
}
@media (min-width: 600px) {
  .qr-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .qr-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.qr-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.qr-card .qr-img {
  background: var(--white);
  border-radius: 12px;
  padding: 14px;
  margin: 0 auto 14px;
  width: 220px;
  max-width: 100%;
}
.qr-card .qr-img img {
  width: 100%;
  height: auto;
}
.qr-card h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.qr-card .url {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
  word-break: break-all;
}
.qr-card a.dl {
  display: inline-block;
  background: var(--orange);
  color: #1a0d00;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}
.qr-card a.dl:hover {
  filter: brightness(1.05);
  text-decoration: none;
}
