.koebes-signatur-generator {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: "Manrope", Arial, Helvetica, sans-serif;
}

.koebes-signatur-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.koebes-signatur-card h2 {
    margin: 0 0 10px;
    color: #2e2e2b;
    font-size: 28px;
}

.koebes-signatur-intro {
    margin: 0 0 30px;
    color: #666662;
    font-size: 14px;
}

.koebes-form-section {
    margin-bottom: 35px;
}

.koebes-form-section h3 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececec;
    color: #2e2e2b;
    font-size: 18px;
}

.koebes-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 20px;
}

.koebes-form-grid p,
.koebes-form-section p {
    margin: 0;
}

.koebes-signatur-generator label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2e2e2b;
}

.koebes-signatur-generator input,
.koebes-signatur-generator select,
.koebes-signatur-generator textarea {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d9d9d6;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all .2s ease;
    background: #fff;
}

.koebes-signatur-generator textarea {
    min-height: 95px;
    padding: 12px 14px;
    resize: vertical;
}

.koebes-signatur-generator input:focus,
.koebes-signatur-generator select:focus,
.koebes-signatur-generator textarea:focus {
    outline: none;
    border-color: #ab1c30;
    box-shadow: 0 0 0 3px rgba(171,28,48,.15);
}

.koebes-signatur-generator small {
    display: block;
    margin-top: 6px;
    color: #666662;
    font-size: 12px;
}

.koebes-checkbox-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.koebes-checkbox-row input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    height: 18px;
    padding: 0;
}

.koebes-form-actions {
    margin-top: 30px;
}

.koebes-form-actions button {
    background: #ab1c30;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.koebes-form-actions button:hover {
    background: #8f1728;
    transform: translateY(-1px);
}

.koebes-form-actions button:active {
    transform: translateY(0);
}

.koebes-live-preview {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #ececec;
}

.koebes-live-preview-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.koebes-live-preview-head h3 {
    margin: 0;
    color: #2e2e2b;
    font-size: 18px;
}

.koebes-live-preview-head span {
    color: #666662;
    font-size: 12px;
}

.koebes-preview-surface {
    overflow-x: auto;
    padding: 22px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
}

.koebes-preview-empty {
    color: #666662;
    font-size: 14px;
}

.kbs-preview {
    box-sizing: border-box;
    width: 740px;
    max-width: 100%;
    color: #2e2e2b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    background: #fff;
}

.kbs-preview img {
    height: auto;
    border: 0;
}

.kbs-preview-classic {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 24px;
}

.kbs-preview-side {
    border-right: 1px solid #d9d9d6;
    padding-right: 24px;
}

.kbs-preview-logo {
    display: block;
    width: 150px;
    max-width: 150px;
}

.kbs-preview-logo-small {
    display: block;
    width: 74px;
    max-width: 74px;
}

.kbs-preview-logo-modern {
    display: block;
    width: 118px;
    max-width: 118px;
}

.kbs-preview-logo-missing {
    width: 118px;
    min-height: 54px;
    display: grid;
    place-items: center;
    border: 1px dashed #c8c8c4;
    color: #777;
    font-size: 12px;
}

.kbs-preview-main,
.kbs-preview-slim > div,
.kbs-preview-modern-content {
    display: grid;
    gap: 6px;
}

.kbs-preview-name {
    font-size: 18px;
}

.kbs-preview-role {
    color: var(--kbs-color);
}

.kbs-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
    margin-top: 6px;
}

.kbs-preview-legal {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e7e7e3;
    color: #666662;
    font-size: 12px;
}

.kbs-preview-social {
    display: flex;
    gap: 6px;
    margin: 4px 0 8px;
}

.kbs-preview-social span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--kbs-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.kbs-preview-slim {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    width: 700px;
}

.kbs-preview-modern {
    width: 780px;
    border: 1px solid #e5e5e5;
    border-top: 18px solid var(--kbs-color);
}

.kbs-preview-modern-body {
    display: grid;
    grid-template-columns: 246px 24px 1fr;
}

.kbs-preview-modern-person {
    padding: 16px 18px 18px;
    background: color-mix(in srgb, var(--kbs-color) 12%, white);
    color: #666;
    font-size: 11px;
}

.kbs-preview-modern-person::after {
    content: "";
    display: block;
    width: 190px;
    height: 34px;
    margin-top: -122px;
    background: color-mix(in srgb, var(--kbs-color) 32%, white);
}

.kbs-preview-photo {
    display: block;
    position: relative;
    width: 148px;
    height: 148px;
    margin: 22px 0 16px;
    object-fit: cover;
    border: 8px solid #fff;
    border-radius: 50%;
    background: #f2f2f2;
    z-index: 1;
}

.kbs-preview-initials {
    display: grid;
    place-items: center;
    color: var(--kbs-color);
    font-size: 28px;
    font-weight: 700;
}

.kbs-preview-modern-content {
    grid-column: 3;
    padding: 24px 0 0 22px;
    border-left: 10px solid var(--kbs-color);
}

.kbs-preview-modern-content > strong {
    font-size: 24px;
}

.koebes-client-tabs {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 28px;
    font-family: "Manrope", Arial, Helvetica, sans-serif;
}

.koebes-client-tabs h2 {
    margin: 0 0 8px;
    color: #2e2e2b;
    font-size: 22px;
}

.koebes-client-tabs-intro {
    margin: 0 0 20px;
    color: #666662;
    font-size: 14px;
}

.koebes-client-tabs > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.koebes-tab-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid #ececec;
}

.koebes-tab-labels label {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    color: #555550;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#koebes-tab-outlook:checked ~ .koebes-tab-labels label[for="koebes-tab-outlook"],
#koebes-tab-gmail:checked ~ .koebes-tab-labels label[for="koebes-tab-gmail"],
#koebes-tab-apple:checked ~ .koebes-tab-labels label[for="koebes-tab-apple"],
#koebes-tab-thunderbird:checked ~ .koebes-tab-labels label[for="koebes-tab-thunderbird"] {
    border-color: #ececec;
    background: #f8f8f7;
    color: #ab1c30;
}

.koebes-tab-panel {
    display: none;
}

#koebes-tab-outlook:checked ~ .koebes-tab-panels .koebes-panel-outlook,
#koebes-tab-gmail:checked ~ .koebes-tab-panels .koebes-panel-gmail,
#koebes-tab-apple:checked ~ .koebes-tab-panels .koebes-panel-apple,
#koebes-tab-thunderbird:checked ~ .koebes-tab-panels .koebes-panel-thunderbird {
    display: block;
}

.koebes-tab-panel h3 {
    margin: 0 0 12px;
    color: #2e2e2b;
    font-size: 17px;
}

.koebes-tab-panel ol {
    margin: 0;
    padding-left: 22px;
    color: #3d3d39;
    font-size: 14px;
    line-height: 1.6;
}

.koebes-tab-panel li + li {
    margin-top: 6px;
}

@media (max-width: 768px) {
    .koebes-signatur-card {
        padding: 20px;
    }

    .koebes-form-grid {
        grid-template-columns: 1fr;
    }

    .koebes-signatur-card h2 {
        font-size: 24px;
    }

    .koebes-signatur-generator input,
    .koebes-signatur-generator select,
    .koebes-signatur-generator textarea {
        font-size: 16px;
    }

    .koebes-form-actions button {
        width: 100%;
    }

    .koebes-live-preview-head {
        display: block;
    }

    .koebes-live-preview-head span {
        display: block;
        margin-top: 4px;
    }

    .koebes-client-tabs {
        padding: 20px;
    }

    .koebes-tab-labels {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .koebes-tab-labels label {
        justify-content: center;
        border: 1px solid #ececec;
        border-radius: 8px;
        text-align: center;
    }
}
