/* ============================================================
   EIDGENÖSSISCHES AMT FÜR STILLE DISKRIMINIERUNG
   Federal Office for Quiet Discrimination
   Bundesblatt Stylesheet, Ausgabe 2026
   ============================================================ */

:root {
  --red:        #D52B1E;
  --red-dark:   #B01C12;
  --red-bg:     #FDF0EF;
  --white:      #FFFFFF;
  --off-white:  #FAFAF8;
  --bg:         #F0F0EE;
  --border:     #CFCFCC;
  --gray-light: #EAEAE8;
  --gray:       #9A9A98;
  --gray-dark:  #555553;
  --text:       #1A1A1A;
  --text-muted: #666664;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow:     0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg:  0 4px 24px rgba(0,0,0,0.14);
  --radius:     2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── TOP BAR ──────────────────────────────── */
.ch-topbar { height: 6px; background: var(--red); }

/* ── HEADER ───────────────────────────────── */
.ch-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ch-logo { display: flex; align-items: center; gap: 18px; }

.swiss-cross {
  width: 52px; height: 52px;
  background: var(--red);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}
.swiss-cross::before,
.swiss-cross::after {
  content: '';
  position: absolute;
  background: var(--white);
  border-radius: 1px;
}
.swiss-cross::before { width: 11px; height: 32px; top: 10px;   left: 20.5px; }
.swiss-cross::after  { width: 32px; height: 11px; top: 20.5px; left: 10px;   }

.ch-title-block { display: flex; flex-direction: column; gap: 2px; }
.title-de   { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.2px; line-height: 1.2; }
.title-en   { font-size: 13px; color: var(--gray-dark); font-style: italic; }
.title-meta { font-size: 10px; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }

.header-badge {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: .3px;
  line-height: 1.8;
  text-align: right;
}

/* ── NAV ──────────────────────────────────── */
.ch-nav { background: var(--red); }
.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
}
.nav-item {
  color: rgba(255,255,255,.75);
  padding: 11px 18px;
  font-size: 14px;
  cursor: default;
  border-bottom: 3px solid transparent;
  user-select: none;
  white-space: nowrap;
}
.nav-item.active { color: #fff; border-bottom-color: rgba(255,255,255,.65); font-weight: 500; }

/* ── BREADCRUMB ───────────────────────────── */
.ch-breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
}
.breadcrumb-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 12px;
  color: var(--gray-dark);
}
.breadcrumb-inner span { color: var(--gray); margin: 0 4px; }

/* ── MAIN ─────────────────────────────────── */
.ch-main {
  max-width: 980px;
  margin: 32px auto 64px;
  padding: 0 24px;
  flex: 1;
}

/* ── INTRO SECTION ────────────────────────── */
#intro-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
}

.intro-header {
  padding: 40px 48px 24px;
  border-bottom: 1px solid var(--border);
}
.intro-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.intro-header .subtitle { font-size: 14px; color: var(--gray-dark); }

.intro-body {
  padding: 32px 48px;
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 40px;
  align-items: start;
}

.intro-text p { font-size: 15px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.75; }
.intro-text p:last-child { margin-bottom: 0; }

.intro-quote {
  background: var(--gray-light);
  border-left: 4px solid var(--red);
  padding: 18px 22px;
  font-size: 14px;
  font-style: italic;
  color: var(--gray-dark);
  line-height: 1.7;
  margin-top: 22px;
}

.info-box {
  border: 1px solid var(--border);
  background: var(--gray-light);
  padding: 20px;
}
.info-box-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-val { font-weight: 600; color: var(--text); }

.intro-footer {
  background: var(--gray-light);
  border-top: 1px solid var(--border);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.intro-note { font-size: 12px; color: var(--gray); font-style: italic; }

/* ── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all .15s;
  padding: 10px 24px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
}
.btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover:not(:disabled) { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.btn-lg { padding: 13px 36px; font-size: 15px; }

/* ── WIZARD SECTION ───────────────────────── */
#wizard-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
}

/* Step indicator */
.step-indicator {
  display: flex;
  background: var(--gray-light);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 6px;
  font-size: 11px;
  color: var(--gray);
  cursor: default;
  border-bottom: 3px solid transparent;
  gap: 5px;
  position: relative;
  white-space: nowrap;
  min-width: 80px;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%; width: 1px;
  background: var(--border);
}
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.step-lbl { font-size: 11px; text-align: center; line-height: 1.2; }

.step-item.active   { color: var(--red); border-bottom-color: var(--red); background: var(--white); }
.step-item.active .step-lbl { color: var(--text); font-weight: 600; }
.step-item.done .step-num { background: var(--red); border-color: var(--red); color: #fff; }
.step-item.done     { color: var(--gray-dark); }

/* Step panels */
.step-panels { padding: 40px 48px; min-height: 380px; }
.step-panel  { display: none; }
.step-panel.active { display: block; }

.step-panel h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.step-subtitle {
  font-size: 14px; color: var(--gray-dark); font-style: italic;
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* Form */
.form-group  { margin-bottom: 22px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 6px; letter-spacing: .1px;
}
.field-note { font-size: 12px; font-weight: 400; color: var(--gray); margin-left: 4px; }

.form-group input[type="text"],
.form-group select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--white);
  transition: border-color .15s;
  -webkit-appearance: none; appearance: none;
}
.form-group 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 d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-group input[type="text"]:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(213,43,30,.1);
}

/* Option cards (checkbox / radio) */
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.options-grid.single-col { grid-template-columns: 1fr; }

.option-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
  background: var(--white);
  user-select: none;
}
.option-item:hover    { border-color: var(--red); background: var(--red-bg); }
.option-item.selected { border-color: var(--red); background: var(--red-bg); }

.option-item input[type="checkbox"],
.option-item input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--red);
  flex-shrink: 0;
  pointer-events: none;
}
.option-item .opt-label   { font-size: 14px; color: var(--text); line-height: 1.35; pointer-events: none; }
.option-item .opt-note    { font-size: 11px; color: var(--gray); font-style: italic; display: block; margin-top: 2px; }

/* Wizard nav */
.wizard-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: var(--gray-light);
  border-top: 1px solid var(--border);
}
.nav-step-lbl { font-size: 13px; color: var(--gray); }

/* Validation */
.val-msg { color: var(--red); font-size: 13px; margin-top: 8px; font-style: italic; display: none; }

/* ── SUMMARY BOX ──────────────────────────── */
.summary-box {
  border: 1px solid var(--border);
  background: var(--gray-light);
  padding: 24px;
  margin-bottom: 24px;
}
.summary-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.summary-row:last-child { border-bottom: none; }
.sum-label { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text); padding-top: 2px; }
.sum-value { color: var(--text-muted); }
.sum-value ul { margin: 0; padding-left: 16px; }
.sum-value li { margin-bottom: 2px; }

/* ── LOADING ──────────────────────────────── */
.loading-state { text-align: center; padding: 60px 40px; }
.spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--gray-light);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg     { font-size: 15px; color: var(--gray-dark); font-style: italic; min-height: 24px; }
.loading-submsg  { font-size: 12px; color: var(--gray); margin-top: 8px; }

/* ── ALERT ────────────────────────────────── */
.ch-alert {
  background: #FDF0EF;
  border: 1px solid #EBB8B4;
  border-left: 4px solid var(--red);
  padding: 14px 18px;
  font-size: 14px; color: #7A1A12;
}

/* ── LETTER SECTION ───────────────────────── */
#letter-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  padding: 32px 48px;
}
.letter-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.letter-topbar h2 { font-size: 18px; }
.ref-badge {
  background: var(--gray-light);
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-size: 12px; color: var(--gray-dark);
  font-family: 'Courier New', monospace;
  letter-spacing: .5px;
}

/* The paper */
.letter-paper {
  background: var(--off-white);
  border: 1px solid #ddd;
  box-shadow: var(--shadow-lg), 5px 5px 0 var(--gray-light);
  padding: 56px 64px;
  position: relative;
  max-width: 740px;
  margin: 0 auto 32px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  overflow: hidden;
}

.einschreiben-stamp {
  position: absolute;
  top: 36px; right: 36px;
  border: 3px solid var(--red);
  color: var(--red);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 3px;
  padding: 5px 10px;
  transform: rotate(12deg);
  opacity: .65;
  text-transform: uppercase;
  pointer-events: none;
}

.letter-body { white-space: pre-wrap; }

/* Letter actions */
.letter-actions {
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ───────────────────────────────── */
.ch-footer {
  background: #1A1A1A;
  color: rgba(255,255,255,.55);
  padding: 32px 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-disclaimer { font-size: 12px; line-height: 1.7; }
.footer-disclaimer strong { color: rgba(255,255,255,.85); }

.footer-cross {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 2px;
  position: relative;
  opacity: .6;
}
.footer-cross::before,
.footer-cross::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 1px;
}
.footer-cross::before { width: 8px; height: 22px; top:  7px;  left: 14px; }
.footer-cross::after  { width: 22px; height: 8px; top: 14px;  left:  7px; }

/* ── AHMET BILGE PROMO ────────────────────── */
.letter-layout {
  display: block;
}

.ahmet-promo {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  padding: 28px 24px;
  text-align: center;
}
.ahmet-promo-img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 18px;
}
.ahmet-promo-name {
  font-size: 17px; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.ahmet-promo-tag {
  font-size: 12px; color: var(--gray); letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.ahmet-promo-bio {
  font-size: 13px; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 20px;
}
.ahmet-promo-cta {
  display: flex; flex-direction: column; gap: 10px;
}
.ahmet-promo-cta a {
  display: block; text-align: center; text-decoration: none;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius); transition: all .15s;
}
.ahmet-cta-primary {
  background: var(--red); color: #fff; border: 1px solid var(--red);
}
.ahmet-cta-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.ahmet-cta-secondary {
  background: var(--white); color: var(--text); border: 1px solid var(--border);
}
.ahmet-cta-secondary:hover { border-color: var(--red); color: var(--red); }

.ahmet-promo-note {
  font-size: 11px; color: var(--gray); font-style: italic;
  margin-top: 16px; line-height: 1.5;
}

/* Ahmet mobile teaser (above letter) */
.ahmet-teaser-mobile {
  display: flex; align-items: center; gap: 14px;
  background: var(--gray-light); border: 1px solid var(--border);
  padding: 14px 18px; margin-bottom: 24px;
  text-decoration: none; color: var(--text);
  transition: border-color .15s;
}
.ahmet-teaser-mobile:hover { border-color: var(--red); }
.ahmet-teaser-logo {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.ahmet-teaser-text {
  font-size: 13px; color: var(--text-muted); line-height: 1.4;
}
.ahmet-teaser-text strong { color: var(--text); }

/* Desktop sidebar: always hidden */
.ahmet-promo-desktop  { display: none; }
/* Mobile sections: always shown */
.ahmet-teaser-mobile       { display: flex; }
.ahmet-promo-mobile-bottom { display: block; margin-top: 28px; }

/* ── UTILITY ──────────────────────────────── */
.hidden { display: none !important; }

/* ── PRINT ────────────────────────────────── */
@media print {
  .ch-topbar, .ch-header, .ch-nav, .ch-breadcrumb,
  .ch-footer, .letter-actions, .letter-topbar,
  .ahmet-promo-desktop, .ahmet-teaser-mobile, .ahmet-promo-mobile-bottom { display: none !important; }
  .ch-main { margin: 0; max-width: 100%; }
  #intro-section, #wizard-section { display: none !important; }
  #letter-section { border: none; padding: 0; }
  .letter-paper { box-shadow: none; border: none; padding: 0; margin: 0; max-width: 100%; }
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 680px) {
  .nav-inner          { flex-wrap: wrap; }
  .step-indicator     { flex-wrap: wrap; }
  .step-item          { flex: 1 1 33.3%; min-width: 0; }
  .intro-body         { grid-template-columns: 1fr; }
  .info-box           { display: none; }
  .intro-header,
  .intro-footer       { padding: 24px; }
  .intro-body         { padding: 24px; }
  .step-panels        { padding: 24px; }
  .wizard-nav         { padding: 16px 24px; }
  .form-row           { grid-template-columns: 1fr; }
  .options-grid       { grid-template-columns: 1fr; }
  .letter-paper       { padding: 32px 22px; }
  #letter-section     { padding: 24px; }
  .title-de           { font-size: 14px; }
  .header-badge       { display: none; }
  .summary-row        { grid-template-columns: 1fr; gap: 2px; }
}
