/* ===================================================================
   Captrain Kundenevent 2026 - Stylesheet
   =================================================================== */

:root {
  --color-primary: #bccc00;
  --color-primary-hover: #a8b800;
  --color-text-dark: #111111;
  --color-text-muted: #555555;
  --color-bg-white: #ffffff;
  --color-bg-grey: #e5e5e5;
  --color-border: #cccccc;
  --color-focus: #bccc00;
  --color-error: #c5221f;
  --color-error-bg: #fdf2f2;
  --color-success: #2e7d32;
  --color-success-bg: #f0f9f0;
  --font-family-condensed: 'UniversLT-Condensed', 'Univers LT Std 57 Condensed', 'Arial Narrow', 'Franklin Gothic Medium Cond', 'Roboto Condensed', sans-serif;
  --max-width: 1000px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  font-family: var(--font-family-condensed);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Top Navigation Bar & Language Switcher (captrain.de Style) */
.top-nav-bar {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #ededed;
}

.top-nav-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 20px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-family-condensed);
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.lang-link {
  color: #777777;
  text-decoration: none;
  padding: 2px 6px;
  transition: color 0.2s ease;
  position: relative;
}

.lang-link:hover {
  color: #000000;
  text-decoration: none;
}

.lang-link.is-active {
  color: #000000;
  font-weight: 800;
}

.lang-link.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 6px;
  right: 6px;
  height: 2px;
  background-color: var(--color-primary);
}

.lang-divider {
  color: #cccccc;
  margin: 0 2px;
  user-select: none;
}

/* Header */
.site-header {
  width: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.site-header img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Sections & Layout */
.section {
  width: 100%;
  padding: 40px 20px;
}

.section--white {
  background-color: var(--color-bg-white);
}

.section--grey {
  background-color: var(--color-bg-grey);
}

.content-container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-family-condensed);
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 0;
  line-height: 1.25;
}

h1 {
  color: var(--color-primary);
  font-size: 2.1rem;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.3rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.content-container > h3:first-child {
  margin-top: 0;
}

p {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 16px 0;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: bold;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: #7b8600;
}

.spacer {
  height: 24px;
}

/* Registration Form */
.registration-form-card {
  background: var(--color-bg-white);
  padding: 10px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-grid-zip-city {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
}

/* Form Controls */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  background-color: #fff;
  border: 1px solid var(--color-border);
  color: #000;
  font-family: var(--font-family-condensed);
  font-size: 1.05rem;
  line-height: 1.4;
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(188, 204, 0, 0.3);
}

::placeholder {
  color: #333;
  opacity: 0.85;
  font-family: var(--font-family-condensed);
}

/* Custom Checkbox */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  margin: 12px 0;
  font-size: 1rem;
  line-height: 1.45;
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox {
  min-width: 22px;
  height: 22px;
  background-color: #fff;
  border: 2px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.checkbox-container:hover .custom-checkbox {
  border-color: #888;
}

.checkbox-container input[type="checkbox"]:focus + .custom-checkbox {
  outline: 2px solid var(--color-primary);
}

.checkbox-container input[type="checkbox"]:checked + .custom-checkbox {
  border-color: var(--color-primary);
  background-color: #fff;
}

.checkbox-container input[type="checkbox"]:checked + .custom-checkbox::after {
  content: "✓";
  color: var(--color-primary);
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}

/* Honeypot field (hidden from users) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  tab-index: -1;
}

/* Form Footer / Submit */
.form-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.required-notice {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: bold;
  margin: 0;
}

.btn-submit {
  background-color: var(--color-primary);
  color: #000;
  font-family: var(--font-family-condensed);
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  padding: 12px 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
  background-color: var(--color-primary-hover);
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-submit:disabled {
  background-color: #d1d5db;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 0.8s linear infinite;
}

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

.btn-submit.is-loading .spinner {
  display: inline-block;
}

/* Alerts / Notifications */
.form-alert {
  display: none;
  margin-top: 24px;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  border-radius: 2px;
}

.form-alert--success {
  background-color: var(--color-success-bg);
  border: 2px solid var(--color-success);
  color: var(--color-success);
}

.form-alert--error {
  background-color: var(--color-error-bg);
  border: 2px solid var(--color-error);
  color: var(--color-error);
}

/* Empty grey divider band below form */
.divider-grey-band {
  width: 100%;
  background-color: var(--color-bg-grey);
  height: 90px;
}

/* Travel / Location info */
.travel-box {
  line-height: 1.6;
}

.travel-box strong {
  color: #000;
}

.travel-box u {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: normal;
}

/* Site Footer */
.site-footer {
  padding: 40px 20px 50px;
  background-color: var(--color-bg-white);
  border-top: 1px solid #e2e2e2;
  color: #777777;
  font-size: 0.95rem;
  text-align: center;
}

.site-footer a {
  color: #555555;
}

.footer-logo-wrap {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  max-width: 240px;
  width: auto;
  height: auto;
  display: block;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  
  .section {
    padding: 30px 16px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .divider-grey-band {
    height: 60px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-grid-zip-city {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }

  .form-submit-row {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }

  .btn-submit {
    width: 100%;
  }

  .footer-logo {
    max-width: 180px;
  }
}
