/* ============================================
   Schulwebsite – HELLES Design (eigenständig)
   Barrierefreie Variante: helles Grau, dunkler
   Text, rotbraune Akzente.

   VERWENDUNG:
   Ersetze in allen HTML-Dateien den Link
     <link rel="stylesheet" href="css/style.css">
   durch
     <link rel="stylesheet" href="css/style-hell-standalone.css">
   um die gesamte Seite im hellen Design zu zeigen.

   ANPASSEN:
   Alle Farben stehen als Variablen in :root –
   dort kannst du alles zentral ändern.
   ============================================ */

:root {
  --bg-primary:    #f4f4f2;
  --bg-secondary:  #eaeae7;
  --bg-card:       #ffffff;
  --bg-card-hover: #fdf0eb;
  --border:        #d0cec8;
  --text-primary:  #1a1a18;
  --text-secondary:#3d3d3a;
  --text-muted:    #6b6b67;
  --accent:        #a83218;
  --accent-hover:  #c43d20;
  --accent-soft:   rgba(168, 50, 24, 0.10);
  --radius: 10px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Fließtext-Links rotbraun hervorheben */
.section a:not(.btn-link),
main p a,
main li a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section a:not(.btn-link):hover,
main p a:hover,
main li a:hover {
  color: var(--accent-hover);
}

.section a:not(.btn-link):visited,
main p a:visited,
main li a:visited {
  color: #7a2410;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(244, 244, 242, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 600;
  font-size: 1.05rem;
}

.icon-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header .brand .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 1px 6px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--accent-hover);
}

.breadcrumb .sep {
  color: var(--text-muted);
}

/* ---------- Layout ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.page-title {
  font-size: 1.8rem;
  margin: 4px 0 6px;
}

.page-subtitle {
  color: var(--text-secondary);
  margin: 0 0 28px;
  font-size: 1rem;
}

/* ---------- Karten-Grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.card:hover,
.card:focus-visible {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.card .code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.card .name {
  font-size: 1.1rem;
  font-weight: 600;
}

.card .desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Inhalts-Abschnitte ---------- */

.section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
  background: var(--bg-secondary);
}

.section h2 {
  margin-top: 0;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section h2 .tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.05em;
}

.placeholder {
  color: var(--text-muted);
  font-style: italic;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 14px;
  font-size: 0.9rem;
}

.section ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.section li {
  margin-bottom: 6px;
}

.btn-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}

.btn-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* ---------- Style-Switcher Button ---------- */

.switcher-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.switcher-btn:hover,
.switcher-btn[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Suche ---------- */

.search-box {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
}

.search-box:focus {
  outline: none;
  border-color: var(--accent);
}

.search-box::placeholder {
  color: var(--text-muted);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  outline: none;
}

.search-result .code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.search-result .name {
  font-weight: 600;
  margin-left: 6px;
}

.search-result .path {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Fußzeile ---------- */

.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 24px 20px 40px;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .site-header {
    padding: 10px 14px;
  }
  .breadcrumb {
    order: 3;
    width: 100%;
    padding-top: 4px;
  }
  main {
    padding: 20px 14px 48px;
  }
  .page-title {
    font-size: 1.5rem;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}
