/* ╔══════════════════════════════════════════════════════════
   ║  rombs.info — minimale Übersicht
   ╚══════════════════════════════════════════════════════════ */

/* ── Inter (lokal gehostet, Latin + Latin-Extended) ── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/Inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/Inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink:        #14181f;
    --ink-soft:   #3a4050;
    --ink-mute:   #6b7283;
    --ink-fade:   #a3a8b5;
    --paper:      #fafaf8;
    --line:       #e8e6e0;
    --line-soft:  #f0eeea;
    --accent:     #14181f;

    --font:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    --max:        880px;
    --gutter:     clamp(1.25rem, 4vw, 2rem);
    --radius:     12px;

    --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--paper); }

/* ── Top bar ── */
.topbar {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.topbar__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.2rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: -0.005em;
}
.topbar__mark {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
}
.topbar__links {
    display: flex;
    gap: 1.5rem;
}
.topbar__links a {
    font-size: 0.85rem;
    color: var(--ink-mute);
    transition: color 0.2s var(--ease);
}
.topbar__links a:hover { color: var(--ink); }

/* ── Page ── */
.page {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(3rem, 8vh, 5rem) var(--gutter) 4rem;
}

/* ── List ── */
.list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.item {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.6rem 1.8rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.item:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px -6px rgba(20, 24, 31, 0.12);
}

.item__logo {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.item__logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

.item__logo--text {
    align-items: center;
}
.kfz-logo {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
}
.kfz-logo em {
    font-style: normal;
    color: #FF6210;
}

.item__body {
    min-width: 0;
}
.item__name {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.item__meta {
    font-size: 0.85rem;
    color: var(--ink-mute);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.item__branch { color: var(--ink-soft); font-weight: 500; }
.item__sep { color: var(--ink-fade); }

.item__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--ink-mute);
    font-weight: 500;
    transition: color 0.25s var(--ease), gap 0.25s var(--ease);
    white-space: nowrap;
}
.item:hover .item__link {
    color: var(--ink);
    gap: 0.55rem;
}

/* ── Note ── */
.note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--ink-fade);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-soft);
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0;
    background: var(--paper);
}
.footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--ink-mute);
}
.footer nav {
    display: flex;
    gap: 1.5rem;
}
.footer nav a {
    color: var(--ink-mute);
    transition: color 0.2s var(--ease);
}
.footer nav a:hover { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 720px) {
    .item {
        grid-template-columns: 140px 1fr;
        gap: 1.2rem;
        padding: 1.2rem;
    }
    .item__logo { height: 60px; }
    .kfz-logo { font-size: 1.5rem; }
    .item__link {
        grid-column: 1 / -1;
        margin-top: 0.4rem;
        padding-top: 0.7rem;
        border-top: 1px solid var(--line-soft);
        justify-content: flex-end;
    }
    .item__name {
        white-space: normal;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .item {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    .item__logo {
        height: 56px;
        justify-content: center;
    }
    .item__logo img,
    .kfz-logo { object-position: center; }
    .item__body { text-align: center; }
    .item__meta { justify-content: center; }
    .item__link { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
