*{ 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gruen: #76A394;
    --black: #000000;
    --bg-white: #f5f5f5;
    --dark-grey: #4d4d4d;
}

@font-face {
        font-family: brush;
        src: url(../fonts/FontsFree-Net-canvas-script-reg.ttf);
    }

@font-face {
       font-family: text;
        src: url(../fonts/montserrat/Montserrat-Regular.ttf);
}

@font-face {
    font-family: thin;
    src: url(../fonts/montserrat/Montserrat-Thin.ttf);
}

@font-face {
    font-family: med_it;
    src: url(../fonts/montserrat/Montserrat-MediumItalic.ttf);
}

@font-face {
    font-family: med;
    src: url(../fonts/montserrat/Montserrat-Medium.ttf);
}

@font-face {
    font-family: italic;
    src: url(../fonts/montserrat/Montserrat-Italic.ttf);
}

html {
    background-color: var(--bg-white);
}

body {
    overflow-x: hidden;
    width: 1366px;
    height: auto;
}

header {
    display: grid;
    max-width: 1366px;
    grid-template-columns: auto auto auto auto;
    grid-template-rows: auto auto auto auto auto;
    background-image: url(../img/grafikelemente/Watercolor.png);
    background-repeat: no-repeat;
    background-position-x: 700px;
    background-position-y: -500px;
    background-size: 70%;
}

.logo {
    grid-column: 1/2;
    grid-row: 1/4;
    padding: 3rem;
}

header h1 {
    grid-column: 1/5;
    grid-row: 2/3;
    font-family: brush;
    font-size: 2.8rem;
    margin: 0 auto;
    margin-top: 3rem;
}

.icon {
    width: 100px;
    grid-column: 3/4;
    grid-row: 2/4;
    margin-top: 20px;
    margin-left: 30px;
    rotate: 10deg;
}

.ranke {
    width: 1000px;
    height: auto;
    margin: 0 auto;
    grid-column: 2/4;
    grid-row: 3/4;
    margin-top: -2rem;
    padding-right: 8rem;
}

.back {
    grid-column: 2/5;
    grid-row: 4/5;
    text-decoration: none;
    color: var(--black);
    font-size: 1.4rem;
    margin-left: 220px;
    margin-top: 2rem;
}

.back img {
    width: 40px;
    height: auto;
    margin-left: 28rem;
    rotate: 175deg;
    display: inline;
    margin-right: 2rem;
}

.back p {
    margin-top: 2rem;
    text-align: right;
    margin-right: 100px;
    font-family: text;
    font-size: 1.1rem;
    display: inline;
}

main {
    max-width: 1366px;
    margin: 0 200px;
}

.intro {
    display: flex;
    margin-top: 3rem;
}

.art h2 {
    text-align: center;
    font-family: brush;
    font-size: 2.2rem;
    margin-top: 1rem;
}

.art h4 {
    margin-top: 3rem;
    font-family: med;
    font-size: 1.4rem;
}

.art p {
    font-family: text;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-top: 2rem;
    margin-right: 300px;
    margin-bottom: 3rem;
    width: 600px;
}

.generator h3 {
    margin-top: 2rem;
    font-family: med;
    display: inline;
    margin-right: 50px;
}

.kursiv {
    display: inline;
    font-size: 1.6rem;
    font-family: italic;
    margin-bottom: 2rem;
}

.config, .preview {
    margin: 2rem auto;
    }

.motiv-buttons button {
    border: none;
    font-family: brush;
    font-size: 1.8rem;
    padding-right: 5rem;
    cursor: pointer;
    background-color: var(--bg-white);
    }

.motiv-buttons button.selected {
    color: var(--gruen);
    box-shadow: none;
    background-color: var(--bg-white);
    }

.gutschein {
    display: flex;
    width: 1000px;
    height: 650px;
    background-color: #ffffff;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    }

.gutschein img {
    position: absolute;
    width: 900px;
    height: auto;
    object-fit: cover;
    }

.gutschein .text {
    position: relative;
    z-index: 1;
    padding: 20px;
    }

.betrag {
    font-size: 2rem;
    }

.name {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    }

.title {
    font-family: text;
    font-size: 1.8rem;
}

#vorschauName {
    margin-top: -145px;
    margin-left: -245px;
    font-family: brush;
    font-size: 2rem;
}

#vorschauBetrag {
    margin-top: 50px;
    margin-left: -245px;
    font-family: brush;
    font-size: 2rem;
}

input[type="text"], input[type="number"] {
    padding: 0.4rem;
    margin: 0.5rem 0 1rem;
    width: 100%;
    height: 40px;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 6px;
    }

label, legend {
    display: block;
    margin: 0.3rem 4rem 0.3rem 0;
    font-family: text;
    font-size: 1.4rem;
    }

label input[type="radio"] {
    width: 30px;
}

label#wunschbetragLabel {
        display: inline;
    }

input#wunschbetragInput {
    margin-left: 2rem;
    background-color: #ffffff;
}

#zweig-bg {
    margin-left: 870px;
    margin-top: -850px;
    width: 400px;
    height: auto;
    opacity: 0.3;
    rotate: 30deg;

}

#kaeufer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
}

#lvname {
    grid-column: 1/2;
    grid-row: 1/2;
}

#vname {
    grid-column: 1/2;
    grid-row: 2/3;
}

#lnname {
    grid-column: 2/3;
    grid-row: 1/2;
}

#nname {
    grid-column: 2/3;
    grid-row: 2/3;
}

#lstr {
    grid-column: 1/2;
    grid-row: 3/4;
}

#str {
    grid-column: 1/2;
    grid-row: 4/5;
}

#lhnr {
    grid-column: 2/3;
    grid-row: 3/4;
}

#hnr {
    grid-column: 2/3;
    grid-row: 4/5;
}

#lplz {
    grid-column: 1/2;
    grid-row: 5/6;
}

#plz {
    grid-column: 1/2;
    grid-row: 6/7;
}

#lort {
    grid-column: 2/3;
    grid-row: 5/6;
}

#ort {
    grid-column: 2/3;
    grid-row: 6/7;
}

#kaeufer input {
    margin-top: -0.5rem;
}

#check {
    display: flex;
    margin-top: 20px;
}

input[type="text"] {
    max-width: 400px;
}

input#hnr {
    max-width: 150px;
}

input#plz {
    max-width: 200px;
}

input#dsgvo {
    margin-right: 16px;
    align-self: flex-start;
    margin-top: 16px;
}

#ldsgvo {
    width: 600px;
}

.send input {
    margin-left: 30px;
    margin-top: 20px;
    width: 250px;
    padding: 5px 20px;
    border-radius: 10px;
    border: 1px solid #b8b8b8;
    background-color: #ffffff;
    font-family: text;
    margin-bottom: 20px;
}

.send p {
    font-family: text;
    font-size: 1rem;
    margin-bottom: 50px;
}

   /* Modal-Hintergrund */
    .modal-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(0, 0, 0, 0.4);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    /* Modal-Box */
    .modal-box {
      background: white;
      padding: 2rem;
      border-radius: 12px;
      width: 560px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
      display: flexbox;
    }

    .modal-box h2 {
      margin-top: 0;
      color: #76A394;
    }

    .modal-box p {
      margin: 1rem 0;
      color: var(--dark-grey);
      font-family: text;
    }

    .close-button {
      margin-top: 1.5rem;
      background-color: #76A394;
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      cursor: pointer;
    }

    .close-button:hover {
      background-color: #5a7f73;
    }

   .modal-box p span {
        font-family: brush;
        color: var(--gruen);
        font-size: 1.5rem;
    }

button#closeModal {
    background-color: #e8e8e8;
    color: var(--gruen);
    border: 0.6px solid var(--dark-grey);
    width: 80px;
    margin-left: 200px;
}

