/* =========================
   1. RESET & BASE
========================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: linear-gradient(180deg, #07192d 0%, #102a45 100%);
  color: #ffffff;
  min-height: 100vh;
}

/* =========================
   2. LAYOUT (HEADER / CONTENT)
========================= */

.site-header {
  background: rgba(4, 18, 33, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-area {
  padding: 40px 20px;
}

.content-box {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  color: #1b2430;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

/* =========================
   3. TYPOGRAPHY
========================= */

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

p {
  color: #2f3b4a;
}

/* =========================
   4. NAVIGATION
========================= */

.site-logo {
  height: 60px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  min-width: 110px;
  text-align: center;
  transition: background 0.2s ease;
}

.top-nav a:hover,
.top-nav a.active {
  background: #376da6;
}

/* USER MENU */

.user-menu {
  position: relative;
}

.user-menu-toggle {
  background: #376da6;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}

.user-menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 180px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 200;
}

.user-menu-dropdown a {
  display: block;
  padding: 12px 16px;
  color: #1b2430;
  text-decoration: none;
}

.user-menu-dropdown a:hover {
  background: #eef4fb;
  color: #0d2f57;
}

.user-menu:hover .user-menu-dropdown,
.user-menu:focus-within .user-menu-dropdown {
  display: block;
}

/* =========================
   5. BUTTONS
========================= */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: #1f5ea8;
  color: #fff;
  border: 1px solid #1f5ea8;
}

.btn-secondary {
  background: #eef4fb;
  color: #0d2f57;
  border: 1px solid #dce3ea;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;

  background: #b62323;
  color: #fff;
  border: 1px solid #b62323;
  cursor: pointer;
}

.btn-small {
  height: 40px;
  min-width: 100px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 10px;
}
/* =========================
   BUTTON INTERACTION
========================= */

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-small,
.user-menu-toggle,
button {
  cursor: pointer;
}

/* =========================
   6. FORMS
========================= */

.login-form .form-row {
  margin-bottom: 16px;
}

.login-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #0d2f57;
}

.login-form input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #c9d2db;
}

/* =========================
   7. FEEDBACK
========================= */

.error-box {
  background: #ffe7e7;
  color: #8d1d1d;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.success-box {
  background: #e8f7e8;
  color: #1f6b1f;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

#mandant-create-error {
  margin-bottom: 14px;
}
/* =========================
   8. COMPONENTS
========================= */

.hero-box,
.pricing-section,
.info-section {
  margin-bottom: 30px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.image-panel img {
  width: 100%;
  border-radius: 12px;
}

/* =========================
   9. ADMIN PANEL
========================= */

.admin-panel {
  background: #f8fbff;
  border: 1px solid #dce3ea;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
}

.admin-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
/* =========================
   ADMIN FORM LAYOUT
========================= */

.admin-grid-form {
  display: grid;
  grid-template-columns: 200px minmax(320px, 1fr);
  gap: 14px 20px;
  align-items: center;
  max-width: 760px;
}

.admin-grid-form .form-row {
  display: contents;
}

.admin-grid-form label {
  margin: 0;
  font-weight: 700;
  color: #0d2f57;
}

.admin-grid-form input[type="text"],
.admin-grid-form input[type="email"],
.admin-grid-form input[type="number"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-row-full {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.table-actions .btn-primary,
.table-actions .btn-danger {
  min-width: 110px;
}
/* =========================
   10. TABLES
========================= */

.mandanten-table {
  width: 100%;
  border-collapse: collapse;
}

.mandanten-table th {
  background: #eef4fb;
  color: #0d2f57;
  text-align: left;
  padding: 14px;
}

.mandanten-table td {
  padding: 14px;
  border-bottom: 1px solid #e7edf3;
}

.mandanten-table tr:hover td {
  background: #fbfdff;
}

/* =========================
   11. RESPONSIVE
========================= */

@media (max-width: 900px) {

  .two-col {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav a {
    min-width: auto;
  }
}

.group-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4fb;
  color: #0d2f57;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #dce3ea;
}
/* =========================
   12. NEW USER
========================= */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 4px 0;
}

.checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #eef4fb;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  color: #0d2f57;
  font-weight: 600;
}

.checkbox-item input[type="checkbox"] {
  margin: 0;
}

.admin-grid-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
  background: #fff;
}
/* =========================
   PRICING PAGE
========================= */

.pricing-hero {
  text-align: center;
  margin-bottom: 36px;
}

.pricing-hero h1 {
  font-size: 52px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-lead {
  max-width: 980px;
  margin: 0 auto 16px;
  font-size: 22px;
  line-height: 1.5;
  color: #526172;
}

.pricing-note-strong {
  font-size: 18px;
  font-weight: 700;
  color: #0d2f57;
  margin-bottom: 0;
}

.pricing-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
  margin-bottom: 40px;
}

.level-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.level-card.featured {
  transform: translateY(-18px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.14);
}

.level-card-header {
  min-height: 150px;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, #7f8793 0%, #a5acb5 100%);
  color: #ffffff;
  text-align: center;
}

.level-card-header h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
}

.level-card-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 17px;
  line-height: 1.35;
}

.level-a .level-card-header h2 {
  color: #1970c8;
}

.level-b .level-card-header h2 {
  color: #f2c200;
}

.level-c .level-card-header h2 {
  color: #e83a2d;
}

.level-card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 26px 20px 24px;
  background: #f8fbff;
  border-bottom: 1px solid #dce3ea;
}

.level-card-price .currency {
  font-size: 28px;
  color: #7e8793;
}

.level-card-price .amount {
  font-size: 70px;
  line-height: 1;
  font-weight: 800;
}

.level-card-price .period {
  font-size: 18px;
  color: #7e8793;
}

.level-a .amount {
  color: #1970c8;
}

.level-b .amount {
  color: #d4aa00;
}

.level-c .amount {
  color: #e83a2d;
}

.level-card-body {
  padding: 28px 28px 30px;
}

.level-highlight {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: #1b2430;
  margin-bottom: 18px;
}

.level-meta {
  font-size: 16px;
  color: #5f6c7b;
  margin-bottom: 20px;
}

.level-card-body hr {
  border: 0;
  border-top: 2px solid #d6dde6;
  margin: 22px 0 24px;
}

.level-module-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.level-module-list li {
  margin-bottom: 16px;
  color: #2f3b4a;
  line-height: 1.5;
}

.level-actions {
  margin-top: 24px;
}

.level-actions .btn-primary {
  width: 100%;
}

.pricing-bottom-note {
  margin-top: 18px;
}

/* =========================
   RESPONSIVE PRICING
========================= */

@media (max-width: 1200px) {
  .pricing-levels {
    grid-template-columns: 1fr;
  }

  .level-card.featured {
    transform: none;
  }

  .pricing-hero h1 {
    font-size: 40px;
  }

  .pricing-lead {
    font-size: 19px;
  }
}

@media (max-width: 700px) {
  .level-card-header {
    min-height: auto;
    padding: 22px 18px;
  }

  .level-card-header h2 {
    font-size: 24px;
  }

  .level-card-header p {
    font-size: 16px;
  }

  .level-card-price {
    flex-wrap: wrap;
    padding: 22px 18px;
  }

  .level-card-price .amount {
    font-size: 52px;
  }

  .level-card-price .period {
    width: 100%;
    text-align: center;
  }

  .level-card-body {
    padding: 22px 18px 24px;
  }

  .level-highlight {
    font-size: 21px;
  }
}

/* =========================
   COUNTRY SWITCH
========================= */

.country-switch-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}

.country-label {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.country-switch-form select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: #376da6;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.country-switch-form select:focus {
  outline: none;
  border-color: #8fb6e2;
  box-shadow: 0 0 0 3px rgba(143, 182, 226, 0.2);
}

/* =========================
   Kurse 
========================= */


.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.course-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* =========================
   Dokumente 
========================= */
.status-ok {
  color: #178b35;
  font-weight: 700;
}

.status-missing {
  color: #b62323;
  font-weight: 700;
}
.col-id {
  width: 60px;
}

.mandanten-table td,
.mandanten-table th {
  vertical-align: middle;
}

.file-block {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 600;
  color: #3a2b7a;
  text-decoration: none;
}

.file-name:hover {
  text-decoration: underline;
}

.file-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}


.admin-grid-form select,
.mandanten-table select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
  background: #fff;
}

/* ===============================
   Progress Bar Dokumente
   =============================== */

.progress-box {
  margin: 20px 0 30px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
  color: #334155;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e5eaf0;
  border-radius: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #2e7d32);
  border-radius: 8px;
  transition: width 0.3s ease;
}

.progress-red {
  background: #d32f2f;
}

.progress-yellow {
  background: #f9a825;
}

.progress-green {
  background: #2e7d32;
}

/* ===============================
   Home 
   =============================== */
.section {
  margin: 40px 0;
}

.section.alt {
  background: #f6f8fb;
  padding: 30px;
  border-radius: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e3e8ef;
}

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

.cta-section {
  text-align: center;
}