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

:root {
  --line-color: #cfd8e3;
  --surface-a: #f5f8fb;
  --surface-b: #eef3f8;
  --text-main: #13222e;
  --text-muted: #516273;
}

body {
  color: var(--text-main);
  font-family: "Sora", "Segoe UI", Tahoma, sans-serif;
}

a {
  color: #123c5b;
}

*,
*::before,
*::after {
  border-radius: 0 !important;
}

.shadow,
.shadow-sm,
.shadow-lg,
.shadow-md {
  box-shadow: none !important;
}

.card,
.btn,
.badge,
.form-control,
.form-select,
.input-group-text,
.alert {
  border-radius: 0 !important;
}

.hero-full {
  width: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(114, 193, 255, 0.25) 0, transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(139, 230, 184, 0.22) 0, transparent 40%),
    linear-gradient(135deg, #f2f7ff 0%, #f9fbff 50%, #eefcf5 100%);
  border-bottom: 1px solid rgba(17, 57, 88, 0.08);
}

.hero-shell {
  max-width: 1100px;
}

.search-hero-form {
  border: 1px solid var(--line-color);
  background-color: rgba(255, 255, 255, 0.96);
}

.search-hero-form .form-control-lg {
  min-height: 3rem;
}

.portal-card {
  border: 1px solid var(--line-color);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.portal-card .card-footer,
.result-card .card-footer {
  background: transparent !important;
}

.result-card {
  border: 1px solid var(--line-color);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.result-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #55758e;
  transition: width 0.2s ease;
}

.result-card .card-title {
  color: #123c5b;
  transition: transform 0.18s ease;
}

.result-card .text-secondary,
.portal-card .text-secondary {
  color: var(--text-muted) !important;
}

.result-card-link {
  z-index: 1;
}

.result-card:hover,
.result-card:focus-within {
  transform: translateX(5px);
  border-color: #87a7c2;
}

.result-card:hover::before,
.result-card:focus-within::before {
  width: 5px;
}

.result-card:hover .card-title,
.result-card:focus-within .card-title {
  transform: translateX(4px);
}

.result-card.source-jobsuche::before {
  background: #0f6fb5;
}

.result-card.source-studiensuche::before {
  background: #1d8f63;
}

.result-card.source-weiterbildungssuche::before {
  background: #af5f00;
}

.result-card.source-ausbildungssuche::before {
  background: #6f42c1;
}

.results-list {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin: 0;
}

.results-list > [class*="col-"] {
  padding: 0;
}

.results-list > [class*="col-"]:nth-child(odd) .result-card {
  background-color: var(--surface-a);
}

.results-list > [class*="col-"]:nth-child(even) .result-card {
  background-color: var(--surface-b);
}

.results-list .result-card + .result-card {
  border-top: 0;
}

.result-card.variant-1 {
  background-image: linear-gradient(135deg, rgba(17, 96, 150, 0.06) 0, transparent 40%);
}

.result-card.variant-2 {
  background-image: linear-gradient(135deg, rgba(36, 130, 96, 0.06) 0, transparent 40%);
}

.result-card.variant-3 {
  background-image: linear-gradient(135deg, rgba(171, 98, 0, 0.06) 0, transparent 40%);
}

.result-card.variant-4 {
  background-image: linear-gradient(135deg, rgba(90, 62, 180, 0.06) 0, transparent 40%);
}

.dynamic-results-list .result-card {
  background-size: 100% 100%;
}

.context-header {
  border: 1px solid var(--line-color);
  background: linear-gradient(180deg, #f9fcff 0%, #f3f8fe 100%);
  padding: 0.85rem;
}

.context-title-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.context-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #102f47;
}

.context-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.context-link-item {
  display: inline-block;
  border: 1px solid var(--line-color);
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  text-decoration: none;
  background: #ffffff;
  color: #153b58;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.context-link-item:hover,
.context-link-item:focus {
  border-color: #8aa8c0;
  transform: translateY(-1px);
}

.context-search-form {
  border: 1px solid var(--line-color);
}

.detail-copy p:last-child,
.detail-copy ul:last-child,
.detail-copy ol:last-child {
  margin-bottom: 0;
}

.detail-headline {
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.detail-meta {
  border: 1px solid var(--line-color);
}

.detail-meta .meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-color);
}

.detail-meta .meta-row:nth-child(odd) {
  background: var(--surface-a);
}

.detail-meta .meta-row:nth-child(even) {
  background: var(--surface-b);
}

.detail-meta .meta-row:last-child {
  border-bottom: 0;
}

.detail-meta .meta-icon {
  line-height: 1;
  margin-top: 0.1rem;
}

.detail-main-card {
  border: 1px solid var(--line-color);
  background: linear-gradient(180deg, #fefefe 0%, #f9fcff 100%);
}

.detail-map-card {
  border: 1px solid var(--line-color);
  background: #fff;
}

.detail-map-wrap {
  position: relative;
  width: 100%;
  height: 340px;
}

.detail-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.sidebar-card {
  border: 1px solid var(--line-color);
}

@media (min-width: 1200px) {
  .detail-sidebar {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
  }
}

.sidebar-card .card-header {
  border-bottom: 1px solid var(--line-color);
  background: #f4f8fd;
}

.sidebar-job-list {
  display: flex;
  flex-direction: column;
}

.sidebar-job-item {
  display: block;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-color);
  background: #ffffff;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.sidebar-job-item:nth-child(even) {
  background: #f8fbff;
}

.sidebar-job-item:last-child {
  border-bottom: 0;
}

.sidebar-job-item:hover,
.sidebar-job-item:focus {
  background: #eaf3ff;
  transform: translateX(3px);
}

.sidebar-job-title {
  color: #123c5b;
  font-weight: 600;
}

.sidebar-job-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.source-tile {
  border: 1px solid var(--line-color);
  background: linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.source-tile:hover,
.source-tile:focus-within {
  transform: translateY(-3px);
  border-color: #8aa8c0;
}

.source-tile-icon {
  font-size: 1.2rem;
  color: #153b58;
}

.branch-card {
  border: 1px solid var(--line-color);
  background: #f7fbff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.branch-card:hover,
.branch-card:focus-within {
  transform: translateY(-2px);
  border-color: #8aa8c0;
}

.branch-mini-list {
  border-top: 1px solid var(--line-color);
}

.mini-job {
  border-bottom: 1px solid var(--line-color);
  padding: 0.65rem 0;
}

.mini-job:last-child {
  border-bottom: 0;
}

.mini-job-title {
  display: inline-block;
  color: #123c5b;
  font-weight: 600;
  text-decoration: none;
}

.mini-job-title:hover,
.mini-job-title:focus {
  text-decoration: underline;
}

.mini-job-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .portal-card,
  .result-card,
  .result-card::before,
  .result-card .card-title,
  .source-tile,
  .branch-card,
  .sidebar-job-item,
  .context-link-item {
    transition: none !important;
  }

  .result-card:hover,
  .result-card:focus-within,
  .source-tile:hover,
  .source-tile:focus-within,
  .branch-card:hover,
  .branch-card:focus-within {
    transform: none !important;
  }
}
