/* ══════════════════════════════════════════════════════════
   Ärzteregistrat.de — app.css
   Mittig aufgebaut, viel Weißraum, Inter.
══════════════════════════════════════════════════════════ */

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

:root {
  --ink:    #141731;
  --ink-2:  #414463;
  --mute:   #6E7192;
  --faint:  #9D9FBA;

  --brand:  #4338A8;
  --brand-2:#5B4FD6;
  --brand-3:#8B7DF0;
  --tint:   #F2F0FD;
  --tint-2: #DBD5F8;

  --paper:  #FFFFFF;
  --soft:   #F8F7FC;
  --line:   #EBEAF4;
  --line-2: #D8D5EC;

  --gold:   #B7791F;
  --gold-bg:#FDF7EC;

  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 28px;
  --ease: cubic-bezier(.22,1,.36,1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.18; letter-spacing: -.022em; }
h1 { letter-spacing: -.032em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--tint-2); color: var(--ink); }

.hi { color: var(--brand); font-weight: 600; }

/* ══════════════ ANIMATIONEN ══════════════ */
@keyframes blurUp {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to   { opacity: 1; transform: none;             filter: blur(0); }
}
@keyframes shimmer { from { background-position: -420px 0; } to { background-position: 420px 0; } }

.rise { opacity: 0; }
.rise.on { animation: blurUp .68s var(--ease) forwards; }
.enter > * { opacity: 0; animation: blurUp .75s var(--ease) forwards; }
.enter > *:nth-child(1) { animation-delay: .04s; }
.enter > *:nth-child(2) { animation-delay: .12s; }
.enter > *:nth-child(3) { animation-delay: .20s; }
.enter > *:nth-child(4) { animation-delay: .28s; }
.enter > *:nth-child(5) { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .rise, .enter > * { opacity: 1 !important; animation: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ══════════════ KOPFBEREICH (mittig) ══════════════ */
.top {
  position: sticky; top: 0; z-index: 800;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
  text-align: center;
}
.top.stuck { border-bottom-color: var(--line); }
.top-in { padding: 22px 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mark { display: inline-flex; align-items: center; gap: 9px; }
.mark img { width: 27px; height: 27px; display: block; }
.mark b { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -.03em; }
.mark b span { color: var(--brand-2); font-weight: 400; }

.menu { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; }
.menu a {
  position: relative; font-size: 14.5px; font-weight: 400; color: var(--mute);
  padding: 6px 14px; border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.menu a::after {
  content: ''; position: absolute; left: 50%; bottom: 1px; width: 0; height: 1.5px;
  background: var(--brand-3); border-radius: 2px;
  transform: translateX(-50%); transition: width .28s var(--ease);
}
.menu a:hover { color: var(--ink); }
.menu a:hover::after { width: 18px; }
.menu a.on { color: var(--brand); font-weight: 500; background: var(--tint); }
.menu a.on::after { width: 0; }

/* ══════════════ GERÜST ══════════════ */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.pad   { padding-left: clamp(20px, 5vw, 48px); padding-right: clamp(20px, 5vw, 48px); }
.max   { width: 100%; max-width: 960px; margin-left: auto; margin-right: auto; text-align: center; }
.block { padding: clamp(56px, 8vw, 100px) 0; }
.hair  { height: 1px; background: var(--line); max-width: 960px; margin: 0 auto; }
.center-col { max-width: 720px; margin: 0 auto; }

/* ══════════════ STARTSEITE ══════════════ */
.lead { padding: clamp(52px, 9vh, 104px) 0 clamp(48px, 7vw, 84px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--brand);
  background: var(--tint); border-radius: 999px; padding: 6px 15px; margin-bottom: 26px;
}
.eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-3); }
.lead h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.85rem); font-weight: 600;
  max-width: 17ch; margin: 0 auto 20px;
}
.lead p.sub {
  font-size: clamp(1rem, 1.45vw, 1.13rem); color: var(--mute);
  max-width: 50ch; margin: 0 auto 40px;
}

/* Suchleiste */
.finder {
  display: flex; align-items: center;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 7px 7px 6px; max-width: 660px; margin: 0 auto; text-align: left;
  box-shadow: 0 1px 2px rgba(20,23,49,.04);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.finder:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(91,79,214,.10); }
.fld { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 8px 16px; }
.fld > svg { width: 17px; height: 17px; color: var(--faint); flex: none; transition: color .2s; }
.fld:focus-within > svg { color: var(--brand-2); }
.fld input {
  width: 100%; min-width: 0; border: 0; background: none; outline: none;
  font-family: inherit; font-size: 15.5px; color: var(--ink); letter-spacing: -.01em;
}
.fld input::placeholder { color: var(--faint); }
.fld-line { width: 1px; height: 26px; background: var(--line); flex: none; }
.go {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.go svg { width: 18px; height: 18px; transition: transform .28s var(--ease); }
.go:hover { background: var(--ink); transform: scale(1.06); }
.go:hover svg { transform: translateX(2px); }

.quick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; }
.quick span { font-size: 13px; color: var(--faint); width: 100%; margin-bottom: 2px; }
.quick a {
  font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 15px;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.quick a:hover { border-color: var(--brand-2); color: var(--brand); background: var(--tint); }

/* Vorschlagsliste */
.sug {
  position: absolute; top: calc(100% + 14px); left: -8px; right: -8px; z-index: 60;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: 0 18px 44px -20px rgba(20,23,49,.28); padding: 6px; text-align: left;
  max-height: 320px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.sug.open { opacity: 1; visibility: visible; transform: none; }
.sug-h { padding: 8px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.sug-i {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-s);
  font-size: 14.5px; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s;
}
.sug-i svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.sug-i:hover, .sug-i.hot { background: var(--tint); color: var(--brand); }
.sug-i em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--faint); }

/* ══════════════ ABSCHNITTE ══════════════ */
.head { margin: 0 auto 42px; max-width: 56ch; }
.head h2 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); margin-bottom: 12px; }
.head p  { color: var(--mute); font-size: 15.5px; max-width: 50ch; margin: 0 auto; }
.kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-3); margin-bottom: 14px; }

/* Fachrichtungen */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  font-size: 14.5px; font-weight: 400; color: var(--ink);
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}
.tag svg { width: 12px; height: 12px; color: var(--faint); transition: transform .25s var(--ease), color .22s; }
.tag:hover { border-color: var(--brand-2); background: var(--tint); transform: translateY(-2px); }
.tag:hover svg { transform: translateX(3px); color: var(--brand); }

/* Bundesländer */
.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.regions a {
  display: grid; place-items: center; text-align: center; min-height: 58px; padding: 12px 10px;
  border: 1px solid var(--line); border-radius: var(--r-m);
  font-size: 14px; color: var(--ink-2);
  transition: border-color .22s var(--ease), color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}
.regions a:hover { border-color: var(--brand-2); color: var(--brand); background: var(--tint); transform: translateY(-2px); }

/* Ablauf */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.flow > div { max-width: 32ch; margin: 0 auto; }
.flow-n {
  width: 42px; height: 42px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tint); color: var(--brand);
  font-size: 14px; font-weight: 600;
}
.flow h3 { font-size: 16.5px; margin-bottom: 8px; }
.flow p  { font-size: 14.5px; color: var(--mute); }

/* Aufruf */
.band {
  background: var(--ink); border-radius: var(--r-xl); color: rgba(255,255,255,.7);
  padding: clamp(38px, 6vw, 66px); text-align: center;
}
.band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 14px; }
.band .hi { color: var(--brand-3); }
.band p { font-size: 15.5px; max-width: 50ch; margin: 0 auto 30px; }
.band a {
  display: inline-block; background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 500; padding: 13px 30px; border-radius: 999px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.band a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.55); }

/* ══════════════ SEITENFUSS ══════════════ */
.foot { margin-top: auto; border-top: 1px solid var(--line); padding: 34px 0 42px; text-align: center; }
.foot .mark { margin-bottom: 16px; }
.foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.foot nav a, .foot nav button {
  font-size: 13.5px; color: var(--mute); background: none; border: 0; padding: 0;
  cursor: pointer; transition: color .18s;
}
.foot nav a:hover, .foot nav button:hover { color: var(--brand); }
.foot p { font-size: 13px; color: var(--faint); }

/* ══════════════ FENSTER ══════════════ */
.veil {
  position: fixed; inset: 0; z-index: 1200; background: rgba(20,23,49,.42);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.veil.open { opacity: 1; visibility: visible; }
.sheet {
  background: var(--paper); border-radius: var(--r-l); width: 100%; max-width: 460px;
  max-height: 84vh; overflow-y: auto; padding: 30px; text-align: center;
  transform: translateY(14px) scale(.985); transition: transform .32s var(--ease);
}
.veil.open .sheet { transform: none; }
.sheet h3 { font-size: 18px; margin-bottom: 20px; }
.sheet .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: left; }
.sheet .row:last-of-type { border-bottom: 0; }
.sheet .row span:first-child { color: var(--mute); }
.sheet .row span:last-child { color: var(--ink); font-weight: 500; }
.sheet .note { margin-top: 18px; font-size: 13.5px; color: var(--mute); }
.x {
  width: 32px; height: 32px; margin: 22px auto 0; border-radius: 50%; border: 1px solid var(--line);
  background: none; cursor: pointer; display: grid; place-items: center; color: var(--mute);
  transition: background .18s, color .18s, transform .25s var(--ease);
}
.x:hover { background: var(--soft); color: var(--ink); transform: rotate(90deg); }
.x svg { width: 13px; height: 13px; }

/* ══════════════ SCHMALE BILDSCHIRME ══════════════ */
@media (max-width: 900px) {
  .regions { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  .top-in { padding: 16px 18px 12px; gap: 12px; }
  .menu { gap: 2px; }
  .menu a { font-size: 13.5px; padding: 5px 11px; }
  .finder { flex-wrap: wrap; border-radius: var(--r-l); padding: 6px; }
  .fld { flex: 1 1 100%; padding: 12px 14px; }
  .fld-line { width: 100%; height: 1px; }
  .go { width: 100%; border-radius: var(--r-m); height: 48px; }
  .go:hover { transform: none; }
  .regions { grid-template-columns: 1fr; }
}
