rinkplanner/hub/web/assets/hub.css
torsten 9819311403 feat: Website und Hub zweisprachig (Deutsch/Englisch)
Website (rinkplanner.programmschmiede.de) liegt jetzt im Repo unter web/:
Sprachweiche nach Accept-Language (der User-Agent enthält keine Sprache),
/de/ und /en/ als eigene URLs mit hreflang, Cookie für die manuelle Wahl,
Texte in web/i18n.php, Markup in web/template.php. Deployment über
tools/deploy_web.sh (--sync, --check, --all); /index.html leitet weiter.

Hub: optionale englische Oberfläche über den DE/EN-Umschalter, Cookie
RHUB_LANG, Route /language. Alle Texte (Views, Meldungen, Validierung,
API-messages) stehen in hub/app/i18n_strings.php und laufen über t();
Datum und Zahlen folgen der Sprache. Die API behält ihre code-Felder und
antwortet ohne Cookie weiter deutsch.

deploy_hub.sh --check prüft jetzt Schlüsselparität und fehlende t()-Schlüssel.
Doku: docs/website.md neu, docs/hub.md und AGENTS.md ergänzt.
2026-11-12 22:38:32 +01:00

786 lines
14 KiB
CSS

:root {
--ink: #050d19;
--navy: #071a30;
--card: rgba(11, 32, 54, 0.78);
--ice: #c9f0ff;
--frost: #eefaff;
--sky: #7dd3fc;
--blue: #38bdf8;
--deep-blue: #185a86;
--gold: #f3d7a3;
--text: #f4fbff;
--muted: rgba(224, 244, 255, 0.66);
--line: rgba(190, 230, 255, 0.17);
--danger: #ff9aa8;
--success: #8ee6b0;
--radius: 16px;
--shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
color-scheme: dark;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
min-height: 100%;
}
body {
background:
radial-gradient(1100px 600px at 15% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
radial-gradient(900px 500px at 110% 10%, rgba(24, 90, 134, 0.22), transparent 55%),
var(--ink);
color: var(--text);
font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
line-height: 1.55;
}
a {
color: var(--sky);
text-decoration: none;
}
a:hover,
a:focus {
color: var(--ice);
text-decoration: underline;
}
h1,
h2,
h3 {
line-height: 1.2;
margin: 0 0 0.5rem;
}
h1 {
font-size: clamp(1.7rem, 3vw, 2.4rem);
}
h2 {
font-size: 1.15rem;
color: var(--ice);
}
p {
margin: 0 0 0.75rem;
}
code {
background: rgba(5, 13, 25, 0.55);
border: 1px solid var(--line);
border-radius: 8px;
padding: 0.12rem 0.4rem;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 0.9em;
word-break: break-all;
}
.topbar {
align-items: center;
backdrop-filter: blur(14px);
background: rgba(5, 13, 25, 0.72);
border-bottom: 1px solid var(--line);
display: flex;
gap: 1rem;
justify-content: space-between;
padding: 0.9rem clamp(1rem, 4vw, 3rem);
position: sticky;
top: 0;
z-index: 10;
}
.brand {
align-items: center;
color: var(--frost);
display: flex;
font-size: 1.05rem;
gap: 0.65rem;
letter-spacing: 0.02em;
}
.brand:hover {
text-decoration: none;
}
.brand strong {
color: var(--sky);
font-weight: 600;
}
.brand-mark {
background: linear-gradient(135deg, var(--blue), var(--deep-blue));
border-radius: 10px;
box-shadow: 0 0 0 1px var(--line), 0 8px 18px rgba(56, 189, 248, 0.25);
flex: 0 0 auto;
height: 2rem;
object-fit: cover;
width: 2rem;
}
.nav {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 1rem;
}
.nav a {
color: var(--muted);
font-size: 0.95rem;
}
.nav a:hover {
color: var(--ice);
}
.nav-admin {
color: var(--gold) !important;
}
.lang-switch {
align-items: center;
background: rgba(11, 32, 54, 0.7);
border: 1px solid var(--line);
border-radius: 999px;
display: inline-flex;
gap: 2px;
padding: 2px;
}
.lang-switch a {
border-radius: 999px;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.06em;
padding: 0.15rem 0.55rem;
text-transform: uppercase;
}
.lang-switch a[aria-current="true"] {
background: linear-gradient(135deg, var(--blue), var(--deep-blue));
color: var(--ink);
}
.page {
margin: 0 auto;
max-width: 1180px;
padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 4rem;
}
.footer {
border-top: 1px solid var(--line);
color: var(--muted);
display: flex;
flex-wrap: wrap;
font-size: 0.85rem;
gap: 1rem;
justify-content: space-between;
margin: 0 auto;
max-width: 1180px;
padding: 1.5rem clamp(1rem, 4vw, 3rem) 2.5rem;
}
.inline {
display: inline-flex;
margin: 0;
}
.link-button {
background: none;
border: 0;
color: var(--muted);
cursor: pointer;
font: inherit;
padding: 0;
text-decoration: underline;
}
.link-button:hover {
color: var(--ice);
}
.link-button.danger {
color: var(--danger);
}
.hub-hero {
align-items: center;
background:
radial-gradient(120% 160% at 0% 0%, rgba(56, 189, 248, 0.2), transparent 60%),
rgba(7, 26, 48, 0.6);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
display: flex;
flex-wrap: wrap;
gap: clamp(1rem, 3vw, 1.8rem);
margin-bottom: 1.6rem;
padding: clamp(1.1rem, 3vw, 1.7rem);
}
.hub-hero-logo {
border-radius: 20px;
box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38), 0 0 0 1px var(--line);
flex: 0 0 auto;
height: clamp(96px, 15vw, 132px);
width: clamp(96px, 15vw, 132px);
}
.hub-hero-text {
flex: 1 1 320px;
min-width: 0;
}
.hub-hero-text p {
margin: 0;
}
.hub-hero-text .eyebrow {
margin-bottom: 0.35rem;
}
.hub-hero-text .hub-hero-title {
color: var(--frost);
font-size: clamp(1.15rem, 2.2vw, 1.5rem);
font-weight: 600;
line-height: 1.25;
margin: 0 0 0.35rem;
}
.hub-hero-text .hub-hero-sub {
color: var(--muted);
max-width: 56ch;
}
.page-head {
align-items: flex-start;
display: flex;
flex-wrap: wrap;
gap: 1rem;
justify-content: space-between;
margin-bottom: 1.5rem;
}
.eyebrow {
color: var(--muted);
font-size: 0.8rem;
letter-spacing: 0.08em;
margin-bottom: 0.3rem;
text-transform: uppercase;
}
.muted {
color: var(--muted);
}
.small {
font-size: 0.85rem;
}
.small code {
font-size: 0.8em;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
}
.button,
button {
align-items: center;
background: rgba(125, 211, 252, 0.1);
border: 1px solid var(--line);
border-radius: 999px;
color: var(--text);
cursor: pointer;
display: inline-flex;
font: inherit;
gap: 0.4rem;
justify-content: center;
padding: 0.55rem 1rem;
text-decoration: none;
transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.button:hover,
button:hover {
background: rgba(125, 211, 252, 0.18);
border-color: rgba(125, 211, 252, 0.4);
text-decoration: none;
transform: translateY(-1px);
}
.button.primary,
button.primary {
background: linear-gradient(135deg, var(--sky), var(--blue));
border-color: transparent;
color: #04121f;
font-weight: 700;
}
.button.small,
button.small {
font-size: 0.85rem;
padding: 0.35rem 0.75rem;
}
.button.danger-ghost,
button.danger-ghost {
background: rgba(255, 122, 144, 0.08);
border-color: rgba(255, 154, 168, 0.3);
color: var(--danger);
}
.auth-card {
background: var(--card);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
margin: clamp(1rem, 5vw, 3rem) auto;
max-width: 460px;
padding: clamp(1.4rem, 4vw, 2.4rem);
}
.auth-card.wide {
max-width: 820px;
}
.stack {
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: 1.2rem;
}
.stack-tight {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
label {
display: flex;
flex-direction: column;
font-size: 0.92rem;
gap: 0.35rem;
}
label.check {
align-items: flex-start;
flex-direction: row;
gap: 0.55rem;
}
label.check input {
margin-top: 0.3rem;
width: auto;
}
input,
textarea,
select {
background: rgba(5, 13, 25, 0.63);
border: 1px solid var(--line);
border-radius: 10px;
color: var(--text);
font: inherit;
padding: 0.6rem 0.7rem;
width: 100%;
}
input[type="checkbox"] {
accent-color: var(--blue);
width: auto;
}
input:focus,
textarea:focus,
select:focus {
border-color: var(--sky);
box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.18);
outline: none;
}
textarea {
resize: vertical;
}
.hint {
color: var(--muted);
font-size: 0.8rem;
}
.grid-2,
.grid-3 {
display: grid;
gap: 1rem;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.flashes {
display: flex;
flex-direction: column;
gap: 0.6rem;
margin-bottom: 1.2rem;
}
.flash {
border: 1px solid var(--line);
border-radius: 12px;
padding: 0.75rem 1rem;
}
.flash-success {
background: rgba(142, 230, 176, 0.1);
border-color: rgba(142, 230, 176, 0.35);
}
.flash-error {
background: rgba(255, 154, 168, 0.1);
border-color: rgba(255, 154, 168, 0.4);
}
.flash-info {
background: rgba(125, 211, 252, 0.1);
border-color: rgba(125, 211, 252, 0.35);
}
.flash-secret {
background: rgba(243, 215, 163, 0.1);
border-color: rgba(243, 215, 163, 0.45);
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.flash-secret strong {
color: var(--gold);
}
.flash-secret code {
font-size: 0.95rem;
}
.plain {
margin: 0;
padding-left: 1.1rem;
}
.toolbar {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 1rem;
justify-content: space-between;
margin-bottom: 1.2rem;
}
.search {
display: flex;
flex: 1 1 320px;
gap: 0.5rem;
max-width: 520px;
}
.tabs {
border: 1px solid var(--line);
border-radius: 999px;
display: flex;
overflow: hidden;
}
.tabs a {
color: var(--muted);
padding: 0.45rem 1rem;
}
.tabs a.active {
background: rgba(125, 211, 252, 0.16);
color: var(--ice);
}
.tabs a:hover {
text-decoration: none;
}
.table-wrap {
border: 1px solid var(--line);
border-radius: var(--radius);
overflow-x: auto;
}
table.list {
border-collapse: collapse;
font-size: 0.93rem;
min-width: 720px;
width: 100%;
}
table.list th,
table.list td {
border-bottom: 1px solid var(--line);
padding: 0.7rem 0.85rem;
text-align: left;
vertical-align: top;
}
table.list th {
background: rgba(7, 26, 48, 0.7);
color: var(--muted);
font-size: 0.78rem;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
}
table.list tbody tr:hover {
background: rgba(125, 211, 252, 0.05);
}
table.list tbody tr:last-child td {
border-bottom: 0;
}
table.compact th,
table.compact td {
padding: 0.55rem 0.7rem;
}
.title-link {
color: var(--frost);
font-weight: 600;
}
.badge {
background: rgba(255, 154, 168, 0.14);
border: 1px solid rgba(255, 154, 168, 0.35);
border-radius: 999px;
color: var(--danger);
display: inline-block;
font-size: 0.72rem;
margin-left: 0.35rem;
padding: 0.05rem 0.5rem;
vertical-align: middle;
}
.badge-soft {
background: rgba(125, 211, 252, 0.12);
border-color: rgba(125, 211, 252, 0.3);
color: var(--sky);
}
.status {
border: 1px solid var(--line);
border-radius: 999px;
display: inline-block;
font-size: 0.75rem;
padding: 0.05rem 0.55rem;
}
.status-open,
.status-active {
background: rgba(142, 230, 176, 0.1);
border-color: rgba(142, 230, 176, 0.35);
color: var(--success);
}
.status-used {
background: rgba(125, 211, 252, 0.1);
border-color: rgba(125, 211, 252, 0.35);
color: var(--sky);
}
.status-expired,
.status-revoked {
background: rgba(255, 154, 168, 0.1);
border-color: rgba(255, 154, 168, 0.3);
color: var(--danger);
}
.empty {
background: rgba(7, 26, 48, 0.45);
border: 1px dashed var(--line);
border-radius: var(--radius);
padding: 2rem;
text-align: center;
}
.pagination {
align-items: center;
color: var(--muted);
display: flex;
gap: 1rem;
justify-content: center;
margin-top: 1.2rem;
}
.detail .panel,
.panel {
background: var(--card);
border: 1px solid var(--line);
border-radius: var(--radius);
margin-bottom: 1.2rem;
padding: 1.2rem 1.3rem;
}
.owner-bar {
align-items: center;
background: rgba(125, 211, 252, 0.07);
border: 1px solid rgba(125, 211, 252, 0.22);
border-radius: 12px;
display: flex;
flex-wrap: wrap;
gap: 0.7rem;
margin-bottom: 1.2rem;
padding: 0.7rem 0.9rem;
}
.owner-bar .muted {
margin-right: auto;
}
.preline {
white-space: pre-line;
}
.facts {
display: grid;
gap: 0.9rem 1.2rem;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
margin: 0;
}
.facts div {
min-width: 0;
}
.facts dt {
color: var(--muted);
font-size: 0.78rem;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.facts dd {
margin: 0.1rem 0 0;
overflow-wrap: anywhere;
}
.hash {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
margin-bottom: 0.5rem;
}
.hash span {
color: var(--muted);
min-width: 3rem;
}
audio {
width: 100%;
}
.columns {
display: grid;
gap: 1.2rem;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.inline-form {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
}
.inline-form input {
flex: 1;
}
.admin-tabs {
border-bottom: 1px solid var(--line);
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin-bottom: 1.2rem;
}
.admin-tabs a {
border-bottom: 2px solid transparent;
color: var(--muted);
padding: 0.55rem 0.9rem;
}
.admin-tabs a.active {
border-bottom-color: var(--sky);
color: var(--ice);
}
.admin-tabs a:hover {
color: var(--ice);
text-decoration: none;
}
.row-actions {
align-items: flex-start;
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.danger-zone summary {
color: var(--danger);
cursor: pointer;
font-size: 0.85rem;
}
.danger-zone[open] {
background: rgba(255, 154, 168, 0.06);
border: 1px solid rgba(255, 154, 168, 0.25);
border-radius: 10px;
padding: 0.5rem;
}
.footer a {
color: var(--muted);
}
@media (max-width: 760px) {
.grid-2,
.grid-3,
.columns {
grid-template-columns: 1fr;
}
.topbar {
align-items: flex-start;
flex-direction: column;
}
.page-head {
flex-direction: column;
}
.hub-hero {
text-align: center;
}
.hub-hero-logo {
margin: 0 auto;
}
.actions {
width: 100%;
}
}