*,
*::before,
*::after{
  box-sizing: border-box;   
}
.create-display{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.create-part{
    display: flex;
    width: 100vw;
    height: fit-content;
    padding: 29px 40px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-right: 4px solid var(--Rotkehlchen-gray-hover);
    border-left: 4px solid var(--Rotkehlchen-gray-hover);
    background: #FFF;
}

.create-layout{                  
    display: grid;
    grid-template-columns: 1fr; 
    grid-auto-rows: auto;    
    width: 90vw;
    gap: 0.5rem;
    align-items: center;
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "strip"
      "desc"
      "tags"
      "buttons";
}
.create-account{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}
.create-post-desc{
    width: 100%;
    display: flex;
    flex-direction: column;
    grid-area: desc;
}
.create-post-description{
    width: 100%;
    accent-color: var(--Rotkehlchen-yellow-default);
    resize: none;
    height: 100%;
    max-height: 8vh;
    font-size: 0.9rem;
}
.create-post-image{
    height: 40vh;
    width: 100%;
    object-fit: contain;
    overflow: hidden;
    max-width: 600px;
    display: block;
    margin: 0 auto;
}
.create-post-img-layer{
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    height: 40vh;
    width: 100%;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    background-image: url("../../public/assets/images/BirdLogin.jpg");
    filter: grayscale();
    width: 100%;
    max-width: 600px;
    height: 40vh;
    margin: 0 auto;
    cursor: pointer;
}
input#create-file-upload[type="file"] {
    display: none;
}
.create-file-upload {
    border: 1px solid #ccc;
    padding: 6px 12px;
    cursor: pointer;
    width: 100%;
    height: 100px;
}

.create-preview  { grid-area: preview; }
.strip    { grid-area: strip; }
.create-buttons  {
  grid-area: buttons;
  display: flex;
  gap: var(--gap);
  justify-content: flex-end;
}
.create-tags { 
    width: 100%;
    grid-area: tags;
}

@media only screen and (min-width: 768px) {

   .create-part{
        display: flex;
        width: 90vw;
        height: 100vh;
        padding: 29px 40px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        border-right: 4px solid var(--Rotkehlchen-gray-hover);
        border-left: 4px solid var(--Rotkehlchen-gray-hover);
        background: #FFF;
    }
    .create-post-image {
        width: 100%;
        max-width: 600px;
        display: block;
        margin: 0 auto;
        height: 40vh;
        align-self: flex-start;
     }
     .create-post-img-layer{
        max-width: 600px;
    }
    .create-file-upload {
        border: 1px solid #ccc;
        padding: 6px 12px;
        cursor: pointer;
        width: 300px;
        height: 100px;
    }
    .create-tags{
        width: 100%;
    }
    .create-layout {
        --gap: 1rem;                           /* einfacher Abstandschalter */
        display: grid;
        gap: var(--gap);
        width: 88vw;      

        grid-template-columns: 40% 1fr;        /* 40 % links, Rest rechts */

        /* Bereiche benennen (Desktop/Tablet) */
        grid-template-areas:
            "preview desc"
            "preview desc"
            "preview desc"
            "preview desc"
            "strip tags"
            "buttons buttons";
        }
    .create-post-desc{
        height: 40vh;
    }
    .create-post-description {
        min-height: 20vh;
        max-height: 40vh;
    }
}