/* Universität Herchum -- built from screens/SCCON Demonstrator/Uni Herchum.png
   (1440px frame). Fonts come from the project's Adobe Fonts kit: Epilogue
   for headings, Lato for text. */

:root {
  --uh-blue: #1179b6;
  --uh-blue-hover: #0d6496;
  --uh-blue-soft: #e8f2f9;
  --uh-ink: #000;
  --uh-text: #1a1a1a;
  --uh-muted: #5c5c5c;
  --uh-line: #dedede;
  --uh-disabled: #d1d1d1;
  --uh-disabled-text: #b8b8b8;
  --uh-surface: #f5f7f9;
  --uh-bg: #fff;
  --uh-radius: 6px;
  --uh-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --uh-shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.18);
  --font-head: "epilogue", "Helvetica Neue", Arial, sans-serif;
  --font-body: "lato", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1184px;

  --wf-accent: var(--uh-blue);
  --wf-text: var(--uh-text);
  --wf-muted: var(--uh-muted);
  --wf-border: var(--uh-line);
  --wf-surface: var(--uh-surface);
  --wf-radius: var(--uh-radius);

  /* The mockup is a light design; keep form controls light too. */
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

/* Cards and buttons set their own display; [hidden] must still win. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--uh-bg);
  color: var(--uh-text);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--uh-blue);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--uh-ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

:focus-visible {
  outline: 3px solid var(--uh-blue);
  outline-offset: 2px;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--uh-ink);
  color: #fff;
  border-radius: var(--uh-radius);
}

.skip-link:focus {
  top: 16px;
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--uh-radius);
  background: var(--uh-blue);
  color: #fff;
  font: 700 15px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--uh-blue-hover);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--uh-blue);
  box-shadow: inset 0 0 0 2px var(--uh-blue);
}

.btn-secondary:hover {
  background: var(--uh-blue-soft);
}

.btn[aria-disabled="true"] {
  background: var(--uh-disabled);
  color: #fff;
  cursor: default;
}

/* --- Header: the floating white pill over the hero ------------------------- */

.uh-header {
  position: absolute;
  inset: 32px 0 auto;
  z-index: 10;
}

.uh-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1312px, 100% - 32px);
  min-height: 72px;
  margin-inline: auto;
  padding: 12px 40px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.uh-brand {
  display: block;
  line-height: 0;
}

.uh-brand img {
  width: 200px;
  height: auto;
}

.uh-nav {
  display: flex;
  gap: 48px;
  font: 400 16px/1 var(--font-body);
}

.uh-nav a,
.uh-nav span {
  padding: 8px 0;
  color: #9a9a9a;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.uh-nav a:hover {
  color: var(--uh-ink);
}

.uh-nav [aria-current="page"] {
  color: var(--uh-text);
  border-bottom-color: currentColor;
}

/* Text pages have no hero photo: a blue band carries the header instead. */
.uh-band {
  padding: 136px 0 48px;
  background: var(--uh-blue);
  color: #fff;
}

.uh-band h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
}

/* --- Home hero ------------------------------------------------------------- */

.uh-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 50vw, 720px);
  overflow: hidden;
  background: #3b4a58;
}

.uh-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.uh-hero__inner {
  position: relative;
  padding-top: 72px;
}

.uh-hero__title {
  margin: 0 0 40px;
  color: #fff;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.uh-search {
  position: relative;
  width: min(480px, 100%);
}

.uh-search input {
  width: 100%;
  height: 48px;
  padding: 0 56px 0 28px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--uh-text);
  font: 400 16px var(--font-body);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.uh-search input::placeholder {
  color: #757575;
}

.uh-search input:focus {
  outline: 3px solid var(--uh-blue);
  outline-offset: 2px;
}

.uh-search img {
  position: absolute;
  right: 24px;
  top: 50%;
  width: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}

/* --- Sub-page hero (Immatrikulation, Transcript of Records) ---------------- */

.uh-subhero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(280px, 33.3vw, 480px);
  overflow: hidden;
  background: #8a98a6;
}

.uh-subhero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uh-subhero h1 {
  position: relative;
  margin: 72px 16px 0;
  color: #fff;
  font-size: clamp(40px, 6vw, 88px);
  text-align: center;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}

/* --- Service cards --------------------------------------------------------- */

.uh-services {
  padding: 64px 0 40px;
}

.uh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

.uh-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--uh-line);
  border-radius: var(--uh-radius);
  box-shadow: var(--uh-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.uh-card:not(.is-disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--uh-shadow-hover);
}

.uh-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 342 / 240;
  object-fit: cover;
  border-radius: 2px;
}

.uh-card__title {
  margin: 24px 0 10px;
  font-size: 25px;
  line-height: 1.05;
}

.uh-card__text {
  flex: 1;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
}

.uh-card.is-disabled {
  box-shadow: none;
}

.uh-card.is-disabled .uh-card__title,
.uh-card.is-disabled .uh-card__text {
  color: var(--uh-disabled-text);
}

.uh-noresults {
  margin: 0;
  padding: 32px;
  text-align: center;
  color: var(--uh-muted);
}

.uh-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
}

.uh-pager span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #c4c4c4;
  border-radius: 50%;
  color: #b0b0b0;
  font: 700 14px/1 var(--font-head);
}

.uh-pager .is-current {
  background: #c4c4c4;
  color: #fff;
}

.uh-pager img {
  width: 14px;
  margin-left: 8px;
}

/* --- Process pages --------------------------------------------------------- */

.uh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--uh-muted);
  font-size: 14px;
}

.uh-breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: #b0b0b0;
}

.uh-breadcrumb a {
  color: var(--uh-muted);
}

.uh-process {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
  padding: 32px 0 96px;
}

.uh-process h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 36px);
}

.uh-lead {
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.6;
}

.uh-info {
  margin: 0 0 32px;
  padding: 24px 28px;
  background: var(--uh-surface);
  border-radius: var(--uh-radius);
}

.uh-info h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.uh-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 0;
}

.uh-facts dt {
  color: var(--uh-muted);
}

.uh-facts dd {
  margin: 0;
  font-weight: 700;
}

.uh-steps {
  display: grid;
  gap: 20px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.uh-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  counter-increment: step;
}

.uh-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--uh-blue);
  color: #fff;
  font: 700 17px/1 var(--font-head);
}

.uh-steps strong {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
}

.uh-steps p {
  margin: 2px 0 0;
  color: var(--uh-muted);
}

.uh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.uh-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--uh-blue-soft);
  color: var(--uh-blue-hover);
  font-size: 14px;
  font-weight: 700;
}

.uh-note {
  color: var(--uh-muted);
  font-size: 14px;
}

/* The wallet card on the right. */
.uh-panel {
  position: sticky;
  top: 24px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--uh-line);
  border-radius: var(--uh-radius);
  box-shadow: var(--uh-shadow);
}

.uh-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.uh-panel > p {
  margin: 0 0 24px;
  color: var(--uh-muted);
}

.uh-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.uh-done img {
  width: 88px;
  height: 88px;
}

.uh-done h2 {
  margin: 0;
}

.uh-done p {
  margin: 0;
  color: var(--uh-muted);
}

.uh-done .btn {
  width: 100%;
}

/* --- Text pages ------------------------------------------------------------ */

.uh-text {
  max-width: 760px;
  padding: 48px 0 96px;
  font-size: 17px;
}

.uh-text h2 {
  margin: 40px 0 12px;
  font-size: 24px;
}

.uh-text h2:first-child {
  margin-top: 0;
}

.uh-linklist {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.uh-linklist a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--uh-line);
  border-radius: var(--uh-radius);
  color: var(--uh-text);
  text-decoration: none;
}

.uh-linklist a:hover {
  border-color: var(--uh-blue);
}

.uh-linklist span {
  color: var(--uh-muted);
  font-size: 15px;
}

/* --- Footer ---------------------------------------------------------------- */

.uh-footer {
  margin-top: 64px;
  padding: 32px 0;
  background: var(--uh-blue);
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
}

.uh-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 64px;
  width: min(1376px, 100% - 32px);
  margin-inline: auto;
}

.uh-footer__logo img {
  display: block;
  width: 200px;
  height: auto;
}

.uh-footer__address {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 40px;
  font-style: normal;
}

.uh-footer__address strong {
  grid-column: 1 / -1;
  font-weight: 700;
}

.uh-footer__links {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px 72px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.uh-footer a {
  color: #fff;
  text-decoration: none;
}

.uh-footer a:hover {
  text-decoration: underline;
}

.uh-footer__demo {
  width: min(1376px, 100% - 32px);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0.85;
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 1080px) {
  .uh-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .uh-process {
    grid-template-columns: 1fr;
  }
  .uh-panel {
    position: static;
  }
  .uh-footer__links {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .uh-header {
    inset: 16px 0 auto;
  }
  .uh-header__bar {
    min-height: 60px;
    padding: 10px 24px;
  }
  .uh-brand img {
    width: 168px;
  }
  .uh-nav {
    display: none;
  }
  .uh-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .uh-services {
    padding-top: 40px;
  }
  .uh-panel {
    padding: 24px 20px;
  }
  .uh-footer__links {
    grid-template-columns: repeat(2, auto);
    gap: 12px 40px;
  }
}

.uh-footer--slim .uh-footer__demo {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
