/*
 * kopiert aus casdt-website
 * ineffiziente Regeln kommen davon, dass ich Sass
 * gelöscht habe (weil es zu so vielen Fehlern führte).
 */

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 100%;
  line-height: 1.3;
  box-sizing: border-box;
}

.frac {
  font-variant-numeric: diagonal-fractions;
  -moz-font-feature-settings: 'frac';
  -webkit-font-feature-settings: 'frac';
  font-feature-settings: 'frac' on;
}

body { margin: 0; padding: 0; }

header nav ul {
  display: flex;
  list-style: none;
  padding: 0;
}
header nav ul li { margin: 0 1rem 0 0; }
/* Formulare (import aus c4ta-curriculum) */

form {
  display: grid;
  grid-template-columns: max-content max-content;
  grid-gap: 0.5rem 1rem;
}

form button {
  grid-column: 2;
  justify-self: start;
  margin-top: .5rem;
  color: var(--button-fg);
  background: var(--button-bg);
  padding: 0.125rem 0.25rem;
  border: none;
  border-radius: 0.25rem;
}

form button:hover {
  color: var(--button-hover-fg);
  background: var(--button-hover-bg);
}

form .description {
  /* create schoolday form */
  grid-column: 2;
}

.danger-zone {
  background: var(--secondary-bg);
  color: var(--secondary-fg);
  display: inline-block;
  padding: 0 1.5rem 1rem;
  border-radius: 0.25rem;
  margin-top: 2rem;
}

.danger-zone form {
  display: flex;
  justify-content: center;
}

.danger-zone form button {
  margin: 0;
}
/* End Forms */

/* Links */
a { text-decoration: none; }

/* End Links */

/* Tables */
table { 
  text-align: left;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

th {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  padding-bottom: 0.25rem;
 }

td { 
  font-family: 'InputMonoNarrow', monospace;
  font-size: 0.75rem;
  padding-right: 0.5rem;
  white-space: nowrap;
 }
/* End Tables */

@media (max-width: 700px) {
  header nav ul {
    flex-direction: column;
    margin: 0;
  }
  header nav ul li { margin-bottom: .5rem; }
}

header a,
footer a { text-decoration: none; }

header, main { padding: 1rem 1rem 1.5rem; } 

h1, h2 {
  line-height: 1.1;
  margin-bottom: 2rem;
}

h3, h4 { margin-bottom: 0.2rem; }

section h3 { margin-top: 0.25rem;}

p { margin-top: 0; }

p img {
  /* vermaledeite markdown umwandlung */
  margin-top: 1rem;
  max-width: 60%;
}
@media (max-width: 700px) {
  p img { max-width: 100%; }
}

article hr { 
  margin: 2rem 0;
  max-width: 100%;
  border: none;
  border-top: 1px solid black;
}

footer p { margin: 1rem 0 1rem 1rem; }

time {
  font-weight: normal;
  font-size: 1rem;
}

ul {
	padding-left: 1rem;
  margin-top: 0;
}


/* Workshops */

.workshop-content section h1 { font-size: 2rem; }
.workshop-content h2 { font-size: 1.5rem; }
.workshop-content h3 { font-size: 1.25rem; }
.workshop-content h4 { font-size: 1rem; }
.workshop-content h5 { font-size: 1rem; font-weight: normal; }
.workshop-content h6 { font-size: 1rem; font-weight: normal; font-style: italic ; }

.workshop-content h1,
.workshop-content h2 { margin: 2.5rem 0; }
.workshop-content h2 { margin: 1.5rem 0 1.25rem; }
.workshop-content h3,
.workshop-content h4,
.workshop-content h5,
.workshop-content h6 { margin-bottom: 0.5rem; }

/* End Workshops */

/* Curriculum */

.curriculum {
  margin-bottom: 1rem; 
}

.curriculum .info { font-size: .75rem; } 
.curriculum .disclaimer { font-size: .625rem; } 
.curriculum .capitalize { text-transform: capitalize; }

.semester { margin: 0 0 2rem; }

.semester h3 { 
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-family: unset;
 }

 .month {
  font-family: 'InputMonoNarrow', monospace;
  font-size: 0.625rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.month:last-child { margin-bottom: 0; }
.month h4 {
  text-transform: capitalize;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
    font-size: 0.75rem;
  margin: 0 0 0.25rem;
}
.weekend { margin-bottom: 0.5rem; }

.weekend:last-child { margin-bottom: 0; }

.day {
  display: grid;
  grid-template-columns: repeat(2, 2.75rem) min-content min-content 14rem min-content 4ch 14rem;
  grid-gap: 0;
  margin-bottom: 0rem;
}
.day span { padding: 0.05rem 0.25rem 0.1835rem; }
.day .name { border: none; }
.day .date { padding-left: 0; }
.day .name {
    text-transform: uppercase;
    cursor: pointer;
  }
.day .verschoben { text-decoration: line-through; }

@media (min-width: 1400px) {
  .curriculum {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0 1rem;
  }
  .curriculum  h2,
  .curriculum .class-indicator,
  .curriculum .info,
  .curriculum .disclaimer {
    grid-column: 1/-1;
    justify-self: start;
  }
}

/* End Curriculum */

/* Code Styles */

code {
  font-family: 'inputMonoNarrow', monospace;
  font-size: 0.875rem;
  font-weight: 300;
}
li > code,
p > code {
  font-style: italic;
  display: inline-block;
  padding: 0.1875rem 0.25rem 0.0625rem;
  border-radius: 0.3125rem;
}

/* End Code Styles */

@media screen and (max-width: 700px) {

  /* .day { font-size: 0.625rem; } */

  .month h3 { margin-bottom: 0.25rem; }
  .month h4 { margin-bottom: .25rem; }
  .weekend { margin-bottom: 1.25rem; }
  .day {
    grid-template-columns: 2.25rem 2.5rem 1fr;
    grid-template-rows: repeat(3, 1.125rem);
    margin-bottom: 0.25rem;
  }
  .day:nth-child(even) { margin-bottom: 1rem;}
  .date { padding-left: 0; }
  .room { grid-column: 2/-1; }
  .title { grid-column: 3/-1; }
  .date,
  .room,
  span:nth-child(n+3):nth-child(-n+5) { border-bottom: 1px solid black; }
  .day { border-bottom: 1px solid black; }
}
