/* Anleitungen: Stundenpläne, Fakultätsbereiche, Hilfekarten und interaktiver Campuswegweiser.
   Bei mehrfach definierten Selektoren gilt die CSS-Kaskade: spätere bzw. spezifischere Regeln können frühere überschreiben. */
.howto-hero {
  padding: 3rem 0 4rem;
}

.howto-section {
  margin-top: 3rem;
}

.howto-section-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.howto-section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.howto-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
}

.howto-heading-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-schedule {
  background: rgba(251, 146, 60, 0.14);
  color: #fb923c;
}

.icon-guides {
  background: rgba(167, 139, 250, 0.14);
  color: #a78bfa;
}

.icon-map {
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
}

.schedule-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  margin: -0.25rem 0 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(140, 82, 255, 0.4);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top right, rgba(140, 82, 255, 0.14), transparent 42%), var(--bg-3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.schedule-notice-content {
  min-width: 0;
}

.schedule-notice p {
  max-width: 80ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.schedule-notice p + p {
  margin-top: 0.55rem;
}

.schedule-notice .schedule-notice-title {
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.schedule-notice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 190px;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #8c52ff;
  border-radius: 9px;
  background: #8c52ff;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(140, 82, 255, 0.28);
  transition:
    transform 0.2s var(--ee),
    background 0.2s var(--ee),
    border-color 0.2s var(--ee),
    box-shadow 0.2s var(--ee);
}

.schedule-notice-button:hover {
  border-color: #b99aff;
  background: #9c6aff;
  color: #ffffff;
  box-shadow: 0 9px 20px rgba(140, 82, 255, 0.36);
  transform: translateY(-1px);
}

.schedule-notice-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Stundenpläne: Karten und Verweise für Studiengänge. */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.schedule-card {
  min-height: 210px;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-3);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.2s var(--ee),
    transform 0.2s var(--ee),
    box-shadow 0.2s var(--ee);
}

.schedule-card:hover {
  border-color: rgba(140, 82, 255, 0.62);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.3),
    0 0 26px rgba(140, 82, 255, 0.14);
}

.schedule-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(140, 82, 255, 0.32);
  border-radius: 999px;
  background: rgba(140, 82, 255, 0.12);
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.schedule-card h3 {
  margin: 0 0 1.25rem;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.schedule-links {
  display: grid;
  gap: 0.65rem;
}

.schedule-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition:
    color 0.2s var(--ee),
    padding-left 0.2s var(--ee);
}

.schedule-links a:last-child {
  border-bottom: 0;
}

.schedule-links a:hover {
  padding-left: 0.25rem;
  color: #c4b5fd;
}

.schedule-links a:focus-visible {
  outline: 2px solid #b99aff;
  outline-offset: 3px;
  border-radius: 3px;
}

.schedule-links a svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Anleitungen: Raster für praktische Hilfethemen. */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-3);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.2s var(--ee),
    transform 0.2s var(--ee),
    box-shadow 0.2s var(--ee);
}

.guide-card:hover {
  border-color: rgba(140, 82, 255, 0.68);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(140, 82, 255, 0.12);
}

.guide-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(140, 82, 255, 0.22);
  background: rgba(140, 82, 255, 0.08);
  color: #c4b5fd;
}

.guide-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.15rem;
}

.guide-content h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.guide-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  margin-top: auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid #8c52ff;
  border-radius: 8px;
  background: rgba(140, 82, 255, 0.14);
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-align: center;
  transition:
    border-color 0.2s var(--ee),
    background 0.2s var(--ee),
    color 0.2s var(--ee),
    transform 0.2s var(--ee),
    box-shadow 0.2s var(--ee);
}

.guide-button:hover {
  border-color: #b99aff;
  background: #8c52ff;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(140, 82, 255, 0.3);
}

.guide-button:focus-visible {
  outline: 2px solid #b99aff;
  outline-offset: 3px;
}

.guide-button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.campus-guide-section {
  padding-bottom: 0.5rem;
}

.campus-guide-intro {
  max-width: 68ch;
  margin: -0.25rem 0 1.25rem;
  color: var(--muted);
  line-height: 1.65;
}

.campus-guide-controls {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.campus-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0 0.9rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.campus-search:focus-within {
  border-color: rgba(140, 82, 255, 0.72);
  box-shadow:
    0 0 0 3px rgba(140, 82, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.campus-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #b99aff;
  stroke-width: 2;
  stroke-linecap: round;
}

.campus-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
}

.campus-search input::placeholder {
  color: var(--muted);
}

.campus-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.campus-filter {
  min-height: 36px;
  padding: 0.45rem 0.72rem;
  border: 1px solid #3f4656;
  border-radius: 8px;
  background: #2a3140;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    border-color 0.2s var(--ee),
    background 0.2s var(--ee),
    color 0.2s var(--ee),
    transform 0.2s var(--ee);
}

.campus-filter:hover {
  border-color: rgba(140, 82, 255, 0.72);
  background: rgba(140, 82, 255, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
}

.campus-filter.active {
  border-color: #8c52ff;
  background: #8c52ff;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(140, 82, 255, 0.28);
}

.campus-filter:focus-visible,
.campus-result:focus-visible {
  outline: 2px solid #b99aff;
  outline-offset: 2px;
}

.campus-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.55fr);
  gap: 1rem;
}

.campus-map-pdf {
  width: 100%;
  height: 680px;
  overflow: hidden;
  background: #edf1f4;
}

.campus-map-pdf iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.campus-map-panel,
.campus-results-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-3);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.campus-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(140, 82, 255, 0.06);
}

.campus-map-toolbar span,
.campus-map-toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.campus-map-toolbar svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.campus-map-toolbar a {
  color: #c4b5fd;
}

.campus-map-toolbar a:hover {
  color: #ffffff;
}

.campus-map-toolbar a:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 3px;
  border-radius: 3px;
}

.campus-map-selected {
  position: sticky;
  bottom: 0.85rem;
  left: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: calc(100% - 1.7rem);
  margin: 0.85rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(140, 82, 255, 0.52);
  border-radius: 9px;
  background: rgba(15, 16, 26, 0.94);
  color: #ffffff;
  font-size: 0.78rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.campus-map-selected-number {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: #8c52ff;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.campus-map-hint {
  margin: 0;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

.campus-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}

.campus-result-head p {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.campus-result-head span {
  color: var(--muted);
  font-size: 0.7rem;
}

.campus-results {
  display: grid;
  max-height: 330px;
  overflow-y: auto;
}

.campus-result {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.7rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  text-align: left;
}

.campus-result:hover,
.campus-result.active {
  background: rgba(140, 82, 255, 0.08);
}

.campus-result.active {
  box-shadow: inset 3px 0 0 #8c52ff;
}

.campus-result-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(140, 82, 255, 0.3);
  border-radius: 8px;
  background: rgba(140, 82, 255, 0.12);
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.campus-result h3 {
  margin: 0 0 0.15rem;
  color: var(--text);
  font-size: 0.87rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.campus-result p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.campus-detail {
  min-height: 145px;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: rgba(140, 82, 255, 0.06);
}

.campus-detail-label {
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.campus-detail h3 {
  margin: 0.35rem 0;
  color: var(--text);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.campus-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.campus-empty {
  padding: 1.2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Bildschirmabhängige Anpassungen: gelten nur bei der folgenden Breite bzw. Systemeinstellung. */
@media (max-width: 900px) {
  .schedule-card {
    min-height: 0;
  }

  .campus-guide-controls,
  .campus-guide-layout {
    grid-template-columns: 1fr;
  }

  .campus-map-pdf {
    height: 540px;
  }
}

/* Bildschirmabhängige Anpassungen: gelten nur bei der folgenden Breite bzw. Systemeinstellung. */
@media (max-width: 640px) {
  .howto-hero {
    padding: 1.8rem 0 3rem;
  }

  .howto-section {
    margin-top: 2.25rem;
  }

  .howto-section-heading {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .howto-section-heading h2 {
    font-size: 1.35rem;
  }

  .howto-heading-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .schedule-notice {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin: -0.15rem 0 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
  }

  .schedule-notice p {
    font-size: 0.84rem;
  }

  .schedule-notice-button {
    width: 100%;
    min-width: 0;
  }

  .schedule-grid,
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .schedule-card {
    min-height: 0;
    padding: 1.1rem;
  }

  .schedule-card::before {
    left: 1.1rem;
  }

  .schedule-card h3 {
    margin-bottom: 1rem;
    font-size: 1.08rem;
  }

  .guide-card {
    grid-template-columns: 72px minmax(0, 1fr);
    width: 100%;
    min-height: 0;
  }

  .guide-icon {
    min-width: 0;
  }

  .guide-icon svg {
    width: 30px;
    height: 30px;
  }

  .guide-content {
    padding: 1rem;
  }

  .guide-content h3 {
    margin-bottom: 0.45rem;
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .guide-content p {
    font-size: 0.84rem;
  }

  .guide-button {
    align-self: flex-start;
    min-height: 40px;
    margin-top: 0.9rem;
    padding: 0.5rem 0.65rem;
    white-space: normal;
  }

  .campus-guide-controls {
    gap: 0.7rem;
  }

  .campus-filter-group {
    gap: 0.4rem;
  }

  .campus-filter {
    min-height: 38px;
    padding: 0.42rem 0.62rem;
    font-size: 0.62rem;
  }

  .campus-map-panel,
  .campus-results-panel {
    border-radius: var(--radius-md);
  }

  .campus-map-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .campus-map-pdf {
    height: 390px;
  }

  .campus-map-selected {
    max-width: calc(100% - 1.2rem);
    margin: 0.6rem;
  }

  .campus-results {
    max-height: 285px;
  }
}

/* ==========================================
   HOW TO – WORK IN PROGRESS
   ========================================== */

body.festival-design .howto-work-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;

  max-width: 820px;
  margin: 1.75rem 5px 0 0;
  padding: 1.15rem 1.4rem;

  background: #390036;
  color: #fff7f9;
  border: 2px solid #fc6714;
  border-radius: 2px;
  box-shadow: 5px 5px 0 #fc6714;
}

/* Orangefarbenes Festival-Label */
body.festival-design .howto-work-tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;

  padding: 0.45rem 0.65rem;

  background: #fc6714;
  color: #390036;

  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;

  transform: rotate(-3deg);
}

/* Textbereich */
body.festival-design .howto-work-content {
  flex: 1 1 260px;
  min-width: 0;
}

body.festival-design .howto-work-content strong {
  display: block;
  margin-bottom: 0.3rem;

  color: #ffdead;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

body.festival-design .howto-work-content p {
  margin: 0;
  color: #fff7f9;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Mobile Darstellung */
@media (max-width: 640px) {
  body.festival-design .howto-work-notice {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
  }

  body.festival-design .howto-work-content {
    flex-basis: auto;
  }

  body.festival-design .howto-work-content strong {
    font-size: 0.9rem;
  }

  body.festival-design .howto-work-content p {
    font-size: 0.85rem;
  }
}
