@font-face { font-family: 'Lato'; src: url('fonts/Lato-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('fonts/Roboto-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('fonts/Roboto-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('fonts/Roboto-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('fonts/Raleway-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('fonts/Raleway-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('fonts/Raleway-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'PT Serif'; src: url('fonts/PT_Serif-Web-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'PT Serif'; src: url('fonts/PT_Serif-Web-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'PT Serif'; src: url('fonts/PT_Serif-Web-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('fonts/PlayfairDisplay-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('fonts/PlayfairDisplay-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('fonts/PlayfairDisplay-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Merriweather'; src: url('fonts/Merriweather-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Merriweather'; src: url('fonts/Merriweather-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Merriweather'; src: url('fonts/Merriweather-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('fonts/Lora-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('fonts/Lora-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('fonts/Lora-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('fonts/EBGaramond-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('fonts/EBGaramond-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('fonts/EBGaramond-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/CormorantGaramond-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/CormorantGaramond-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/CormorantGaramond-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Baskerville'; src: url('fonts/LibreBaskerville-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Libre Baskerville'; src: url('fonts/LibreBaskerville-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Baskerville'; src: url('fonts/LibreBaskerville-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('fonts/Oswald-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('fonts/Oswald-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Amatic SC'; src: url('fonts/AmaticSC-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Amatic SC'; src: url('fonts/AmaticSC-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Great Vibes'; src: url('fonts/GreatVibes-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Alex Brush'; src: url('fonts/AlexBrush-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Allura'; src: url('fonts/Allura-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Parisienne'; src: url('fonts/Parisienne-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dancing Script'; src: url('fonts/DancingScript-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dancing Script'; src: url('fonts/DancingScript-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sacramento'; src: url('fonts/Sacramento-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('fonts/Caveat-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('fonts/Caveat-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }

:root { --blau: #26b5f2; --dunkel: #0b5ea8; --orange: #ff8c00; --text: #1b2a38; --dezent: #6b7a88; --rand: #d9e2ea; --bg: #f3f6f9; --karte: #fff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); display: flex; flex-direction: column; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dezent); margin: 14px 0 6px; }
label { display: block; font-size: 13px; color: var(--dezent); margin-top: 8px; }
label > input, label > select, label > textarea { display: block; width: 100%; margin-top: 3px; }
input[type=text], input[type=number], select, textarea { font: inherit; color: var(--text); padding: 6px 8px; border: 1px solid var(--rand); border-radius: 8px; background: #fff; }
textarea { resize: vertical; }
input[type=color] { width: 100%; height: 32px; padding: 2px; border: 1px solid var(--rand); border-radius: 8px; background: #fff; }
.check { display: flex; align-items: center; gap: 6px; }
.check input { width: auto; margin: 0; }
.reihe { display: flex; gap: 8px; align-items: end; }
.reihe > * { flex: 1; }
.klein { font-size: 12px; color: var(--dezent); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 9px 12px; border: 0; border-radius: 10px; background: var(--dunkel); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-align: center; }
.knopf.sekundaer { background: #fff; color: var(--dunkel); border: 1.5px solid var(--dunkel); }
.knopf.klein-knopf { padding: 6px 8px; font-size: 12px; margin-top: 0; }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.datei { cursor: pointer; }

.kopf { display: flex; align-items: center; gap: 16px; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--rand); flex-wrap: nowrap; min-height: 58px; }
#opt-umschlag[hidden] { display: inline-flex !important; visibility: hidden; }
.tabs-zeile { display: flex; align-items: center; gap: 12px; }
.tabs-zeile #seiten-tabs { flex: 1; }
.fit-check { margin: 0; white-space: nowrap; }
.marke { font-weight: 700; font-size: 16px; white-space: nowrap; }
.marke-kurz { background: var(--orange); color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 12px; margin-right: 4px; }
.kopf-mitte { display: flex; gap: 12px; align-items: end; flex: 1; }
.kopf-mitte label { margin: 0; width: 210px; flex: none; }
.kopf-mitte select { width: 100%; box-sizing: border-box; }
.kopf-mitte .knopf { width: auto; margin: 0; }
.kopf-rechts { display: flex; gap: 8px; }
.kopf-rechts .knopf { width: auto; margin: 0; }

.studio { flex: 1; display: grid; grid-template-columns: 300px 1fr 300px; gap: 12px; padding: 12px; min-height: 0; }
.werkzeuge, .eigenschaften { background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; padding: 12px; overflow: auto; }
.werkzeuge details { border-bottom: 1px solid var(--rand); padding: 6px 0 10px; }
.werkzeuge summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.gruppe { font-size: 12px; font-weight: 600; color: var(--dezent); margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gruppe select { width: auto; padding: 3px 6px; font-size: 12px; }
.liste { max-height: 220px; overflow: auto; border: 1px solid var(--rand); border-radius: 8px; margin-top: 4px; }
.liste button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rand); padding: 7px 9px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text); }
.liste button:hover { background: #eef7fd; }
.liste button small { display: block; color: var(--dezent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips button { border: 1px solid var(--rand); background: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.chips button:hover { border-color: var(--dunkel); color: var(--dunkel); }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.galerie button { border: 2px solid transparent; border-radius: 8px; padding: 0; background: none; cursor: pointer; overflow: hidden; aspect-ratio: 3 / 2; }
.galerie button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie button:hover { border-color: var(--dunkel); }

.buehne { display: flex; flex-direction: column; min-width: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--rand); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; cursor: pointer; color: var(--dezent); }
.tabs button.aktiv { background: var(--dunkel); border-color: var(--dunkel); color: #fff; }
.leinwand { flex: 1; min-height: 420px; background: #dfe6ed; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 16px; }
.leinwand .canvas-container { box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.leinwand .seite-versteckt { display: none; }
.legende { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dezent); margin-top: 8px; }
.lg { display: inline-block; width: 18px; height: 0; border-top: 2px dashed; vertical-align: middle; margin-right: 4px; }
.lg-rot { border-color: #e5484d; } .lg-gruen { border-color: #2e9e5b; } .lg-grau { border-color: #9aa5b1; border-top-style: solid; }

.eigenschaften h3:first-child { margin-top: 0; }
.export { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--rand); }
#export-status { margin-top: 8px; white-space: pre-line; }
.mobil-hinweis { display: none; }
@media (max-width: 1100px) { .studio, .kopf { display: none; } .mobil-hinweis { display: block; margin: 40px auto; max-width: 420px; background: #fff; border: 1px solid var(--rand); border-radius: 12px; padding: 24px; text-align: center; } }

.kopf-check { margin: 0; white-space: nowrap; align-self: center; }
.check.radio { align-items: flex-start; margin-top: 8px; }
.check.radio > span { display: flex; flex-direction: column; gap: 2px; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; background: #FF8C00; color: #fff; font-size: 11px; font-weight: 600; vertical-align: 1px; }
#anfrage-status { white-space: pre-wrap; font-family: inherit; margin: 6px 0 0; }
.knopf:disabled { opacity: .55; cursor: wait; }
.check.radio input { margin-top: 4px; }
