350 lines
6.1 KiB
CSS
350 lines
6.1 KiB
CSS
/* Mobile-first Grundlayout: Tab-Leiste unten auf dem Smartphone,
|
|
Seitenleiste links ab 768px (Laptop). */
|
|
|
|
:root {
|
|
--color-bg: #faf7f2;
|
|
--color-surface: #ffffff;
|
|
--color-border: #e5ddd0;
|
|
--color-text: #3b3026;
|
|
--color-text-muted: #8a7d6b;
|
|
--color-accent: #b5651d;
|
|
--color-accent-soft: #f6e7d7;
|
|
|
|
font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
line-height: 1.5;
|
|
color: var(--color-text);
|
|
background-color: var(--color-bg);
|
|
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100dvh;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
margin: 0 0 0.5rem;
|
|
}
|
|
|
|
a {
|
|
color: var(--color-accent);
|
|
}
|
|
|
|
/* --- Grundgerüst (Smartphone) --- */
|
|
|
|
.app-shell {
|
|
display: grid;
|
|
min-height: 100dvh;
|
|
grid-template-rows: auto 1fr auto;
|
|
grid-template-areas:
|
|
'header'
|
|
'main'
|
|
'nav';
|
|
}
|
|
|
|
.app-header {
|
|
grid-area: header;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1rem;
|
|
background: var(--color-surface);
|
|
border-bottom: 1px solid var(--color-border);
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
|
|
.app-logo {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.app-title {
|
|
font-size: 1.15rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.app-main {
|
|
grid-area: main;
|
|
padding: 1rem;
|
|
max-width: 60rem;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Tab-Leiste unten */
|
|
.app-nav {
|
|
grid-area: nav;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
background: var(--color-surface);
|
|
border-top: 1px solid var(--color-border);
|
|
position: sticky;
|
|
bottom: 0;
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
|
|
.nav-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.15rem;
|
|
padding: 0.5rem 0.75rem;
|
|
flex: 1;
|
|
font-size: 0.7rem;
|
|
text-decoration: none;
|
|
color: var(--color-text-muted);
|
|
min-height: 44px; /* Touch-Ziel */
|
|
}
|
|
|
|
.nav-link--active {
|
|
color: var(--color-accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nav-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
/* --- Laptop / Tablet (ab 768px): Seitenleiste links --- */
|
|
|
|
@media (min-width: 768px) {
|
|
.app-shell {
|
|
grid-template-columns: 14rem 1fr;
|
|
grid-template-rows: auto 1fr;
|
|
grid-template-areas:
|
|
'header header'
|
|
'nav main';
|
|
}
|
|
|
|
.app-nav {
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
gap: 0.25rem;
|
|
border-top: none;
|
|
border-right: 1px solid var(--color-border);
|
|
padding: 1rem 0.5rem;
|
|
position: static;
|
|
}
|
|
|
|
.nav-link {
|
|
flex-direction: row;
|
|
flex: 0 0 auto;
|
|
gap: 0.6rem;
|
|
font-size: 0.95rem;
|
|
padding: 0.6rem 0.75rem;
|
|
border-radius: 0.5rem;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
background: var(--color-accent-soft);
|
|
}
|
|
|
|
.nav-link--active {
|
|
background: var(--color-accent-soft);
|
|
}
|
|
|
|
.app-main {
|
|
padding: 1.5rem 2rem;
|
|
}
|
|
}
|
|
|
|
/* ── Shared UI ───────────────────────────────────────────────── */
|
|
|
|
.muted {
|
|
color: var(--color-text-muted);
|
|
margin: 0.25rem 0;
|
|
}
|
|
|
|
.page-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.4rem;
|
|
min-height: 44px;
|
|
padding: 0.5rem 1rem;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 0.5rem;
|
|
background: var(--color-surface);
|
|
color: var(--color-text);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn:hover:not(:disabled) {
|
|
background: var(--color-accent-soft);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn--primary {
|
|
background: var(--color-accent);
|
|
border-color: var(--color-accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn--primary:hover:not(:disabled) {
|
|
filter: brightness(0.95);
|
|
background: var(--color-accent);
|
|
}
|
|
|
|
.btn--danger {
|
|
border-color: #b54a4a;
|
|
color: #b54a4a;
|
|
}
|
|
|
|
.input,
|
|
select,
|
|
textarea {
|
|
font: inherit;
|
|
padding: 0.5rem 0.6rem;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 0.5rem;
|
|
background: var(--color-surface);
|
|
color: var(--color-text);
|
|
min-height: 44px;
|
|
width: 100%;
|
|
}
|
|
|
|
textarea {
|
|
min-height: 5rem;
|
|
resize: vertical;
|
|
}
|
|
|
|
.alert {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 0.5rem;
|
|
margin: 0.75rem 0;
|
|
}
|
|
|
|
.alert--error {
|
|
background: #fbeaea;
|
|
border: 1px solid #e3b3b3;
|
|
color: #8a2f2f;
|
|
}
|
|
|
|
/* ── Filters ─────────────────────────────────────────────────── */
|
|
|
|
.filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
align-items: flex-end;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.filters .input[type='search'] {
|
|
flex: 1 1 12rem;
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
font-size: 0.85rem;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.field > select,
|
|
.field > .input {
|
|
min-width: 9rem;
|
|
}
|
|
|
|
/* ── Card list (mobile-first); table-like rows on wider screens ── */
|
|
|
|
.card-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.gerbil-card {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
gap: 0.25rem 0.75rem;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 0.6rem;
|
|
background: var(--color-surface);
|
|
text-decoration: none;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.gerbil-card:hover {
|
|
background: var(--color-accent-soft);
|
|
}
|
|
|
|
.gerbil-card__name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.gerbil-card__meta {
|
|
font-size: 0.85rem;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.badge {
|
|
justify-self: end;
|
|
font-size: 0.72rem;
|
|
padding: 0.15rem 0.5rem;
|
|
border-radius: 1rem;
|
|
background: var(--color-accent-soft);
|
|
color: var(--color-accent);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.badge--deceased {
|
|
background: #ececec;
|
|
color: #666;
|
|
}
|
|
|
|
.badge--givenaway {
|
|
background: #e7eef6;
|
|
color: #3a6ea5;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.gerbil-card {
|
|
grid-template-columns: 2fr 1fr 1.5fr 1fr auto;
|
|
grid-auto-flow: column;
|
|
}
|
|
.badge {
|
|
justify-self: start;
|
|
}
|
|
}
|
|
|
|
.pager {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
margin: 1.5rem 0;
|
|
}
|