/* ========== FEHLENDE VARIABLEN ========== */
:root {
    --text-light: #71717A;
    --btn-brown: var(--accent-data);
}

/* ========== EINGABEFELDER ========== */
input, select, textarea {
    font-family: var(--font-ui);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: border 0.2s;
    width: 100%;
    box-sizing: border-box;
}
input:focus, select:focus {
    border-color: var(--accent-data);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}
.grinder-input {
    width: 70px;
    text-align: center;
    font-weight: bold;
}

/* ========== BUTTONS ========== */
.btn-brown { background: var(--btn-brown); color: #fff; border: none; }
.btn-brown:active { filter: brightness(1.1); }
.btn-grey { background: #E4E4E7; color: var(--text-dark); border: none; }
.shadow-btn { box-shadow: 0 4px 10px rgba(0,0,0,0.08); }

/* ========== SOTA-CARD ========== */
.sota-card {
    background: var(--panel-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.section-title {
    font-size: 1.2rem; font-weight: 800; color: var(--text-dark);
    margin-bottom: 25px;
}
.icon-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9rem; font-weight: 600; color: var(--text-dark);
}

/* ========== GRINDER BOX ========== */
.grinder-control-box {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-main); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 15px; margin-top: 10px; height: 110px;
}
.peeking-dial-container {
    position: relative; width: 120px; height: 90px;
    overflow: hidden; border-right: 2px solid var(--border-color);
}
/* Pfeil exakt an der rechten Kante */
.indicator-right {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 0; height: 0;
    border-top: 7px solid transparent; border-bottom: 7px solid transparent;
    border-right: 18px solid var(--accent-data);
    z-index: 20;
}
.dial-container {
    position: absolute; left: -100px; top: -25px;
    width: 200px; height: 200px;
    border: 3px solid var(--border-color); border-radius: 50%;
    background: white; transition: transform 0.3s ease;
}
.dial-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 70px; height: 70px; background: var(--bg-main);
    border-radius: 50%; border: 2px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: bold; color: var(--text-dark);
}
.grinder-actions {
    display: flex; align-items: center; gap: 15px;
    flex: 1; justify-content: flex-end; padding-right: 10px;
}
.vertical-stepper { display: flex; flex-direction: column; gap: 5px; }
.btn-square {
    width: 42px; height: 42px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; border-radius: 8px;
}

/* ========== LABELS & SLIDER ========== */
.flex-label {
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; margin-bottom: 8px;
}
.dynamic-label {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; color: #fff;
    background: var(--btn-brown);
}
.slider-container { margin-top: 5px; }

.modern-slider {
    -webkit-appearance: none; width: 100%; height: 6px;
    background: var(--border-color); border-radius: 10px; outline: none; margin: 0;
    /* Hintergrund wird per JS überschrieben */
}
.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 24px; height: 24px;
    background: var(--accent-data); border: 3px solid #fff;
    border-radius: 50%; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.taste-slider::-webkit-slider-thumb {
    background: var(--thumb-color, var(--accent-data));
}
.slider-ticks {
    display: flex; justify-content: space-between;
    font-size: 0.75rem; color: var(--text-muted); margin-top: 5px;
}
.delta-badge { font-size: 0.8rem; font-weight: bold; color: var(--text-muted); }

/* ========== SHOT-KARTEN ========== */
.shot-card {
    background: white; border: 1px solid var(--border-color);
    border-radius: 12px; padding: 15px; margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.shot-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 10px;
}
.shot-header h3 { margin: 0; font-size: 1.1rem; color: var(--btn-brown); }
.shot-date { font-size: 0.8rem; color: var(--text-light); }
.shot-details {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    font-size: 0.9rem; margin-bottom: 15px;
}
.shot-details strong {
    color: var(--text-dark); display: block; font-size: 0.8rem;
    text-transform: uppercase; margin-bottom: 2px;
}
.shot-actions {
    display: flex; gap: 10px; border-top: 1px dashed var(--border-color);
    padding-top: 10px; margin-top: 10px;
}

/* ========== MODAL ========== */
#edit-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000; padding: 20px;
    box-sizing: border-box; overflow-y: auto;
}
#edit-modal-overlay .modal-content {
    background: var(--bg-main); padding: 20px; border-radius: 12px;
    width: 100%; max-width: 500px; margin: 20px auto; position: relative;
}
/* In der historie.css anpassen */
#edit-home-dial {
    position: absolute; 
    left: -110px; 
    top: -65px; /* Geändert von -30px auf -65px */
    width: 220px; 
    height: 220px;
    border-width: 3px;
}

/* ========== MARKER ========== */
.marker {
    position: absolute; top: 0; left: 50%; width: 0; height: 50%;
    transform-origin: bottom center; z-index: 15;
}
.marker::before {
    content: ''; position: absolute; top: 0; left: -1px;
    width: 2px; height: 12px; background-color: var(--text-muted);
}
.marker .number {
    position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
    color: var(--text-dark); font-family: var(--font-mono);
    font-size: 0.85rem; font-weight: 700;
}
.marker.sub-marker::before {
    height: 6px; background-color: var(--border-color); width: 2px;
}