/* === 30 Jahre AST – Einladungstool === */
/* Angelehnt an www.austrian-security.at */

:root {
  --ast-black: #000000;
  --ast-white: #ffffff;
  --ast-yellow: #F3E621;
  --ast-gray: #666666;
  --ast-light: #f5f5f5;
  --ast-dark-gray: #1a1a1a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ast-black);
  background: var(--ast-white);
  line-height: 1.6;
}

/* === HEADER / NAVBAR === */
.navbar {
  background: var(--ast-black);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-logo-img {
  height: 40px;
  width: auto;
}

.navbar-link {
  color: var(--ast-white);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.navbar-link:hover {
  color: var(--ast-yellow);
}

/* === HERO SECTION === */
.hero {
  background: var(--ast-black);
  color: var(--ast-white);
  padding: 40px 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url('hero-bg.webp');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.5) 100%);
}

.hero-logo {
  height: 60px;
  width: auto;
  margin-top: 15px;
  margin-bottom: 15px;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-caption {
  color: var(--ast-yellow);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero h1 {
  font-family: 'Zapfino', 'Apple Chancery', 'Segoe Script', cursive;
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero h1 .yellow {
  color: var(--ast-yellow);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.hero-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-detail {
  text-align: center;
}

.hero-detail .icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.hero-detail .label {
  color: var(--ast-yellow);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-detail .value {
  font-size: 1.1rem;
  font-weight: 600;
}

.location-link {
  color: var(--ast-yellow);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.location-link:hover {
  text-decoration: underline;
  color: #fff;
}

/* === REGISTRATION SECTION === */
.registration-section {
  padding: 80px 40px;
  background: var(--ast-white);
}

.section-inner {
  max-width: 600px;
  margin: 0 auto;
}

.section-caption {
  color: var(--ast-yellow);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  background: var(--ast-black);
  display: inline-block;
  padding: 4px 12px;
}
a.section-caption-link {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
a.section-caption-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.caption-hint {
  font-size: 0.85rem;
  color: var(--ast-gray);
  margin: 6px 0 14px;
  font-style: italic;
}
.caption-hint a {
  color: var(--ast-black);
  text-decoration: none;
  border-bottom: 1px dashed var(--ast-gray);
}
.caption-hint a:hover {
  border-bottom-color: var(--ast-black);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-desc {
  color: var(--ast-gray);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* === FORM === */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ast-black);
}

.form-group label .required {
  color: #e74c3c;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
  background: var(--ast-light);
}

.form-group input:focus {
  outline: none;
  border-color: var(--ast-yellow);
  background: var(--ast-white);
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--ast-yellow);
  color: var(--ast-black);
}

.btn-primary:hover {
  background: #ddd31e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 230, 33, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-danger {
  background: #e74c3c;
  color: var(--ast-white);
}

.btn-danger:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ast-black);
  border: 2px solid var(--ast-black);
}

.btn-outline:hover {
  background: var(--ast-black);
  color: var(--ast-white);
}

/* === MESSAGES === */
.message {
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 20px;
  font-weight: 500;
  display: none;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* === CANCEL SECTION === */
.cancel-section {
  padding: 80px 40px;
  background: var(--ast-light);
  text-align: center;
  display: none;
}

.cancel-section.active {
  display: block;
}

.cancel-box {
  max-width: 500px;
  margin: 0 auto;
  background: var(--ast-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cancel-box h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.cancel-box p {
  color: var(--ast-gray);
  margin-bottom: 25px;
}

/* === ANFAHRT === */
.anfahrt-section {
  padding: 60px 40px;
  background: var(--ast-light);
  text-align: center;
}

.anfahrt-img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* === FOOTER === */
.footer {
  background: var(--ast-black);
  color: rgba(255, 255, 255, 0.5);
  padding: 40px;
  text-align: center;
}

.footer a {
  color: var(--ast-yellow);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: var(--ast-yellow);
  margin: 20px auto;
}

.footer p {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer-qr {
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
  border-radius: 8px;
}

/* === ADMIN === */
.admin-login {
  max-width: 400px;
  margin: 120px auto 40px;
  padding: 40px;
  text-align: center;
}

.admin-container {
  max-width: 1000px;
  margin: 100px auto 40px;
  padding: 20px 40px;
}

.guest-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.guest-table th {
  background: var(--ast-black);
  color: var(--ast-white);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.guest-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.guest-table tr:hover td {
  background: var(--ast-light);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-registered {
  background: #d4edda;
  color: #155724;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.admin-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--ast-light);
  padding: 20px 30px;
  border-radius: 8px;
  flex: 1;
  min-width: 150px;
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ast-black);
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--ast-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    padding: 30px 20px 20px;
  }

  .hero-caption {
    font-size: 1.2rem;
    letter-spacing: 3px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-logo {
    height: 45px;
  }

  .hero-details {
    gap: 15px;
    margin-top: 25px;
  }

  .hero-detail .value {
    font-size: 0.95rem;
  }

  .registration-section {
    padding: 50px 20px;
  }

  .cancel-section {
    padding: 50px 20px;
  }

  .footer {
    padding: 30px 20px;
  }

  .admin-container {
    padding: 20px;
    overflow-x: auto;
  }

  .guest-table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 25px 15px 15px;
  }

  .hero-caption {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-logo {
    height: 35px;
  }

  .hero-details {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* === LOADING SPINNER === */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--ast-black);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
