@font-face {
    font-family: "Syncopate";
    src: url("fonts/Syncopate-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Syncopate";
    src: url("fonts/Syncopate-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --accent: #0078d4;
    --main: #ffffff;
    --panel: #0f1221;
    --border: #0f1221;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background: #0f1221;
    color: #fff;
    font-family: "Montserrat", sans-serif;
}

.app {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    height: 100vh;
    overflow: hidden;
}

/* Einstellungen links */
.sidebar {
    height: 100vh;
    overflow-y: auto;
    padding: 28px 22px;
    background: var(--panel);
    border-right: 1px solid var(--border);
}

.sidebar h1 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 900;
}

.description {
    margin: 0 0 32px;
    color: #aab1c8;
    font-size: 12px;
    line-height: 1.6;
}

.field {
    margin-bottom: 25px;
}

.field label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

input[type="text"],
select {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid #3b425b;
    border-radius: 7px;
    outline: none;
    background: #101426;
    color: #fff;
    font: inherit;
    font-size: 14px;
}

input[type="text"]:focus,
select:focus {
    border-color: var(--accent);
}

.station-input {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-left: 12px;
    border: 1px solid #3b425b;
    border-radius: 7px;
    background: #101426;
    color: #fff;
    font-size: 14px;
}

.station-input:focus-within {
    border-color: var(--accent);
}

.station-prefix {
    font-weight: 900;
}

.station-input input[type="text"] {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    padding: 10px 6px;
    border: 0;
    outline: none;
    background: transparent;
}

.color-controls {
    display: flex;
    gap: 9px;
}

input[type="color"] {
    flex: 0 0 48px;
    width: 48px;
    height: 44px;
    padding: 4px;
    border: 1px solid #3b425b;
    border-radius: 7px;
    background: #101426;
    cursor: pointer;
}

.color-controls input[type="text"] {
    min-width: 0;
    text-transform: uppercase;
}

.hint {
    margin: 8px 0 0;
    color: #929ab5;
    font-size: 11px;
    line-height: 1.5;
}

.export-button {
    width: 100%;
    min-height: 46px;
    margin-top: 8px;
    border: 0;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: all ease 0.2s;
}

.export-button:hover {
    opacity: 0.9;
}

/* Vorschau rechts */
.workspace {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    min-width: 0;
    min-height: 0;
    height: 100vh;
    overflow: hidden;
    padding: 35px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
    flex: 0 0 auto;
}

.preview-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
}

.dimensions {
    color: #aab1c8;
    font-size: 12px;
    white-space: nowrap;
}

.preview-area {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    width: 100%;
    min-height: 0;
    overflow: auto;
}

/* Logo-Box */

.logo-box {
    flex: 0 0 auto;
    margin: auto;
    container-type: inline-size;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 1000px);
    aspect-ratio: 1000 / 600;
    overflow: hidden;
    background: var(--accent);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.logo-box::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 140%;
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(-7deg);
}

.text-banner {
    position: absolute;
    transform: skewY(-7deg);
    text-align: center;
    color: var(--main);
    font-family: "Syncopate", sans-serif;
}

.text-banner span {
    display: inline-block;
    font-weight: 900;
    text-transform: uppercase;
}

.subheading {
    padding: 0 10px;
    background: var(--main);
    color: var(--accent);
    font-size: 3rem;
}

.heading {
    font-size: 5rem;
    line-height: 1;
    overflow-wrap: normal;
}

/* Hochformat */
.logo-box.portrait {
    width: min(100%, 600px);
    aspect-ratio: 600 / 1000;
}

.logo-box.portrait .text-banner {
    max-width: 90%;
}

/* Quadratisches Icon */
.logo-box.icon {
    width: min(100%, 600px);
    aspect-ratio: 1;
}

.logo-box.icon .text-banner {
    max-width: 95%;
}

.preview-note {
    color: #858da8;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 760px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .app {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .sidebar {
        height: auto;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 22px;
    }

    .sidebar h1 {
        font-size: 19px;
    }

    .description {
        margin-bottom: 22px;
    }

    .field {
        margin-bottom: 18px;
    }

    .workspace {
        height: 100vh;
        min-height: 600px;
        overflow: hidden;
        padding: 25px 16px;
    }

    .preview-area {
        min-height: 0;
    }
}