
:root{
  --bg:#f6f1e8;
  --paper:#fffdf9;
  --ink:#22332a;
  --muted:#68766b;
  --green:#6f8e72;
  --green-dark:#284035;
  --green-soft:#e8f0e5;
  --rose:#bd9180;
  --rose-soft:#f0e1d8;
  --sand:#eadfce;
  --line:#dcd3c6;
  --shadow:0 18px 48px rgba(40,64,53,.10);
  --radius:26px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);line-height:1.65;background:linear-gradient(180deg,#faf7f1 0%,var(--bg) 48%,#f2ede3 100%)}
body.modal-open{overflow:hidden}
a{color:inherit}
img{display:block;max-width:100%}
button,input{font:inherit}
button{cursor:pointer}
.wrap{width:min(1180px,calc(100% - 36px));margin:auto}
.eyebrow{text-transform:uppercase;letter-spacing:.17em;font-size:.8rem;font-weight:850;color:var(--green);margin-bottom:.8rem}
h1,h2,h3{font-family:ui-serif,Georgia,Cambria,"Times New Roman",serif;line-height:1.08;color:#21352a;letter-spacing:-.025em;margin:0 0 .65em}
h1{font-size:clamp(3rem,6.5vw,5.9rem)}
h2{font-size:clamp(2.15rem,4vw,3.8rem)}
h3{font-size:1.5rem}
p{margin:.68em 0}
ul{padding-left:1.25rem}

.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid transparent;border-radius:999px;padding:.85rem 1.22rem;font-weight:800;transition:.18s ease}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:linear-gradient(135deg,#263c31,#365341);color:#fff;box-shadow:0 10px 25px rgba(40,64,53,.18)}
.btn.secondary{background:#fffdf9;color:var(--ink);border-color:var(--line)}

.site-header{position:sticky;top:0;z-index:50;background:rgba(248,244,236,.9);backdrop-filter:blur(16px);border-bottom:1px solid rgba(220,211,198,.9)}
.nav{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;text-decoration:none;min-width:220px;flex:0 1 350px}
.brand-logo{width:clamp(210px,24vw,330px);height:auto;max-height:66px;object-fit:contain;flex:none}
.brand-copy{display:grid;gap:1px;min-width:0}
.brand-copy strong{font-size:1.12rem;line-height:1.1}
.brand-copy span{font-size:.86rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.navlinks{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.navlinks a{text-decoration:none;font-weight:750;font-size:.94rem;padding:.58rem .76rem;border-radius:999px}
.navlinks a:hover{background:#fff}
.menu-btn{display:none;border:1px solid var(--line);background:#fffdf9;color:var(--ink);border-radius:13px;padding:.55rem .68rem}

.hero{padding:clamp(55px,8vw,105px) 0 70px;background:radial-gradient(circle at 15% 30%,rgba(240,225,216,.56),transparent 27%),radial-gradient(circle at 90% 18%,rgba(232,240,229,.82),transparent 30%)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(40px,7vw,88px);align-items:center}
.hero-copy p{max-width:61ch;font-size:1.1rem;color:var(--muted)}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:25px}.hero-secondary-action{margin-top:10px}
.appointment-inline{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.94rem}
.appointment-inline img{width:46px;height:46px;object-fit:cover;border-radius:50%}
.appointment-inline strong{display:block;color:var(--ink)}
.contact-strip{display:flex;gap:20px;flex-wrap:wrap;margin-top:25px;font-weight:750}
.hero-visual{margin:0}
.hero-visual img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:34px;box-shadow:var(--shadow);border:9px solid rgba(255,255,255,.75)}
.hero-visual figcaption{margin-top:14px;color:var(--muted);font-size:.93rem}

.section{padding:84px 0;scroll-margin-top:85px}
.section.soft{background:rgba(255,255,255,.38);border-block:1px solid rgba(220,211,198,.68)}
.section-head{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:36px;align-items:end;margin-bottom:34px}
.section-head p{margin:0;color:var(--muted);font-size:1.06rem}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.prose{font-size:1.01rem}
.prose>*:first-child{margin-top:0}
.prose>*:last-child{margin-bottom:0}
.soft-panel{padding:clamp(22px,4vw,38px);background:rgba(255,253,249,.76);border:1px solid rgba(220,211,198,.78);border-radius:var(--radius);box-shadow:0 12px 34px rgba(40,64,53,.06)}
.photo-stack{display:grid;grid-template-columns:1.35fr .65fr;gap:14px}
.photo-stack img{width:100%;height:220px;object-fit:cover;border-radius:23px;box-shadow:0 10px 26px rgba(40,64,53,.08)}
.photo-stack img:first-child{grid-row:span 2;height:454px}

.treatments-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.treatment-card{padding:25px 24px;border-radius:25px;background:linear-gradient(145deg,rgba(255,253,249,.95),rgba(247,241,231,.88));border:1px solid rgba(220,211,198,.86);box-shadow:0 11px 30px rgba(40,64,53,.06)}
.treatment-card h3{margin-bottom:.55em}
.treatment-card p{margin:.58em 0;color:#34443a}
.price-chip{display:inline-block;background:linear-gradient(135deg,var(--green-soft),var(--rose-soft));padding:.12rem .58rem;border-radius:999px;color:#24392e}
.treatment-notes{margin-top:18px;padding:23px 25px;border-radius:25px;background:linear-gradient(135deg,rgba(232,240,229,.88),rgba(240,225,216,.77));border:1px solid rgba(220,211,198,.75)}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:28px}
.gallery img{width:100%;height:230px;object-fit:cover;border-radius:21px;box-shadow:0 10px 26px rgba(40,64,53,.08)}
.primavera-row{display:flex;align-items:center;justify-content:center;margin-top:32px}
.primavera-row img{width:min(250px,70vw);height:auto;object-fit:contain}

.products{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.products img{width:100%;height:270px;object-fit:cover;border-radius:22px;border:1px solid rgba(220,211,198,.8);background:#fff;box-shadow:0 10px 26px rgba(40,64,53,.07)}

.about-photos{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.about-photos img{width:100%;height:240px;object-fit:cover;border-radius:22px;box-shadow:0 10px 26px rgba(40,64,53,.08)}
.about-photos img:first-child{grid-column:span 2;height:310px}

.offer{background:linear-gradient(135deg,#263d32 0%,#3f5d48 58%,#718a70 100%);color:#fff;border-radius:34px;padding:clamp(30px,5vw,52px);box-shadow:0 22px 55px rgba(40,64,53,.18)}
.offer .eyebrow{color:#dcead8}
.offer h2{color:#fff}
.offer-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:38px;align-items:end}
.offer-list{list-style:none;padding:0;margin:1.2rem 0 0;display:grid;gap:9px}
.offer-list li{display:flex;gap:10px;align-items:center}
.offer-list li:before{content:"✿";color:#efdacf}
.offer-price{font-family:ui-serif,Georgia,Cambria,"Times New Roman",serif;font-size:clamp(3.8rem,7vw,6rem);line-height:.9;white-space:nowrap}
.offer-note{margin-top:12px;color:rgba(255,255,255,.83)}

.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.contact-item{padding:25px 26px;border-top:3px solid var(--green);background:rgba(255,253,249,.76);border-radius:0 0 22px 22px}
.contact-item h3{margin-bottom:.35rem}

.legal-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.legal details{background:rgba(255,253,249,.78);border:1px solid var(--line);border-radius:22px;padding:0 21px}
.legal summary{list-style:none;padding:20px 0;font-weight:800;cursor:pointer}
.legal summary::-webkit-details-marker{display:none}
.legal-body{padding-bottom:22px}

.footer{padding:45px 0 90px}
.footer-grid{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.footer small{color:var(--muted)}
.footer-links{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.footer-links a,.footer-links button{border:0;background:none;color:var(--muted);text-decoration:none;font-weight:740;padding:.35rem}
.admin-key{opacity:.62}

.cookie{position:fixed;z-index:110;left:50%;bottom:18px;transform:translateX(-50%);width:min(880px,calc(100% - 28px));background:#18251d;color:#fff;border-radius:22px;padding:18px 20px;box-shadow:0 25px 80px rgba(0,0,0,.28);display:none;align-items:center;gap:20px}
.cookie.show{display:flex}
.cookie p{margin:0;flex:1;font-size:.92rem}
.cookie a{color:#dcefd4}
.cookie-actions{display:flex;gap:8px;flex-wrap:wrap}
.cookie .secondary{background:transparent;color:#fff;border-color:rgba(255,255,255,.25)}

.modal{position:fixed;inset:0;z-index:120;display:none;place-items:center;background:rgba(22,31,25,.72);padding:18px}
.modal.show{display:grid}
.modal-card{width:min(760px,100%);max-height:90vh;overflow:auto;background:#fffdf9;color:var(--ink);border-radius:26px;padding:26px;box-shadow:0 30px 100px rgba(0,0,0,.34)}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.icon-btn{width:40px;height:40px;border:0;border-radius:50%;background:#eee7dc;color:var(--ink)}
.form-row{display:grid;gap:7px;margin:14px 0}
.form-row input{padding:.8rem .9rem;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink)}
.admin-panel{display:none}
.admin-panel.show{display:block}
.notice{padding:14px 15px;border-radius:15px;background:linear-gradient(135deg,#edf4e9,#f5e8e0);color:#314437;font-size:.93rem}
.admin-toolbar{position:fixed;top:91px;right:18px;z-index:100;display:none;gap:8px;flex-wrap:wrap;max-width:360px;padding:12px;border-radius:18px;background:#17231b;color:#fff;box-shadow:0 16px 45px rgba(0,0,0,.22)}
.admin-toolbar.show{display:flex}
.admin-toolbar button{border:0;border-radius:11px;padding:.58rem .72rem;font-weight:750}
.admin-toolbar .primary{background:#deecd7;color:#26382d}
.edit-tip{width:100%;font-size:.8rem;color:#cae0c4}
.flash{position:fixed;top:86px;left:50%;transform:translateX(-50%);z-index:200;display:none;padding:.7rem 1rem;border-radius:999px;background:#17231b;color:#fff;box-shadow:0 8px 30px rgba(0,0,0,.18)}
.flash.show{display:block}

.admin-mode .editable-image{outline:3px dashed var(--rose);outline-offset:4px;cursor:pointer}
.admin-mode .editable-image:hover{filter:brightness(.95)}

@media(max-width:930px){
  .navlinks{display:none;position:absolute;top:78px;left:18px;right:18px;padding:12px;background:#fffdf9;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
  .navlinks.open{display:grid}
  .menu-btn{display:block}
  .hero-grid,.two-col,.section-head,.offer-grid,.contact-grid,.legal-grid,.treatments-grid{grid-template-columns:1fr}
  .offer-price{justify-self:start}
  .gallery,.products{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .wrap{width:min(100% - 22px,1180px)}
  .brand-copy span{display:none}
  .hero{padding-top:42px}
  .photo-stack,.about-photos,.gallery,.products{grid-template-columns:1fr}
  .photo-stack img:first-child,.about-photos img:first-child{grid-column:auto;grid-row:auto;height:280px}
  .photo-stack img,.about-photos img,.gallery img,.products img{height:auto;max-height:360px}
  .cookie.show{align-items:stretch;flex-direction:column}
  .cookie-actions{width:100%}
  .cookie-actions .btn{flex:1}
}


/* ===== V4: Hero, layouttreuer Editor, Bilder- und Textbausteine ===== */
.hero-visual{margin:0;min-width:0}
.hero-image-frame{padding:9px;border-radius:34px;background:rgba(255,255,255,.78);box-shadow:var(--shadow)}
.hero-visual .hero-image-frame>img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;border:0;border-radius:26px;box-shadow:none;background:#fff}
.hero-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:13px}
.hero-meta figcaption{margin:0;color:var(--muted);font-size:.92rem;flex:1}
.appointment-under-image{display:flex;align-items:center;gap:10px;flex:0 0 auto;padding:8px 12px;border-radius:16px;background:rgba(255,253,249,.78);border:1px solid rgba(220,211,198,.86)}
.appointment-under-image>img{width:44px!important;height:44px!important;object-fit:cover!important;border:0!important;border-radius:50%!important;box-shadow:none!important;padding:0!important;background:none!important}
.appointment-under-image-text{font-size:.9rem;line-height:1.35}
.appointment-under-image-text strong{display:block;color:var(--ink)}
.appointment-under-image-text span{display:block;color:var(--muted);font-size:.84rem}

/* Zusatzinhalte: außerhalb des Editors exakt dieselben Blöcke. */
.section-builder{display:flex;flex-direction:column;gap:18px;margin-top:28px}
.section-builder:empty{display:none}
.builder-item{position:relative}
.user-media{margin:0}
.user-media.block-small,.user-text.block-small{max-width:300px}
.user-media.block-medium,.user-text.block-medium{max-width:470px}
.user-media.block-large,.user-text.block-large{max-width:720px}
.user-media.block-left,.user-text.block-left{margin-left:0;margin-right:auto}
.user-media.block-center,.user-text.block-center{margin-left:auto;margin-right:auto}
.user-media.block-right,.user-text.block-right{margin-left:auto;margin-right:0}
.user-media.block-wide,.user-text.block-wide{width:100%;max-width:none;margin-left:0;margin-right:0}
.user-media:not(.gallery-user-item)>img{width:100%;max-height:540px;object-fit:cover;border-radius:22px;border:1px solid rgba(220,211,198,.82);box-shadow:0 12px 30px rgba(40,64,53,.10)}
.user-media-caption{margin-top:8px;text-align:center;color:var(--muted);font-size:.9rem}
.user-text{width:100%;padding:20px 22px;border-radius:20px;background:rgba(255,253,249,.72);border:1px solid rgba(220,211,198,.78);box-shadow:0 10px 26px rgba(40,64,53,.06)}
.user-text-content{min-height:1.5em;white-space:pre-wrap}

/* Eingefügte Bilder innerhalb vorhandener Galerien verhalten sich wie reguläre Galerieelemente. */
.gallery>.user-media,.products>.user-media,.photo-stack>.user-media,.about-photos>.user-media{margin:0;min-width:0;align-self:stretch}
.gallery>.user-media>img,.products>.user-media>img,.photo-stack>.user-media>img,.about-photos>.user-media>img{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:21px;border:1px solid rgba(220,211,198,.8);box-shadow:0 10px 26px rgba(40,64,53,.08)}
.gallery>.user-media{height:230px;display:grid;grid-template-rows:minmax(0,1fr) auto}
.products>.user-media{height:270px;display:grid;grid-template-rows:minmax(0,1fr) auto}
.photo-stack>.user-media{height:220px;display:grid;grid-template-rows:minmax(0,1fr) auto}
.about-photos>.user-media{height:240px;display:grid;grid-template-rows:minmax(0,1fr) auto}
.gallery>.user-media .user-media-caption,.products>.user-media .user-media-caption,.photo-stack>.user-media .user-media-caption,.about-photos>.user-media .user-media-caption{margin:5px 3px 0;line-height:1.2;font-size:.8rem}
[data-editor-gallery]>.grid-span-2{grid-column:span 2}
[data-editor-gallery]>.grid-span-all{grid-column:1/-1}

/* Admin-Werkzeuge liegen über der Seite und beeinflussen das eigentliche Raster nicht. */
.section>.wrap,.hero>.wrap{position:relative}
.section-admin-tools{position:absolute!important;z-index:35;right:4px;top:4px;display:flex;gap:6px;margin:0!important;pointer-events:auto}
.section-add-element{border:1px solid #9fb39d;background:rgba(238,245,234,.96);color:#263d32;border-radius:999px;padding:.48rem .72rem;font-weight:800;box-shadow:0 6px 18px rgba(40,64,53,.09)}
.section-add-element:hover{background:#e3eee0}
.element-toolbar{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:150;display:none;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;width:min(970px,calc(100% - 26px));padding:10px 12px;border-radius:17px;background:rgba(23,35,27,.97);color:#fff;box-shadow:0 18px 60px rgba(0,0,0,.28)}
.element-toolbar.show{display:flex}
.element-toolbar-label{margin-right:4px;font-size:.85rem;color:#d4e5cf}
.element-toolbar button{border:0;border-radius:9px;padding:.45rem .62rem;font-weight:750;background:#f7f4ee;color:#26382d}
.element-toolbar button:hover{background:#e4efe0}
.element-toolbar button.danger{background:#f5ded7;color:#72392f}
.builder-selected{outline:3px solid rgba(111,142,114,.78)!important;outline-offset:5px}

/* Contenteditable nutzt nur Outlines – keine Padding-/Größenänderung. */
.admin-mode [contenteditable="true"]{outline:1px dashed rgba(183,128,106,.82);outline-offset:3px;border-radius:5px;background:transparent!important;color:inherit!important;caret-color:var(--ink)}
.admin-mode [contenteditable="true"]:hover,.admin-mode [contenteditable="true"]:focus{outline:2px solid rgba(183,128,106,.88);background:rgba(255,249,241,.18)!important}
.admin-mode summary[contenteditable="true"]{cursor:text}
.admin-mode .editable-image{outline:2px dashed rgba(183,128,106,.72);outline-offset:3px;cursor:pointer}
.admin-mode .builder-item .editable-image{cursor:default}

@media(max-width:930px){
  .hero-meta{align-items:flex-start;flex-direction:column}
  .appointment-under-image{width:100%}
  [data-editor-gallery]>.grid-span-2,[data-editor-gallery]>.grid-span-all{grid-column:1/-1}
}
@media(max-width:600px){
  .section-admin-tools{top:2px;right:2px}
  .section-add-element{font-size:.78rem;padding:.4rem .56rem}
  .element-toolbar{bottom:8px;gap:5px;padding:8px}
  .element-toolbar button{font-size:.78rem;padding:.4rem .5rem}
  .user-media.block-small,.user-media.block-medium,.user-media.block-large,.user-text.block-small,.user-text.block-medium,.user-text.block-large{max-width:100%}
}

/* ===== V5: einheitliche Bildbearbeitung, Steuerkreuz, stabiles Rechtliches ===== */
.legal-grid{align-items:start}
.legal details{align-self:start;width:100%}

/* Alle Galerie-Bilder – bestehend und neu – verwenden denselben Wrapper. */
.media-item{margin:0;min-width:0;position:relative}
.media-item>.user-media-caption:empty{display:none}
.admin-mode .media-item>.user-media-caption:empty{display:block;min-height:1.25em}
.admin-mode .media-item>.user-media-caption:empty::before{content:"Bildunterschrift";color:#8b7f74;font-style:italic;pointer-events:none}
.media-item>.user-media-caption{margin:6px 3px 0;text-align:center;color:var(--muted);font-size:.82rem;line-height:1.25}

.gallery>.media-item,.products>.media-item,.photo-stack>.media-item,.about-photos>.media-item{align-self:stretch;display:grid;grid-template-rows:minmax(0,1fr) auto}
.gallery>.media-item{height:230px}
.products>.media-item{height:270px}
.photo-stack>.media-item{height:220px}
.photo-stack>.media-item:first-child{grid-row:span 2;height:454px}
.about-photos>.media-item{height:240px}
.about-photos>.media-item:first-child{grid-column:span 2;height:310px}
.gallery>.media-item>img,.products>.media-item>img,.photo-stack>.media-item>img,.about-photos>.media-item>img{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:21px;border:1px solid rgba(220,211,198,.8);box-shadow:0 10px 26px rgba(40,64,53,.08)}
.photo-stack>.media-item>img{border-radius:23px}
.products>.media-item>img,.about-photos>.media-item>img{border-radius:22px}

/* Alte direkte Bildregeln dürfen die Wrapper nicht mehr geometrisch beeinflussen. */
.photo-stack>.media-item img:first-child,.about-photos>.media-item img:first-child{grid-column:auto;grid-row:auto;height:100%}

/* Freie Medien verwenden ebenfalls die identische Komponente. */
.media-item:not(.gallery-user-item).block-small,.user-text.block-small{max-width:300px}
.media-item:not(.gallery-user-item).block-medium,.user-text.block-medium{max-width:470px}
.media-item:not(.gallery-user-item).block-large,.user-text.block-large{max-width:720px}
.media-item:not(.gallery-user-item).block-left,.user-text.block-left{margin-left:0;margin-right:auto}
.media-item:not(.gallery-user-item).block-center,.user-text.block-center{margin-left:auto;margin-right:auto}
.media-item:not(.gallery-user-item).block-right,.user-text.block-right{margin-left:auto;margin-right:0}
.media-item:not(.gallery-user-item).block-wide,.user-text.block-wide{width:100%;max-width:none;margin-left:0;margin-right:0}
.media-item:not(.gallery-user-item)>img{width:100%;max-height:540px;object-fit:cover;border-radius:22px;border:1px solid rgba(220,211,198,.82);box-shadow:0 12px 30px rgba(40,64,53,.10)}

/* Visuelles Steuerkreuz. */
.move-pad{display:grid;grid-template-columns:32px 32px 32px;grid-template-rows:30px 30px 30px;gap:3px;place-items:stretch;margin:0 5px}
.move-pad button{padding:0!important;min-width:32px!important;height:30px!important;font-size:1rem!important;border-radius:8px!important}
.move-pad .move-up{grid-column:2;grid-row:1}
.move-pad .move-left{grid-column:1;grid-row:2}
.move-pad-center{grid-column:2;grid-row:2;display:grid;place-items:center;color:#cfe0cb;font-size:.9rem}
.move-pad .move-right{grid-column:3;grid-row:2}
.move-pad .move-down{grid-column:2;grid-row:3}
.builder-selected-image{outline:3px solid rgba(111,142,114,.78)!important;outline-offset:5px!important}

#toolbarAssets[hidden],#exportAssetsBtn[hidden]{display:none!important}
#exportAssetsBtn{margin-left:8px}

@media(max-width:930px){
  .photo-stack>.media-item:first-child,.about-photos>.media-item:first-child{grid-column:1/-1;grid-row:auto;height:300px}
}
@media(max-width:600px){
  .gallery>.media-item,.products>.media-item,.photo-stack>.media-item,.about-photos>.media-item,.photo-stack>.media-item:first-child,.about-photos>.media-item:first-child{height:auto;min-height:220px;grid-column:auto;grid-row:auto}
  .gallery>.media-item>img,.products>.media-item>img,.photo-stack>.media-item>img,.about-photos>.media-item>img{height:auto;max-height:360px}
  .move-pad{transform:scale(.92);transform-origin:center}
}

/* ===== V6: systemweite Textfeldbreite und Textausrichtung =====
   Diese Klassen werden direkt am bearbeiteten Textelement gespeichert und
   deshalb auch in der exportierten Website beibehalten. */
.text-width-small{width:min(100%,24rem)!important;max-width:24rem!important}
.text-width-medium{width:min(100%,40rem)!important;max-width:40rem!important}
.text-width-large{width:min(100%,60rem)!important;max-width:60rem!important}
.text-width-full{width:100%!important;max-width:none!important}
span.text-width-small,span.text-width-medium,span.text-width-large,span.text-width-full,
strong.text-width-small,strong.text-width-medium,strong.text-width-large,strong.text-width-full{display:inline-block}
.text-align-left{text-align:left!important}
.text-align-center{text-align:center!important}
.text-align-right{text-align:right!important}

/* Der aktive Text bleibt erkennbar, ohne seine Geometrie im Editor zu verändern. */
.admin-mode .text-selected{outline:3px solid rgba(111,142,114,.84)!important;outline-offset:4px!important}
.element-toolbar-group-label{font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#afc5aa;margin:0 1px 0 7px;white-space:nowrap}
.element-toolbar button.active{background:#d8ead3;color:#1f3529;box-shadow:inset 0 0 0 2px rgba(93,132,94,.28)}

/* Auf kleinen Displays darf keine gewählte Textbreite den Viewport sprengen. */
@media(max-width:680px){
  .text-width-small,.text-width-medium,.text-width-large,.text-width-full{max-width:100%!important}
  .element-toolbar-group-label{width:auto;margin-left:3px}
}


/* ===== V7: endgültige systemweite Textgestaltung ===== */
/* Die Angebotsüberschrift liegt jetzt außerhalb der Preis-/Leistungs-Spalten.
   Dadurch bedeutet "Voll" hier tatsächlich die gesamte grüne Angebotsfläche. */
.offer-heading{width:100%;min-width:0;margin-bottom:1.35rem}
.offer-heading h2{margin-bottom:0}
.offer-grid{align-items:end}
.offer-grid>.offer-list{min-width:0;margin:0}

/* Breiten beziehen sich immer auf den tatsächlich verfügbaren Inhaltsbereich. */
.text-width-small{inline-size:min(100%,24rem)!important;max-inline-size:24rem!important}
.text-width-medium{inline-size:min(100%,40rem)!important;max-inline-size:40rem!important}
.text-width-large{inline-size:min(100%,60rem)!important;max-inline-size:60rem!important}
.text-width-full{display:block;inline-size:100%!important;width:100%!important;max-inline-size:none!important;max-width:none!important;min-width:0!important}
span.text-width-small,span.text-width-medium,span.text-width-large,
strong.text-width-small,strong.text-width-medium,strong.text-width-large,
a.text-width-small,a.text-width-medium,a.text-width-large{display:inline-block}
span.text-width-full,strong.text-width-full,a.text-width-full{display:block!important}

/* Ausschließlich lokale/System-Schriften – keine externen Abhängigkeiten. */
.text-font-system{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important}
.text-font-serif{font-family:ui-serif,Georgia,Cambria,"Times New Roman",serif!important}
.text-font-georgia{font-family:Georgia,"Times New Roman",serif!important}
.text-font-arial{font-family:Arial,Helvetica,sans-serif!important}
.text-font-verdana{font-family:Verdana,Geneva,sans-serif!important}
.text-font-trebuchet{font-family:"Trebuchet MS",Arial,sans-serif!important}

/* Exakte, pro Textfeld gespeicherte Größe; auf kleinen Displays wird sie sicher begrenzt. */
.text-size-custom{font-size:clamp(.625rem,var(--editor-font-size),12vw)!important}

/* Die Textwerkzeuge dürfen umbrechen, ohne das Seitenlayout zu beeinflussen. */
.element-toolbar{width:min(1220px,calc(100% - 24px))}
.element-toolbar-select,.element-toolbar-number{
  height:34px;border:0;border-radius:9px;background:#f7f4ee;color:#26382d;font:inherit;font-weight:700;padding:0 .55rem
}
.element-toolbar-select{min-width:112px}
.element-toolbar-number{width:70px;text-align:center}
.element-toolbar-select:focus,.element-toolbar-number:focus{outline:2px solid #9fc29a;outline-offset:1px}

@media(max-width:930px){
  .offer-heading{margin-bottom:1rem}
}
@media(max-width:680px){
  .text-width-small,.text-width-medium,.text-width-large,.text-width-full{inline-size:100%!important;max-inline-size:100%!important}
  .element-toolbar-select{min-width:100px}
  .element-toolbar-number{width:62px}
}
