/* muenzlein Tools – gemeinsames Design aller Tools im Katalog (index.html, qr-code, passwort-generator, losung).
   Angelehnt an die Startseite (/files/site.css): Nachtblau, Muenzlein-Gelb, Exo 2 – aber ruhig: keine treibenden
   Flächen, keine Laufbänder, nur dezente Übergänge. Verhalten in /tools/assets/tools.js. */

@font-face { font-family: 'Exo 2'; font-weight: 400; font-display: swap; src: url('/fonts/exo-2-v21-cyrillic_cyrillic-ext_latin_latin-ext_vietnamese-regular.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-weight: 500; font-display: swap; src: url('/fonts/exo-2-v21-cyrillic_cyrillic-ext_latin_latin-ext_vietnamese-500.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-weight: 600; font-display: swap; src: url('/fonts/exo-2-v21-cyrillic_cyrillic-ext_latin_latin-ext_vietnamese-600.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-weight: 700; font-display: swap; src: url('/fonts/exo-2-v21-cyrillic_cyrillic-ext_latin_latin-ext_vietnamese-700.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-weight: 800; font-display: swap; src: url('/fonts/exo-2-v21-cyrillic_cyrillic-ext_latin_latin-ext_vietnamese-800.woff2') format('woff2'); }

:root {
    --grund: #070b1f;
    --flaeche: rgba(255, 255, 255, .045);
    --flaeche-2: rgba(255, 255, 255, .08);
    --rand: rgba(255, 255, 255, .09);
    --rand-2: rgba(255, 255, 255, .16);
    --text: #eef1fb;
    --text-2: #aab3d3;
    --text-3: #727ca0;
    --gelb: #ffc61a;
    --gruen: #34d399;
    --rot: #fb7185;
    --kurve: cubic-bezier(.2, .8, .2, 1);
    --feder: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); font: 400 16.5px/1.6 'Exo 2', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased;
    background: radial-gradient(1100px 600px at 15% -10%, rgba(61, 90, 254, .22), transparent 65%), radial-gradient(900px 500px at 105% 10%, rgba(139, 92, 246, .14), transparent 65%), var(--grund); background-attachment: fixed; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.5px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
a { color: var(--gelb); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: #fff; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; padding: .1em .45em; border-radius: 6px; background: var(--flaeche-2); color: #ffe08a; word-break: break-all; }
::selection { background: var(--gelb); color: #000; }
:focus-visible { outline: 2px solid var(--gelb); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ---------- Kopf ---------- */
.t-kopf { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rand); background: rgba(7, 11, 31, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.t-kopf-in { display: flex; align-items: center; gap: 1rem; max-width: 1100px; margin: 0 auto; padding: .8rem clamp(16px, 4vw, 32px); }
.t-marke { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 800; }
.t-marke img { width: 112px; height: auto; display: block; }
.t-marke span { padding-left: .7rem; border-left: 1px solid var(--rand-2); color: var(--text-2); font-weight: 600; }
.t-kopf nav { margin-left: auto; display: flex; gap: .3rem; }
.t-kopf nav a { padding: .45rem .8rem; border-radius: 99px; color: var(--text-2); font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.t-kopf nav a:hover, .t-kopf nav a[aria-current] { background: var(--flaeche-2); color: #fff; }
@media (max-width: 560px) { .t-marke span { display: none; } .t-kopf nav a.t-nur-pc { display: none; } }

/* ---------- Inhalt ---------- */
.t-inhalt { flex: 1; width: min(100% - 2 * clamp(16px, 4vw, 32px), 1100px); margin: 0 auto; padding: clamp(28px, 6vw, 56px) 0 64px; }
.t-schmal { max-width: 820px; }
.t-zurueck { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.2rem; color: var(--text-3); font-weight: 600; font-size: .92rem; }
.t-zurueck:hover { color: #fff; }
.t-zurueck i { transition: transform .3s var(--feder); }
.t-zurueck:hover i { transform: translateX(-3px); }
.t-titel { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.t-titel h1 { margin: 0; }
.t-symbol { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 198, 26, .12); color: var(--gelb); font-size: 1.45rem; box-shadow: inset 0 0 0 1px rgba(255, 198, 26, .25); }
.t-unter { max-width: 640px; color: var(--text-2); font-size: 1.08rem; margin-bottom: 2rem; }
.ueber { margin: 0 0 .7rem; color: var(--gelb); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Karten ---------- */
.t-karte { position: relative; padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)); border: 1px solid var(--rand); }
.t-karte + .t-karte { margin-top: 16px; }
.t-raster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; align-items: start; }
.t-raster > .t-karte + .t-karte, .t-katalog > .t-karte + .t-karte { margin-top: 0; }
@media (max-width: 860px) { .t-raster { grid-template-columns: minmax(0, 1fr); } }
.t-klebt { position: sticky; top: 90px; }
@media (max-width: 860px) { .t-klebt { position: static; } }

/* ---------- Katalog ---------- */
.t-katalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
a.t-tool { display: flex; flex-direction: column; gap: .5rem; color: inherit; transition: transform .45s var(--kurve), border-color .3s, background .3s; }
a.t-tool:hover { transform: translateY(-4px); border-color: rgba(255, 198, 26, .4); background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03)); color: inherit; }
a.t-tool .t-symbol { margin-bottom: .6rem; transition: transform .45s var(--feder); }
a.t-tool:hover .t-symbol { transform: rotate(-8deg) scale(1.06); }
a.t-tool h2 { margin: 0; }
a.t-tool p { margin: 0; color: var(--text-2); }
.t-tool-fuss { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .8rem; color: var(--gelb); font-weight: 700; font-size: .93rem; }
.t-tool-fuss i { transition: transform .35s var(--feder); }
a.t-tool:hover .t-tool-fuss i { transform: translateX(4px); }
.t-merkmale { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.t-merkmale span { padding: .15rem .6rem; border-radius: 99px; background: var(--flaeche-2); color: var(--text-2); font-size: .78rem; font-weight: 600; }

/* ---------- Formulare ---------- */
.t-feld { display: grid; gap: .35rem; margin-bottom: 1rem; }
.t-feld > span { color: var(--text-2); font-weight: 600; font-size: .9rem; }
.t-feld small { color: var(--text-3); font-size: .82rem; }
.t-feld input[type=text], .t-feld input[type=url], .t-feld input[type=email], .t-feld input[type=tel], .t-feld input[type=password], .t-feld input[type=number], .t-feld textarea, .t-feld select {
    width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--rand-2); background: rgba(0, 0, 0, .25); color: #fff; font: 500 16px 'Exo 2', sans-serif; transition: border-color .2s, box-shadow .2s; }
.t-feld textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.t-feld select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab3d3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; padding-right: 2.4rem; }
.t-feld select option { background: #10163d; }
.t-feld input::placeholder, .t-feld textarea::placeholder { color: var(--text-3); }
.t-feld input:focus, .t-feld textarea:focus, .t-feld select:focus { outline: 0; border-color: var(--gelb); box-shadow: 0 0 0 4px rgba(255, 198, 26, .15); }
.t-feld.fehler input, .t-feld.fehler textarea { border-color: var(--rot); }
.t-feld .t-meldung { color: #ffc2cc; font-size: .84rem; }
.t-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
@media (max-width: 520px) { .t-zwei { grid-template-columns: 1fr; } }

/* Reiter (Segmente) */
.t-reiter { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.3rem; }
.t-reiter button { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border: 1px solid var(--rand); border-radius: 99px; background: var(--flaeche); color: var(--text-2); font: 600 14.5px 'Exo 2', sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.t-reiter button:hover { color: #fff; border-color: var(--rand-2); }
.t-reiter button[aria-pressed="true"] { background: var(--gelb); border-color: var(--gelb); color: #111; }

/* Schalter-Chips (an/aus) */
.t-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.t-chip { position: relative; cursor: pointer; }
.t-chip input { position: absolute; opacity: 0; pointer-events: none; }
.t-chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 12px; border: 1px solid var(--rand-2); background: var(--flaeche); color: var(--text-2); font: 600 14.5px ui-monospace, Menlo, monospace; transition: all .2s; }
.t-chip input:checked + span { background: rgba(255, 198, 26, .14); border-color: var(--gelb); color: #fff; }
.t-chip input:checked + span::before { content: '✓'; color: var(--gelb); font-family: 'Exo 2'; }
.t-chip input:focus-visible + span { outline: 2px solid var(--gelb); outline-offset: 2px; }

/* Schieberegler */
.t-regler { width: 100%; height: 30px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; --anteil: 50%; }
.t-regler::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--gelb) var(--anteil), rgba(255, 255, 255, .12) var(--anteil)); }
.t-regler::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--gelb) var(--anteil), rgba(255, 255, 255, .12) var(--anteil)); }
.t-regler::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 5px solid var(--gelb); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.t-regler::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--gelb); }

/* Knöpfe */
.t-knopf { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.25rem; border: 0; border-radius: 99px; background: var(--gelb); color: #111; font: 700 15.5px 'Exo 2', sans-serif; cursor: pointer; text-decoration: none; transition: transform .3s var(--feder), box-shadow .3s, background .2s; box-shadow: 0 10px 24px -12px rgba(255, 198, 26, .7); }
.t-knopf:hover { color: #000; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(255, 198, 26, .85); }
.t-knopf:active { transform: scale(.97); }
.t-knopf:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.t-knopf.zweit { background: var(--flaeche-2); color: #fff; box-shadow: inset 0 0 0 1px var(--rand-2); }
.t-knopf.zweit:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.t-knopf.rund { width: 44px; height: 44px; padding: 0; }
.t-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; }
.t-knoepfe .t-knopf { flex: 1 1 auto; }

/* Hinweise */
.t-hinweis { display: flex; gap: .8rem; padding: .9rem 1rem; border-radius: 14px; background: rgba(61, 90, 254, .1); border: 1px solid rgba(61, 90, 254, .3); color: var(--text); font-size: .92rem; }
.t-hinweis i { margin-top: .2rem; color: #8fa2ff; }
.t-hinweis p { margin: 0; }
.t-hinweis.warn { background: rgba(255, 198, 26, .08); border-color: rgba(255, 198, 26, .3); }
.t-hinweis.warn i { color: var(--gelb); }
.t-klein { color: var(--text-3); font-size: .85rem; }

/* Kurze Bestätigung („Kopiert!“) */
.t-toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; display: flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 99px; background: #fff; color: #10163d; font-weight: 700; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .4s var(--feder); }
.t-toast.zeigen { opacity: 1; transform: translate(-50%, 0); }
.t-toast i { color: #16a34a; }

/* Erscheinen beim Laden (ruhig) */
.js .t-ein { opacity: 0; transform: translateY(12px); animation: t-ein .6s var(--kurve) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes t-ein { to { opacity: 1; transform: none; } }

/* ---------- Fuß ---------- */
.t-fuss { border-top: 1px solid var(--rand); }
.t-fuss-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; max-width: 1100px; margin: 0 auto; padding: 1.3rem clamp(16px, 4vw, 32px); color: var(--text-3); font-size: .88rem; }
.t-fuss nav { display: flex; gap: 1.2rem; }
.t-fuss a { color: var(--text-2); }
.t-fuss a:hover { color: var(--gelb); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .js .t-ein { opacity: 1; transform: none; } }
