:root {
    --theoai-black: #111111;
    --theoai-grey-900: #262626;
    --theoai-grey-700: #6f6f6f;
    --theoai-grey-600: #6f6f6f;
    --theoai-grey-300: #ddddda;
    --theoai-grey-150: #ececea;
    --theoai-grey-050: #f7f7f6;
    --theoai-line-strong: #c9c9c5;
    --theoai-white: #ffffff;
}

.theoai-app,
.theoai-app * {
    box-sizing: border-box;
}

.theoai-app {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    color: var(--theoai-black);
    background: var(--theoai-white);
    border: 1px solid var(--theoai-grey-300);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.055);
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.theoai-topline {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 17px 30px 16px;
    color: var(--theoai-black);
    background: #ffffff;
    border-bottom: 1px solid var(--theoai-black);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.19em;
    line-height: 1.4;
    text-transform: uppercase;
}

.theoai-intro {
    padding: clamp(42px, 7vw, 88px) clamp(24px, 7vw, 82px) clamp(36px, 5vw, 60px);
    background: #ffffff;
    border-bottom: 1px solid var(--theoai-grey-300);
}

.theoai-kicker {
    margin: 0 0 24px !important;
    color: var(--theoai-grey-600);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.19em;
    line-height: 1.5;
    text-transform: uppercase;
}

.theoai-intro h2 {
    max-width: 930px;
    margin: 0 0 24px !important;
    color: var(--theoai-black);
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-size: clamp(31px, 4.7vw, 58px);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.theoai-intro > p:last-child {
    max-width: 760px;
    margin: 0 !important;
    color: var(--theoai-grey-600);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: 0.005em;
}

.theoai-form {
    padding: clamp(34px, 6vw, 68px) clamp(24px, 7vw, 82px);
    background: #ffffff;
}

.theoai-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 30px;
}

.theoai-field-wide {
    grid-column: 1 / -1;
}

.theoai-field label {
    display: block;
    margin-bottom: 10px;
    color: var(--theoai-black);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.theoai-field input,
.theoai-field select,
.theoai-field textarea,
.theoai-custom-revision input,
.theoai-result {
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 15px 16px;
    color: var(--theoai-black);
    background: var(--theoai-grey-050);
    border: 1px solid transparent;
    border-bottom-color: var(--theoai-line-strong);
    border-radius: 0;
    box-shadow: none;
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    transition: border-color 150ms ease, background 150ms ease;
}

.theoai-field input::placeholder,
.theoai-field textarea::placeholder,
.theoai-custom-revision input::placeholder {
    color: #9a9a96;
    opacity: 1;
}

.theoai-field input:focus,
.theoai-field select:focus,
.theoai-field textarea:focus,
.theoai-custom-revision input:focus,
.theoai-result:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--theoai-black);
    box-shadow: none;
}

.theoai-field textarea {
    resize: vertical;
}

.theoai-briefing {
    margin-top: 30px;
}

.theoai-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    color: var(--theoai-grey-600);
    font-size: 13px;
    line-height: 1.55;
}

.theoai-check input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--theoai-black);
}

.theoai-actions {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.theoai-action-language {
    min-width: 190px;
}

.theoai-action-language label {
    display: block;
    margin-bottom: 8px;
    color: var(--theoai-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.theoai-action-language select,
.theoai-action-language input {
    width: 100%;
    min-height: 54px;
    padding: 0 38px 0 14px;
    color: var(--theoai-black);
    background: #ffffff;
    border: 1px solid var(--theoai-line-strong);
    border-radius: 0;
    font: inherit;
    font-size: 13px;
}

.theoai-action-language input {
    padding-right: 14px;
}

.theoai-primary,
.theoai-copy,
.theoai-revision-buttons button,
.theoai-custom-revision button {
    appearance: none;
    border-radius: 0;
    cursor: pointer;
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.theoai-primary {
    min-height: 54px;
    padding: 0 28px;
    color: #ffffff;
    background: var(--theoai-black);
    border: 1px solid var(--theoai-black);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.theoai-primary:hover {
    color: var(--theoai-black);
    background: #ffffff;
}

.theoai-primary:disabled,
.theoai-revision button:disabled {
    cursor: wait;
    opacity: 0.45;
}

.theoai-status {
    color: var(--theoai-grey-600);
    font-size: 13px;
    letter-spacing: 0.01em;
}

.theoai-status.is-error {
    color: #8a1f1f;
}

.theoai-result-wrap {
    padding: clamp(34px, 6vw, 68px) clamp(24px, 7vw, 82px);
    background: #fafafa;
    border-top: 1px solid var(--theoai-grey-300);
}

.theoai-result-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.theoai-result-label {
    display: block;
    margin-bottom: 8px;
    color: var(--theoai-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.theoai-result-head h3 {
    margin: 0 !important;
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.025em;
}

.theoai-copy {
    padding: 11px 15px;
    color: var(--theoai-black);
    background: transparent;
    border: 1px solid var(--theoai-line-strong);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.theoai-copy:hover {
    color: #ffffff;
    background: var(--theoai-black);
    border-color: var(--theoai-black);
}

.theoai-result {
    min-height: 390px;
    padding: 25px;
    color: #1b1b1b;
    background: #ffffff;
    border: 1px solid var(--theoai-grey-300);
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    resize: vertical;
}

.theoai-revision {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--theoai-grey-300);
}

.theoai-revision > span {
    display: block;
    margin-bottom: 13px;
    color: var(--theoai-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.theoai-revision-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theoai-revision-buttons button,
.theoai-custom-revision button {
    min-height: 42px;
    padding: 0 15px;
    color: var(--theoai-black);
    background: #ffffff;
    border: 1px solid var(--theoai-line-strong);
    font-size: 12px;
    font-weight: 400;
}

.theoai-revision-buttons button:hover,
.theoai-custom-revision button:hover {
    color: #ffffff;
    background: var(--theoai-black);
    border-color: var(--theoai-black);
}

.theoai-custom-revision {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 12px;
}

.theoai-custom-revision input {
    min-height: 44px;
}

.theoai-custom-revision button {
    min-width: 130px;
}

.theoai-access-note {
    padding: 20px;
    color: var(--theoai-black);
    background: #f6f6f4;
    border-left: 2px solid var(--theoai-black);
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
}

@media (max-width: 720px) {
    .theoai-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .theoai-grid {
        grid-template-columns: 1fr;
    }

    .theoai-field-wide {
        grid-column: auto;
    }

    .theoai-result-head {
        align-items: stretch;
        flex-direction: column;
    }

    .theoai-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .theoai-primary,
    .theoai-copy {
        width: 100%;
    }

    .theoai-custom-revision {
        grid-template-columns: 1fr;
    }
}


/* Editorial Editor, Übersetzung und Export */
.theoai-output-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.theoai-output-actions button,
.theoai-editor-toolbar button,
.theoai-translation-inline button {
    appearance:none; min-height:38px; padding:0 13px; border:1px solid var(--theoai-line-strong); border-radius:0;
    color:var(--theoai-black); background:#fff; font:inherit; font-size:11px; cursor:pointer;
    transition:background 150ms ease,color 150ms ease,border-color 150ms ease;
}
.theoai-output-actions button:hover,
.theoai-editor-toolbar button:hover,
.theoai-translation-inline button:hover {
    color: #ffffff;
    background: var(--theoai-black);
    border-color: var(--theoai-black);
}
.theoai-editor-toolbar { display:flex; flex-wrap:wrap; gap:6px; padding:10px; border:1px solid var(--theoai-line-strong); border-bottom:0; background:#f7f7f6; }
.theoai-editor-toolbar button strong { font-weight:700; }
.theoai-result {
    min-height:390px; padding:28px; overflow:auto; resize:vertical; border:1px solid var(--theoai-line-strong); background:#fff;
    font-family:"Helvetica Neue",Helvetica,Arial,"Nimbus Sans L",sans-serif; font-size:15px; line-height:1.75; outline:none;
}
.theoai-result:focus { border-color:var(--theoai-black); }
.theoai-result:empty:before { content:"Der generierte und formatierbare Text erscheint hier."; color:#9a9a96; pointer-events:none; }
.theoai-result h2 { margin:0 0 22px; font:400 clamp(25px,3vw,38px)/1.12 "Helvetica Neue",Helvetica,Arial,sans-serif; letter-spacing:-.025em; }
.theoai-result h3 { margin:28px 0 10px; font:600 17px/1.35 "Helvetica Neue",Helvetica,Arial,sans-serif; }
.theoai-result p { margin:0 0 15px; }
.theoai-result ul, .theoai-result ol { margin:0 0 18px 24px; padding:0; }
.theoai-result li { margin:0 0 7px; }
.theoai-result blockquote {
    margin: 22px 0;
    padding: 16px 19px;
    border-left: 3px solid #777;
    background: #f4f4f2;
    font-weight: 500;
}

.theoai-translation-inline {
    display: inline-flex;
    align-items: stretch;
    gap: 6px;
    margin-left: auto;
}

.theoai-translation-inline select {
    min-height: 42px;
    padding: 0 34px 0 12px;
    color: var(--theoai-black);
    background: #ffffff;
    border: 1px solid var(--theoai-line-strong);
    border-radius: 0;
    font: inherit;
    font-size: 12px;
}

.theoai-custom-language-field[hidden], .theoai-docx[hidden] { display:none!important; }
.theoai-app.is-rtl .theoai-result { text-align:right; }
@media(max-width:720px){
    .theoai-output-actions{width:100%;justify-content:flex-start}.theoai-output-actions button{flex:1 1 auto}.theoai-action-language{width:100%;min-width:0}.theoai-translation-inline{width:100%;margin-left:0}.theoai-translation-inline select{flex:1 1 auto}
}

/* Temporärer Bild- und Textupload */
.theoai-upload-section {
    margin-top: 30px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--theoai-grey-300);
}

.theoai-upload-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.theoai-upload-heading span {
    display: block;
    margin-bottom: 6px;
    color: var(--theoai-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.theoai-upload-heading strong {
    display: block;
    color: var(--theoai-black);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

.theoai-upload-heading small {
    color: var(--theoai-grey-600);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

.theoai-upload-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 16px 18px;
    cursor: pointer;
    background: var(--theoai-grey-050);
    border: 1px dashed var(--theoai-line-strong);
    transition: background 150ms ease, border-color 150ms ease;
}

.theoai-upload-box:hover,
.theoai-upload-box.has-file {
    background: #f1f1ef;
    border-color: var(--theoai-black);
}

.theoai-upload-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.theoai-upload-action {
    color: var(--theoai-black);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.theoai-upload-formats {
    color: var(--theoai-grey-600);
    font-size: 12px;
}

.theoai-upload-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding: 11px 13px;
    background: #f1f1ef;
}

.theoai-upload-selected[hidden] {
    display: none !important;
}

.theoai-upload-filename {
    min-width: 0;
    overflow: hidden;
    color: var(--theoai-black);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theoai-upload-remove {
    appearance: none;
    padding: 0;
    cursor: pointer;
    color: var(--theoai-black);
    background: transparent;
    border: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.theoai-upload-usage {
    margin-top: 18px;
}

@media (max-width: 720px) {
    .theoai-upload-heading,
    .theoai-upload-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .theoai-upload-heading small {
        white-space: normal;
    }
}

