/* ==========================================================
   Lehrbergwerk Grube Roter Bär – general.css
   ========================================================== */

:root {
  --kohle:         #16161a;
  --schacht:       #16161a;
  --stahl:         #2a2a30;
  --staub:         #9a9aa0;
  --licht:         #f8f8f8;
  --raster:        1px solid var(--stahl);
  --schacht-rgb:   22, 22, 26;
  --modern-kachel: #1a1a1f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--schacht);
  color: var(--licht);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo { font-family: 'Archivo', sans-serif; }

header .logo { align-items: center; gap: 0; }

.logo-bild {
  width: 0;
  height: auto;
  margin-right: 0;
  opacity: 0;
  transition: width .25s ease, margin-right .25s ease, opacity .25s ease;
}

header.logo-sichtbar .logo-bild {
  width: 38px;
  margin-right: 10px;
  opacity: 1;
}

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 24px); }

/* Monospace-Label (Mehr erfahren, Footer) */
.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--staub);
}

:focus-visible { outline: 2px solid var(--licht); outline-offset: 3px; }
main:focus { outline: none; }

/* Sprunglink für Tastaturnutzer */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px;
  background: var(--licht); color: var(--kohle);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ————— Header / Navigation ————— */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  border-bottom: var(--raster);
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav {
  position: relative;
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
}

.nav-links a.nav-hervorhebung {
  border: 1px solid var(--staub);
  border-radius: 4px;
  padding: 6px 12px;
  color: var(--licht);
}
.nav-links a.nav-hervorhebung:hover {
  border-color: var(--licht);
}

.logo {
  font-weight: 800; letter-spacing: 0.04em; font-size: 1rem;
  color: var(--licht); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.logo .logo-sub { font-weight: 400; color: var(--staub); font-size: 0.85em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--staub); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--licht); }

/* Untermenü (Desktop): bei Hover und Tastaturfokus sichtbar */
.nav-group { position: relative; }
.nav-sub {
  position: absolute; top: 100%; left: -16px; z-index: 20;
  display: none; flex-direction: column;
  min-width: 240px; padding: 8px 0;
  background: rgba(13, 13, 15, 0.97);
  border: var(--raster);
}
.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub { display: flex; }
.nav-sub a { padding: 10px 16px; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--licht);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ————— Hero ————— */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 64px;
  border-bottom: var(--raster); 
  background: var(--kohle) url('bilder/webp/belegschaft.webp') no-repeat center / cover;
}

/* Verlauf dunkelt das Bild nach unten ab */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(var(--schacht-rgb), 0.10) 0%,
    rgba(var(--schacht-rgb), 0.55) 70%,
    rgba(var(--schacht-rgb), 0.85) 90%,
    rgba(var(--schacht-rgb), 0.90) 100%);
}

/* 
background: linear-gradient(180deg,
    rgba(var(--schacht-rgb), 0.10) 0%,
    rgba(var(--schacht-rgb), 0.25) 70%,
    rgba(var(--schacht-rgb), 1) calc(100% - 50px),
    rgba(var(--schacht-rgb), 1) 100%);

*/

.hero .wrap {
  position: relative;
  width: 100%;
  z-index: 3;
  text-align: center;
}

.hero-logo {
  display: block;
  width: clamp(110px, 36vw, 160px);
  height: auto;
  margin: 0 auto 32px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero h1 .hero-unterzeile {
  font-family: serif;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.hero-sub {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/*
.hero-sub {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 32px;

  padding: 18px clamp(16px, 4vw, 24px);
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: var(--raster);

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}*/


.hero-sub p {
  max-width: 46ch;
  color: var(--licht);
  font-size: 1.4rem;
}

/* ————— Abschnitte ————— */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 40px 0 32px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em;
}

.about {
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
  padding-bottom: 88px;
  border-bottom: var(--staub);
  text-align: center;
}
.about p { color: var(--licht); font-size: 1.5rem; max-width: 62ch; }
.about strong { font-weight: 500; }

/* Reine Textabschnitte (Einführung, Roterbärit, Bergmannsgruß) */
.abschnitt-text { padding: 25px 0;}
.abschnitt-text .about { grid-template-columns: 1fr; }
.abschnitt-text .about > .mono { display: none; }
.abschnitt-text .about p { max-width: none; }
.abschnitt-text blockquote { font-style: italic; }

/* Abschnitt „Bereiche": letzte Kachel über volle Breite */
#bereiche .kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#bereiche .kachel--breit { grid-column: 1 / -1; }
#bereiche .kachel--breit .kachel { aspect-ratio: 21 / 9; }

/* Heller Mittelteil (dunkles Design, heller Text) */
.hell { background: var(--schacht); color: var(--licht); }
.hell .section-head h2 { color: var(--licht); }
.hell .about { border-bottom: none; }
.hell .about p { color: var(--licht); }
.hell a { color: var(--licht); text-underline-offset: 0.2em; }
.hell a:hover { color: var(--licht); }

/* ————— Kacheln ————— */
.kacheln {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 88px;
  list-style: none;
}
.kacheln > li { display: flex; }
.kacheln--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.kachel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background: var(--modern-kachel);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
    0 12px 24px -8px rgba(0, 0, 0, 0.6);
}
.kachel:hover {
  border-color: var(--staub);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    0 20px 32px -12px rgba(0, 0, 0, 0.8);
}
.kachel:focus-within { outline: 2px solid var(--licht); outline-offset: 2px; }
.kachel :focus-visible { outline: none; }

.kachel__bild {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--stahl);
}
.kacheln--3 .kachel__bild { aspect-ratio: 4 / 3; }
.kachel__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }

.kachel__inhalt {
  display: flex; flex: 1; flex-direction: column; gap: 10px;
  padding: 24px;
  border-top: var(--raster);
}
.kachel__titel {
  font-size: 1.35rem; font-weight: 500; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.kachel__titel a { text-decoration: none; }
.kachel__titel a::after { content: ""; position: absolute; inset: 0; }
.hell .kachel__text { color: var(--licht); font-size: 1rem; }
.hell .kachel .mono { color: var(--staub); }
.hell .kachel .kachel__mehr { color: var(--licht); }
.kachel__mehr { margin-top: auto; padding-top: 6px; }
.kachel--hervorgehoben {
  border: 1px solid var(--staub);
}
.kachel--hervorgehoben:hover {
  border-color: var(--licht);
}
/* ————— Ausrüstung / Publikationen (Unterseiten) ————— */
.gear { padding-bottom: 88px; border-bottom: var(--raster); }
.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gear-card { background: var(--schacht); border: var(--raster); padding: 28px 24px; }
.gear-card h3 { font-weight: 500; font-size: 1.1rem; margin: 12px 0 6px; }
.gear-card p { color: var(--staub); font-size: 0.95rem; }
.gear-card.aktiv { border-color: var(--licht); }
.gear-card.aktiv .mono { color: var(--licht); }

.pubs { padding-bottom: 88px; border-bottom: var(--raster); }
.pub-list { list-style: none; }
.pub-list li {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 24px;
  align-items: baseline; padding: 18px 0; border-top: var(--raster);
}
.pub-list li:last-child { border-bottom: var(--raster); }
.pub-titel { font-size: 1.05rem; }

/* ————— Artikelseiten (Unterseiten) ————— */
.artikel {
  --textbreite: 63rem;   
  --abschnitt-bg: var(--kohle);
  background: var(--abschnitt-bg);
  box-shadow: 0 0 0 100vmax var(--abschnitt-bg);
  clip-path: inset(0 -100vmax);
  padding-top: 70px;
  padding-inline: clamp(16px, 4vw, 24px);
  padding-bottom: 70px;
}

.artikel > * {
  max-width: var(--textbreite);
  margin-inline: auto;
}

.artikel > * + * { margin-top: 1.4em; }
.artikel h1,
.artikel h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--licht);
}
.artikel h2 { margin-top: 2.5em; }
.artikel p { color: var(--licht); font-size: 1rem; }
.artikel__lead { font-size: 1.15rem; }
.artikel__bild {
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.artikel__bild img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.artikel__bild figcaption { margin-top: 12px; }
.artikel__galerie {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.artikel__galerie--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.artikel__galerie img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
}
.artikel__galerie--3 img { aspect-ratio: 4 / 3; }
.artikel__galerie figcaption { margin-top: 8px; }

/* ————— Footer ————— */
footer {
  position: relative;
  overflow: hidden;
  border-top: var(--raster);
  padding: 48px 0 24px;
  margin: 96px 0 0 0;
  background: #19191e;
}

/* Ebene 1: Weichgezeichnetes Hintergrundbild */
footer::before {
  content: "";
  position: absolute; inset: -40px; 
  background: url("bilder/webp/belegschaft.webp") center / cover no-repeat;
  filter: blur(48px) brightness(0.7);
}

/* Ebene 2: Dunkler Verlauf + Lichtkante */
footer::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(30, 30, 36, 0.78) 0,
      rgba(26, 26, 31, 0.88) 140px,
      rgba(25, 25, 30, 0.93) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Ebene 3: Inhalt über den Ebenen halten */
footer > * { position: relative; z-index: 1; }

footer a { color: var(--staub); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--licht); }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 12px; max-width: 34ch; color: var(--staub); font-size: 0.95rem; }
.footer-brand > a {
  display: inline-block;
  padding: 6px 0;     
}
.footer-logo {
  display: block;
  width: 120px;
  height: auto;
  margin-top: 24px;
}
.footer-top ul { list-style: none; margin-top: 0px; }
.footer-top li a { display: inline-block; padding: 6px 0; }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: var(--raster);
}
.footer-bottom a { display: inline-block; padding: 6px 0; }
.footer-legal { display: flex; gap: 20px; }

/* ————— Responsive ————— */
@media (max-width: 1024px) {
  .kacheln--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #bereiche .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
   nav { padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13, 13, 15, 0.97);
    border-bottom: var(--raster);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav-links a { display: block; padding: 14px 16px; border-top: var(--raster); }
  .nav-sub {
    position: static; display: flex;
    min-width: 0; padding: 0;
    background: none; border: 0;
  }
  .nav-sub a { padding-left: 40px; font-size: 0.95rem; }

  .nav-links a.nav-hervorhebung {
  margin: 8px 16px;
  padding: 12px 16px;
}

  .hero { min-height: 60vh; padding: 104px 0 48px; }
  .hero-logo { margin-bottom: 24px; width: clamp(97px, 32.3vw, 142px);}
  .hero h1 { margin-bottom: 24px; }
  .hero-sub { margin-top: 24px; }
  .hero-sub p { font-size: 1.1rem; }
  .hero h1 {
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 7.5vw, 2rem);
}
.hero-sub p { font-size: 1rem; }
header .logo { font-size: 1rem; }


  .section-head { padding: 28px 0 20px; }
  .abschnitt-text { padding: 0 0; }
  .abschnitt-text .about { border-bottom: 0px solid var(--staub); }
  .kacheln, .gear, .pubs { padding-bottom: 56px; }
  .artikel__lead { font-size: 1.25rem; }

  .kachel,
  .kacheln--3 .kachel,
  #bereiche .kachel--breit .kachel { aspect-ratio: auto; min-height: 0; }
  .kachel__bild { aspect-ratio: 3 / 2; }
  .kacheln--3 .kachel__bild { aspect-ratio: 4 / 3; }
  .kachel__inhalt { padding: 18px; }
  .kacheln {padding-bottom: 20px;}

  .artikel { padding-top: 40px; padding-bottom: 4opx; }
  .artikel__bild, .artikel__galerie { margin-top: 2rem; margin-bottom: 2rem; }
  .artikel__galerie, .artikel__galerie--3 { grid-template-columns: 1fr; }

  /* Grids einspaltig */
  .about, .gear-grid, .kacheln, .kacheln--3, #bereiche .kacheln { grid-template-columns: 1fr; }
  .about { gap: 16px; margin: 0 24px; text-align: left; padding: 40px 20px;}
  .about p { display: none; font-size: 0.95rem;}
  .pub-list li { grid-template-columns: 1fr; gap: 4px; }
  #einfuehrung { display: none; }

 /* ————— Footer mobil: Logo + Navigation nebeneinander ————— */
  footer { padding: 40px 0 24px;}
  footer nav { padding: 0 16px; }
  .footer-top {
    grid-template-columns: auto auto; 
    justify-content: space-between;
    align-items: start;
    gap: 32px 24px;
    padding-bottom: 32px;
  }
  .footer-brand .logo {
    flex-direction: column;            
    align-items: flex-start;
    gap: 2px;
  }
  .footer-logo { width: 80px; margin-top: 16px; }
  .footer-top > div:last-child {       
    grid-column: 1 / -1;
  }
  .footer-top ul { margin-top: 8px; }
  .footer-top li a { padding: 8px 0; }

  .footer-bottom {
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    font-size: 0.50rem;
    letter-spacing: 0.08em;
  }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
