* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #202020;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
}


/* =========================================
   KOPFZEILE DES GENERATORS
   ========================================= */

header {
    height: 65px;
    background: #111;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    font-size: 20px;
    font-weight: bold;
}

header span {
    font-size: 14px;
    font-weight: normal;
}


/* =========================================
   HAUPTBEREICH
   ========================================= */

main {
    max-width: 1550px;
    margin: 25px auto;

    padding: 0 20px;

    display: grid;
    grid-template-columns: 360px 1fr;

    gap: 30px;
}


/* =========================================
   EDITOR
   ========================================= */

.editor {
    background: #fff;
    padding: 25px;

    border-radius: 10px;

    height: fit-content;
}

.editor h1 {
    margin: 0 0 25px 0;
    font-size: 24px;
}

.editor label {
    display: block;

    margin-top: 18px;
    margin-bottom: 7px;

    font-weight: bold;
}

.editor input[type="text"],
.editor textarea {
    width: 100%;

    padding: 10px;

    border: 1px solid #ccc;
    border-radius: 5px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.editor textarea {
    height: 160px;
    resize: vertical;
}

.editor input[type="file"] {
    width: 100%;
}

.editor button {
    width: 100%;

    margin-top: 25px;

    padding: 14px;

    border: 0;
    border-radius: 5px;

    background: #d00000;
    color: #fff;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}

.editor button:hover {
    background: #aa0000;
}


/* =========================================
   VORSCHAU
   ========================================= */

.preview {
    display: flex;

    justify-content: center;
    align-items: flex-start;
}


/* =========================================
   WERBEVORLAGE
   ========================================= */

.poster {
    position: relative;

    width: 794px;
    height: 1123px;

    overflow: hidden;

    background: #fff;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.45);
}


/* =========================================
   LINKE WEISSE TEXTFLÄCHE
   ========================================= */

.poster-left {
    position: absolute;

    left: 0;
    top: 0;

    width: 58%;
    height: 100%;

    background: #fff;

    padding: 40px 42px;

    z-index: 10;

    clip-path: polygon(
        0 0,
        88% 0,
        82% 100%,
        0 100%
    );
}


/* =========================================
   LOGO
   ========================================= */

.logo {
    position: relative;

    width: calc(100% + 84px);
    height: 150px;

    margin: -40px 0 55px -42px;

    padding: 20px 42px;

    background: #fff;

    border-bottom: 3px solid #d00000;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo img {
    display: block;

    width: 360px;
    max-width: 100%;

    height: auto;
}


/* =========================================
   HAUPTÜBERSCHRIFT
   ========================================= */

.poster-left h2 {
    margin: 0;

    font-size: 39px;

    line-height: 0.98;

    font-weight: 900;

    text-transform: uppercase;
}


/* =========================================
   ROTE UNTERÜBERSCHRIFT
   ========================================= */

.poster-left h3 {
    margin: 14px 0 34px 0;

    color: #c90000;

    font-size: 27px;

    line-height: 1;

    font-weight: 900;

    text-transform: uppercase;
}


/* =========================================
   BESCHREIBUNG
   ========================================= */

.poster-left p {
    margin: 0;

    max-width: 300px;

    font-size: 17px;

    line-height: 1.5;

    color: #222;
}


/* =========================================
   RECHTER BILDBEREICH
   ========================================= */

.poster-images {
    position: absolute;

    right: 0;
    top: 125px;

    width: 64%;
    height: 998px;

    z-index: 4;

    overflow: hidden;
}


/* =========================================
   BILDER
   ========================================= */

.image {
    position: absolute;

    right: 0;

    width: 100%;

    overflow: hidden;

    background: #ddd;

    border: 5px solid #fff;

    display: flex;
    align-items: center;
    justify-content: center;
}

.image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* =========================================
   BILD 1
   ========================================= */

.image-one {
    top: 0;
    right: -150px;
    width: 500px;
    height: 330px;

    clip-path: polygon(
        9% 0, 
        100% 0,
        100% 100%,
        0 100%
    );

    border: 5px solid #fff;
}


/* =========================================
   BILD 2
   ========================================= */

.image-two {
    top: 325px;
	right: 30px;
	left: 1px;
    width: 500px;
    height: 330px;

    clip-path: polygon(
        26% 0,
        100% 0,
        100% 100%,
        18% 100%
    );

    border: 5px solid #fff;
}


/* =========================================
   BILD 3
   ========================================= */

.image-three {
    top: 650px;
	right: 10px;
	left: 1px;
    width: 500px;
    height: 348px;

    clip-path: polygon(
        26% 0,
        100% 0,
        100% 100%,
        18% 100%
    );

    border: 5px solid #fff;
}


/* =========================================
   SCHWARZER BEREICH OBEN RECHTS
   ========================================= */

.poster::before {
    content: "IHR MEISTERBETRIEB";

    position: absolute;

    right: 0;
    top: 0;

    width: 42%;
    height: 125px;

    background: #111;

    color: #fff;

    z-index: 30;

    display: flex;

    align-items: center;
    justify-content: center;

    padding-bottom: 28px;

    font-size: 20px;

    font-weight: 900;
}

.poster::after {
    content: "AUS WEISMAIN";

    position: absolute;

    right: 0;
    top: 76px;

    width: 42%;

    color: #e00000;

    text-align: center;

    z-index: 31;

    font-size: 20px;

    font-weight: 900;
}


/* =========================================
   ROTE DIAGONALE
   ========================================= */

.red-line {
    position: absolute;

    left: 54%;

    top: -80px;

    width: 6px;
    height: 1300px;

    background: #d00000;

    transform: rotate(7deg);

    transform-origin: center;

    z-index: 40;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {

    main {
        grid-template-columns: 330px 1fr;
    }

    .poster {
        transform: scale(0.75);

        transform-origin: top left;

        margin-right: -180px;
        margin-bottom: -280px;
    }
}


@media (max-width: 800px) {

    main {
        display: block;
    }

    .editor {
        margin-bottom: 30px;
    }

    .preview {
        overflow-x: auto;

        justify-content: flex-start;
    }

    .poster {
        transform: none;

        margin: 0;
    }
}