/* Bildungsportal – vollständiges Stylesheet (ohne JavaScript) */
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d2540;
  background: #f9fafc;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 1160px; margin: 0 auto; padding: 0 42px; }

/* Kopfzeile */
.header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9ecf2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -.5px;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: #5666d8;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
}
.header-note { font-size: 12px; color: #8b91a3; }

/* Optionale Einleitung – falls im Template noch vorhanden */
.intro { padding: 40px 0 32px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: #6371c9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #6d7bdb; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -1.5px; margin: 0 0 12px; }
.period { color: #6a78de; }
.subtitle { margin: 0; color: #81899a; font-size: 14px; line-height: 1.6; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 16px; }
.section-heading span { color: #969cad; font-size: 12px; }

/* Kachelraster */
.portal { padding-top: 24px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative;
  min-width: 0;
  min-height: 160px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, .025);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
  color: #283049;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 32px #29324b12; }
.tile:focus-visible, .brand:focus-visible, .footer a:focus-visible {
  outline: 3px solid #5666d8;
  outline-offset: 4px;
}
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; }
.tile-icon {
  height: 42px;
  width: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffffffb5;
}
.tile-icon svg { width: 23px; height: 23px; }
.tile-arrow { font-size: 22px; color: #778099; line-height: 1; }
.tile h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.3px; font-weight: 750; }
.tile p { margin: 0; color: #6e7689; font-size: 13px; line-height: 1.5; }

/* Farben aktiver Kacheln */
.tile--lavender { background: #edebfc; }
.tile--lavender .tile-icon { color: #7264d7; }
.tile--sky { background: #e5f2fd; }
.tile--sky .tile-icon { color: #458fcb; }
.tile--peach { background: #fff0e7; }
.tile--peach .tile-icon { color: #d88b61; }
.tile--mint { background: #e6f5ee; }
.tile--mint .tile-icon { color: #48a57e; }
.tile--rose { background: #fbeaf0; }
.tile--rose .tile-icon { color: #c96f93; }
.tile--sand { background: #f6f0e2; }
.tile--sand .tile-icon { color: #b69a59; }

/* Deaktivierte Kacheln: sichtbar, aber nicht anklickbar.
   Das X sitzt groß in der oberen Kachelhälfte und verdeckt den Titel nicht. */
.tile.tile--disabled {
  background: #e9e9ec;
  color: #888991;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.tile.tile--disabled:hover { transform: none; box-shadow: none; }
.tile--disabled .tile-icon { color: #9b9ca5; background: #ffffff85; }
.tile--disabled h3 {
  color: #777985;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.tile--disabled .tile-status { color: #b42332; font-size: 12px; font-weight: 700; }
.tile--disabled .tile-cross {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  color: #dc2626;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 94px;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 1px 0 #fff8;
}

/* Footer */
.footer {
  margin-top: 50px;
  padding: 28px 0 40px;
  border-top: 1px solid #e9ecf2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #9aa0af;
  font-size: 12px;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: #777f90; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .shell { padding: 0 22px; }
  .header { height: 70px; }
  .header-note { display: none; }
  .portal { padding-top: 18px; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { min-height: 150px; }
  .footer { margin-top: 40px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  a.tile:hover { transform: none; }
}
