@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Inter:wght@400;500&display=swap');

:root {
  --bg-main: #0a0a0a;
  --bg-card: rgba(26, 26, 26, 0.7);
  --accent: #d4c5a1;
  --accent-muted: rgba(212, 197, 161, 0.1);
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --gold: #b8860b;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  --radius: 12px;
  --transition: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* 8px Spacing System */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s8: 80px;
  --s10: 120px;

  --container-max: 1100px;
  --input-height: 46px;
}

.hidden {
  display: none !important;
}

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

body {
  background: var(--bg-main);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  /* Increased for better readability */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Floating Navigation - Truly Centered */
header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  
  max-width: 90%;
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.75rem 3rem;
  /* Increased padding */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s5);
  /* 48px gap */
  box-shadow: var(--glass-shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 54px;
  height: 54px;
  background-image: url('img/logo.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f2f3e8;
  /* Ensures dark text is visible */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: inline-block;
}

.brand-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

nav ul {
  display: flex;
  gap: var(--s4);
  /* 32px gap */
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  /* Slightly smaller for cleaner look */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition);
  white-space: nowrap;
}

nav a:hover {
  color: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
}

.burger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.burger:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--bg-main);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 20px rgba(212, 197, 161, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--accent-muted);
  border-color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 160px 0 var(--s6);
  text-align: center;
}

.contact-hero {
  padding-top: 10rem;
  padding-bottom: 4rem;
}

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

h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 8vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: var(--s3);
  font-weight: 600;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.hero-pre-title {
  display: block;
  font-family: inherit;
  font-size: 0.8em;
  /* Relative to h1 */
  font-weight: inherit;
  color: var(--accent);
  margin-bottom: 6pt;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.4rem, 5vw, 2.5rem);
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto var(--s5);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--s2);
  justify-content: center;
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: var(--s4);
  margin: var(--s6) 0;
}

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

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

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

.grid-3>div,
.grid-4>div,
.grid-2>div {
  display: flex;
}

.glass-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.grid-steps {
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s4);
}

.grid-steps>.glass-card {
  grid-column: span 2;
}

/* On desktop, center the last two items */
@media (min-width: 1024px) {
  .grid-steps>.glass-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .grid-steps>.glass-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

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

  .grid-steps>.glass-card {
    grid-column: auto;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .form-row,
  .contact-form-row {
    grid-template-columns: 1fr !important;
  }

  .contact-actions {
    flex-direction: column !important;
    gap: 1rem;
    align-items: stretch !important;
    width: 100%;
  }
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-actions {
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  /* Refined radius */
  padding: var(--s4);
  /* Consistent internal padding */
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}


.glass-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* Interactive Boxes */
.clickable-box {
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-align: center;
}

.clickable-box:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.clickable-box h3 {
  transition: var(--transition);
}

.clickable-box.active {
  background: var(--accent-muted);
  border-color: var(--accent);
}

.clickable-box.active h3 {
  color: var(--accent);
}

/* Indicator Triangle */
.clickable-box.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--accent);
  z-index: 10;
}

.full-width-info-container {
  margin-top: var(--s4);
}

.info-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.info-panel.active {
  max-height: 2000px;
  opacity: 1;
}

.info-inner {
  padding: var(--s4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--glass-shadow);
}

.info-inner p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  margin-bottom: 6pt;
  line-height: 1.6;
}

.info-inner p:last-of-type {
  margin-bottom: 0;
}

.info-link {
  display: inline-block;
  margin-top: var(--s3);
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.info-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

/* Wizard */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--s5);
  position: relative;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--glass-border);
  z-index: 1;
}

.progress-active {
  position: absolute;
  top: 15px;
  left: 0;
  width: var(--progress, 0%);
  height: 2px;
  background: var(--accent);
  z-index: 2;
  transition: 0.5s ease;
}

.step-node {
  width: 32px;
  height: 32px;
  background: var(--bg-main);
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.step-node:hover {
  border-color: var(--accent);
  color: var(--text);
}

.step-node.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(212, 197, 161, 0.3);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--s3);
}

label {
  display: block;
  font-size: 0.9rem;
  /* Increased from 0.775rem */
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--s1);
  /* Fixed spacing above field */
  letter-spacing: 0.05em;
}

/* Guidance Mode (Leitfaden) */
.guide-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: var(--s4);
  padding: 0 var(--s2);
}

.guide-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--accent);
}

input:checked+.slider:before {
  transform: translateX(20px);
  background-color: var(--bg-main);
}

.guide-text {
  display: none;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--accent);
  opacity: 0.9;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--accent-muted);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  animation: fadeIn 0.3s ease;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 0.85;
    transform: translateY(0);
  }
}

.guide-mode-active .guide-text {
  display: block;
}

input:not([type=radio]):not([type=checkbox]),
select,
textarea {
  width: 100%;
  height: var(--input-height);
  /* Uniform height */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  /* Uniform radius */
  padding: 0 1.2rem;
  color: var(--text);
  font-size: 1.05rem;
  font-family: inherit;
  transition: var(--transition);
}

textarea {
  height: auto;
  padding: 1rem 1.2rem;
}

input:not([type=radio]):not([type=checkbox]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px var(--accent-muted);
}

/* Custom Select Dropdowns */
.custom-select {
  width: 100%;
  padding: 0 1.2rem;
  background-color: var(--bg-card);
  /* Dark background */
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Custom Arrow */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4c5a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.custom-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-muted);
}

/* Style the options within the select */
.custom-select option {
  background-color: #1a1a1a;
  /* Dark background */
  color: #fff;
  /* White text */
  padding: 12px;
}

/* Selected option gets gold text */
.custom-select option:checked,
.custom-select option:hover {
  background-color: rgba(212, 197, 161, 0.2);
  /* Accent muted background */
  color: var(--accent);
  /* Gold text */
}

/* Hide the default arrow in IE */
.custom-select::-ms-expand {
  display: none;
}

.error-message {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 107, 107, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-field {
  border-color: #ff6b6b !important;
}

/* Custom Validation Tooltip */
.validation-tooltip {
  position: absolute;
  background: #fff;
  color: #333;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  animation: tooltipFadeIn 0.2s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.validation-tooltip::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: #ff9800;
  /* Distinct orange box */
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
}

.validation-tooltip::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 16px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
}

.form-group {
  position: relative;
  /* ensure tooltip positions correctly */
  margin-bottom: var(--s3);
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Form Success Message (Green) */
.form-success-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--accent);
  /* Using accent color instead of green since it's the theme */
  font-size: 1rem;
  font-weight: 500;
  padding: 0;
  animation: fadeIn 0.4s ease;
}

.check.error-field input[type="checkbox"] {
  border-color: #ff6b6b !important;
}

.check input[type="checkbox"] {
  display: grid;
  place-content: center;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.04);
  margin-top: 2px;
  font: inherit;
  color: currentColor;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.check input[type="checkbox"]:hover {
  border-color: var(--accent);
}

.check input[type="checkbox"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--bg-main);
  background-color: var(--bg-main);
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.check input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.check input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.radio-group {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s1);
}

.radio-option {
  display: flex;
  flex-direction: column;
  flex: 1;
  cursor: pointer;
}

.radio-option input {
  display: none;
}

.radio-card {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem var(--s2);
  text-align: center;
  transition: var(--transition);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  background: rgba(255, 255, 255, 0.03);
}

/* Modals */
.radio-compact:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px;
}

.radio-compact input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  display: grid;
  place-content: center;
  margin-top: 4px;
  background-color: rgba(255, 255, 255, 0.04);
}

.radio-compact input[type="radio"]::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background-color: var(--accent);
}

.radio-compact input[type="radio"]:checked {
  border-color: var(--accent);
}

.radio-compact input[type="radio"]:checked::before {
  transform: scale(1);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-content {
  width: 90%;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
  transform: translateY(20px);
}

.scrollable-content::-webkit-scrollbar {
  width: 6px;
}

.scrollable-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.inline {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.check {
  display: flex;
  align-items: flex-start;
  /* Better for multiline text */
  gap: var(--s2);
  cursor: pointer;
  user-select: none;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  /* Center with first line */
}

.check b {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.check small {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.radio-option input:checked+.radio-card {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--accent);
}

/* Expanding Description for Radio Options */
.auth-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 0;
  font-weight: normal;
}

.radio-option input:checked+.radio-card .auth-desc {
  max-height: 100px;
  /* arbitrary max height for transition */
  opacity: 1;
  margin-top: 0.5rem;
}

.hidden {
  display: none;
}

/* Payment Styles */
.payment-summary-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s4);
}

.payment-summary-box h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.payment-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
  padding-top: 1rem;
}

.payment-price strong {
  font-size: 1.5rem;
  color: #fff;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.payment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.payment-btn.twint {
  background: #000;
  color: #fff;
  border: 1px solid #333;
}

.payment-btn.twint:hover {
  background: #111;
  border-color: #555;
}

.payment-btn.credit-card {
  background: #f0f0f0;
  color: #111;
}

.payment-btn.credit-card:hover {
  background: #fff;
}

.payment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.payment-overlay.active {
  opacity: 1;
  visibility: visible;
}

.payment-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

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

/* Mobile */
@media (max-width: 992px) {
  header {
    width: 95%;
  }

  .nav-container {
    gap: 1rem;
    justify-content: space-between;
  }

  nav {
    display: none;
  }

  .nav-mobile-shortcut {
    display: block !important;
  }

  .burger {
    display: flex !important;
  }

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

@media (max-width: 768px) {

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  #trust .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .trust-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }

  .trust-text.last {
    margin-bottom: 2rem;
  }

  .hero {
    padding: 9rem 0 4rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    max-width: 100%;
    margin: 0 auto;
  }

  .nav-container {
    padding: 0.5rem 1.25rem;
  }
}

footer {
  padding: var(--s8) 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer .fine {
  font-size: 0.75rem;
  opacity: 0.7;
  /* Scale down SEO/Demo notes */
}

section {
  padding: var(--s8) 0;
}

main>section:first-of-type {
  padding-top: 150px;
}

.section-head {
  margin-bottom: var(--s4);
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: var(--s1);
  color: #ffffff;
}

.section-subhead {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent);
  margin: 2rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-subhead::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* Segmented Control - Compact choice */
.segmented-control {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  margin-top: 0.5rem;
}

.segmented-control label {
  flex: 1;
  margin: 0;
  cursor: pointer;
}

.segmented-control input {
  display: none !important;
}

.segmented-control .segment-label {
  display: block;
  padding: 0.6rem 1rem;
  text-align: center;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.segmented-control input:checked+.segment-label {
  background: var(--accent);
  color: var(--bg-main);
  box-shadow: 0 4px 12px rgba(212, 197, 161, 0.3);
}

/* Attorney Section Spacing */
.attorney-entry,
.pv-rep-entry {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  padding: 1.5rem !important;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

#addAttorneyBtn {
  margin: var(--s6) 0 !important;
  display: block;
}

/* Accordion Styling (Wissen & Ratgeber) */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-top: var(--s4);
}

.accordion details {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.accordion details:hover,
.accordion details[open] {
  border-color: var(--accent);
}

.accordion summary {
  padding: var(--s3) var(--s4);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  /* Hide default triangle */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  outline: none;
  transition: var(--transition);
}

.accordion summary::-webkit-details-marker {
  display: none;
  /* Safari focus */
}

/* Custom Accordion Indicator (Plus/Minus) */
.accordion summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s ease;
  line-height: 1;
}

.accordion details[open] summary::after {
  content: '−';
  /* Minus sign */
  transform: rotate(180deg);
}

.accordion .content-block {
  padding: 0 var(--s4) var(--s4) var(--s4);
  border-top: 1px solid transparent;
  /* Prepare for expanding line if needed */
  animation: fadeInDown 0.3s ease-in-out;
}

.accordion details[open] .content-block {
  border-top-color: var(--glass-border);
  padding-top: var(--s3);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography Details for Accordion Text */
.accordion .content-block p,
.accordion .content-block ul {
  font-size: 1rem;
  line-height: 1.7;
  /* Ruhig und gut lesbar */
  color: var(--text-muted);
  text-align: justify;
  /* Blocksatz */
  hyphens: auto;
  /* Silbentrennung */
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  margin-bottom: var(--s3);
  /* Abstand zw. Absätzen */
}

.accordion .content-block p:last-child,
.accordion .content-block ul:last-child {
  margin-bottom: 0;
}

.accordion .content-block ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

.accordion .content-block li {
  margin-bottom: var(--s1);
}

.accordion .content-block h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--s4);
  margin-bottom: var(--s2);
}

/* Small visual block inside accordions (Optional helper) */
.accordion .highlight-box {
  background: var(--accent-muted);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: var(--s2) var(--s3);
  margin-top: var(--s3);
  margin-bottom: var(--s3);
}

.accordion .highlight-box p {
  margin-bottom: 0;
  color: var(--accent);
}

/* ---- Checkbox & Radio compact (inline: box left, text right) ---- */
.checkbox-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.45;
  transition: background var(--transition);
  user-select: none;
}

.checkbox-box:hover {
  background: rgba(212, 197, 161, 0.07);
}

.checkbox-box input[type="checkbox"] {
  display: grid;
  place-content: center;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 2px;
}

.checkbox-box input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background-color: var(--accent);
}

.checkbox-box input[type="checkbox"]:checked {
  border-color: var(--accent);
}

.checkbox-box input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.radio-compact {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  padding: 0.8rem 1rem;
  margin: 0.2rem 0;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all var(--transition);
  user-select: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.radio-compact:hover {
  background: rgba(212, 197, 161, 0.12);
  border-color: rgba(212, 197, 161, 0.2);
}

.radio-compact input[type="radio"],
.radio-compact input[type="checkbox"],
.checkbox-box input[type="checkbox"] {
  display: grid;
  place-content: center;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  /* Oval start */
  cursor: pointer;
  transition: var(--transition);
  margin-top: 2px;
}

/* Oval Checkbox Style */
.checkbox-box input[type="checkbox"],
.radio-compact input[type="checkbox"],
.radio-compact input[type="radio"] {
  width: 28px;
  height: 20px;
  border-radius: 20px;
  /* Oval shape */
}

/* Golden Cross Checkmark */
.radio-compact input:checked::before,
.checkbox-box input:checked::before {
  content: "";
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  /* Create a cross using clip-path */
  clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
  transform: scale(1);
}

.radio-compact input:checked,
.checkbox-box input:checked {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.radio-compact span {
  flex: 1;
}

/* T&C / Legal Modals (Refined) */
.legal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.legal-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.legal-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.legal-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 !important;
  color: var(--accent);
}

.legal-scrollable-content {
  padding: 2rem;
  overflow-y: auto;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
}

.legal-scrollable-content h3 {
  margin: 2rem 0 1rem 0;
  color: var(--accent);
  font-size: 1.15rem;
}

.legal-scrollable-content h3:first-child {
  margin-top: 0;
}

.legal-scrollable-content p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.legal-scrollable-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-scrollable-content li {
  margin-bottom: 0.5rem;
}

.legal-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
/* Mobile Navigation Overlay */
.mobile-nav {
  position: fixed;
  top: 90px;
  left: 5%;
  width: 90%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 999;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s ease;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover, .mobile-nav a:active {
  color: var(--accent);
}

@media (min-width: 993px) {
  .mobile-nav {
    display: none !important;
  }
}

/* Trust & Payment Bar */
.trust-payment-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  margin-top: 3rem;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.trust-section, .payment-section {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}

.payment-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: 0.6;
  white-space: nowrap;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.payment-icon {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0.9;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-icon.twint {
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (max-width: 850px) {
  .trust-payment-bar {
    flex-direction: column;
    gap: 1.25rem;
    border-radius: 24px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
  }
  .trust-section {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .trust-section {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  .payment-section {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* --- DYNAMIC DISCOUNT MODAL --- */
.discount-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.discount-modal.active {
  opacity: 1;
  visibility: visible;
}

.discount-modal-content {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
  border: 1px solid var(--accent);
  border-radius: 24px;
  width: 100%;
  max-width: 550px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 197, 161, 0.15);
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.discount-modal.active .discount-modal-content {
  transform: scale(1) translateY(0);
}

.discount-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-main);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.discount-modal h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.discount-modal .highlight-text {
  color: var(--accent);
  font-weight: 700;
}

.discount-modal p.intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.discount-schedule {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--glass-border);
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row.today {
  color: var(--accent);
  font-weight: 700;
  background: rgba(212, 197, 161, 0.05);
  margin: 0 -1.5rem;
  padding: 0.6rem 1.5rem;
}

.schedule-row.today .day-label::after {
  content: ' (HEUTE)';
  font-size: 0.7rem;
  vertical-align: middle;
}

.promo-code-box {
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed var(--accent);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.promo-code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.promo-code-value {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.discount-modal .btn-primary {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(212, 197, 161, 0.2);
}

.discount-close-hint {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

@media (max-width: 480px) {
  .discount-modal-content {
    padding: 2.5rem 1.5rem;
  }
  .discount-modal h2 {
    font-size: 2rem;
  }
}
