BODY {FONT-FAMILY: verdana,arial,helvetica,sans-serif;}

body {
    background-color:#99c2fb !important; 
}

/* Version 26-08-03 */

/* ===========================
   Das ist main.css
   =========================== */

/* ===========================
   Farb- und Textvariablen
   =========================== */
:root {
  --color-bg-page: #82b6ff;                  /* hellblau */
  --color-bg-header: #579dff;                /* dunkleres blau */

  --color-text-ht: #000000;                  /* schwarz           - Header Text*/
  --color-text-ft: #000000;                  /* schwarz           - Footer Text*/

  /* Buttons A: Blue */
  --color-bg-a_b: #046cfe;                   /* Medium blue  - Button */
  --color-bg-a_bh: #2d84ff;                  /* Light blue  - Button Hover */
  --color-text-a_bt: #010f79;                /* Blue  - Button Text */

  --color-bg-a_s: #4f97fc;                   /* helles blau      - Submen� */
  --color-bg-a_sh: #82b6ff;                  /* sehr helles blau - Submen� hover */
  --color-text-a_st: #023e93;                /* dunkles blau     - Submen� Text */
  --color-line-a_sl: #023e93;                /* dunkles blau     - Submen� Rand/Trennlinie */

  /* Buttons B: Green */
  --color-bg-gil_b: #009D00;                 /* gr�n             - Button  #009D00; #00B300; #91FF91; #B9FFB9; #D7FFD7; */
  --color-bg-gil_bh: #1eb51e;                /* helleres gr�n    - Button Hover */
  --color-text-gil_bt: #FF00FF;              /* magenta           - Button, Text */

  --color-bg-gil_s: #70fa70;                 /* helles gr�n      - Submen� */
  --color-bg-gil_sh: #B9FFB9;                /* sehr helles gr�n - Submen� hover */
  --color-text-gil_st: #008000;              /* dunkles gr�n     - Submen� Text */
  --color-line-gil_sl: #008000;              /* dunkles gr�n     - Submen� Rand/Trennlinie */


  --font-main: Arial, sans-serif;
  --font-size-XS: 10px;
  --font-size-S: 12px;
  --font-size-SS: 13px;
  --font-size-small: 14px;
  --font-size-SM: 16px;
  --font-size-medium: 18px;
  --font-size-ML: 20px;
  --font-size-large: 22px;
  --font-size-XXL: 30px;

}


/* ===========================
   Grundlayout – FINAL VERSION
   =========================== */

/* --- HTML / BODY --- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* kein äußerer Scroll */
    box-sizing: border-box;
}

/* --- PAGE als Flex-Container --- */
.page {
    height: 100dvh;              /* dynamische Höhe für alle Geräte */
    display: flex;
    flex-direction: column;
    overflow: hidden;            /* kein äußerer Scroll */
    position: relative;
}

/* --- MAINSCROLL: EINZIGER Scroll-Container --- */
#mainScroll {
    flex: 1;                     /* nimmt den gesamten Restplatz */
    overflow-y: auto;            /* innerer Scroll */
    overflow-x: hidden;
    background: var(--color-bg-page);
    padding-bottom: env(safe-area-inset-bottom); /* iPhone/iPad Safe Area */
}

/* --- CONTENT: darf NICHT scrollen --- */
#content {
    flex: 1 1 auto;
    overflow: visible;           /* WICHTIG: kein zweiter Scroll-Container */
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* --- FOOTER fix unten --- */
.footer {
    flex: 0 0 auto;              /* feste Höhe */
}

/* --- Iframe / ContentFrame Regeln --- */
#contentFrame {
    width: 100%;
    border: none;
    display: block;
}

#content iframe {
    width: 100% !important;
    min-height: 400px !important;
    height: auto !important;
    border: none !important;
}





/* ===========================
   Kopfbereich (Flexbox)
   =========================== */
.header-container {
  flex: 0 0 auto;          /* feste H�he, w�chst nicht */
  background: var(--color-bg-header);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* Zusammengef�hrte Version */
.header-wrapper {
    display: flex;
    align-items: center;          /* vertikal mittig */
    justify-content: space-between; /* links � mitte � rechts */

    padding-top: 2px;
    padding-right: 12px;          /* finaler Wert */
    padding-bottom: 10px;
    padding-left: 8px;
}

/* Der eigentliche Flex-Container */

.header-flex {
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;  /* 1/6 � 4/6 � 1/6 */
    align-items: center;
    width: 100%;
    padding: 0 12px;
}

/* Linke Spalte (Logo) */
.header-left {
    display: flex;
    align-items: center;
    padding-left: 12px;
}

.logo-img {
    height: 50px;   /* gleiche H�he wie Textblock */
    width: auto;
}

/* Mittlere Spalte */
.header-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-center .title {
    font-size: var(--font-size-large);
    font-weight: bold;
    color: var(--color-text-ht);
    margin: 0;
}

.header-center .subtitle {
    font-size: var(--font-size-small);
    color: var(--color-text-ht);
    margin: 2px 0 0 0;
}

/* Rechte Spalte */
.header-right {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.Anz_TB {
    color: #FF0000;
    font-weight: bold;
    margin: 0;
    font-size: var(--font-size-medium);
}
/* ===========================
   Icons
   =========================== */
.Anz_Icon {
    margin: 2px;
    font-size: var(--font-size-large);
}
.Links_Icon {
    margin: 2px;
    font-size: var(--font-size-large);
}
.Lupe_Icon {
    margin: 2px;
    font-size: var(--font-size-large);
}
.Brief_Icon {
    margin: 2px;
    font-size: var(--font-size-XXL);
}

.Logo_gil {
    margin: 2px; /* wichtig! */
    font-size: var(--font-size-small);
    color: var(--color-text-gil_bt);
    font-style: italic;
}

.TGr_gil {
    margin-top: 2px;
    font-size: var(--font-size-XS);
    color: var(--color-text-gil_bt);
}

/* ===========================
   Men�-Hintergrundfarbe
   =========================== */

.menu_row {
  display: grid;
  grid-template-columns: 80px repeat(6, 1fr); /* links fix, rechts flexibel */
  height: 50px;
  gap: 10px;
  background: var(--color-bg-header);
  padding: 5px 10px 15px 10px;
  overflow: visible;
  position: relative;
  z-index: 20;
    flex: 0 0 auto;          /* feste H�he */
}

.menu_item_A,
.menu_item_B,
.menu_item_C {
  font-size: var(--font-size-medium);
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  margin: 0;       /* statt auto */
}

.menu_item_A,
.menu_item_B {
  width: 100%;
}

.menu_item_A,
.menu_item_C {
  background-color: var(--color-bg-a_b);
  color: var(--color-text-a_bt);
  font-weight: bold;
}


.menu_item_A:hover {
  background-color: var(--color-bg-a_bh)
}



.menu_item_A.links {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu_item_A.brief {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu_item_A.brief a {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* Dropdown-Container Men� 3 */


.menu_item_A .dropdown_content {
  position: absolute;
  top: calc(100% + 4px);
  padding: 4px 0;
  background-color: var(--color-bg-a_s);
  border: 1px solid var(--color-line-a_sl);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-in, visibility 0.15s ease-in;
  transition-delay: 0.25s;
  z-index: 1000;

  /* WICHTIG: keine Positionierung hier */
  left: auto;
  transform: none;
  min-width: auto;
}


.menu_item_A.links .dropdown_content {
  left: 53%;
  transform: translateX(-80%);
  min-width: 160px;
}

.menu_item_A.rechts .dropdown_content {
  left: 68%;                 /* identische optische Position wie Links */
  transform: translateX(-50%);
  min-width: 220px;          
}

.menu_item_A.dropdown:hover .dropdown_content {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.menu_item_A .dropdown_content a {
  display: block;
  padding: 6px 12px;
  color: var(--color-text-a_st);
  text-decoration: none;
  font-size: var(--font-size-SM);
  white-space: nowrap;
}

.menu_item_A .dropdown_content a:hover {
  background: var(--color-bg-a_sh)
}



/* Trennlinie */
.menu_item_A .dropdown_sep {
  height: 1px;
  background: var(--color-line-a_sl);
  margin: 4px 0;
}


/* Dropdown-Container Men� 6 */
/* Dropdown-Container Men� 6 */
/* Dropdown-Container Men� 6 */
.menu_item_B {
  background-color: var(--color-bg-gil_b);
}

.menu_item_B:hover {
  background-color: var(--color-bg-gil_bh)
}

.menu_item_B.gil {
    display: flex;
    flex-direction: column;
    align-items: center; /* optional, aber sieht sauber aus */
}
.menu_item_B.gil .dropdown_content {
  position: absolute;
  top: calc(100% + 4px);
  transform: translateX(-80%);
  z-index: 50;

  right: 0;
  left: auto;
  transform: none;

  background-color: var(--color-bg-gil_s);
  border: 2px solid var(--color-line-gil_sl);

  padding: 4px 0;
  min-width: 160px;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-in, visibility 0.15s ease-in;
  transition-delay: 0.25s;
  z-index: 2000;
}

.menu_item_B.gil.dropdown:hover .dropdown_content {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.menu_item_B.gil .dropdown_content a {
  display: block;
  color: var(--color-text-gil_st);
  padding: 6px 12px;
  text-decoration: none;
}

.menu_item_B.gil .dropdown_content a:hover {
  background: var(--color-bg-gil_sh);
}


/* Trennlinie */
.menu_item_B.gil .dropdown_sep {
  height: 2px;
  background: var(--color-line-gil_sl);
  margin: 4px 0;
}

.menu_item_C {

  width: 80px;     

/*    flex-shrink: 0;   verhindert Quetschen */
}

.menu_item_C:hover {
  background-color: var(--color-bg-a_bh)
}


/* =========================================================
   TOP20 + BRANDNEU (aus GIL_main.htm übernommen)
   ========================================================= */

/* LISTEN-CONTAINER ---------------------------------------------------- */
.top20-list,
.brandneu-list {
    background: #cce6ff;
    max-height: 100%;
    overflow-y: auto;
}

/* =====================================================================
   TOP20 (4 Spalten)
   ===================================================================== */
.top20-item {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 120px;
    border: 2px solid #0065cb;
    margin: 5px 24px;
    background: #97c9f8;
    min-height: 48px;
    align-items: stretch;
    font-size: var(--font-size-SM);
}

/* Dummy */
.top20-item.dummy {
    grid-template-columns: 60px 1fr 1fr 120px;
}
.t20-title.dummy {
    color: green;
}

/* Nummer / Datum */
.t20-num {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    border-right: 1px solid #0065cb;
}

.t20-date {
    padding-top: 7px;
    text-align: center;
    background: #97c9f8;
    border-left: 1px solid #0065cb;
    font-size: 0.85em;
}

/* Spalten */
.t20-col2 {
    display: grid;
    grid-template-rows: auto auto;
    background: #97c9f8;
    border-right: 1px solid #0065cb;
    cursor: pointer;
    padding: 5px 15px 5px 15px;
}

.t20-col3 {
    display: grid;
    grid-template-rows: auto auto;
    background: #97c9f8;
    border-left: 1px solid #0065cb;
    padding: 7px 15px 5px 15px;
}

/* Titel / Beschreibung */
.t20-title {
    font-weight: bold;
    color: black;
    text-align: left;
    font-size: 1em;
}

.t20-desc {
    color: black;
    text-align: left;
    font-size: 0.85em;
}

.t20-choreo {
    color: black;
    text-align: left;
    font-size: 0.90em;
}

.t20-music {
    color: black;
    text-align: left;
    font-size: 0.85em;
}

/* Hover */
.top20-item:not(.dummy) .t20-col2:hover {
    background: #0072e4;
}

.top20-item:not(.dummy) .t20-col2:hover .t20-title,
.top20-item:not(.dummy) .t20-col2:hover .t20-desc {
    color: white;
}

/* Dummy Hover */
.top20-item.dummy .t20-col2:hover {
    background: #97c9f8;
    cursor: default;
}

/* =====================================================================
   BRANDNEU (3 Spalten)
   ===================================================================== */
/* BRANDNEU: 3 Spalten, Rahmen mit Trennlinien */
.brandneu-item {
    display: grid;
    grid-template-columns: 1fr 1fr 120px;   /* col1, col2, Datum */
    border: 2px solid #0065cb;
    margin: 5px 24px 5px 85px;
    background: #97c9f8;
    min-height: 48px;
    align-items: stretch;
    font-size: var(--font-size-SM);
}

/* Spalten: col1 = Titel/Choreo, col2 = Beschreibung/Musik, col3 = Datum */
.bn-col1 {
    display: grid;
    grid-template-rows: auto auto;
    background: #97c9f8;
    border-right: 1px solid #0065cb;
    cursor: pointer;
    padding: 5px 15px 5px 15px;
}

.bn-col2 {
    display: grid;
    grid-template-rows: auto auto;
    background: #97c9f8;
    border-left: 1px solid #0065cb;
    padding: 7px 15px 5px 15px;
}

/* Datum rechts */
.bn-date {
    padding-top: 7px;
    text-align: center;
    background: #97c9f8;
    border-left: 1px solid #0065cb;
    font-size: 0.85em;
}

/* Titel / Beschreibung / Choreo / Musik – wie bei Top20 */
.bn-title {
    font-weight: bold;
    color: black;
    text-align: left;
    font-size: 1em;}

.bn-desc {
    color: black;
    text-align: left;
    font-size: 0.85em;}

.bn-choreo {
    color: black;
    text-align: left;
    font-size: 0.90em;}

.bn-music {
    color: black;
    text-align: left;
    font-size: 0.85em;}

/* Hover Brandneu – analog Top20 */
.brandneu-item .bn-col1:hover {
    background: #0072e4;
}

.brandneu-item .bn-col1:hover .bn-title,
.brandneu-item .bn-col1:hover .bn-desc {
    color: white;
}

/* Footer immer unten, volle Breite */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  width: 100%;
  padding: 4px 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: var(--color-bg-header);
  font-size: var(--font-size-small);
  box-sizing: border-box;
}

.footertext_r {
    color: red;
}


/* ============================================================
   iPhone PORTRAIT (max-width: 480px)
   ============================================================ */
@media only screen and (max-width: 480px) {

    /* --- Layout Fix für iPhone --- */
    .page {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    #mainScroll {
        flex: 1 1 auto !important;
        height: auto !important;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        touch-action: manipulation;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        padding-bottom: 1px;    }

    /* --- Header --- */
    .header-wrapper {
        padding: 4px 6px;
    }

    .header-left .logo-img {
        height: 24px;
        margin-left: -20px;
    }

    .header-center .title {
        font-size: 0.8rem;
        margin-left: -15px;
    }

    .header-center .subtitle {
        font-size: 0.40rem;
        margin-left: -15px;
    }

    .Anz_TB,
    .Anz_Icon {
        font-size: 0.7rem;
        margin-right: -6px;
    }

    .Anz_TB {
        padding-right: 10px;
    }

    /* --- Menü --- */
    .menu_row {
        grid-template-columns: 39px repeat(6, 1fr);
        height: 42px;
        gap: 6px;
        padding: 4px 6px 8px 6px;
    }

    .menu_item_A,
    .menu_item_C {
        font-size: 0.6rem;
        padding: 4px 0;
    }

    .menu_item_C {
        width: 39px;
    }

    .menu_item_B {
        padding: 0;
    }

    .Logo_gil {
        font-size: 0.45rem;
    }

    .TGr_gil {
        font-size: 0.30rem;
    }

    /* --- Footer --- */
    .footer {
        font-size: 0.75rem;
        padding: 6px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    /* --- Top20 / Brandneu --- */
    .top20-item {
        grid-template-columns: 60px 1fr 1fr 70px;
        margin: 4px 10px;
        font-size: 13px;
    }

    .top20-item.dummy {
        grid-template-columns: 60px 1fr 1fr 70px;
    }

    .brandneu-item {
        grid-template-columns: 1fr 1fr 80px;
        margin: 4px 10px;
        font-size: 13px;
    }

    .t20-num {
        font-size: 18px;
    }

    .t20-title {
        font-size: 0.75em;
    }

    .bn-date,
    .t20-date {
        font-size: 11px;
    }

    /* --- Submenü allgemein --- */
    .menu_item_A.links.dropdown .dropdown_content,
    .menu_item_A.rechts.dropdown .dropdown_content,
    .menu_item_B.gil.dropdown .dropdown_content {
        font-size: 0.55rem;
        padding: 2px 4px;
        line-height: 1.1;
        border-radius: 4px;
        min-width: 73px;
    }

    /* --- Submenü-Links --- */
    .menu_item_A.links.dropdown .dropdown_content a,
    .menu_item_A.rechts.dropdown .dropdown_content a,
    .menu_item_B.gil.dropdown .dropdown_content a {
        padding: 2px 4px;
        font-size: 0.55rem;
    }

    /* --- Positionierung kompakter --- */
    .menu_item_A.links.dropdown .dropdown_content,
    .menu_item_A.rechts.dropdown .dropdown_content,
    .menu_item_B.gil.dropdown .dropdown_content {
        transform: translateX(-50%);
    }

    .menu_item_A.links.dropdown .dropdown_content {
        left: 60%;
    }

    .menu_item_A.rechts.dropdown .dropdown_content {
        left: 77%;
    }

    .menu_item_B.gil.dropdown .dropdown_content {
        left: 85%;
    }
    .menu_item_B.gil .dropdown_content img {
        width: 10px !important;
        height: 10px !important;
    }

    /* --- Trennlinien --- */
    .menu_item_A .dropdown_sep,
    .menu_item_B .dropdown_sep {
        margin: 3px 0;
    }

}



/* ============================================================
   iPhone LANDSCAPE (max-width: 896px)
   ============================================================ */
@media only screen and (max-width: 896px) and (orientation: landscape) {

    /* --- Layout Fix für iPhone --- */
    .page {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    #mainScroll {
        flex: 1 1 auto !important;
        height: auto !important;
        overflow-y: auto;
        overflow-x: hidden;

        -webkit-overflow-scrolling: touch;
        touch-action: manipulation;
        -webkit-user-select: none;
        -webkit-touch-callout: none;

        padding-bottom: 1px;   /* Edge-Fix */
    }

    /* --- Header --- */
    .header-wrapper {
        padding: 6px 10px;
    }

    .header-left .logo-img {
        height: 28px;
        margin-left: -10px;
    }

    .header-center .title {
        font-size: 1.0rem;
        margin-left: -10px;
    }

    .header-center .subtitle {
        font-size: 0.55rem;
        margin-left: -10px;
    }

    .Anz_TB,
    .Anz_Icon {
        font-size: 0.8rem;
        margin-right: -4px;
    }

    .Anz_TB {
        padding-right: 12px;   /* Abstand zum Icon */
    }

    /* --- Menü --- */
    .menu_row {
        grid-template-columns: 60px repeat(6, 1fr);
        height: 36px;                 /* WICHTIG: niedriger als Portrait */
        gap: 6px;
        padding: 4px 8px;
    }

    .menu_item_A,
    .menu_item_C {
        font-size: 0.8rem;
        padding: 2px 0;              /* WICHTIG: weniger Padding */
    }

    .menu_item_C {
        width: 60px;
    }

    .menu_item_B {
        padding: 0;
    }

    .Logo_gil {
        font-size: 0.75rem;
    }

    .TGr_gil {
        font-size: 0.55rem;
    }

    /* --- Footer --- */
    .footer {
        font-size: 0.75rem;
        padding: 4px;
        height: 28px;                /* Landscape etwas kleiner */
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    /* --- Top20 / Brandneu --- */
    .top20-item {
        grid-template-columns: 60px 1fr 1fr 70px;
        margin: 4px 10px;
        font-size: 12px;
    }

    .top20-item.dummy {
        grid-template-columns: 60px 1fr 1fr 70px;
    }


    .brandneu-item {
        grid-template-columns: 1fr 1fr 80px;
        margin: 4px 10px;
        font-size: 12px;
    }

    .t20-num {
        font-size: 16px;
    }

    .bn-date,
    .t20-date {
        font-size: 10px;
    }

    /* --- Submenü allgemein --- */
    .menu_item_A.links.dropdown .dropdown_content,
    .menu_item_A.rechts.dropdown .dropdown_content,
    .menu_item_B.gil.dropdown .dropdown_content {
        font-size: 0.50rem;
        padding: 2px 3px;
        line-height: 1.05;
        border-radius: 4px;
        min-width: 65px;
    }

    /* --- Submenü-Links --- */
    .menu_item_A.links.dropdown .dropdown_content a,
    .menu_item_A.rechts.dropdown .dropdown_content a,
    .menu_item_B.gil.dropdown .dropdown_content a {
        padding: 2px 3px;
        font-size: 0.50rem;
    }

    /* --- Positionierung kompakter --- */
    .menu_item_A.links.dropdown .dropdown_content,
    .menu_item_A.rechts.dropdown .dropdown_content,
    .menu_item_B.gil.dropdown .dropdown_content {
        transform: translateX(-50%);
    }

    /* Landscape hat mehr Breite → Position leicht nach links */
    .menu_item_A.links.dropdown .dropdown_content {
        left: 50%;
    }

    .menu_item_A.rechts.dropdown .dropdown_content {
        left: 70%;
    }

    .menu_item_B.gil.dropdown .dropdown_content {
        left: 90%;
    }

    /* --- PDF-Icon kleiner --- */
    .menu_item_B.gil .dropdown_content img {
        width: 9px !important;
        height: 9px !important;
    }

    /* --- Trennlinien --- */
    .menu_item_A .dropdown_sep,
    .menu_item_B .dropdown_sep {
        margin: 2px 0;
    }
}





