/* openTS Live – Gestalter (Werkzeug für Kunden). Ruhig und sachlich, das Aussehen des Kunden lebt in der Vorschau. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(schrift/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(schrift/inter-latin-600-normal.woff2) format("woff2"); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f4f2ee; color: #17171a; font: 400 1rem/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; --rot: #8c0200; --linie: #d5d1c8; --leise: #5c5a55; --rand: clamp(14px, 3vw, 40px); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.g-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 24px; padding: 14px var(--rand); border-bottom: 1px solid var(--linie); background: #fff; }
.g-marke { margin: 0; font-weight: 600; font-size: 1.05rem; }
.g-marke span { color: var(--rot); }
.g-kopf-text { margin: 0; color: var(--leise); font-size: .95rem; }

.g-raster { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1680px; margin: 0 auto; }
.g-vorschau { position: sticky; top: 0; z-index: 5; background: #e9e6df; border-bottom: 1px solid var(--linie); padding: 10px var(--rand) 8px; }
.g-leiste { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.g-wahl { display: inline-flex; border: 1.5px solid #17171a; background: #fff; }
.g-wahl button { appearance: none; border: 0; background: transparent; color: #17171a; font-family: inherit; font-weight: 600; font-size: .9rem; line-height: 1; padding: 10px 13px; min-height: 40px; cursor: pointer; }
.g-wahl button + button { border-left: 1.5px solid #17171a; }
.g-wahl button[aria-pressed="true"] { background: #17171a; color: #fff; }
.g-wahl button:hover:not([aria-pressed="true"]) { background: #e9e6df; }
.g-rahmen { position: relative; margin: 0 auto; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--linie), 0 12px 28px -18px rgba(0, 0, 0, .5); }
.g-rahmen iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.g-klein { margin: 8px 0 0; font-size: .86rem; color: var(--leise); text-align: center; }

.g-form { padding: 22px var(--rand) 40px; display: grid; gap: 22px; align-content: start; min-width: 0; }
fieldset { border: 0; border-top: 2px solid #17171a; margin: 0; padding: 14px 0 0; display: grid; gap: 14px; min-width: 0; }
legend { padding: 0 12px 0 0; font-weight: 600; font-size: 1.12rem; float: left; width: 100%; margin-bottom: 4px; }
legend + * { clear: both; }
label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; font-weight: 600; font-size: .95rem; min-width: 0; align-content: start; }
label > input, label > select, label > textarea, label > .g-farbe { flex: 0 0 100%; margin-top: auto; }
.g-zwei > label { height: 100%; }
.g-frei { font-weight: 400; color: var(--leise); font-size: .86rem; }
input[type="text"], input[type="url"], input[type="date"], input[type="time"], input[type="number"], select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #8b8880; border-radius: 0; background: #fff; color: #17171a; font-family: inherit; font-weight: 400; font-size: 1rem; line-height: 1.3; }
textarea { resize: vertical; line-height: 1.45; }
input:hover, select:hover, textarea:hover { border-color: #17171a; }
.g-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.g-datei { display: grid; gap: 6px; }
.g-datei > label { display: block; }
.g-datei input[type="file"] { font: inherit; max-width: 100%; }
.g-datei input[type="file"]::file-selector-button { font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1; padding: 12px 16px; margin-right: 12px; border: 1.5px solid #17171a; background: #fff; color: #17171a; cursor: pointer; }
.g-datei input[type="file"]::file-selector-button:hover { background: #17171a; color: #fff; }
.g-dateistand { margin: 0; font-size: .9rem; color: var(--leise); }
.g-weg { justify-self: start; appearance: none; border: 0; background: none; padding: 4px 0; font-family: inherit; font-weight: 400; font-size: .9rem; line-height: 1.2; color: var(--rot); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.g-weg[hidden] { display: none; }
.g-vorschlag { background: #fff; border: 1px solid var(--linie); padding: 12px; display: grid; gap: 10px; }
.g-vorschlag[hidden], .g-ziel[hidden] { display: none; }
.g-vorschlag p { margin: 0; font-size: .92rem; }
.g-tupfer { display: flex; flex-wrap: wrap; gap: 8px; }
.g-tupfer button { appearance: none; width: 46px; height: 46px; border: 1.5px solid #17171a; cursor: pointer; padding: 0; }
.g-tupfer button[aria-pressed="true"] { outline: 3px solid var(--rot); outline-offset: 2px; }
.g-ziel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; }
.g-ziel span { font-variant-numeric: tabular-nums; font-weight: 600; }
.g-ziel button { appearance: none; border: 1.5px solid #17171a; background: #fff; font-family: inherit; font-weight: 600; font-size: .88rem; line-height: 1; padding: 10px 12px; min-height: 40px; cursor: pointer; color: #17171a; }
.g-ziel button:hover { background: #17171a; color: #fff; }
.g-farben { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.g-farbe { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
.g-farbe input[type="color"] { width: 52px; height: 46px; padding: 2px; border: 1.5px solid #8b8880; background: #fff; cursor: pointer; }
.g-lesbar { margin: 0; font-size: .92rem; padding: 10px 12px; background: #fff; border-left: 4px solid #2f6f3e; }
.g-lesbar[data-gut="nein"] { border-left-color: var(--rot); }
.g-ende p { margin: 0; max-width: 62ch; }
.g-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.g-knopf { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border: 1.5px solid #17171a; background: #fff; color: #17171a; font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer; }
.g-knopf:hover { background: #17171a; color: #fff; }
.g-knopf-voll { background: var(--rot); border-color: var(--rot); color: #fff; }
.g-knopf-voll:hover { background: #17171a; border-color: #17171a; }
.g-knopf-leise { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
.g-knopf-leise:hover { background: transparent; color: var(--rot); }
.g-knopf-datei { position: relative; overflow: hidden; }
.g-knopf-datei input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.g-knopf-datei:focus-within { outline: 3px solid var(--rot); outline-offset: 2px; }
.g-antwort { margin: 0; min-height: 1.5em; font-weight: 600; }
.g-antwort:empty { display: none; }
.g-fuss { border-top: 1px solid var(--linie); padding: 16px var(--rand) 22px; font-size: .86rem; color: var(--leise); background: #fff; }
.g-fuss p { margin: 0 0 4px; max-width: 110ch; }

/* PC: Formular links, Vorschau bleibt rechts stehen */
@media (min-width: 980px) {
  .g-raster { grid-template-columns: minmax(380px, 520px) minmax(0, 1fr); align-items: start; }
  .g-form { grid-column: 1; grid-row: 1; padding-right: clamp(18px, 2.4vw, 36px); }
  .g-vorschau { grid-column: 2; grid-row: 1; top: 0; height: 100vh; height: 100dvh; border-bottom: 0; border-left: 1px solid var(--linie); padding: 18px clamp(16px, 2.4vw, 36px); display: flex; flex-direction: column; }
  .g-rahmen { margin: auto; }
}

/* Anbieter-Bereich der Plattform */
.anb-zurueck { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px var(--rand); background: #fff; border-bottom: 1px solid var(--linie); }
.anb-zurueck strong { font-size: 1.05rem; }
.g-haken { display: flex; flex-wrap: nowrap; gap: 10px; align-items: flex-start; }
.g-haken input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--rot); }
.g-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.g-link input[readonly] { background: #eceae4; font-family: Consolas, monospace; font-size: .9rem; }
.g-klein-links { margin: 0; font-size: .9rem; color: var(--leise); }
a.g-knopf { text-decoration: none; }
body.anb .g-vorschau { top: 0; }

/* Handy: Vorschau schlank halten, damit das Formular Platz hat */
@media (max-width: 979px) { .g-vorschau { padding-top: 8px; padding-bottom: 8px; } .g-leiste { flex-wrap: nowrap; gap: 6px; margin-bottom: 6px; } .g-wahl button { padding: 8px 9px; min-height: 36px; font-size: .82rem; } .g-klein { display: none; } }

.g-hilfe { margin: 0; color: var(--leise); font-size: .95rem; }
.g-zwei > .g-datei { align-content: start; }
/* Durchsicht 25.11.: zwei Bildfelder nebeneinander dürfen nicht überlaufen; Seite Ausprobieren nutzt die ganze Breite */
.g-zwei > .g-datei { min-width: 0; }
.g-datei input[type="file"] { width: 100%; min-width: 0; }
.g-dateistand { overflow-wrap: anywhere; }
.g-zwei:has(> .g-datei) { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
body.probe .g-raster { width: 100%; }
@media (min-width: 980px) { body.probe .g-raster { grid-template-columns: minmax(400px, 34%) minmax(0, 1fr); max-width: none; } body.probe .g-form { padding-left: max(var(--rand), 2.4vw); } }
@media (min-width: 980px) { body.probe .g-rahmen { margin: 0 auto auto; } body.probe .g-vorschau { padding-top: 14px; } }

/* ---------- 25.11.2026: leichter bedienen. Bilder als große Felder zum Antippen oder Hineinziehen, Aussehen als Vorlagen, Seltenes eingeklappt ---------- */
legend { font-size: 1.3rem; font-family: "Outfit", "Inter", sans-serif; font-weight: 700; }
.g-versteckt { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.g-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.g-kachel { display: grid; gap: 6px; align-content: start; min-width: 0; }
.g-kachel-flaeche { display: grid; grid-template-rows: auto auto; gap: 0; cursor: pointer; background: #fff; border: 1.5px dashed #8b8880; transition: border-color .12s, background-color .12s; font-weight: 400; }
.g-kachel-flaeche:hover, .g-kachel.ziel .g-kachel-flaeche { border-color: #17171a; border-style: solid; background: #faf9f6; }
.g-kachel:has(input:focus-visible) .g-kachel-flaeche { outline: 3px solid var(--rot); outline-offset: 2px; }
.g-kachel-bild { display: block; aspect-ratio: 16 / 10; background: #eceae4 center / contain no-repeat; position: relative; }
.g-kachel-bild::before, .g-kachel-bild::after { content: ""; position: absolute; left: 50%; top: 50%; background: #8b8880; }
.g-kachel-bild::before { width: 26px; height: 2px; margin: -1px 0 0 -13px; } .g-kachel-bild::after { width: 2px; height: 26px; margin: -13px 0 0 -1px; }
.g-kachel.voll .g-kachel-bild::before, .g-kachel.voll .g-kachel-bild::after { display: none; }
.g-kachel.voll .g-kachel-bild { background-color: #17171a; }
.g-kachel.voll .g-kachel-flaeche { border-style: solid; border-color: #17171a; }
.g-kachel-text { display: grid; gap: 1px; padding: 9px 11px 10px; }
.g-kachel-text strong { font-size: 1.02rem; font-weight: 600; }
.g-kachel-text small { color: var(--leise); font-size: .86rem; }
.g-kachel-text em { font-style: normal; font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; margin-top: 3px; }
.g-kachel.voll .g-kachel-text em { display: none; }
.g-kachel .g-dateistand { font-size: .84rem; min-height: 1.2em; }
.g-kachel .g-weg { justify-self: start; }
.g-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.g-look { appearance: none; background: transparent; border: 0; padding: 0; cursor: pointer; display: grid; gap: 6px; font: inherit; color: inherit; text-align: left; }
.g-look-muster { display: grid; align-content: space-between; aspect-ratio: 4 / 3; padding: 10px; border: 1.5px solid #8b8880; font-weight: 700; font-size: 1.05rem; line-height: 1; }
.g-look-muster i { display: block; height: 12px; width: 62%; }
.g-look-name { font-weight: 600; font-size: .92rem; }
.g-look:hover .g-look-muster { border-color: #17171a; }
.g-look[aria-pressed="true"] .g-look-muster { outline: 3px solid var(--rot); outline-offset: 2px; border-color: #17171a; }
.g-look[aria-pressed="true"] .g-look-name::after { content: " · gewählt"; font-weight: 400; color: var(--leise); }
details.g-mehr > summary { cursor: pointer; font-weight: 600; padding: 10px 0; text-decoration: underline; text-underline-offset: 3px; }
details.g-mehr > summary:hover { color: var(--rot); }
.g-mehr-innen { display: grid; gap: 14px; padding: 6px 0 4px; }
.g-lesbar[data-gut="ja"] { display: none; }
@media (max-width: 380px) { .g-kachel-text em { display: none; } .g-looks { gap: 8px; } }
.g-kachel[data-art="logo"].voll .g-kachel-bild { background-color: #9a968e; background-size: 72% 72%; }
.g-look[aria-pressed="true"] .g-look-name::after { content: "gewählt"; display: block; }

.g-kacheln-vier { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.g-kachel-klein .g-kachel-bild { aspect-ratio: 3 / 2; background-size: 78% 78%; }
.g-kachel-klein.voll .g-kachel-bild { background-color: #fff; }
.g-kachel-klein .g-kachel-text { padding: 6px 8px; } .g-kachel-klein .g-kachel-text strong { font-size: .86rem; }
@media (max-width: 480px) { .g-kacheln-vier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
