/* ============================================
   bettertech — Global Stylesheet
   Corporate Design: Sky & Coral
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #111820;
  background: #F7F9FC;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* --- Farben --- */
:root {
  --blue:          #2B6CB8;
  --blue-mid:      #5B9FE0;
  --blue-light:    #E8F3FC;
  --blue-dark:     #1A4F8A;
  --coral:         #D95F3B;
  --coral-mid:     #E8845F;
  --coral-light:   #FDF1ED;
  --coral-dark:    #B84A2A;
  --gray-bg:       #F7F9FC;
  --gray-card:     #ffffff;
  --gray-border:   #E2EAF2;
  --gray-muted:    #8A9BB5;
  --gray-soft:     #EEF3F9;
  --dark:          #111820;
  --dark-mid:      #1E2A3A;
  --text-primary:  #111820;
  --text-secondary:#4A5568;
  --text-hint:     #8A9BB5;
  --radius-sm:     6px;
  --radius-md:     8px;
  --radius-lg:     14px;
  --radius-xl:     20px;
}

/* --- Typography --- */
h1 { font-size: 2.2rem;  font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-size: 1.6rem;  font-weight: 700; line-height: 1.25; letter-spacing: -0.3px; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 0.95rem; font-weight: 600; }
p  { font-size: 0.95rem; color: var(--text-secondary); }

.text-muted  { color: var(--text-secondary); }
.text-hint   { color: var(--text-hint); font-size: 0.8rem; }
.text-blue   { color: var(--blue); }
.text-coral  { color: var(--coral); }
.text-small  { font-size: 0.8rem; }

/* --- Layout --- */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 660px;  margin: 0 auto; padding: 0 28px; }
.page-content { padding: 40px 0 80px; }

/* --- Navigation --- */
.nav {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.nav-logo { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
.nav-logo span { color: var(--blue); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.875rem; color: var(--text-secondary); transition: color 0.15s; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary       { background: var(--coral);    color: #fff; border-color: var(--coral); }
.btn-primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); }

.btn-blue          { background: var(--blue);     color: #fff; border-color: var(--blue); }
.btn-blue:hover    { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-outline       { background: transparent; color: var(--text-primary); border-color: var(--gray-border); }
.btn-outline:hover { border-color: var(--blue-mid); color: var(--blue); background: var(--blue-light); }

.btn-outline-white       { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }

.btn-ghost       { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { color: var(--text-primary); background: var(--gray-soft); }

.btn-sm   { font-size: 0.8rem; padding: 6px 14px; }
.btn-lg   { font-size: 1rem;   padding: 13px 30px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; pointer-events: none; }

/* --- Cards --- */
.card { background: var(--gray-card); border: 1px solid var(--gray-border); border-radius: var(--radius-lg); padding: 22px; }

.card-hover { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.card-hover:hover { border-color: var(--blue-mid); box-shadow: 0 4px 16px rgba(43,108,184,0.08); }

.card-selected { border: 2px solid var(--blue); }

/* --- Tags & Badges --- */
.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; }

.tag-blue   { background: var(--blue-light);  color: var(--blue-dark); }
.tag-coral  { background: var(--coral-light); color: var(--coral-dark); }
.tag-gray   { background: var(--gray-soft);   color: var(--text-hint); }
.tag-green  { background: #E8F5EF; color: #1B5E45; }
.tag-amber  { background: #FEF3E2; color: #92540A; }
.tag-purple { background: #EEEDFE; color: #534AB7; }

/* --- Eyebrow Label --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.eyebrow-coral { background: var(--coral-light); color: var(--coral-dark); }
.eyebrow-coral .eyebrow-dot { background: var(--coral); }

/* --- Form Elements --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 7px; }
.form-hint { font-size: 0.775rem; color: var(--text-hint); margin-top: 5px; line-height: 1.5; }

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(43,108,184,0.1);
}

textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

select {
  appearance: none;
  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='%238A9BB5' 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;
  cursor: pointer;
}

/* --- Chips --- */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-size: 0.8rem;
  padding: 5px 13px;
  border: 1px solid var(--gray-border);
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-secondary);
  background: #ffffff;
  transition: all 0.15s;
  user-select: none;
  font-weight: 500;
}
.chip:hover                { border-color: var(--blue-mid); color: var(--blue); }
.chip.selected             { background: var(--blue-light);  border-color: var(--blue);   color: var(--blue-dark);  font-weight: 600; }
.chip.selected-coral       { background: var(--coral-light); border-color: var(--coral);  color: var(--coral-dark); font-weight: 600; }
.chip.selected-purple      { background: #EEEDFE; border-color: #534AB7; color: #3C3489; font-weight: 600; }

/* --- Progress Bar --- */
.progress-bar  { height: 5px; background: var(--gray-soft); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue); border-radius: 3px; transition: width 0.4s ease; }

/* --- Step Indicator --- */
.step-nav { display: flex; align-items: flex-start; margin-bottom: 36px; }
.step-col { display: flex; flex-direction: column; align-items: center; gap: 5px; }

.step-dot {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--gray-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; color: var(--text-hint);
  background: #ffffff; flex-shrink: 0;
}
.step-dot.active { background: var(--blue);       border-color: var(--blue);  color: #fff; }
.step-dot.done   { background: var(--blue-light);  border-color: var(--blue);  color: var(--blue-dark); }

.step-label      { font-size: 0.7rem; color: var(--text-hint); white-space: nowrap; font-weight: 500; }
.step-label.active { color: var(--blue-dark); font-weight: 600; }

.step-line      { flex: 1; height: 1px; background: var(--gray-border); margin-top: 15px; }
.step-line.done { background: var(--blue); }

/* --- Avatars --- */
.avatar-group { display: flex; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
  margin-left: -8px; flex-shrink: 0;
}
.avatar:first-child { margin-left: 0; }
.av-blue   { background: var(--blue-light);  color: var(--blue-dark); }
.av-coral  { background: var(--coral-light); color: var(--coral-dark); }
.av-purple { background: #CECBF6; color: #3C3489; }
.av-teal   { background: #9FE1CB; color: #085041; }
.av-amber  { background: #FAC775; color: #633806; }

/* --- Notice --- */
.notice {
  background: var(--blue-light);
  border-left: 3px solid var(--blue-mid);
  padding: 13px 16px;
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.notice strong  { color: var(--text-primary); font-weight: 600; }
.notice-coral   { background: var(--coral-light); border-left-color: var(--coral); }

/* --- Skill Pills --- */
.skill-pill      { font-size: 0.72rem; padding: 3px 9px; background: var(--gray-soft); border-radius: 20px; color: var(--text-secondary); font-weight: 500; }
.skill-pill.open { background: var(--coral-light); color: var(--coral-dark); }
.spots-badge     { font-size: 0.78rem; font-weight: 600; color: var(--coral-dark); }

/* --- Grid --- */
.grid-2    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

/* --- Divider --- */
.divider { height: 1px; background: var(--gray-border); margin: 24px 0; }

/* --- Match Score --- */
.match-score-num   { font-size: 1.3rem; font-weight: 700; color: var(--blue); line-height: 1; }
.match-score-label { font-size: 0.7rem; color: var(--text-hint); margin-bottom: 4px; }
.match-score-bar   { width: 72px; height: 4px; background: var(--gray-soft); border-radius: 2px; }
.match-score-fill  { height: 100%; background: var(--blue); border-radius: 2px; }

.match-why      { font-size: 0.775rem; color: var(--text-secondary); background: var(--blue-light); border-radius: var(--radius-sm); padding: 7px 11px; margin-top: 10px; }
.match-why span { color: var(--blue-dark); font-weight: 600; }

/* --- Role Status --- */
.role-open   { background: var(--coral-light); color: var(--coral-dark); }
.role-filled { background: var(--gray-soft);   color: var(--text-hint); }

/* --- Filter Bar --- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

/* --- Error / Success --- */
.error-box   { background: #FCEBEB; border: 1px solid #F09595; border-radius: var(--radius-md); padding: 11px 15px; font-size: 0.825rem; color: #A32D2D; margin-bottom: 16px; display: none; }
.success-box { background: var(--blue-light); border: 1px solid var(--blue-mid); border-radius: var(--radius-md); padding: 11px 15px; font-size: 0.825rem; color: var(--blue-dark); margin-bottom: 16px; display: none; }

/* --- Footer --- */
.footer   { background: var(--dark); padding: 40px 0; }
.footer p { font-size: 0.82rem; color: #4A5A70; }
.footer a { color: var(--blue-mid); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .container, .container-sm { padding: 0 18px; }
}
/* ── Sprachumschalter ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: inherit;
  transition: color 0.15s;
  letter-spacing: 0.05em;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active { color: var(--blue); }