  .terminal-window {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    
    /* --- Deine Werte, angepasst für Responsivität --- */
    
    width: 60%;             /* Behält deine gewünschte prozentuale Breite bei */
    max-width: 1200px;      /* Fügt eine Obergrenze für sehr große Bildschirme hinzu, kann angepasst werden */
    aspect-ratio: 10 / 5.5;   /* ERSETZT DIE FESTE HÖHE: Definiert ein Seitenverhältnis, das die Höhe an die Breite anpasst. */
    
    display: flex;          /* Notwendig, damit der Terminal-Body die Höhe füllen kann */
    flex-direction: column; /* Ordnet Titelleiste und Body untereinander an */

    /* --- Restliche Stile bleiben gleich --- */
    margin: 20px auto;
    background-color: #2b2b2b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
  }

  .terminal-window .title-bar {
    background-color: #3c3c3c;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #d0d0d0;
    flex-shrink: 0; /* Verhindert, dass die Titelleiste bei wenig Platz schrumpft */
  }
  
  .terminal-window .title-bar .title {
    flex-grow: 1;
    text-align: center;
    padding-right: 70px;
  }

  .terminal-window .buttons { display: flex; gap: 8px; }
  .terminal-window .button { width: 12px; height: 12px; border-radius: 50%; }
  .terminal-window .close { background-color: #ff5f56; }
  .terminal-window .minimize { background-color: #ffbd2e; }
  .terminal-window .maximize { background-color: #27c93f; }

  .terminal-window .terminal-body {
    background-color: rgba(30, 30, 30, 0.95);
    padding: 2em;
    font-size: 0.7em;
    line-height: 1.2;
    
    /* --- HÖHE WIRD JETZT FLEXIBEL --- */
    height: 100%; /* Ersetzt "height: 20rem;" und füllt den verfügbaren Platz im Container aus */
    
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #e0e0e0;
    box-sizing: border-box; /* Stellt sicher, dass Padding die Höhe nicht beeinflusst */
  }
  
  .terminal-window .line { display: block; }
  .terminal-window .prompt { color: #8be9fd; }
  .terminal-window .command { color: #f8f8f2; }
  .terminal-window .output { color: #bd93f9; display: block; }
  .terminal-window .success { color: #50fa7b; display: block;}
  .terminal-window .root-prompt { color: #ff5555; }
  .terminal-window .result { color: #ff79c6; display: block;}
  .terminal-window .final-echo { color: #f1fa8c; display: block;}
  .terminal-window .final-banner {
      font-size: 2.5em;
      font-weight: bold;
      color: #ffffff;
      text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #00ff00, 0 0 20px #00ff00;
      margin: 20px 0;
      text-align: center;
  }
  
  .terminal-window .cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background-color: #f8f8f2;
    animation: blink 1s step-end infinite;
    vertical-align: bottom;
  }

  @keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
  }