/* Power BI Bridge – Design im Stil von orlandini.de (SiliconForest)
   Luftig-hell, geometrische Sans, ein Cyan-Akzent, Pill-Buttons. */

:root {
    --paper:  #ffffff;
    --accent: #1db6c6;   /* Orlandini-Cyan */
    --accent-dk: #159aa8;
    --ink:    #2b2b2b;    /* starker Text, Nav */
    --head:   #6f6f6f;    /* graue Überschriften */
    --body:   #8a8a8a;    /* Fließtext */
    --line:   #ececec;    /* Haarlinien */
    --soft:   #f7f8f9;    /* zarter Panel-Hintergrund */
    --ok:     #1db6c6;
    --warn:   #e0a52b;
    --bad:    #d2544b;
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 30px; height: 22px; border-radius: 7px;
    background: var(--accent);
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--accent);
}
.brand-text { letter-spacing: .01em; font-size: 1.05rem; }
.brand-text em { font-style: normal; color: var(--accent); }
.header-side { display: flex; align-items: center; gap: 16px; }
.header-tag { color: var(--body); font-size: .82rem; letter-spacing: .04em; }

/* ---- Buttons (Pills) ---- */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: .95rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    margin: 8px 10px 0 0;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; }
.btn-ghost { border: 1px solid #d9d9d9; color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: .85rem; margin-top: 0; }

/* ---- Hero ---- */
.hero { padding: 84px 0 48px; max-width: 760px; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; margin: 0 0 18px; }
.display {
    color: var(--ink);
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -.01em;
    margin: 0 0 22px;
}
.display.sm { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.lead { color: var(--body); font-size: 1.12rem; max-width: 60ch; margin: 0 0 28px; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 40px 0 90px; border-top: 1px solid var(--line); }
.step-no { color: var(--accent); font-weight: 700; font-size: .9rem; letter-spacing: .06em; }
.step h3 { color: var(--ink); font-weight: 600; font-size: 1.15rem; margin: 10px 0 8px; }
.step p { margin: 0; }

/* ---- Intro / crumbs ---- */
.intro { padding: 60px 0 20px; }
.crumbs { padding: 34px 0 6px; color: var(--body); font-size: .9rem; }
.crumbs span { margin: 0 6px; color: #cbcbcb; }

/* ---- Panels & Sektionen ---- */
.panel { padding: 34px 0; border-top: 1px solid var(--line); }
.h-section { color: var(--head); font-weight: 500; font-size: 1.35rem; margin: 0 0 22px; }

/* ---- Karten-Grid (Galerie) ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    background: var(--paper);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 6px 22px rgba(29,182,198,.10); transform: translateY(-2px); }
.card-muted { opacity: .55; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h3 { color: var(--ink); font-weight: 600; font-size: 1.1rem; margin: 0; }
.count { color: var(--body); font-size: .82rem; white-space: nowrap; }
.card-cta { color: var(--accent); font-weight: 500; font-size: .9rem; }

/* ---- Chips (Spalten / Kennzahlen) ---- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0 0 16px; }
.chips li { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: .8rem; color: var(--ink); }
.chips li.more { background: transparent; color: var(--body); border-style: dashed; }
.chips.wide li { font-size: .85rem; }

/* ---- Beziehungen ---- */
.rel-list { list-style: none; padding: 0; margin: 0; }
.rel-list li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .95rem; }
.rel-list li:last-child { border-bottom: 0; }
.rel-list em { font-style: normal; color: var(--body); }
.arrow { color: var(--accent); margin: 0 6px; }
.tag { background: #fbeeee; color: var(--bad); border-radius: 6px; padding: 1px 8px; font-size: .72rem; margin-left: 6px; }

/* ---- Frische ---- */
.freshness { font-size: 1.02rem; color: var(--ink); }
.freshness strong { font-weight: 600; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.dot-ok  { background: var(--ok); }
.dot-warn{ background: var(--warn); }
.dot-bad { background: var(--bad); }

/* ---- Datentabelle ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { border-collapse: collapse; width: 100%; font-size: .85rem; }
table.data th, table.data td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { background: var(--soft); color: var(--head); font-weight: 600; position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fafcfd; }

/* ---- Formular (Admin) ---- */
.form-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.field {
    font: inherit; color: var(--ink);
    padding: 12px 18px; border: 1px solid #d9d9d9; border-radius: 9999px;
    min-width: 260px; outline: none; background: #fff;
}
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,182,198,.15); }
code { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .85em; color: var(--ink); }

/* ---- Status-Meldungen ---- */
.muted { color: var(--body); }
.error { color: var(--bad); background: #fbeeee; border: 1px solid #f3d6d3; border-radius: var(--radius); padding: 14px 18px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; color: var(--body); flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .hero { padding-top: 56px; }
    .header-tag { display: none; }
}
