/* Grundlayout */
body {
    background: #f8f4e8; /* Reispapier-Hintergrund */
    font-family: 'Noto Serif SC', 'KaiTi', serif; /* klassische chinesische Schrift */
    color: #3b2e2a; /* dunkle Tinte */
    margin: 0;
    padding: 20px;
  }
  
  /* Kopfzeile */
  h1.legend {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #5c3a21;
    border-bottom: 4px double #a67c52;
    padding-bottom: 10px;
    background: linear-gradient(to right, #e6d8bd, #f4efe4);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  /* Container */
  .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* Textboxen */
  .text-box {
    background: #fbf7ed;
    border: 2px solid #a67c52;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
  }
  
  .text-box:hover {
    transform: scale(1.02);
  }
  
  /* Überschriften */
  h2, h3 {
    color: #5a3825;
    margin-bottom: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }
  
  h2 i, h3 i {
    color: #a67c52;
    margin-left: 8px;
  }
  
  /* Links */
  a {
    display: block;
    color: #305050;
    font-weight: 500;
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 1px dashed #d1c2b1;
  }
  
  a:hover {
    color: #8c4b32;
    background-color: #f1e6d6;
  }
  
  /* Untercontainer */
  .container_subject {
    margin-left: 20px;
    border-left: 2px solid #d5c4a1;
    padding-left: 15px;
    margin-top: 10px;
  }
  /* .active zeigt den Untercontainer an bzw. blendet ihn ein */
.container_subject {
    display: none; /* standardmäßig versteckt */
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.container_subject.active {
    display: block;  /* sichtbar */
    max-height: 1000px; /* ausreichend groß für den Inhalt */
    opacity: 1;
}

/* Drehung des Icons beim toggeln */
.container_subject,
.under_container {
    display: none;
    transition: all 0.3s ease;
}

.container_subject.active,
.under_container.active {
    display: block;
}

/* Icon-Drehung */
.fa-caret-down {
    transition: transform 0.3s ease;
}

.rotated {
    transform: rotate(-180deg);
}
