/* =========================================================
   Hive Core CSS v0.1
   Brand Color: rgb(0, 196, 179)
   ========================================================= */

/* -------------------------
   CSS Variables (Brand)
------------------------- */
:root {
    --hive-primary: rgb(0, 196, 179);
    --hive-primary-dark: rgb(0, 160, 145);
    --hive-bg: #f7f9fa;
    --hive-surface: #ffffff;
    --hive-text: #1f2a2e;
    --hive-text-muted: #6b7a80;
    --hive-border: #e2e8ea;
    --hive-danger: #d9534f;

    --radius-sm: 4px;
    --radius-md: 8px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
}

/* -------------------------
   Reset / Base
------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--hive-bg);
    color: var(--hive-text);
    line-height: 1.5;
}

/* -------------------------
   Typography
------------------------- */
h1, h2, h3, h4 {
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    line-height: 1.25;
}

p {
    margin: 0 0 1rem 0;
    color: var(--hive-text-muted);
}

a {
    color: var(--hive-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* -------------------------
   Layout Helpers
------------------------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background: var(--hive-surface);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--hive-border);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.row {
    display: flex;
    gap: 1rem;
}

.grid-typ {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .35rem;
}

.grid-typ a {
    padding: .35rem .45rem;
    font-size: .85rem;
}


/* -------------------------
   Buttons
------------------------- */
button,
.button {
    appearance: none;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    background: var(--hive-primary);
    color: #ffffff;
}

button:hover,
.button:hover {
    background: var(--hive-primary-dark);
}

.button.secondary {
    background: transparent;
    color: var(--hive-primary);
    border: 1px solid var(--hive-primary);
}

.button.danger {
    background: var(--hive-danger);
}

/* -------------------------
   Forms
------------------------- */
label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--hive-text-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--hive-border);
    font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--hive-primary);
    box-shadow: 0 0 0 2px rgba(0, 196, 179, 0.2);
}

/* -------------------------
   Status / Utility
------------------------- */
.text-muted {
    color: var(--hive-text-muted);
}

.text-center {
    text-align: center;
}

.mt {
    margin-top: 1rem;
}

.hidden {
    display: none;
}

/* -------------------------
   Simple Header (optional)
------------------------- */
.header {
    background: var(--hive-surface);
    border-bottom: 1px solid var(--hive-border);
    padding: 0.75rem 1rem;
}

.header-title {
    font-weight: 600;
    color: var(--hive-primary);
}

/* -------------------------
UX-Verbesserung
------------------------- */
.typ-list a.disabled {
    opacity: .35;
    pointer-events: none;
}

.typ-active {
    box-shadow: inset 0 0 0 1px rgba(0,196,179,.35);
}

/* Kategorie-Grid (2 Spalten) */
.grid-typ{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:.35rem;
}
.grid-typ a{
    padding:.35rem .45rem;
    font-size:.9rem;
}

/* Aufbau-Editor Layout: Preview links, Stack rechts */
.aufbau-editor{
    display:grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    align-items:start;
}
.aufbau-preview{
    border:1px dashed var(--hive-border);
    border-radius: var(--radius-sm);
    padding:.6rem;
    background: var(--hive-bg);
    min-height: 280px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end; /* unten stapeln */
    gap:.35rem;
}
.aufbau-preview .preview-item{
    width:100%;
    height:46px;
    border:1px solid var(--hive-border);
    border-radius: 10px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.aufbau-preview .preview-item img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.aufbau-mini{
    display:grid;
    grid-template-columns: 120px 1fr;
    gap: .9rem;
    align-items:start;
}
.aufbau-mini-preview{
    border:1px dashed var(--hive-border);
    border-radius: var(--radius-sm);
    padding:.5rem;
    background: var(--hive-bg);
    min-height: 180px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    gap:.3rem;
}
.aufbau-mini-preview .preview-item{
    width:100%;
    height:38px;
    border:1px solid var(--hive-border);
    border-radius: 10px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.aufbau-mini-preview .preview-item img{
    width:100%;
    height:100%;
    object-fit:contain;
}
.aufbau-mini-list .line{
    display:flex;
    justify-content:space-between;
    gap:.6rem;
    padding:.25rem 0;
    border-bottom:1px solid rgba(0,0,0,.04);
}
.aufbau-mini-list .line:last-child{ border-bottom:none; }

.aufbau-list{
    display:flex;
    flex-direction:column;
    gap:.5rem;
    margin-top:.75rem;
}

.aufbau-row{
    display:grid;
    grid-template-columns: 120px 1fr; /* Thumb | Text */
    gap: 1rem;
    align-items:center;
}

.aufbau-thumb{
    height: 48px;
    border:1px solid var(--hive-border);
    border-radius: 12px;
    background:#fff;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.aufbau-thumb img{
    width:100%;
    height:100%;
    object-fit:contain;
}
