/* DTF-Werkzeug: eine Seite fuer fertige Boegen und selbst gebaute. Bewusst schlank und ohne Abhaengigkeit
   vom Theme-Build, damit die Seite auch auf dem Handy schnell ist. */

.gf-dtf {
    max-width: 62rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
    color: #3c3c3b;
}

.gf-dtf__eyebrow {
    margin: 0 0 .25rem;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #126776;
}

.gf-dtf__head h1 {
    margin: 0 0 .75rem;
    font-size: clamp(1.6rem, 5vw, 2.3rem);
}

.gf-dtf__lead {
    margin: 0 0 1.75rem;
    max-width: 48rem;
    line-height: 1.6;
}

.gf-dtf__h2 {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
}

.gf-dtf__abschnitt {
    margin-top: 2rem;
}

/* ---------------------------------------------------------------- Ablagefläche */

.gf-dtf__drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 2rem 1rem;
    border: 2px dashed #b9c4c6;
    border-radius: .75rem;
    background: #f5f8f8;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

/* Bleistift-Notizen links und rechts vom Feld, Pfeile zur Mitte (Marvin, 16.10.) */
.gf-dtf__drop-rahmen {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr) minmax(8rem, 11rem);
    align-items: center;
    gap: .75rem;
}

.gf-dtf__notiz {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    margin: 0;
    color: #5f666b;
    font-family: "Bradley Hand", "Segoe Print", "Chalkboard SE", "Comic Sans MS", cursive;
    font-size: 1rem;
    line-height: 1.25;
    text-align: center;
    /* leicht schief wie von Hand hingeschrieben */
    transform: rotate(-2.5deg);
}

.gf-dtf__notiz--rechts {
    transform: rotate(2.5deg);
}

.gf-dtf__notiz-pfeil {
    width: 7.5rem;
    height: auto;
    fill: none;
    stroke: #7a8086;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .9;
}

@media (max-width: 48rem) {
    .gf-dtf__drop-rahmen {
        grid-template-columns: 1fr 1fr;
    }

    .gf-dtf__notiz {
        font-size: .9rem;
    }

    .gf-dtf__notiz-pfeil {
        width: 5rem;
        /* Pfeile nach unten auf das Feld, das jetzt darunter liegt */
        transform: rotate(90deg);
        margin: .9rem 0;
    }

    .gf-dtf__notiz--rechts .gf-dtf__notiz-pfeil {
        transform: rotate(-90deg);
    }

    .gf-dtf__drop-rahmen .gf-dtf__drop {
        grid-column: 1 / -1;
        order: 1;
    }
}

.gf-dtf__drop:hover,
.gf-dtf__drop.is-over {
    border-color: #126776;
    background: #eef5f5;
}

.gf-dtf__drop-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #126776;
}

.gf-dtf__drop-hint {
    font-size: .85rem;
    color: #6b7075;
    line-height: 1.5;
}

.gf-dtf__status {
    margin: 1rem 0 0;
    padding: .75rem 1rem;
    border-radius: .5rem;
    background: #f0f3f4;
    font-size: .95rem;
}

.gf-dtf__status.is-error {
    background: #fbeceb;
    color: #a72c22;
}

/* ---------------------------------------------------------------- Dateiliste */

.gf-dtf__liste {
    list-style: none;
    margin: .75rem 0 0;
    padding: 0;
    display: grid;
    gap: .75rem;
}

.gf-dtf__motif {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: .75rem 1rem;
    align-items: start;
    padding: .75rem;
    border: 1px solid #e2e6e7;
    border-radius: .6rem;
    background: #fff;
}

.gf-dtf__motif-bild {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    /* Grauer Grund auch hier: ein weisser Hintergrund faellt schon in der Liste auf */
    background: #d9d9d9;
    border-radius: .35rem;
}

.gf-dtf__motif-fields {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    align-items: flex-end;
}

.gf-dtf__field {
    display: flex;
    flex-direction: column;
    font-size: .78rem;
    color: #6b7075;
}

.gf-dtf__field input[type="number"] {
    width: 6rem;
    padding: .35rem .5rem;
    border: 1px solid #ccd3d4;
    border-radius: .35rem;
    font-size: 1rem;
}

.gf-dtf__field--check {
    flex-direction: row;
    align-items: center;
    gap: .4rem;
    padding-bottom: .4rem;
    font-size: .9rem;
    color: #3c3c3b;
}

.gf-dtf__motif-size {
    width: 100%;
    font-size: .8rem;
    color: #6b7075;
    line-height: 1.5;
}

.gf-dtf__klein,
.gf-dtf__remove {
    padding: .35rem .6rem;
    border-radius: .35rem;
    background: #fff;
    font-size: .85rem;
    cursor: pointer;
}

.gf-dtf__klein {
    border: 1px solid #b9c4c6;
    color: #126776;
}

.gf-dtf__remove {
    border: 1px solid #e0c3c0;
    color: #a72c22;
    margin-left: auto;
}

/* ---------------------------------------------------------------- Aktionen */

.gf-dtf__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.gf-dtf__button {
    display: inline-block;
    padding: .7rem 1.4rem;
    border: 0;
    border-radius: .4rem;
    background: #126776;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.gf-dtf__button:hover {
    color: #fff;
}

.gf-dtf__button[disabled] {
    background: #b9c4c6;
    cursor: not-allowed;
}

.gf-dtf__note {
    font-size: .85rem;
    color: #6b7075;
    line-height: 1.5;
}

/* ---------------------------------------------------------------- Staffel */

.gf-dtf__staffel {
    margin: 1.25rem 0 0;
    padding: .9rem 1rem;
    border: 1px solid #cfe0e2;
    border-radius: .5rem;
    background: #f2f8f8;
}

.gf-dtf__staffel-titel {
    margin: 0 0 .5rem;
    font-weight: 600;
    color: #126776;
}

.gf-dtf__staffel-liste {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 .5rem;
    padding: 0;
}

.gf-dtf__staffel-liste li {
    padding: .3rem .7rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #cfe0e2;
    font-size: .9rem;
}

.gf-dtf__staffel-liste li strong {
    color: #126776;
}

/* ---------------------------------------------------------------- Ergebnisse */

.gf-dtf__ergebnis {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e6e7;
}

.gf-dtf__findings {
    display: grid;
    gap: .5rem;
    margin: .75rem 0 1.25rem;
}

.gf-dtf__finding {
    padding: .75rem .9rem;
    border-radius: .5rem;
    border-left: 4px solid #b9c4c6;
    background: #f7f9f9;
    line-height: 1.5;
    margin: 0;
}

.gf-dtf__finding--fehler {
    border-left-color: #d43b2f;
    background: #fbeceb;
}

.gf-dtf__finding--hinweis {
    border-left-color: #e08c1a;
    background: #fdf5e9;
}

.gf-dtf__finding--gut {
    border-left-color: #126776;
    background: #eef5f5;
}

.gf-dtf__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: .75rem;
    margin: 0 0 1.25rem;
    padding: 0;
}

.gf-dtf__facts div {
    padding: .6rem .75rem;
    border: 1px solid #e2e6e7;
    border-radius: .5rem;
    background: #fff;
}

.gf-dtf__facts dt {
    font-size: .78rem;
    color: #6b7075;
}

.gf-dtf__facts dd {
    margin: .15rem 0 0;
    font-weight: 600;
}

.gf-dtf__price {
    margin: 0 0 1.25rem;
    padding: .9rem 1rem;
    border-radius: .5rem;
    background: #eef5f5;
    font-size: 1.05rem;
}

.gf-dtf__preview {
    margin: 1rem 0 0;
}

.gf-dtf__preview img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #e2e6e7;
    border-radius: .5rem;
}

.gf-dtf__preview figcaption {
    margin-top: .5rem;
    font-size: .85rem;
    color: #6b7075;
    line-height: 1.5;
}

@media (max-width: 30rem) {
    .gf-dtf__motif {
        grid-template-columns: 3.5rem 1fr;
    }

    .gf-dtf__motif-bild {
        width: 3.5rem;
        height: 3.5rem;
    }

    .gf-dtf__remove {
        margin-left: 0;
    }
}

/* Anordnung: Platz sparen oder gerade schneiden */
.gf-dtf__modus {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    flex-basis: 100%;
    margin: 0 0 .5rem;
    padding: 0;
    border: 0;
}

.gf-dtf__modus legend {
    width: 100%;
    margin: 0 0 .35rem;
    font-size: .85rem;
    font-weight: 600;
    color: #3c3c3b;
}

.gf-dtf__modus-wahl {
    display: flex;
    flex: 1 1 14rem;
    gap: .6rem;
    align-items: flex-start;
    padding: .7rem .85rem;
    border: 1px solid #d5dcdd;
    border-radius: .5rem;
    background: #fff;
    cursor: pointer;
}

.gf-dtf__modus-wahl:has(input:checked) {
    border-color: #126776;
    background: #f2f8f8;
    box-shadow: inset 0 0 0 1px #126776;
}

.gf-dtf__modus-wahl input {
    margin-top: .2rem;
    accent-color: #126776;
}

.gf-dtf__modus-wahl strong {
    display: block;
    color: #3c3c3b;
}

.gf-dtf__modus-wahl small {
    display: block;
    color: #6b7075;
    line-height: 1.4;
}

/* Warenkorb-Leiste: der Kunde bleibt im Werkzeug und sieht trotzdem, was schon abgelegt ist (15.10.) */
.gf-dtf__warenkorb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 14px 18px;
    background: #e9f4f5;
    border: 1px solid #bcdde1;
    border-radius: 10px;
}
.gf-dtf__warenkorb p { margin: 0; font-weight: 600; color: #0f3f47; }
.gf-dtf__button.is-done { background: #1f9d67; cursor: default; }
.gf-dtf__bestellzeile.is-done { opacity: .75; }
.gf-dtf__link {
    border: 0;
    background: none;
    padding: 0 0 0 10px;
    color: #126776;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}
