/* ===========================
   Global Styles
   =========================== */

body {
  margin: 0 auto;
  font-size: 14px;
  font-family: system-ui, sans-serif;
  background: #f5f7f9;
  max-width: 1400px;
  color: #222;
  line-height: 1.6;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

h1, h2, h3 {
  font-weight: 600;
  color: rgb(193, 11, 37);
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: #666;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ===========================
   Header
   =========================== */

header {
  background: rgb(193, 11, 37);
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  color: #ffffff !important;
  min-width: 0;
}

header p {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
  opacity: 0.9;
  color: #ffffff !important;
}

.logo {
  width: 2.5cm;
  height: 2.5cm;
  object-fit: contain;
  float: left;
  margin-right: 1rem;
}


/* ===========================
   Hauptnavigation (hell)
   =========================== */

nav {
  background: rgb(245, 225, 230); /* sehr helles Rot */
  border-bottom: 2px solid rgb(220, 180, 185);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.0rem;
}

nav a {
  color: rgb(193, 11, 37);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: background 0.2s;
}

nav a:hover {
  background: rgb(235, 210, 215);
}

/* ===========================
   Zweispalten-Layout
   =========================== */

.two-column {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr; /* Sidebar wird nie schmaler als 150px, aber nie breiter als 240px */
  gap: 2rem;
  margin-top: 2rem;
  max-width: 100%; /* Verhindert, dass die .two-column-Klasse breiter als der Bildschirm wird */
  width: 100%;
}

/* ===========================
   Sidebar-Menü (Jahrzehnte links)
   =========================== */

.sidebar-menu {
  background: #fafbfc;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  border-radius: 6px;
}

.sidebar-menu a {
  display: block;
  margin-bottom: 0.5rem;
  color: rgb(193, 11, 37);
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.sidebar-menu a:hover {
  background: rgb(245, 225, 230);
}

/* ===========================
   Dezentes Untermenü
   =========================== */

.decade-menu,
.year-menu {
  background: #fafbfc;
  border: 1px solid #e5e7eb;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.decade-menu a,
.year-menu a {
  color: rgb(193, 11, 37);
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #d9dce1;
  transition: background 0.2s, border-color 0.2s;
}

.decade-menu a:hover,
.year-menu a:hover {
  background: rgb(245, 225, 230);
  border-color: rgb(220, 180, 185);
}

details {
  margin-bottom: 1.5rem;
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 0.8rem 1rem;
  border-radius: 6px;
}

summary {
  cursor: pointer;
  font-size: 1.1rem;
  color: rgb(193, 11, 37);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

summary::-webkit-details-marker {
  color: rgb(193, 11, 37);
}



/* Entfernt den Kasten-Effekt */
details {
  padding: 0;
  margin: 0 0 1rem 0;
  border: none;
  background: none;
}

/* Summary wie normaler Text, aber klickbar */
details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  margin: 0.5rem 0;
}

/* Entfernt den kleinen Pfeil, wenn du ihn nicht willst */
details summary::-webkit-details-marker {
  display: none;
}

/* ===========================
   RESPONSIVE OPTIMIERUNG
   =========================== */

/* Bilder immer flexibel */
img, .logo {
  max-width: 100%;
  height: auto;
}

/* Hauptlayout: auf Smartphones einspaltig */
@media (max-width: 900px) {

  main {
    padding: 1.2rem;
    margin: 1rem;
	overflow-wrap: break-word;
    word-break: break-word;
  }

    .header-two-column,
    .two-column {
        flex-direction: column;
    }

  .two-column {
    grid-template-columns: 1fr; /* Sidebar oben, Inhalt unten */
  }

  .sidebar-menu {
    margin-bottom: 1.5rem;
  }

  nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  nav a {
    text-align: center;
    padding: 0.8rem;
    font-size: 1.05rem;
  }

  body {
    font-size: 18px; /* bessere Lesbarkeit auf Handy */
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .logo {
    float: none;
    margin: 0 auto 1rem auto;
    display: block;
  }
  
  .header-right h1 {
    min-width: 0;
	
  }
  .header-right h1 {
    min-width: 0;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
}

/* Extra kleine Geräte */
@media (max-width: 600px) {

  nav {
    padding: 0.8rem;
  }

  main {
    padding: 1rem;
  }

  .sidebar-menu a {
    padding: 0.5rem;
    font-size: 1rem;
  }

  h4 {
    font-size: 1.1rem;
  }
  
    .header-two-column {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-left {
    margin-bottom: 1rem;
  }
}

.header-three-column {
  display: grid;
  grid-template-columns: 160px 1.1fr 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 1.5rem;
    color: white;
}

.header-three-column h2 {
  color: white;
}

.logo-col .logo {
  width: 100px;
  height: auto;
  border-radius: 4px;
}

.title-col h1 {
  margin: 0;
  font-size: 1.6rem;
  min-width: 350px;
}

.title-col h2 {
  margin: 0.2rem 0 0.8rem;
  font-weight: 400;
  font-size: 1.2rem;
  opacity: 0.9;
}

.title-col .team-line {
  font-weight: 600;
  margin-top: 0.4rem;
}

.meta-col p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.meta-col .prof-line {
  margin-top: 0.6rem;
  font-style: italic;
}

.header-two-column {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 0.3rem;
  align-items: center;
  padding: 1.5rem;
  color: white;
}

.header-two-column h2 {
  color: white;
}

.header-left .logo {
  width: 100px;
  height: auto;
  border-radius: 4px;
}

.header-right h1 {
  margin: 0.3;
  line-height: 1.2; 
  font-size: 1.6rem;
  min-width: 350px;
  letter-spacing: -0.5px;
}

.header-right h2 {
  margin: 0.2rem 0 0.8rem;
  font-weight: 400;
  font-size: 1.2rem;
  opacity: 0.9;
}
.header-right h1 {
    min-width: 0;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.header-right .team-line {
  font-weight: 600;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.header-right p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.header-right .prof-line {
  margin-top: 0.6rem;
  font-style: italic;
  letter-spacing: -0.1px;
}

html {
  scroll-behavior: smooth;
}

p,
li,
a {
  overflow-wrap: break-word;
}

p {
  margin-bottom: 1rem;
}

a:focus {
  outline: 3px solid rgb(193, 11, 37);
  outline-offset: 2px;
}