/* Die vorhandenen Titelleistenknöpfe liefern den Grundstil. Ausgeblendet
   bleibt der Schalter auch in Themes, die Knopfanzeigen explizit erzwingen. */
html .topbar .top-actions #vollbild-button[hidden],
.vollbild-meldung[hidden] { display:none!important; }
.vollbild-button { flex:none; }
/* Der Symbolwechsel betrifft nur die SVG-Pfade. Terminal-Texte haben eigene Regeln. */
.vollbild-button svg .vollbild-aus,
.vollbild-button[aria-pressed="true"] svg .vollbild-an,
.vollbild-button .vollbild-terminal { display:none; }
.vollbild-button[aria-pressed="true"] svg .vollbild-aus { display:inline; }
.vollbild-meldung {
    position:fixed;
    z-index:999;
    inset:max(55px,env(safe-area-inset-top)) 12px auto auto;
    max-width:min(18rem,calc(100vw - 24px));
    padding:.65em .8em;
    background:var(--surface);
    color:var(--ink);
    border:1px solid var(--line);
    border-radius:var(--radius);
}

/* Neben vier Titelleistenknöpfen bleibt bei kleinen Displays das Installationssymbol. */
@media (max-width:480px) {
    .top-actions:has(.vollbild-button:not([hidden])) .header-install span { display:none; }
}

/* Die Fensterknöpfe der historischen Themes sitzen in der simulierten Titelleiste. */
html[data-appearance="original"] .vollbild-button {
    width:32px;
    height:32px;
    border:2px outset #ddd;
    border-radius:2px;
    background:#e0e0e0;
    color:#333;
}
html.retro-theme:not(.embedded) .vollbild-button {
    position:absolute;
    top:4px;
    right:34px;
    z-index:240;
    width:25px;
    height:23px;
    padding:3px;
    border:1px solid #fff;
    border-radius:3px;
    background:linear-gradient(#7eb1f5,#1761cb);
    color:#fff;
    box-shadow:inset 0 0 1px #fff;
}
html.retro-theme .vollbild-button .icon { width:14px; height:14px; }
html.retro-theme[data-pda="true"] .vollbild-button { top:2px; right:31px; height:21px; }
html[data-appearance="classic"]:not(.embedded) .vollbild-button {
    height:20px;
    border:2px outset #eee;
    border-radius:0;
    background:#c0c0c0;
    box-shadow:none;
    color:#000;
}

/* Terminal verwendet die freie Stelle im Titelrahmen und nur VGA-Farben. */
html[data-appearance="terminal"] .vollbild-button:not([hidden]) {
    position:absolute;
    inset:0 2ch auto auto;
    z-index:3;
    display:block;
    width:auto;
    height:32px;
    min-height:0;
    padding:0 .5ch 16px;
    border:0;
    border-radius:0;
    background:#0000aa;
    color:#fff;
    font:16px/16px "Nouveau IBM",monospace;
    box-shadow:none;
}
html[data-appearance="terminal"] .vollbild-button .icon { display:none; }
html[data-appearance="terminal"] .vollbild-button[aria-pressed="false"] .vollbild-terminal.vollbild-an,
html[data-appearance="terminal"] .vollbild-button[aria-pressed="true"] .vollbild-terminal.vollbild-aus {
    display:inline;
}
html[data-appearance="terminal"] .vollbild-button:focus-visible { outline:1px solid #00aaaa; }
