/* Rollrasen-Kalkulator – Styles */

.rk-wrapper {
    max-width: 560px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2c2c2a;
    line-height: 1.5;
}

.rk-card {
    background: #fdfcf8;
    border: 1px solid #e5e3db;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.rk-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #ececec;
}

.rk-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e8f3dc;
    color: #3b6d11;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rk-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2a;
}

.rk-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b6b67;
}

.rk-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #5f5e5a;
    margin: 0 0 8px;
}

/* Mode toggle */
.rk-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.rk-mode-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #5f5e5a;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.rk-mode-btn:hover {
    border-color: #639922;
    color: #2c2c2a;
}

.rk-mode-btn.rk-active {
    background: #f0f7e4;
    border-color: #639922;
    color: #3b6d11;
    font-weight: 500;
}

/* Inputs */
.rk-input-block {
    margin-bottom: 1.25rem;
}

.rk-input-with-suffix {
    position: relative;
}

.rk-input-with-suffix input {
    width: 100%;
    padding: 10px 42px 10px 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    color: #2c2c2a;
    transition: border-color 0.15s ease;
}

.rk-input-with-suffix input:focus {
    outline: none;
    border-color: #639922;
    box-shadow: 0 0 0 3px rgba(99, 153, 34, 0.15);
}

.rk-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #888780;
    pointer-events: none;
}

.rk-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Checkbox */
.rk-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #444441;
    margin-bottom: 1.25rem;
    cursor: pointer;
    user-select: none;
}

.rk-checkbox input {
    margin: 3px 0 0;
    cursor: pointer;
    flex-shrink: 0;
}

/* Result */
.rk-result {
    background: #f4f1ea;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.rk-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.rk-result-row:last-of-type {
    margin-bottom: 0;
}

.rk-result-label {
    font-size: 13px;
    color: #5f5e5a;
}

.rk-result-value {
    font-size: 14px;
    font-weight: 500;
    color: #2c2c2a;
}

.rk-result-divider {
    border-top: 1px solid #d8d5cc;
    margin: 10px 0;
}

.rk-result-total-label {
    font-size: 15px;
    font-weight: 500;
    color: #2c2c2a;
}

.rk-result-total-value {
    font-size: 26px;
    font-weight: 600;
    color: #3b6d11;
}

.rk-hint {
    margin: 8px 0 0;
    font-size: 11px;
    color: #888780;
    text-align: right;
}

/* Buttons */
.rk-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-align: center;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.rk-btn-primary {
    background: #639922;
    color: #fff;
    border-color: #639922;
}

.rk-btn-primary:hover {
    background: #527f1c;
    border-color: #527f1c;
}

.rk-btn-primary:active {
    transform: scale(0.99);
}

/* Form */
.rk-form {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #ececec;
}

.rk-form-title {
    margin: 0 0 1rem;
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2a;
}

.rk-form-row {
    margin-bottom: 1rem;
}

.rk-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #5f5e5a;
    margin-bottom: 6px;
}

.rk-form-row input,
.rk-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    color: #2c2c2a;
    transition: border-color 0.15s ease;
}

.rk-form-row input:focus,
.rk-form-row textarea:focus {
    outline: none;
    border-color: #639922;
    box-shadow: 0 0 0 3px rgba(99, 153, 34, 0.15);
}

.rk-form-row textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.rk-privacy {
    font-size: 13px;
    color: #5f5e5a;
}

.rk-privacy a {
    color: #639922;
    text-decoration: underline;
}

/* Upload-Area */
.rk-optional {
    font-weight: 400;
    color: #888780;
    font-size: 12px;
}

.rk-upload-area {
    position: relative;
    border: 2px dashed #d0cec4;
    border-radius: 10px;
    background: #fafaf5;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
}

.rk-upload-area:hover,
.rk-upload-area.rk-dragover {
    border-color: #639922;
    background: #f0f7e4;
}

.rk-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.rk-upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    color: #5f5e5a;
}

.rk-upload-prompt svg {
    color: #639922;
}

.rk-upload-text {
    font-size: 14px;
}

.rk-upload-text strong {
    color: #3b6d11;
}

.rk-upload-hint {
    font-size: 12px;
    color: #888780;
}

.rk-file-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.rk-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e3db;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

.rk-file-list .rk-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    color: #2c2c2a;
}

.rk-file-list .rk-file-size {
    color: #888780;
    font-size: 12px;
    flex-shrink: 0;
}

.rk-file-list .rk-file-remove {
    background: none;
    border: none;
    color: #a32d2d;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    font-family: inherit;
}

.rk-file-list .rk-file-remove:hover {
    color: #6b1d1d;
}

.rk-file-error {
    color: #a32d2d;
    font-size: 12px;
    margin-top: 6px;
}

/* Alerts */
.rk-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 14px;
}

.rk-alert-success {
    background: #e8f3dc;
    color: #3b6d11;
    border: 1px solid #c0dd97;
}

.rk-alert-error {
    background: #fcebeb;
    color: #a32d2d;
    border: 1px solid #f7c1c1;
}

/* Mobile */
@media (max-width: 480px) {
    .rk-wrapper {
        margin: 1rem auto;
    }
    .rk-card {
        padding: 1.25rem;
        border-radius: 10px;
    }
    .rk-grid-2 {
        grid-template-columns: 1fr;
    }
    .rk-result-total-value {
        font-size: 22px;
    }
}
