/* GLX Cloud – Aussehen. Farben kommen aus den 12 Designs (data-design am <html>), wie beim GLX Mail Server.
   Buttons und Animationen wie GLX Mail (Windows), Scanner-Hover halb so schnell. © 2026 GLX Tools */

:root {
	--schrift: "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, sans-serif;
	--radius: 10px;
	--kopf: 56px;
	--scan: 1.2s;   /* Scanner-Hover (GLX Mail Windows .6s, hier halb so schnell) */
	--ring: 1.4s;   /* Ring am Haupt-Button */
	--sicher-oben: env(safe-area-inset-top, 0px);
	--sicher-unten: env(safe-area-inset-bottom, 0px);
}

/* ---------- 12 Designs ---------- */
[data-design="glx"]      { --hg:#070d16; --flaeche:#0c1624; --flaeche2:#12203a; --text:#e6f3ff; --text2:#8fa7c2; --akzent:#18c8ff; --akzent-text:#04121c; --linie:#1b2d47; --auswahl:#0f3554; --ungelesen:#18c8ff; --gefahr:#ff5d6c; --leuchten:0 0 14px rgba(24,200,255,.35); --sym-ordner:#1592c9; --sym-ordner-hell:#4fd2ff; --sym-papier:#d8f4ff; --ok:#2fe08a; color-scheme:dark; }
[data-design="dunkel"]   { --hg:#151618; --flaeche:#1d1f22; --flaeche2:#26292d; --text:#ececec; --text2:#9a9ea5; --akzent:#5aa9ff; --akzent-text:#08121e; --linie:#30343a; --auswahl:#2b3a4f; --ungelesen:#5aa9ff; --gefahr:#ff6b6b; --leuchten:none; --sym-ordner:#3f86d6; --sym-ordner-hell:#7db8ff; --sym-papier:#eef5ff; --ok:#4cd07d; color-scheme:dark; }
[data-design="hell"]     { --hg:#eef2f7; --flaeche:#ffffff; --flaeche2:#f3f6fa; --text:#16202c; --text2:#5d6b7c; --akzent:#0a72d6; --akzent-text:#ffffff; --linie:#dde3ea; --auswahl:#dcebfb; --ungelesen:#0a72d6; --gefahr:#d42a3b; --leuchten:none; --sym-ordner:#e8a420; --sym-ordner-hell:#ffcc4d; --sym-papier:#ffffff; --ok:#1f9d55; color-scheme:light; }
[data-design="oled"]     { --hg:#000; --flaeche:#000; --flaeche2:#0d0d0d; --text:#f2f2f2; --text2:#8a8a8a; --akzent:#18c8ff; --akzent-text:#000; --linie:#1c1c1c; --auswahl:#0b2533; --ungelesen:#18c8ff; --gefahr:#ff5d6c; --leuchten:none; --sym-ordner:#118bbf; --sym-ordner-hell:#45cdfb; --sym-papier:#e0f6ff; --ok:#2fe08a; color-scheme:dark; }
[data-design="ozean"]    { --hg:#06191d; --flaeche:#0a242a; --flaeche2:#0f3139; --text:#ddf6f4; --text2:#86b3b0; --akzent:#2fe0c4; --akzent-text:#03201b; --linie:#164149; --auswahl:#0f4a4b; --ungelesen:#2fe0c4; --gefahr:#ff7a6b; --leuchten:0 0 12px rgba(47,224,196,.3); --sym-ordner:#1fb39b; --sym-ordner-hell:#5ff0d8; --sym-papier:#e2fffa; --ok:#2fe08a; color-scheme:dark; }
[data-design="wald"]     { --hg:#0d1510; --flaeche:#131f17; --flaeche2:#1a2a1f; --text:#e5f1e6; --text2:#93ab97; --akzent:#6fdc7d; --akzent-text:#0b1d0e; --linie:#25392b; --auswahl:#21422a; --ungelesen:#6fdc7d; --gefahr:#ff7b6b; --leuchten:none; --sym-ordner:#4aa857; --sym-ordner-hell:#8fe29a; --sym-papier:#eefbef; --ok:#6fdc7d; color-scheme:dark; }
[data-design="abend"]    { --hg:#170f1c; --flaeche:#21152a; --flaeche2:#2c1c37; --text:#f6e9f2; --text2:#b39bb0; --akzent:#ff8a3d; --akzent-text:#1e0d02; --linie:#3a2747; --auswahl:#46284a; --ungelesen:#ff8a3d; --gefahr:#ff5b7a; --leuchten:0 0 12px rgba(255,138,61,.3); --sym-ordner:#e0702a; --sym-ordner-hell:#ffab70; --sym-papier:#fff1e6; --ok:#5fd88a; color-scheme:dark; }
[data-design="rubin"]    { --hg:#140a0d; --flaeche:#1e0f14; --flaeche2:#2a151c; --text:#f7e7ea; --text2:#b8949b; --akzent:#ff4d6d; --akzent-text:#22030a; --linie:#3a1d26; --auswahl:#4a1a27; --ungelesen:#ff4d6d; --gefahr:#ffb03b; --leuchten:none; --sym-ordner:#d63a58; --sym-ordner-hell:#ff8098; --sym-papier:#ffeef1; --ok:#5fd88a; color-scheme:dark; }
[data-design="sand"]     { --hg:#f3ede2; --flaeche:#fbf7f0; --flaeche2:#f1e9dc; --text:#2b241a; --text2:#7a6b55; --akzent:#b5651d; --akzent-text:#fff; --linie:#e2d6c3; --auswahl:#f0dcc0; --ungelesen:#b5651d; --gefahr:#c0392b; --leuchten:none; --sym-ordner:#c98a2e; --sym-ordner-hell:#ecbe6a; --sym-papier:#fffdf7; --ok:#3d8b4f; color-scheme:light; }
[data-design="lavendel"] { --hg:#f1eef9; --flaeche:#ffffff; --flaeche2:#f6f3fd; --text:#231d33; --text2:#6c6487; --akzent:#7b4fe0; --akzent-text:#fff; --linie:#e3ddf3; --auswahl:#e8defc; --ungelesen:#7b4fe0; --gefahr:#d42a5b; --leuchten:none; --sym-ordner:#7b4fe0; --sym-ordner-hell:#ad8fff; --sym-papier:#ffffff; --ok:#2e9e5b; color-scheme:light; }
[data-design="silbermuschel"] { --hg:#e6d9b4; --flaeche:#f8f1df; --flaeche2:#efe3c4; --text:#1f3d2a; --text2:#5e6a4c; --akzent:#2f5d3a; --akzent-text:#f8f1df; --linie:#d6c48f; --auswahl:#ead8a0; --ungelesen:#a8832a; --gefahr:#a8322d; --leuchten:none; --sym-ordner:#a8832a; --sym-ordner-hell:#d9b85c; --sym-papier:#fffaf0; --ok:#2f5d3a; color-scheme:light; }
[data-design="kontrast"] { --hg:#000; --flaeche:#000; --flaeche2:#111; --text:#fff; --text2:#ffe500; --akzent:#ffe500; --akzent-text:#000; --linie:#fff; --auswahl:#333; --ungelesen:#ffe500; --gefahr:#ff4040; --leuchten:none; --sym-ordner:#ffe500; --sym-ordner-hell:#fff27a; --sym-papier:#ffffff; --ok:#40ff80; color-scheme:dark; }

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--hg); color: var(--text); font-family: var(--schrift); font-size: 15px; -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--akzent); }
h1, h2, h3 { margin: 0; font-weight: 650; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { line-height: 1.5; }
.leise { color: var(--text2); }
.klein { font-size: 13px; }
.fehlertext { color: var(--gefahr); }
.oktext { color: var(--ok); }
code, .mono { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 13.5px; }

/* Schlanke, sichtbare Scrollbalken */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--akzent) 45%, transparent) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--akzent) 40%, transparent); border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- Symbole ---------- */
.sym { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; fill: currentColor; }
.sym.gross { width: 34px; height: 34px; }
.sym.riesig { width: 52px; height: 52px; }
.sym.ordner { color: var(--akzent); }
[data-farbig="1"] .sym.ordner { color: var(--sym-ordner); }
.sym-bild { width: 20px; height: 20px; object-fit: contain; flex: none; vertical-align: middle; }

/* ---------- Buttons (GLX Mail Windows): schlank, Luft drumherum, Text nie gekürzt ---------- */
.knopf {
	position: relative; overflow: hidden; isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	min-height: 34px; padding: 5px 14px; margin: 0;
	border: 1px solid var(--linie); border-radius: 9px; background: var(--flaeche2); color: var(--text);
	font-weight: 600; font-size: 14px; line-height: 1.25; cursor: pointer;
	white-space: normal; overflow-wrap: anywhere; text-align: center; text-overflow: clip; max-width: 100%; text-decoration: none;
	transition: border-color .2s, background .2s, transform .12s, box-shadow .2s;
}
.knopf .sym { width: 18px; height: 18px; }
.knopf::before { /* Lichtkante folgt der Maus */
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; z-index: -1;
	background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--akzent) 22%, transparent), transparent 70%);
	transition: opacity .25s;
}
.knopf::after { /* Scanner */
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; pointer-events: none; z-index: -1;
	background: linear-gradient(100deg, transparent 0%, color-mix(in srgb, var(--akzent) 28%, transparent) 50%, transparent 100%);
	transform: translateX(-120%); opacity: 0;
}
.knopf:hover { border-color: var(--akzent); }
.knopf:hover::before { opacity: 1; }
.knopf::after { display: none; } /* Scanner entfernt (Gordon 26.11.): nur Lichtpunkt und Welle */
@keyframes scanner { from { transform: translateX(-120%); } to { transform: translateX(220%); } }
.knopf:active { transform: scale(.97); }
.knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.knopf.haupt { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); box-shadow: var(--leuchten); }
.knopf.haupt::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); }
@property --w { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.knopf.haupt:hover { box-shadow: var(--leuchten), 0 0 0 1px var(--akzent); }
.knopf.haupt.ring::before { opacity: 1; inset: -1px; z-index: -2; padding: 1px; border-radius: inherit;
	background: conic-gradient(from var(--w), transparent 0 70%, rgba(255,255,255,.9) 85%, transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ring var(--ring) linear infinite; }
@keyframes ring { to { --w: 360deg; } }
.knopf.gefahr { color: var(--gefahr); }
.knopf.gefahr:hover { border-color: var(--gefahr); }
.knopf.leer { background: transparent; }
.knopf.nur-symbol { padding: 5px 8px; min-width: 34px; }
.knopf[disabled], .knopf.aus { opacity: .42; cursor: not-allowed; filter: grayscale(.7); }
.knopf[disabled]:hover::after, .knopf.aus:hover::after { animation: none; opacity: 0; }
.welle { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .25; pointer-events: none; animation: welle .6s ease-out forwards; }
@keyframes welle { to { transform: scale(2.6); opacity: 0; } }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.knopfreihe.rechts { justify-content: flex-end; }
.textknopf { border: 0; background: none; color: var(--akzent); cursor: pointer; padding: 4px 6px; border-radius: 6px; font-weight: 600; }
.textknopf:hover { background: var(--flaeche2); }
.symbolknopf { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--text2); cursor: pointer; position: relative; }
.symbolknopf:hover { background: var(--flaeche2); color: var(--text); }

/* ---------- Eingaben ---------- */
.feld { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.feld > span { font-size: 13px; color: var(--text2); font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], input[type=url], select, textarea {
	width: 100%; padding: 8px 11px; border: 1px solid var(--linie); border-radius: 9px; background: var(--flaeche2); color: var(--text); outline: none; min-height: 36px;
}
input:focus, select:focus, textarea:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 18%, transparent); }
.schalter { display: flex; align-items: center; gap: 10px; margin: 10px 0; cursor: pointer; line-height: 1.35; }
.schalter input { -webkit-appearance: none; appearance: none; width: 38px; height: 22px; border-radius: 22px; background: var(--linie); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.schalter input:checked { background: var(--akzent); }
.schalter input:checked::after { transform: translateX(16px); background: var(--akzent-text); }
.raster2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 16px; }

/* ---------- Kopf: Logo, Registerkarten, drei Dropdowns ---------- */
#kopf { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: var(--kopf);
	padding: calc(6px + var(--sicher-oben)) 14px 6px; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.marke { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 16px; flex: none; }
.marke img { width: 34px; height: 34px; object-fit: contain; } /* Im Kopf steht das Logo still */
#reiter { display: flex; flex-wrap: wrap; gap: 4px; order: 5; flex: 1 1 100%; min-width: 0; margin: 0 -14px -6px; padding: 6px 14px; border-top: 1px solid var(--linie); background: var(--hg); }
#reiter:empty { display: none; }
#meldungsliste { left: auto; right: 14px; }
.kopf-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.reiter { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 9px; color: var(--text2); text-decoration: none; font-weight: 600; font-size: 14px;
	border: 1px solid transparent; line-height: 1.25; }
.reiter:hover { background: var(--flaeche2); color: var(--text); }
.reiter.aktiv { color: var(--akzent); background: var(--auswahl); border-color: color-mix(in srgb, var(--akzent) 35%, transparent); }
.kopf-rechts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.ausklapp { position: relative; }
.ausklapp > .knopf { min-height: 32px; padding: 4px 11px; background: transparent; }
.ausklapp > .knopf .pfeil { width: 14px; height: 14px; opacity: .7; transition: transform .2s; }
.ausklapp.offen > .knopf .pfeil { transform: rotate(180deg); }
.liste-aus { position: absolute; left: 0; top: calc(100% + 6px); min-width: 230px; max-width: min(320px, 92vw); max-height: 75vh; overflow: auto; padding: 6px; z-index: 60;
	background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.35); animation: rein .16s ease-out; }
@keyframes rein { from { opacity: 0; transform: translateY(-4px); } }
.liste-aus a, .liste-aus button.eintrag { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; color: var(--text);
	text-decoration: none; cursor: pointer; text-align: left; font-weight: 500; line-height: 1.3; }
.liste-aus a:hover, .liste-aus button.eintrag:hover { background: var(--flaeche2); }
.liste-aus a.aktiv { color: var(--akzent); }
.liste-aus hr { border: 0; border-top: 1px solid var(--linie); margin: 6px 4px; }
.liste-aus .modlogo { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; flex: none; }
.zahl { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--gefahr); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; overflow: hidden; flex: none; background: var(--akzent); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.gross { width: 96px; height: 96px; font-size: 38px; }

/* ---------- Hinweisbänder (Testzeit, Sperrmodus, Ablauf) ---------- */
.band { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 9px 16px; background: color-mix(in srgb, var(--akzent) 13%, var(--flaeche)); border-bottom: 1px solid var(--linie); }
.band.warnung { background: color-mix(in srgb, #f5b301 18%, var(--flaeche)); }
.band.gesperrt { background: color-mix(in srgb, var(--gefahr) 18%, var(--flaeche)); }
.band p { margin: 0; flex: 1 1 260px; }
body.sperre .erstellen { opacity: .42; filter: grayscale(.8); pointer-events: none; }

/* ---------- Inhalt ---------- */
#inhalt { padding: 18px clamp(12px, 3vw, 32px) calc(28px + var(--sicher-unten)); max-width: 1840px; margin: 0 auto; }
.seitenkopf { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; min-height: 70px; }
.seitenkopf .titel { flex: 1; min-width: 0; }
.seitenkopf h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seitenkopf p { margin: 4px 0 0; color: var(--text2); }
/* Auf Inhaltsseiten wandert das Logo rechts im GLX-Dreieck (oben links, oben rechts, unten Mitte) */
.wanderlogo { width: 92px; height: 70px; flex: none; display: grid; place-items: center; }
.wanderlogo img { width: 46px; height: 46px; object-fit: contain; animation: logoDreieck 4.2s ease-in-out infinite; filter: drop-shadow(var(--leuchten, none)); }
@keyframes logoDreieck { 0%, 100% { transform: translate(-14px, -8px); } 33.333% { transform: translate(14px, -8px); } 66.666% { transform: translate(0, 14px); } }
@media (prefers-reduced-motion: reduce) { .wanderlogo img { animation: none; } .knopf:hover::after { animation: none; } }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; }
.karte > h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.kachel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 124px; padding: 14px 10px; border-radius: 14px; background: var(--flaeche);
	border: 1px solid var(--linie); text-decoration: none; color: var(--text); text-align: center; font-weight: 600; cursor: pointer; transition: transform .15s, border-color .2s, box-shadow .2s; position: relative; }
.kachel:hover { border-color: var(--akzent); transform: translateY(-2px); box-shadow: var(--leuchten); }
.kachel img.modlogo { width: 52px; height: 52px; object-fit: contain; }
.kachel .etikett { position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 2px 7px; border-radius: 10px; background: var(--gefahr); color: #fff; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: 12.5px; color: var(--text2); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 9px 10px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tr:hover td { background: color-mix(in srgb, var(--flaeche2) 60%, transparent); }
.tabelle .aktionen { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tabwrap { overflow-x: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; background: var(--flaeche2); border: 1px solid var(--linie); font-size: 13px; }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.chip.warn { color: #f5b301; border-color: color-mix(in srgb, #f5b301 40%, transparent); }
.chip.aus { color: var(--gefahr); border-color: color-mix(in srgb, var(--gefahr) 40%, transparent); }
.leerhinweis { padding: 40px 10px; text-align: center; color: var(--text2); }
.leerhinweis .sym { width: 48px; height: 48px; opacity: .6; display: block; margin: 0 auto 10px; }
.balken { height: 8px; border-radius: 8px; background: var(--flaeche2); overflow: hidden; }
.balken > i { display: block; height: 100%; background: var(--akzent); border-radius: 8px; }

/* ---------- Dateien ---------- */
.werkzeug { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.werkzeug .suche { flex: 1 1 200px; max-width: 340px; }
.pfadleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0 0 10px; font-weight: 600; }
.pfadleiste a { color: var(--text2); text-decoration: none; padding: 3px 7px; border-radius: 7px; }
.pfadleiste a:hover { background: var(--flaeche2); color: var(--text); }
.pfadleiste a:last-child { color: var(--text); }
.speicherwahl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.speicherwahl .knopf.aktiv { border-color: var(--akzent); color: var(--akzent); }
.dateibereich { display: flex; gap: 0; align-items: stretch; min-height: 50vh; }
.dateiliste { flex: 1; min-width: 0; }
.dateiliste.liste .zeile { display: grid; grid-template-columns: 28px 30px minmax(0, 1fr) 110px 150px 36px; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; cursor: default; -webkit-user-select: none; user-select: none; }
.dateiliste.liste .zeile:hover { background: var(--flaeche2); }
.dateiliste.liste .zeile.gewaehlt { background: var(--auswahl); }
.dateiliste .zeile .name { overflow-wrap: anywhere; }
.dateiliste .zeile .meta { color: var(--text2); font-size: 13px; }
.dateiliste.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.dateiliste.raster .zeile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 12px; border: 1px solid transparent; text-align: center; position: relative; -webkit-user-select: none; user-select: none; }
.dateiliste.raster .zeile:hover { background: var(--flaeche2); }
.dateiliste.raster .zeile.gewaehlt { background: var(--auswahl); border-color: color-mix(in srgb, var(--akzent) 40%, transparent); }
.dateiliste.raster .zeile .meta, .dateiliste.raster .zeile .auswahlbox, .dateiliste.raster .zeile .mehrknopf { display: none; }
.dateiliste.raster .vorschaubild { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; overflow: hidden; background: var(--flaeche2); }
.dateiliste.raster .vorschaubild img { width: 100%; height: 100%; object-fit: cover; }
.dateiliste.raster .vorschaubild .sym { width: 52px; height: 52px; }
.dateiliste.liste .vorschaubild img { width: 26px; height: 26px; object-fit: cover; border-radius: 5px; }
.dateiliste.liste .kopfzeile { color: var(--text2); font-size: 12.5px; font-weight: 600; }
.dateiliste.liste .kopfzeile:hover { background: none; }
.auswahlbox { width: 18px; height: 18px; accent-color: var(--akzent); }
.ziehen-aktiv { outline: 2px dashed var(--akzent); outline-offset: 4px; border-radius: 12px; }
.seitenleiste { width: var(--leiste-breite, 320px); min-width: 220px; max-width: 60vw; flex: none; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 14px; position: relative; overflow: auto; }
.griff { width: 12px; flex: none; cursor: col-resize; display: grid; place-items: center; touch-action: none; }
.griff::before { content: ""; width: 4px; height: 44px; border-radius: 4px; background: var(--linie); transition: background .2s; }
.griff:hover::before, .griff.zieht::before { background: var(--akzent); }
.seitenleiste .gross-vorschau { width: 100%; border-radius: 10px; background: var(--flaeche2); display: grid; place-items: center; min-height: 160px; overflow: hidden; margin-bottom: 10px; }
.seitenleiste .gross-vorschau img { max-width: 100%; max-height: 320px; object-fit: contain; }
.seitenleiste dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13.5px; }
.seitenleiste dt { color: var(--text2); }
.seitenleiste dd { margin: 0; overflow-wrap: anywhere; }
.hochladeliste { position: fixed; right: 16px; bottom: calc(16px + var(--sicher-unten)); width: min(360px, calc(100vw - 32px)); z-index: 70; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.hochladeliste .posten { margin: 8px 0; font-size: 13px; }
.hochladeliste .posten .balken { margin-top: 4px; }

/* ---------- Ansicht / Dia-Show ---------- */
#ansicht { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.94); display: flex; flex-direction: column; color: #fff; }
#ansicht .oben { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--sicher-oben)) 14px 10px; flex-wrap: wrap; }
#ansicht .oben .titel { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
#ansicht .buehne { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; overflow: hidden; }
#ansicht .buehne img, #ansicht .buehne video { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .5s; }
#ansicht .buehne iframe { width: min(1100px, 100%); height: 100%; border: 0; background: #fff; }
#ansicht .buehne audio { width: min(520px, 90vw); }
#ansicht .buehne pre { max-width: min(1000px, 94vw); max-height: 100%; overflow: auto; background: #111; padding: 16px; border-radius: 10px; white-space: pre-wrap; color: #ddd; }
#ansicht .blaettern { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
#ansicht .blaettern:hover { background: rgba(255,255,255,.18); }
#ansicht .blaettern.l { left: 12px; } #ansicht .blaettern.r { right: 12px; }
#ansicht .knopf { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
#ansicht .unten { text-align: center; padding: 8px 10px calc(12px + var(--sicher-unten)); font-size: 13px; color: #bbb; }
.dia-rein { animation: diaRein .6s ease-out; }
@keyframes diaRein { from { opacity: 0; transform: scale(1.02); } }

/* ---------- Module (Vollbild) ---------- */
body.modulansicht #inhalt { max-width: none; padding: 0; }
.modulrahmen { position: fixed; left: 0; right: 0; bottom: 0; top: var(--modul-oben, 57px); border: 0; width: 100%; height: calc(100vh - var(--modul-oben, 57px)); height: calc(100dvh - var(--modul-oben, 57px)); background: var(--hg); }
body.kopf-zu #kopf { display: none; }
body.kopf-zu .modulrahmen { top: 0; height: 100vh; height: 100dvh; }
.kopf-pfeil { position: fixed; top: calc(4px + var(--sicher-oben)); left: 50%; transform: translateX(-50%); z-index: 50; width: 38px; height: 20px; border-radius: 0 0 10px 10px; border: 1px solid var(--linie); border-top: 0;
	background: var(--flaeche); color: var(--text2); cursor: pointer; display: grid; place-items: center; padding: 0; opacity: .75; }
.kopf-pfeil:hover { opacity: 1; color: var(--akzent); }
.kopf-pfeil .sym { width: 16px; height: 16px; }
body:not(.kopf-zu) .kopf-pfeil { top: calc(var(--modul-oben, 57px) - 1px); }

/* ---------- Symbol-Sets ---------- */
.setkarte { cursor: pointer; position: relative; }
.setkarte.aktiv { border-color: var(--akzent); box-shadow: var(--leuchten), inset 0 0 0 1px var(--akzent); }
.setkarte .muster { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 6px; color: var(--text); }
.setkarte .muster .sym, .setkarte .muster img { width: 28px; height: 28px; justify-self: center; }
.setkarte .unter { font-size: 12px; color: var(--text2); }
.symbolraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.symbolfeld { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 10px; border: 1px dashed var(--linie); font-size: 12px; text-align: center; cursor: pointer; position: relative; }
.symbolfeld:hover, .symbolfeld.ziel { border-color: var(--akzent); background: var(--flaeche2); }
.symbolfeld.eigen { border-style: solid; border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.symbolfeld img, .symbolfeld .sym { width: 32px; height: 32px; object-fit: contain; }
.offenliste { display: flex; flex-wrap: wrap; gap: 8px; }
.offenliste .chip { cursor: grab; }

/* ---------- Designs ---------- */
.designkarte { cursor: pointer; padding: 0; overflow: hidden; }
.designkarte .probe { height: 86px; display: grid; grid-template-columns: 34% 1fr; }
.designkarte .probe .l { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.designkarte .probe .l i { display: block; height: 8px; border-radius: 4px; }
.designkarte .probe .r { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.designkarte .probe .r b { display: inline-block; width: 64px; height: 18px; border-radius: 6px; }
.designkarte .unten { padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.designkarte.aktiv { border-color: var(--akzent); box-shadow: var(--leuchten), inset 0 0 0 1px var(--akzent); }

/* ---------- Dialoge (GLX-Design statt Browser-Fenster) ---------- */
.schleier { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; animation: rein .15s ease-out; }
.dialog { width: min(480px, 100%); max-height: 90vh; overflow: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.dialog.breit { width: min(760px, 100%); }
.dialog h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.meldung { position: fixed; left: 50%; bottom: calc(20px + var(--sicher-unten)); transform: translateX(-50%); z-index: 120; background: var(--flaeche); border: 1px solid var(--akzent); color: var(--text);
	padding: 10px 16px; border-radius: 12px; box-shadow: var(--leuchten), 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); animation: rein .2s ease-out; }
.meldung.fehler { border-color: var(--gefahr); }
#tipp { position: fixed; z-index: 130; pointer-events: none; background: var(--flaeche2); color: var(--text); border: 1px solid var(--akzent); border-radius: 8px; padding: 5px 9px; font-size: 12.5px;
	max-width: 280px; box-shadow: 0 6px 20px rgba(0,0,0,.35); line-height: 1.35; }
.geheim { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 17px; letter-spacing: .5px; padding: 12px; border-radius: 10px; background: var(--flaeche2); border: 1px dashed var(--akzent); text-align: center; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.qr { display: flex; justify-content: center; margin: 8px 0; } .qr svg { width: 200px; height: 200px; background: #fff; border-radius: 10px; }

/* ---------- Anmeldung, Einrichtung, Freigabe ---------- */
.mitte { min-height: 100vh; display: grid; place-items: center; padding: 20px 14px; }
.anmeldekarte { width: min(430px, 100%); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 18px; padding: 26px 26px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.anmeldekarte.breit { width: min(720px, 100%); }
.anmeldekarte .logo { display: block; width: 84px; height: 84px; object-fit: contain; margin: 0 auto 10px; }
.anmeldekarte h1 { text-align: center; font-size: 22px; margin-bottom: 4px; }
.anmeldekarte .unterzeile { text-align: center; color: var(--text2); margin: 0 0 14px; }
.anmeldekarte form .knopf.haupt { width: 100%; margin-top: 8px; }
.pruefliste { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 4px; }
.pruefliste li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.pruefliste li .sym { width: 18px; height: 18px; margin-top: 1px; }
.pruefliste li.ok .sym { color: var(--ok); }
.pruefliste li.nein .sym { color: var(--gefahr); }
.pruefliste li.warn .sym { color: #f5b301; }
.sprachwahl { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.fusszeile { text-align: center; color: var(--text2); font-size: 12px; margin-top: 16px; }

/* ---------- Hilfe ---------- */
.hilfe h3 { margin: 18px 0 6px; }
.hilfe li { margin: 4px 0; line-height: 1.5; }
.inhaltsverzeichnis a { display: block; padding: 3px 0; }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
	#kopf { gap: 6px 8px; padding-left: 10px; padding-right: 10px; }
	.marke span { display: none; }
	#reiter { margin: 0 -10px -6px; padding: 6px 10px; }
	.reiter { padding: 5px 9px; font-size: 13.5px; }
	.ausklapp > .knopf { padding: 4px 8px; font-size: 13.5px; }
	.liste-aus { position: fixed; left: 10px; right: 10px; top: auto; max-width: none; }
	.dateiliste.liste .zeile { grid-template-columns: 24px 28px minmax(0, 1fr) 34px; }
	.dateiliste.liste .zeile .meta { display: none; }
	.dateibereich { flex-direction: column; }
	.griff { display: none; }
	.seitenleiste { width: auto; max-width: none; margin-top: 12px; }
	.wanderlogo { width: 64px; }
	.wanderlogo img { width: 34px; height: 34px; }
	.tabelle .weg-mobil { display: none; }
}
@media (max-width: 440px) {
	.ausklapp > .knopf > .sym:first-child { display: none; }
	.ausklapp > .knopf { gap: 4px; padding: 4px 8px; }
	.kopf-rechts, .kopf-links { gap: 4px; }
	#kopf { gap: 6px 4px; padding-left: 8px; padding-right: 8px; }
	#reiter { margin: 0 -8px -6px; padding: 6px 8px; }
	.marke img { width: 28px; height: 28px; }
	.ausklapp > .knopf { padding: 4px 6px; font-size: 13px; }
	.ausklapp > .knopf .pfeil { width: 12px; height: 12px; }
	#ichknopf { display: none; }
	.kopf-rechts .symbolknopf { width: 30px; }
}

/* Gleicher Effekt für alles Anwählbare (Gordon: Server, Windows, macOS gleich):
   Lichtkante folgt der Maus, Scanner beim Überfahren, Klick-Welle, leichtes Eindrücken. */
.fx { position: relative; overflow: hidden; isolation: isolate; }
.fx::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; z-index: -1;
	background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--akzent) 22%, transparent), transparent 70%); transition: opacity .25s; }
.fx::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; pointer-events: none; z-index: -1;
	background: linear-gradient(100deg, transparent 0%, color-mix(in srgb, var(--akzent) 28%, transparent) 50%, transparent 100%); transform: translateX(-120%); opacity: 0; }
.fx:hover::before { opacity: 1; }
.fx::after { display: none; }
.fx:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .fx:hover::after { animation: none; } }
.kopf-pfeil.fx { position: fixed; }
.kopf-pfeil.fx:active { transform: translateX(-50%) scale(.97); }
#ansicht .blaettern.fx:active { transform: translateY(-50%) scale(.97); }
.kachel.fx:hover:active { transform: translateY(-2px) scale(.97); }

/* ------------------------------------------------------------------ Auftritt der Symbol-Sets (Kachel, Kreis, Leuchten, Typfarben) */
.sym[data-s="ordner"] { --tf: var(--sym-ordner); } .sym[data-s="ordner-offen"] { --tf: var(--sym-ordner); } .sym[data-s="ordner-neu"] { --tf: var(--sym-ordner); } .sym[data-s="bild"] { --tf: #22c55e; } .sym[data-s="fotos"] { --tf: #22c55e; } .sym[data-s="kamera"] { --tf: #22c55e; } .sym[data-s="video"] { --tf: #ef4444; } .sym[data-s="media"] { --tf: #ef4444; } .sym[data-s="abspielen"] { --tf: #ef4444; } .sym[data-s="musik"] { --tf: #a855f7; } .sym[data-s="radio"] { --tf: #a855f7; } .sym[data-s="text"] { --tf: #3b82f6; } .sym[data-s="datei"] { --tf: #64748b; } .sym[data-s="pdf"] { --tf: #dc2626; } .sym[data-s="archiv"] { --tf: #d97706; } .sym[data-s="backup"] { --tf: #d97706; } .sym[data-s="code"] { --tf: #14b8a6; } .sym[data-s="sftp"] { --tf: #14b8a6; } .sym[data-s="tabelle"] { --tf: #16a34a; } .sym[data-s="praesentation"] { --tf: #f97316; } .sym[data-s="office"] { --tf: #2563eb; } .sym[data-s="festplatte"] { --tf: #64748b; } .sym[data-s="speicher"] { --tf: #64748b; } .sym[data-s="usb"] { --tf: #0ea5e9; } .sym[data-s="netz"] { --tf: #6366f1; } .sym[data-s="cloud"] { --tf: #0ea5e9; } .sym[data-s="stern"] { --tf: #f5b301; } .sym[data-s="loeschen"] { --tf: #ef4444; } .sym[data-s="papierkorb"] { --tf: #ef4444; } .sym[data-s="mail"] { --tf: #0ea5e9; } .sym[data-s="kalender"] { --tf: #f43f5e; } .sym[data-s="chat"] { --tf: #10b981; } .sym[data-s="passwoerter"] { --tf: #eab308; } .sym[data-s="schluessel"] { --tf: #eab308; } .sym[data-s="schloss"] { --tf: #eab308; } .sym[data-s="schild"] { --tf: #22c55e; } .sym[data-s="lizenz"] { --tf: #f59e0b; } .sym[data-s="kaufen"] { --tf: #f59e0b; } .sym[data-s="design"] { --tf: #ec4899; } .sym[data-s="symbole"] { --tf: #8b5cf6; } .sym[data-s="sprache"] { --tf: #06b6d4; } .sym[data-s="gruppe"] { --tf: #8b5cf6; } .sym[data-s="benutzer"] { --tf: #6366f1; } .sym[data-s="benutzer-neu"] { --tf: #6366f1; } .sym[data-s="update"] { --tf: #0ea5e9; } .sym[data-s="hilfe"] { --tf: #06b6d4; } .sym[data-s="info"] { --tf: #06b6d4; } .sym[data-s="warnung"] { --tf: #f59e0b; } .sym[data-s="glocke"] { --tf: #f59e0b; } .sym[data-s="haus"] { --tf: #3b82f6; } .sym[data-s="modul"] { --tf: #8b5cf6; } .sym[data-s="teilen"] { --tf: #10b981; } .sym[data-s="link"] { --tf: #10b981; }
:root[data-symstil="typfarbe"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym), .setkarte[data-stil="typfarbe"] .muster .sym { color: var(--tf, var(--akzent)); }
:root[data-symstil="akzent"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym), .setkarte[data-stil="akzent"] .muster .sym { color: var(--akzent); }
:root[data-symstil="neon"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym), .setkarte[data-stil="neon"] .muster .sym { color: var(--akzent); filter: drop-shadow(0 0 3px var(--akzent)) drop-shadow(0 0 8px color-mix(in srgb, var(--akzent) 55%, transparent)); }
:root[data-symstil="fein"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym), .setkarte[data-stil="fein"] .muster .sym { color: var(--text2); stroke-width: 1.2; }
:root[data-symstil="kachel"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym), .setkarte[data-stil="kachel"] .muster .sym { color: var(--akzent-text); background: var(--akzent); border-radius: 22%; }
:root[data-symstil="kreis"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym), .setkarte[data-stil="kreis"] .muster .sym { color: var(--akzent); background: color-mix(in srgb, var(--akzent) 18%, transparent); border-radius: 50%; }
:root[data-symstil="kreisvoll"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym), .setkarte[data-stil="kreisvoll"] .muster .sym { color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--akzent) 80%, #fff), color-mix(in srgb, var(--akzent) 75%, #000)); border-radius: 50%; }
:root[data-symstil="retro"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym), .setkarte[data-stil="retro"] .muster .sym { color: var(--tf, var(--akzent)); image-rendering: pixelated; filter: drop-shadow(1px 1px 0 color-mix(in srgb, var(--tf, var(--akzent)) 35%, #000)); }
:root[data-symstil="rahmen"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym), .setkarte[data-stil="rahmen"] .muster .sym { color: var(--text); border: 1.5px solid var(--linie); border-radius: 6px; background: var(--flaeche2); }
:root[data-symstil="typkreis"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym), .setkarte[data-stil="typkreis"] .muster .sym { color: var(--tf, var(--akzent)); background: color-mix(in srgb, var(--tf, var(--akzent)) 26%, transparent); border-radius: 50%; stroke-width: 2; }
:root[data-symstil="typkachel"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym), .setkarte[data-stil="typkachel"] .muster .sym { color: #fff; background: var(--tf, var(--akzent)); border-radius: 24%; }
:root[data-symstil="zweifarbig"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym), .setkarte[data-stil="zweifarbig"] .muster .sym { color: var(--text); --sym-zweit: var(--akzent); }

:root[data-symstil="kachel"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym) > use, .setkarte[data-stil="kachel"] .muster .sym > use { transform-box: view-box; transform-origin: 50% 50%; transform: scale(.66); }
:root[data-symstil="kreis"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym) > use, .setkarte[data-stil="kreis"] .muster .sym > use { transform-box: view-box; transform-origin: 50% 50%; transform: scale(.64); }
:root[data-symstil="kreisvoll"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym) > use, .setkarte[data-stil="kreisvoll"] .muster .sym > use { transform-box: view-box; transform-origin: 50% 50%; transform: scale(.6); }
:root[data-symstil="rahmen"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym) > use, .setkarte[data-stil="rahmen"] .muster .sym > use { transform-box: view-box; transform-origin: 50% 50%; transform: scale(.7); }
:root[data-symstil="typkreis"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym) > use, .setkarte[data-stil="typkreis"] .muster .sym > use { transform-box: view-box; transform-origin: 50% 50%; transform: scale(.78); }
:root[data-symstil="typkachel"] :is(#inhalt, .liste-aus, .dialog) .sym:not(.knopf .sym, .reiter .sym, .setkarte .sym, .symbolknopf .sym, .pfadleiste .sym) > use, .setkarte[data-stil="typkachel"] .muster .sym > use { transform-box: view-box; transform-origin: 50% 50%; transform: scale(.64); }
/* ------------------------------------------------------------------ 0.1.1: Explorer, Laufwerke, Benutzer-Menü, Passwort-Auge */
#inhalt { padding-top: 10px; }
.seitenhinweis { margin: 0 0 12px; font-size: 14px; }
.explorer-kopf { background: var(--hg); padding: 2px 0 8px; margin-bottom: 4px; }
.pfadkopf { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; flex-wrap: wrap; }
.pfadkopf .pfadleiste { flex: 1 1 260px; margin: 0; min-height: 34px; padding: 2px 6px; border: 1px solid var(--linie); border-radius: 9px; background: var(--flaeche); font-weight: 600; font-size: 14px; }
.pfadkopf .pfadleiste a { display: inline-flex; align-items: center; gap: 6px; }
.pfadkopf .pfadleiste .sym { width: 17px; height: 17px; }
.pfadkopf .suche { flex: 0 1 240px; min-width: 140px; }
.lw-wahl { position: relative; }
.lw-wahl .liste-aus { left: 0; }
.werkzeug { gap: 8px; margin: 0; }
.werkzeug .rechts { margin-left: auto; }
.auswahlteil { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--linie); }
.auswahlteil[hidden] { display: none; }
.dateiliste.liste .zeile { padding: 4px 8px; gap: 8px; }
.dateiliste.liste .zeile:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
.dateiliste.liste .vorschaubild .sym { width: 22px; height: 22px; }
.dateiliste.raster { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.dateiliste.raster .vorschaubild .sym { width: 44px; height: 44px; }
.dateibereich { min-height: 40vh; }
h3.gruppe { font-size: 14px; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 8px; }
.laufwerke { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.laufwerk { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); color: var(--text); text-decoration: none; cursor: default; -webkit-user-select: none; user-select: none; position: relative; overflow: hidden; isolation: isolate; }
a.laufwerk { cursor: pointer; }
.laufwerk:hover { border-color: color-mix(in srgb, var(--akzent) 55%, var(--linie)); }
.laufwerk.gewaehlt { background: var(--auswahl); border-color: var(--akzent); }
.laufwerk:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.laufwerk.fehlt { opacity: .55; }
.laufwerk .sym.riesig { width: 44px; height: 44px; }
.laufwerk .modlogo.gross { width: 44px; height: 44px; object-fit: contain; border-radius: 9px; }
.lw-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lw-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-text .balken { height: 7px; }
.balken.voll > i { background: var(--gefahr); }
#ichknopf { border: 0; background: none; padding: 2px; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; }
#ichknopf:hover, #ichknopf:focus-visible { box-shadow: 0 0 0 2px var(--akzent); outline: none; }
#ichliste { left: auto; right: 14px; min-width: 250px; }
.ichkopf { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; }
.ichkopf .avatar.gross { width: 46px; height: 46px; font-size: 20px; }
.pw-feld { position: relative; display: block; }
.pw-feld input { width: 100%; padding-right: 42px; }
.pw-auge { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--text2); padding: 5px 7px; border-radius: 7px; cursor: pointer; display: grid; place-items: center; }
.pw-auge:hover { color: var(--akzent); background: var(--flaeche2); }
.pw-auge .sym { width: 19px; height: 19px; }
.sprachwahl .knopf.aktiv { border-color: var(--akzent); color: var(--akzent); }
.sprachstart { display: flex; gap: 12px; justify-content: center; margin: 22px 0 8px; }
.sprachstart .knopf { min-width: 140px; justify-content: center; }
.karten.gleich { grid-auto-rows: 1fr; align-items: stretch; }
.karten.gleich > .karte { display: flex; flex-direction: column; margin: 0; }
.karten.gleich > .karte > .knopfreihe:last-child, .karten.gleich > .karte > :last-child { margin-top: auto; }
.knopf.klein { padding: 4px 12px; min-height: 30px; font-size: 13.5px; }

/* ------------------------------------------------------------------ 0.1.2: Programm in der Hauptleiste (Vollintegration, ein Kopf) */
.mod-titel { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 14px; margin-left: 2px; border-left: 1px solid var(--linie); color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px; white-space: nowrap; }
.mod-titel .modlogo, .mod-titel .sym { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.mod-titel:hover { color: var(--akzent); }
.mod-rechts { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; }
.mod-rechts .suche { width: 220px; min-width: 120px; }
@media (max-width: 760px) { .mod-rechts .suche { width: 130px; } .mod-titel span { display: none; } }
body.modulansicht #reiter { display: none; }

/* 0.1.2b: Kästchen nur im Auswahl-Modus, Doppelklick öffnet */
.dateiliste:not(.waehlen) .auswahlbox { display: none; }
.dateiliste.liste:not(.waehlen) .zeile { grid-template-columns: 30px minmax(0, 1fr) 110px 150px 36px; }
@media (max-width: 700px) { .dateiliste.liste:not(.waehlen) .zeile { grid-template-columns: 28px minmax(0, 1fr) 34px; } }
.dateiliste.raster.waehlen .zeile .auswahlbox { display: block; position: absolute; top: 8px; left: 8px; z-index: 2; }
.dateiliste.raster .zeile { position: relative; }
#waehlenWechsel.aktiv { border-color: var(--akzent); color: var(--akzent); }
.werkzeug .rechts ~ .knopf { margin-left: 0; }
.werkzeug { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; padding-bottom: 2px; }
.werkzeug > * { flex: none; }
.auswahlteil { flex-wrap: nowrap; }

/* Kontextmenü (rechte Maustaste / langes Drücken) */
#kontext.kontextmenue { position: fixed; left: 0; top: 0; right: auto; z-index: 200; min-width: 230px; max-height: calc(100vh - 12px); }
#kontext .eintrag.gefahr { color: var(--gefahr); }
#kontext :is(a, button):focus-visible { outline: none; background: var(--flaeche2); box-shadow: inset 0 0 0 1px var(--akzent); }
/* iPhone/iPad: langes Drücken öffnet unser Kontextmenü statt der Safari-Vorschau */
.dateiliste .zeile, .laufwerk, .kachel, #kopf { -webkit-touch-callout: none; }

/* Kern 0.1.3: Setup › Lizenzen / Module */
.zeile-titel { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.karte.gedimmt { opacity: .6; }

.liste-aus a.untereintrag { padding-left: 34px; font-size: 13.5px; color: var(--text2); }
.liste-aus a.untereintrag .sym { width: 16px; height: 16px; }
/* Handy in der Programmansicht: Cloud-Kopf bleibt EINE Zeile (Mail-Server-Test 26.11.): Dropdowns und Hilfe nur als Symbol, Suche schmal und wächst beim Tippen */
@media (max-width: 760px) {
	body.modulansicht #kopf { flex-wrap: nowrap; }
	body.modulansicht .ausklapp > .knopf > span, body.modulansicht .ausklapp > .knopf > .pfeil { display: none; }
	body.modulansicht .ausklapp > .knopf > .sym:first-child { display: inline-block; }
	body.modulansicht .ausklapp > .knopf { padding: 4px 7px; }
	body.modulansicht #modHilfe > span { display: none; }
	body.modulansicht #modHilfe { padding: 4px 7px; }
	body.modulansicht .kopf-rechts { flex: 1 1 0; min-width: 0; justify-content: flex-end; }
	body.modulansicht .mod-rechts { min-width: 0; flex: 1 1 0; justify-content: flex-end; }
	body.modulansicht .mod-rechts .suche { width: auto; flex: 1 1 0; min-width: 44px; max-width: 160px; }
	body.modulansicht .mod-titel { padding: 4px 6px 4px 8px; }
	body.modulansicht .kopf-links, body.modulansicht .kopf-rechts { gap: 4px; flex-wrap: nowrap; }
}

/* Eigenes Programmfenster (GLX Cloud Windows/macOS): Fensterbuttons rechts in der Cloud-Kopfzeile */
.fensterknoepfe { display: flex; align-items: center; gap: 2px; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--linie); }
.fensterknopf { width: 34px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--text2); cursor: pointer; }
.fensterknopf svg { width: 16px; height: 16px; }
.fensterknopf:hover { background: var(--flaeche2); color: var(--text); }
.fensterknopf.zu:hover { background: var(--gefahr); color: #fff; }
body.eigenesfenster #kopf { -webkit-user-select: none; user-select: none; }

/* Karten einer Reihe immer gleich hoch, keine leere Spalte rechts (Gordon 28.11.: "alle gleich groß") */
.karten { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.karten > .karte { display: flex; flex-direction: column; margin: 0; }
.karten > .karte > .knopfreihe:last-child { margin-top: auto; }
.karten.paar { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
@media (max-width: 820px) { .karten.paar { grid-template-columns: 1fr; grid-auto-rows: auto; } }
.karten.paar .raster2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .karten.paar .raster2 { grid-template-columns: 1fr; } }
.infotabelle { display: grid; grid-template-columns: max-content 1fr; gap: 9px 18px; margin: 4px 0 0; font-size: 14px; }
.infotabelle dt { color: var(--text2); }
.infotabelle dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.infotabelle .balken { margin-top: 6px; max-width: 260px; }

/* Auswahl mit Vorschau (Setup › Allgemein: Design und Symbol-Set für neue Konten) */
.wahlknopf { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 12px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche2); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.wahlknopf:hover, .wahlknopf:focus-visible { border-color: var(--akzent); }
.wahlknopf > b { flex: 1; font-weight: 500; }
.wahlknopf > .sym { width: 16px; height: 16px; color: var(--text2); }
.wahl-probe { display: inline-grid; grid-template-columns: repeat(4, 12px); height: 26px; border-radius: 6px; overflow: hidden; border: 1px solid var(--linie); flex: none; }
.wahl-probe i { display: block; }
.wahl-muster { flex: none; border: 0; background: none; padding: 0; cursor: inherit; box-shadow: none; }
.wahl-muster .muster { display: flex !important; gap: 6px; margin: 0 !important; }
.wahl-muster .muster .sym, .wahl-muster .muster img { width: 22px !important; height: 22px !important; }
.dialog .wahlraster { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); max-height: min(62vh, 640px); overflow: auto; padding: 4px; }

/* ------------------------------------------------------------------ Startseite / Dashboard (0.1.3) */
.dash { display: flex; flex-direction: column; gap: 16px; max-width: 1500px; margin: 0 auto; }
.dash-hallo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--linie);
	background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--akzent) 22%, var(--flaeche)) 0%, var(--flaeche) 55%); box-shadow: var(--leuchten); }
.dash-gruss { flex: 1 1 260px; min-width: 0; }
.dash-gruss h1 { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; letter-spacing: -.01em; }
.dash-gruss p { margin: 0; }
.dash-suche { flex: 1 1 280px; position: relative; max-width: 460px; }
.dash-suche input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 21px; border: 1px solid var(--linie); background: var(--hg); color: var(--text); font: inherit; }
.dash-suche input:focus { outline: none; border-color: var(--akzent); }
.dash-suche .sym { position: absolute; left: 13px; top: 11px; width: 20px; height: 20px; color: var(--text2); pointer-events: none; }
.dash-hallo .knopfreihe { margin: 0; flex-wrap: wrap; }
.dash-zahlen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.dash-zahl { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 112px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); text-decoration: none; }
a.dash-zahl:hover { border-color: color-mix(in srgb, var(--akzent) 55%, var(--linie)); }
.dash-zahl > .sym { width: 26px; height: 26px; margin-bottom: 6px; color: var(--akzent); }
.dash-zahl > b { font-size: 28px; font-weight: 650; line-height: 1.1; }
.dash-zahl > span { color: var(--text2); font-size: 13px; }
.dash-zahl.speicher { flex-direction: row; align-items: center; }
.dash-ring { display: flex; align-items: center; gap: 14px; }
.dash-ring svg { width: 78px; height: 78px; transform: rotate(-90deg); flex: none; }
.dash-ring circle { fill: none; stroke-width: 12; }
.dash-ring .spur { stroke: var(--flaeche2); }
.dash-ring .wert { stroke: var(--akzent); stroke-linecap: round; }
.dash-ring.voll .wert { stroke: var(--gefahr); }
.dash-ring > div { display: flex; flex-direction: column; min-width: 0; }
.dash-ring b { font-size: 24px; font-weight: 650; }
.dash-ring span { color: var(--text2); font-size: 13px; }
.dash-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.dash-raster > .karte { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.dash-raster > .karte > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.dash-zuletzt { grid-column: span 2; grid-row: span 2; }
.dash-programme { grid-column: span 2; }
.dash-liste { display: flex; flex-direction: column; gap: 2px; }
.dash-zeile { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto 36px; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; cursor: default; -webkit-user-select: none; user-select: none; }
.dash-zeile:hover { background: var(--flaeche2); }
.dash-zeile.gewaehlt { background: var(--auswahl); }
.dash-zeile:focus-visible { outline: 2px solid var(--akzent); }
.dash-bild { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--flaeche2); }
.dash-bild img { width: 100%; height: 100%; object-fit: cover; }
.dash-bild .sym { width: 26px; height: 26px; }
.dash-name { display: flex; flex-direction: column; min-width: 0; }
.dash-name b, .dash-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dash-wann, .dash-groesse { white-space: nowrap; text-align: right; }
.dash-groesse { min-width: 64px; }
.dash-stapel { display: flex; height: 16px; border-radius: 8px; overflow: hidden; gap: 2px; margin: 4px 0 14px; background: var(--flaeche2); }
.dash-stapel i { display: block; height: 100%; }
.dash-legende { display: flex; flex-direction: column; gap: 8px; }
.dash-legende > div { display: grid; grid-template-columns: 10px 20px 1fr auto 72px; align-items: center; gap: 10px; font-size: 14px; }
.dash-legende > div > i { width: 10px; height: 10px; border-radius: 3px; }
.dash-legende .sym { width: 18px; height: 18px; }
.dash-legende b { font-weight: 500; }
.dash-legende > div > span:last-child { text-align: right; }
.dash-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.dash-kachel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 1 / .9; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--linie); background: var(--flaeche2); color: var(--text); text-decoration: none; text-align: center; position: relative; }
.dash-kachel:hover { border-color: var(--akzent); box-shadow: var(--leuchten); transform: translateY(-1px); }
.dash-kachel img, .dash-kachel > .sym { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; }
.dash-kachel b { font-weight: 550; font-size: 14px; }
.dash-kachel .chip { position: absolute; top: 6px; right: 6px; font-size: 11px; }
.dash-meldung { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.dash-meldung:hover { background: var(--flaeche2); }
.dash-meldung.neu { background: color-mix(in srgb, var(--akzent) 10%, transparent); }
.dash-meldung > span { display: flex; flex-direction: column; min-width: 0; }
.dash-meldung > span > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-meldung b { font-weight: 550; }
.dash-meldung .sym { width: 20px; height: 20px; }
.dash-lw { border: 0; background: transparent; padding: 8px; }
.dash-lw:hover { background: var(--flaeche2); }
.dash-lw .lw-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dash-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.gross { padding: 6px 12px; font-size: 14px; text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.chip.gross .sym { width: 18px; height: 18px; }
.dash-raster .leerhinweis { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px 8px; }
.dash-raster > .karte > .knopfreihe:last-child { margin-top: auto; padding-top: 12px; }
@media (max-width: 1250px) { .dash-zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash-zahl.speicher { grid-column: span 3; } .dash-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-zuletzt { grid-row: auto; } }
@media (max-width: 760px) {
	.dash-hallo { padding: 16px; }
	.dash-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-zahl.speicher { grid-column: span 2; } .dash-zahl { min-height: 92px; padding: 12px 14px; } .dash-zahl > b { font-size: 22px; }
	.dash-raster { grid-template-columns: 1fr; } .dash-zuletzt, .dash-programme { grid-column: auto; }
	.dash-zeile { grid-template-columns: 40px minmax(0, 1fr) auto; } .dash-groesse, .dash-zeile .symbolknopf { display: none; }
	.dash-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dash-hallo .knopfreihe .knopf span { display: none; }
}

.dash-raster { grid-auto-flow: dense; }
.dash-zuletzt .dash-liste { flex: 1; }
@media (min-width: 1251px) { .dash-favoriten { grid-column: span 2; } }
@media (min-width: 761px) and (max-width: 1250px) { .dash-favoriten { grid-column: span 2; } }
.infotabelle dd .chip { vertical-align: middle; }

/* Lizenzseite (Gordon 29.11.): höchstens 4 Karten nebeneinander, breiter und flacher, Buttons in einer Zeile mit Luft */
.karten.lizenzkarten { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; grid-auto-rows: auto; }
@media (max-width: 1650px) { .karten.lizenzkarten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .karten.lizenzkarten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .karten.lizenzkarten { grid-template-columns: 1fr; } }
.lizenzkarten > .karte { padding: 16px 18px; }
.lizenzkarten .lk-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lizenzkarten .lk-kopf h3 { margin: 0; }
.lizenzkarten .karte > p { margin: 8px 0; }
.lizenzkarten .lk-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.lizenzkarten .lk-token { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--flaeche2); border: 1px solid var(--linie); }
.lizenzkarten .lk-token .mono { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.lizenzkarten .lk-knoepfe { gap: 10px; margin: 14px 0 2px; }
.lizenzkarten .lk-knoepfe > .knopf { padding: 5px 10px; }
.lizenzkarten .lk-knoepfe > * { flex: 1 1 0; justify-content: center; min-width: max-content; }

/* Menüleiste ausblenden / Vollbild (29.11.) */
body.leiste-weg #kopf { position: fixed; left: 0; right: 0; top: 0; transform: translateY(-105%); transition: transform .22s ease; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
body.leiste-weg.kopf-kurz #kopf { transform: none; }
#kopfFuehler { position: fixed; left: 0; right: 0; top: 0; height: 8px; z-index: 39; }
#leisteHer { position: fixed; top: 10px; right: 14px; z-index: 38; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 12px;
	background: var(--flaeche); color: var(--text); border: 1px solid var(--linie); box-shadow: 0 6px 22px rgba(0,0,0,.35); font: inherit; font-weight: 600; cursor: pointer; opacity: .92; }
#leisteHer:hover { opacity: 1; border-color: var(--akzent); }
#leisteHer[hidden], #kopfFuehler[hidden] { display: none; }
#leisteHer .sym { width: 22px; height: 22px; }
body.leiste-weg #inhalt { padding-top: 64px; }
body.leiste-weg .modulrahmen { height: 100vh; }

/* Datei-Dialog für Module (3.4c) */
.dd-wege { display: flex; gap: 10px; margin-bottom: 12px; }
.dd-liste { max-height: 46vh; overflow: auto; border: 1px solid var(--linie); border-radius: 10px; }
.dd-liste .zeile { cursor: pointer; }
.dd-liste .zeile.gewaehlt { background: var(--auswahl); }

/* Lizenzkarten kompakt (Gordon 29.11. 15:18): halbe Höhe, Reihenfolge Eintragen, Kaufen, Installieren */
.karten.gleich.lizenzkarten { grid-auto-rows: auto; gap: 14px; }
.lizenzkarten > .karte { padding: 12px 14px; gap: 0; }
.lizenzkarten .lk-kopf h3 { font-size: 1rem; }
.lizenzkarten .karte > p { margin: 4px 0; }
.lizenzkarten .karte > p.leise.klein { line-height: 1.35; }
.lizenzkarten .lk-status { margin: 6px 0 4px; gap: 6px; }
.lizenzkarten .lk-token { margin: 6px 0 2px; padding: 4px 4px 4px 10px; }
.lizenzkarten .lk-knoepfe { margin: 8px 0 0; gap: 8px; }
.lizenzkarten .lk-knoepfe:empty { display: none; }

/* Lizenzkarten 29.11. abends: alle gleich hoch, Buttons unten in festen Dritteln (ein einzelner Button wird nicht riesig) */
.karten.gleich.lizenzkarten { grid-auto-rows: 1fr; }
.lizenzkarten > .karte { display: flex; flex-direction: column; }
.lizenzkarten .lk-knoepfe { margin-top: auto; padding-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lizenzkarten .lk-knoepfe > * { min-width: 0; width: 100%; white-space: nowrap; justify-content: center; }
.lizenzkarten .lk-inhaber { margin: 4px 0 0; font-size: .9rem; }
.lizenzkarten.karten.gleich > .karte > p:last-child { margin-top: 4px; }

/* Datei-Feld im Design (29.11.) */
.dateifeld { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1.5px dashed var(--linie); border-radius: 12px; background: var(--flaeche2); transition: border-color .15s, background .15s; }
.dateifeld.ueber, .dateifeld.gewaehlt { border-color: var(--akzent); }
.dateifeld-name { min-width: 0; overflow-wrap: anywhere; }
.dateifeld .dateifeld-roh { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* 0.2.1 (Gordon 29.11.): Schlüssel klein in einer Zeile, alle Lizenzkarten gleich aufgebaut */
.lizenzkarten .lk-token { margin: 4px 0 0; padding: 0; gap: 6px; background: none; border: 0; font-size: 12px; }
.lizenzkarten .lk-token .mono { flex: 0 1 auto; font-size: 12px; opacity: .85; }
.lizenzkarten .lk-token .knopf.nur-symbol { min-height: 26px; width: 26px; padding: 0; }
.lizenzkarten .lk-token .knopf.nur-symbol .sym { width: 15px; height: 15px; }

/* 0.2.3 (Gordon 29.11.): langer Button "Auf x.y.z aktualisieren" nimmt die ganze Zeile, nie abgeschnitten */
.lizenzkarten .lk-knoepfe > .knopf.breit { grid-column: 1 / -1; }
.lizenzkarten .lk-knoepfe > .knopf > span { overflow: visible; text-overflow: clip; }
/* 0.2.4 (Gordon 29.11.): Buttons der Lizenzkarten nie abschneiden. Statt fester 3 Spalten umbrechen, jeder Button mindestens so breit wie sein Text. */
.lizenzkarten .lk-knoepfe { display: flex; flex-wrap: wrap; }
.lizenzkarten .lk-knoepfe > * { flex: 1 1 0; min-width: max-content; width: auto; }
.lizenzkarten .lk-knoepfe > .knopf.breit { flex-basis: 100%; }

/* 0.2.5 (Gordon 29.11.): Datei-Dialog der Cloud aufgeräumt: Zeilen volle Breite, Symbol direkt vor dem Namen, kein Umbruch im Namen, Spalten Größe und Datum, Brotkrumen-Pfad */
.dd-pfad { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin: 0 0 8px; min-height: 34px; }
.dd-pfad .dd-krume { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; padding: 5px 9px; border: 0; border-radius: 8px; background: none; color: var(--text2); font: inherit; font-size: 14px; cursor: pointer; }
.dd-pfad .dd-krume > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-pfad .dd-krume svg { width: 17px; height: 17px; flex: 0 0 auto; }
.dd-pfad .dd-krume:hover { background: var(--flaeche2); color: var(--text); }
.dd-pfad .dd-krume.aktiv { color: var(--text); font-weight: 600; }
.dd-pfad .dd-trenner { color: var(--text2); opacity: .7; padding: 0 1px; }
.dd-liste { max-height: 46vh; overflow: auto; border: 1px solid var(--linie); border-radius: 10px; padding: 4px; }
.dd-liste .dd-kopf, .dd-liste .dd-zeile { display: grid; grid-template-columns: 22px minmax(0, 1fr) 100px 140px; align-items: center; column-gap: 10px; padding: 0 10px; text-align: left; }
.dd-liste .dd-kopf { min-height: 30px; font-size: 12px; color: var(--text2); border-bottom: 1px solid var(--linie); margin-bottom: 4px; position: sticky; top: -4px; background: var(--flaeche); z-index: 1; }
.dd-liste .dd-zeile { min-height: 38px; border-radius: 8px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.dd-liste .dd-zeile:hover { background: var(--flaeche2); }
.dd-liste .dd-zeile.gewaehlt { background: var(--auswahl); }
.dd-liste .dd-zeile > svg { width: 20px; height: 20px; color: var(--akzent); justify-self: start; }
.dd-liste .dd-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.dd-liste .dd-gr, .dd-liste .dd-dat { font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-liste .dd-gr, .dd-liste .dd-kopf > span:nth-child(3) { text-align: right; }
.dd-liste .dd-leer { padding: 12px; margin: 0; }
@media (max-width: 600px) { .dd-liste .dd-kopf, .dd-liste .dd-zeile { grid-template-columns: 22px minmax(0, 1fr) 80px; } .dd-liste .dd-dat, .dd-liste .dd-kopf > span:nth-child(4) { display: none; } }

/* 0.2.7 (Gordon 29.11.): Symbol-Buttons des Moduls ohne Text neben dem Modulnamen, Name als Tooltip */
.mod-symbole { display: inline-flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mod-symbole::-webkit-scrollbar { display: none; }
.mod-symbole .mod-sym { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--text2); cursor: pointer; transition: background .15s, color .15s; }
.mod-symbole .mod-sym svg { width: 20px; height: 20px; }
.mod-symbole .mod-sym:hover { background: var(--flaeche2); color: var(--text); }
.mod-symbole .mod-sym.aktiv { color: var(--akzent); background: var(--auswahl); border-color: color-mix(in srgb, var(--akzent) 45%, transparent); }
.mod-symbole .mod-sym:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
@media (max-width: 760px) { .mod-symbole .mod-sym { width: 32px; height: 32px; } }
/* 0.2.7: Mit Modul-Symbolen bleibt die Cloud-Leiste am PC eine Zeile (Suche wird schmaler), am Handy stehen die Symbole in einer eigenen schmalen Zeile darunter */
body.modulansicht #kopf { flex-wrap: nowrap; }
body.modulansicht .kopf-rechts { flex: 1 1 0; min-width: 0; justify-content: flex-end; flex-wrap: nowrap; }
body.modulansicht .mod-rechts { min-width: 0; flex: 0 1 auto; }
body.modulansicht .mod-rechts .suche { flex: 1 1 220px; min-width: 110px; }
body.modulansicht .mod-symbole { flex: 0 0 auto; }
@media (max-width: 1100px) { body.modulansicht #modHilfe > span { display: none; } body.modulansicht #modHilfe { padding: 4px 9px; } }
@media (max-width: 760px) {
	body.modulansicht #kopf:has(.mod-symbole) { flex-wrap: wrap; row-gap: 2px; padding-bottom: 4px; }
	body.modulansicht .mod-symbole { order: 99; flex: 1 0 100%; justify-content: space-around; border-top: 1px solid var(--linie); padding-top: 3px; }
	body.modulansicht .mod-rechts .suche { min-width: 44px; }
}
body.modulansicht .kopf-rechts > :not(.mod-rechts), body.modulansicht .mod-rechts > .knopf { flex: none; white-space: nowrap; }
body.modulansicht .mod-titel, body.modulansicht .kopf-links { flex: none; }
/* Handy mit Modul-Symbolen: Hilfe und Vollbild stehen im Cloud-Menü bzw. Benutzerbild-Menü, oben nur Platz für Suche, Glocke, Benutzer */
@media (max-width: 760px) { body.modulansicht #kopf:has(.mod-symbole) #modHilfe, body.modulansicht #kopf:has(.mod-symbole) #vollbildKnopf { display: none; } }
