
/*Vordefiniertes Farbenset*/

:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #121319;
  --muted: #5c5f6a;
  --primary: #3b82f6;   /* Blau */
  --primary-ink: #0b3b8a;
  --ring: rgba(59, 130, 246, .35);
  --border: #e7e7ef;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 16px;
  --maxw: 1100px;
}

/* Reset / Basics */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

/* Hilfsklassen */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.2rem;
}
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .2px;
}
.brand-mark { font-size: 1.25rem; }
.brand-text { font-size: 1.05rem; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: .4rem .7rem;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--surface);
  color: var(--text);
  outline: 3px solid transparent;
  box-shadow: 0 0 0 6px var(--ring);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: clip;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 240px;
  background:
    radial-gradient(40% 60% at 20% 60%, color-mix(in srgb, var(--primary) 22%, transparent) 0, transparent 80%),
    radial-gradient(30% 40% at 80% 40%, color-mix(in srgb, var(--primary) 18%, transparent) 0, transparent 75%);
  pointer-events: none;
  filter: blur(18px);
}
.hero-inner h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 2.6vw + 1rem, 2.6rem);
  line-height: 1.2;
}
.lead {
  color: var(--muted);
  font-size: clamp(1rem, .5vw + .9rem, 1.15rem);
  max-width: 70ch;
}

/* Raster & Karten */
#faecher { padding: 1rem 0 2rem; }
#faecher h2, #infos h2 {
  font-size: clamp(1.2rem, .8vw + 1rem, 1.6rem);
  margin: 1rem 0 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .2rem;
  text-decoration: none;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface));
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.card:focus-visible {
  outline: 3px solid transparent;
  box-shadow: 0 0 0 6px var(--ring);
}
.card-emoji { font-size: 1.6rem; }
.card h3 {
  margin: .1rem 0;
  font-size: 1.15rem;
  letter-spacing: .2px;
}
.card p { margin: .2rem 0 .6rem; color: var(--muted); }
.card-cta {
  margin-top: .4rem;
  font-weight: 600;
  color: var(--primary-ink);
}
.card:hover .card-cta { text-decoration: underline; }

/* Hinweise-Liste */
.notes {
  margin: .2rem 0 2rem;
  padding: 0 1rem;
}
.notes li { margin: .4rem 0; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.footer-inner {
  padding: 1.2rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

/* Barrierefreiheit & Feinheiten */
:focus-visible {
  outline: 3px solid transparent;
  box-shadow: 0 0 0 6px var(--ring);
  border-radius: 10px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Druckansicht: nur Inhalte */
@media print {
  .site-header, .hero, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
}



/*
------------------------------------------
------------------------------------------
            Eigener CSS-Code
------------------------------------------
------------------------------------------
*/

h3,h4{
  color: var(--primary-ink);
}
#email{
  color: var(--primary-ink);
}

.card-container h4{
  margin:0;
}

.card-item-list{
  display: none; /*inline-flex;*/
  flex-direction: column;
  gap: 10px;
}

.card-item{
  background-color: rgba(219, 219, 219, 0.1);
  border: lightgray 0.5px solid;
  border-radius: 15px;
  padding:10px;
  cursor: pointer;
}

.card-item:hover{
  color:var(--primary);
  text-shadow: 0.5px 0.5px var(--primary-ink);
}

.card:hover{
  cursor: pointer;
}

.container:hover{
  cursor: pointer;
}

/* ---- Ordner-Download Card (ZIP für Schüler) ---- */
.card-item--folder-dl {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  border-radius: 15px;
  padding: 12px 14px;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Kopfzeile: Titel links, Button rechts */
.folder-dl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.folder-dl-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-ink);
}
.folder-dl-header .file-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Download-Button */
.folder-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.15s ease;
}
.folder-dl-btn:hover {
  background: var(--primary-ink);
  transform: translateY(-2px);
  color: #fff;
}

/* ---- Datei-Vorschauliste (nicht klickbar) ---- */
.folder-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 220px;
  overflow-y: auto;
}

.folder-preview-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 7px;
  font-size: 0.82rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--primary) 4%, transparent);
  user-select: none;
  pointer-events: none;
}
.fpi-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}
.fpi-name {
  flex: 1;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.fpi-size {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}

.folder-preview-loading,
.folder-preview-empty {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 4px 6px;
  font-style: italic;
  list-style: none;
}

