.sp-index-overview {
	margin:auto auto;
	width:100%;
}

.sp-index-title {
  text-transform: uppercase;
  font-family: var(--font-headline1);
  letter-spacing: 2px;
  font-size: 12pt;
  margin: 0px 0px 5px 0px;
  text-align: center;
	width:100%;
}

.sp-index-table th, .sp-table th {
  text-align: center;
  font-size: 12pt;
  font-weight: bold;
}

.sp-table th {
    padding: 2px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.sp-table th,
.sp-table td {
    vertical-align: top;
    text-align: center;
    margin: 1px;
}

.sp-index-table tr td:first-child, .sp-table tr td:first-child {
	padding: 2px;
	margin: 1px;
	width: calc(100%/6);
	box-sizing: border-box;
	background: var(--hintergrund2);
	color: var(--font-color);
	font-size: 10pt;
}

.sp-index-table td, .sp-td {
  padding: 2px;
  width: calc(100%/6);
  box-sizing: border-box;
  font-size: 10px;
	text-align: center;
}

.sp-meal {
border-bottom: 2px solid var(--hggreyer);
border-top: 2px solid var(--hggreyer);
	font-weight:bold;
}

.sp-parallel-block {font-size:12pt;font-weight:normal;background-color: var(--hintergrund2);}

.sp-teacher-circle {
float:right;
	width:15px;
	height:15px;
  line-height: 18px;
  border-radius: 50%;
  background: var(--hg1tab);
  color: var(--fontnormal);
  font-size: 12pt;
  font-weight: bold;
  text-align: center;
  cursor: help;
  padding: 2px;
	margin:2px;
}

.sp-fachname {
	font-weight:bold;
}

/* Stundenplan Seite (steuert aber auch noch ein paar index/profil dinge) */

.sp-page {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sp-page-header h1 {
    margin: 0;
    color: var(--h1font);
}

.stundenplan-overview {
max-height:600px; 
overflow:auto;
}

.sp-description {
    padding: 10px;
    line-height: 1.7;
    border: 2px solid rgba(255,255,255,0.03);
}

.sp-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sp-nav a {
    padding: 10px 16px;
    border-radius: 10px;
	border: 1px solid var(--fontkal);
    background: rgba(255,255,255,0.03);
    text-decoration: none;
    transition: background .2s ease,
        transform .2s ease;
}

.sp-nav a:hover {
	color:var(--fontnormal);
}

.sp-grid {
    width: 1150px;
}

.sp-select-card {
    float: left;
    width: 265px;
    height: 150px;
    padding: 10px;
    border-radius: 1px;
    background: var(--hintergrund2);
    text-decoration: none;
    margin: 1px;
    text-align: center;
}

.sp-select-card:hover {
    background: transparent;
	transition: 0.5s ease;
	letter-spacing:0px;
}

.sp-select-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--link2);
}

.sp-select-subtitle {
    font-size: 13pt;
    line-height: 1.5;
    opacity: .75;
    color: var(--fontkal);
}

.sp-section-title {
    font-size: 30px;
    font-weight: 700;
}

.sp-back a {
	opacity: .75;	
	text-decoration: none;
}

.sp-card {
    border: 1px solid var(--hgaccent);
}

.sp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 22px;
    border-bottom: 1px solid var(--hgaccent);
    background: rgba(255,255,255,0.02);
}

.sp-card-title {
    font-size: 20px;
    font-weight: 700;
font-family: var(--font-main);
}

.sp-card-subtitle {
    margin-top: 6px;
    font-size: 13pt;
    line-height: 1.5;
    opacity: .75;
    color: var(--fontkal);
}

/* Compare Bereich */

.sp-compare-inline {
    min-width: 260px;
    text-align: right;
}

.sp-compare-inline-label {
    margin-bottom: 6px;
    font-size: 11pt;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .65;
    color: var(--fontkal);
}

.sp-compare-select {
    width: 100%;
    max-width: 320px;
    padding: 8px 10px;
    border: 1px solid var(--hgaccent);
    border-radius: 8px;
    background: var(--hgnormal);
    font: inherit;
}

.sp-table-wrapper {
    overflow-x: auto;
}

.sp-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.sp-time {
    width: 170px;
    font-weight: 700;
    text-align: left !important;
    background: rgba(0,0,0,0.12);
    color: var(--fontnormal);
}

.sp-cell-fach {
    margin-bottom: 4px;
    font-size: 12pt;
    font-weight: 700;
}

.sp-cell-meta {
    font-size: 12pt;
    line-height: 1.5;
    /* opacity: .75; */
    /* color: var(--fontkal); */
}

.sp-shared-subject {
    background: rgba(140, 190, 140, 0.14);
}

.sp-shared-free {
    background: rgba(120, 150, 190, 0.12);
}

@media (max-width: 900px) {
    .sp-card-header {
        flex-direction: column;
}

.sp-compare-inline {
        width: 100%;
        min-width: unset;
        text-align: left;
}

.sp-compare-select {
        max-width: 100%;
}


}

.sp-compare-active {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--hgaccent);
    background: rgba(255,255,255,0.02);
}

.sp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12pt;
    color: var(--fontkal);
}

.sp-legend-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.sp-legend-shared {
    background: rgba(140, 190, 140, 0.35);
}

.sp-legend-free {
    background: rgba(120, 150, 190, 0.25);
}

.sp-cell-parallel {font-size:10pt;/* color: var(--fontkal); *//* opacity:0.3; */}