:root {
  --ink: #173e37;
  --muted: #62746b;
  --paper: #f7f8f2;
  --line: #dbe3d8;
  --lime: #d6f590;
  --white: #fff;
  --radius: 24px;
  --radius-sm: 12px;
  --font-sans: 'Inter', Arial, Helvetica, sans-serif;
  --font-display: 'Manrope', 'Inter', Arial, Helvetica, sans-serif;
  --shadow-sm: 0 1px 2px rgba(23, 62, 55, .05), 0 1px 1px rgba(23, 62, 55, .04);
  --shadow-md: 0 10px 30px rgba(23, 62, 55, .07), 0 2px 8px rgba(23, 62, 55, .04);
  --shadow-lg: 0 24px 60px rgba(23, 62, 55, .12);
  --ease: cubic-bezier(.4, 0, .2, 1);
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0 }
a { color: inherit }
button, input, textarea, select { font: inherit }
button, a, input, textarea, select { touch-action: manipulation }
button { cursor: pointer }
[hidden] { display: none !important }
::selection { background: var(--lime); color: var(--ink) }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important }
}

.skip-link { position: absolute; left: 16px; top: -100px; background: var(--white); padding: 16px; border-radius: 0 0 10px 10px; z-index: 10; transition: top .2s var(--ease) }
.skip-link:focus { top: 0 }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 2px }

/* Header */
.site-header {
  max-width: 1320px;
  margin: auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: var(--ipy-brand-size, 24px); letter-spacing: -.7px; white-space: nowrap }
.site-header .brand, .site-footer .brand { white-space: normal; overflow-wrap: anywhere; min-width: 0 }
.brand-dot { color: var(--lime); filter: brightness(.75) saturate(1.4) }
.brand-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--lime); border-radius: 9px; font: 700 16px var(--font-display); margin-right: 10px }
.site-header nav { display: flex; gap: 28px; font-size: 14px }
.site-header nav a { text-decoration: none; padding: 8px 0; position: relative }
.site-header nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 3px; height: 1px; background: currentColor; transition: right .2s var(--ease) }
.site-header nav a:hover::after, .site-header nav .is-active::after { right: 0 }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--white);
  padding: 16px 24px; font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.button:hover { background: color-mix(in srgb, var(--ink) 85%, black); transform: translateY(-1px); box-shadow: var(--shadow-md) }
.button:active { transform: translateY(0) }
.button-small { padding: 12px 18px }

/* Copy blocks */
.frame { max-width: 1080px; margin: 88px auto; padding: 0 32px; line-height: 1.7 }
.frame h2 { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1.2 }
.frame h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.3 }
.frame p { max-width: 750px; color: var(--muted) }
.frame a { font-weight: 600; text-underline-offset: 4px }

.frame-layout-10 { max-width: 1120px; text-align: center; padding-top: 64px; margin-bottom: 72px; position: relative }
.frame-layout-10 header:before {
  content: 'IPRESENTYOU · DEINE WEBSITE BEGINNT MIT DIR';
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--muted); margin-bottom: 28px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
}
.ipy-generated-site .frame-layout-10 header:before { content: none }
.frame-layout-10 h1 {
  max-width: 900px; margin: 0 auto 25px; font-family: var(--font-display);
  font-size: clamp(40px, 5.8vw, 76px); font-weight: 600; letter-spacing: -3px; line-height: 1.06; text-wrap: balance;
}
.frame-layout-10 p { max-width: 600px; margin: 0 auto 20px; font-size: 18px; line-height: 1.7 }
.frame-layout-10 .ipy-hero-image { max-width: 1120px }

.frame-layout-20 { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow-lg) }
.frame-layout-20 p { color: color-mix(in srgb, var(--white) 82%, var(--ink)) }

.ipy-hero-image { margin: 32px auto 0; max-width: 1080px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md) }
.ipy-hero-image img { display: block; width: 100%; height: auto }
.frame-layout-80 .ipy-hero-image { width: calc(100% + 64px); max-width: none; margin: 32px -32px 0; border-radius: 0; box-shadow: none }
.frame-layout-55 .ipy-hero-image { max-width: 1120px; margin: 0 auto; border-radius: 0; box-shadow: none }
.frame-layout-50, .frame-layout-51 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: center; gap: 12px clamp(24px, 5vw, 64px); max-width: 1240px }
.frame-layout-50 > header { grid-column: 1; grid-row: 1; align-self: end; margin: 0 }
.frame-layout-50 > [data-ipy-edit-body] { grid-column: 1; grid-row: 2 }
.frame-layout-50 .ipy-hero-image { grid-column: 2; grid-row: 1 / span 2 }
.frame-layout-51 > header { grid-column: 2; grid-row: 1; align-self: end; margin: 0 }
.frame-layout-51 > [data-ipy-edit-body] { grid-column: 2; grid-row: 2 }
.frame-layout-51 .ipy-hero-image { grid-column: 1; grid-row: 1 / span 2 }
.frame-layout-50 .ipy-hero-image, .frame-layout-51 .ipy-hero-image { width: 100%; max-width: none; margin: 0; border-radius: var(--radius); box-shadow: var(--shadow-md) }
.frame-layout-50 .ipy-hero-image + .ipy-hero-image, .frame-layout-51 .ipy-hero-image + .ipy-hero-image { display: none }
.frame-layout-50.frame-ipy-tint-wide, .frame-layout-50.frame-ipy-accent-wide, .frame-layout-50.frame-ipy-ink-wide,
.frame-layout-51.frame-ipy-tint-wide, .frame-layout-51.frame-ipy-accent-wide, .frame-layout-51.frame-ipy-ink-wide { max-width: none; padding-inline: max(32px, calc((100vw - 1176px) / 2)) }
.frame-layout-92 .ipy-youtube-placeholder { width: min(100%, 1000px); aspect-ratio: 16 / 9; margin-inline: auto }
.ipy-youtube-placeholder iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: var(--radius) }
.frame-ipy-tint.frame-layout-80 .ipy-hero-image,
.frame-ipy-accent.frame-layout-80 .ipy-hero-image,
.frame-ipy-ink.frame-layout-80 .ipy-hero-image { width: calc(100% + 88px); margin-left: -44px; margin-right: -44px }
/* Bildunterschrift (aus dem FAL-Beschreibungsfeld): standardmäßig unsichtbar, da nicht jedes
   Layout dafür Platz vorsieht – layout=61 (Foto-Hero mit Bildkarte) schaltet sie gezielt frei. */
.ipy-hero-image-caption { display: none }

/* Editorial photography for the ipresentyou presentation. */
[data-ipy-theme="ipresentyou"] #c1 .ipy-hero-image { margin-top: 40px; }
[data-ipy-theme="ipresentyou"] #c1 .ipy-hero-image img { aspect-ratio: 2 / 1; object-fit: cover; object-position: center 46%; }
[data-ipy-theme="ipresentyou"] #c3 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: center; }
[data-ipy-theme="ipresentyou"] #c3 header { grid-column: 1; align-self: end; }
[data-ipy-theme="ipresentyou"] #c3 [data-ipy-edit-body] { grid-column: 1; align-self: start; }
[data-ipy-theme="ipresentyou"] #c3 .ipy-hero-image { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
[data-ipy-theme="ipresentyou"] #c3 .ipy-hero-image img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% center; }
[data-ipy-theme="ipresentyou"] #c4 .ipy-hero-image img { aspect-ratio: 16 / 9; object-fit: cover; }
[data-ipy-theme="ipresentyou"] #c111 .ipy-hero-image img { aspect-ratio: 2 / 1; object-fit: cover; object-position: center 42%; }
@media (max-width: 700px) {
  [data-ipy-theme="ipresentyou"] #c3 { display: block; }
  [data-ipy-theme="ipresentyou"] #c3 .ipy-hero-image { margin-top: 24px; }
  [data-ipy-theme="ipresentyou"] #c3 .ipy-hero-image img { aspect-ratio: 4 / 3; }
  [data-ipy-theme="ipresentyou"] #c1 .ipy-hero-image img,
  [data-ipy-theme="ipresentyou"] #c4 .ipy-hero-image img,
  [data-ipy-theme="ipresentyou"] #c111 .ipy-hero-image img { aspect-ratio: 4 / 3; }
}

/* Builder */
.builder-section { max-width: 1240px; padding: 0 32px; margin: 0 auto 96px }
.section-heading { margin: 0 0 26px }
.section-heading .eyebrow { display: none }
.section-heading h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.5px }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.7px; color: var(--muted) }

.builder-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) 310px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.builder-main { padding: 32px 34px }
.builder-tabs { display: flex; background: color-mix(in srgb, var(--ink) 6%, var(--paper)); border-radius: 10px; padding: 5px; margin-bottom: 28px; gap: 4px }
.builder-tabs button { flex: 1; background: none; border: 0; color: var(--muted); border-radius: 7px; padding: 13px 8px; font-size: 13px; font-weight: 600; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease) }
.builder-tabs button[aria-selected=true] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm) }
.builder-main label, .builder-main legend { display: block; font-size: 13px; font-weight: 600; margin: 19px 0 9px }
.builder-main input:not([type=checkbox]), .builder-main textarea, .builder-main select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  background: color-mix(in srgb, var(--paper) 60%, var(--white)); color: var(--ink); font-size: 14px; line-height: 1.5;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.builder-main input:not([type=checkbox]):focus, .builder-main textarea:focus, .builder-main select:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); outline: none;
}
.builder-main textarea { resize: vertical; min-height: 120px }
.builder-main input::placeholder, .builder-main textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent) }
.example-button { background: none; color: var(--muted); border: 0; padding: 8px 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px }
.form-columns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; margin-bottom: 24px }
.form-note { font-size: 11px !important; color: var(--muted); line-height: 1.6; margin: 14px 0 0; max-width: 550px }

.builder-aside { padding: 36px 30px; background: color-mix(in srgb, var(--ink) 5%, var(--paper)); display: flex; flex-direction: column }
.status-pill { font-size: 9px; letter-spacing: 1.2px; display: flex; align-items: center; gap: 7px }
.status-pill span { width: 6px; height: 6px; background: color-mix(in srgb, var(--ink) 60%, var(--lime)); border-radius: 50% }
.builder-aside h3 { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -1px; line-height: 1.2; margin: 30px 0 }
.builder-aside ol { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 28px }
.builder-aside li { counter-increment: step; position: relative; padding-left: 39px }
.builder-aside li:before { content: counter(step); position: absolute; left: 0; top: -3px; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--white) }
.builder-aside b { display: block; font-size: 13px; margin-bottom: 5px }
.builder-aside li span { font-size: 12px; line-height: 1.5; color: var(--muted); display: block }
.aside-note { margin-top: auto; border-top: 1px solid var(--line); padding-top: 23px; font-size: 14px; line-height: 1.8 }

.builder-main h3 { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -.6px; margin: 13px 0 }
.builder-main p { font-size: 14px; line-height: 1.65; color: var(--muted) }
fieldset { border: 0; padding: 0; margin: 0 0 24px }
.builder-main .checkbox { display: inline-flex; gap: 6px; align-items: center; margin: 5px 16px 5px 0; font-weight: 400; font-size: 12px }
input[type=checkbox] { accent-color: var(--ink); width: 16px; height: 16px }

.builder-result { margin-top: 24px; border: 1px solid var(--line); padding: 30px; border-radius: var(--radius); background: var(--white) }
.builder-result h3 { font-size: 26px }
.builder-result > p { color: var(--muted); line-height: 1.6 }

.page-outline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 }
.page-outline article { border: 1px solid var(--line); padding: 18px; border-radius: var(--radius-sm); background: var(--white); transition: transform .2s var(--ease), box-shadow .2s var(--ease) }
.page-outline article:hover { transform: translateY(-2px); box-shadow: var(--shadow-md) }
.page-outline article > span { font-size: 11px; color: var(--muted) }
.page-outline h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700 }
.page-outline p { font-size: 12px; line-height: 1.6; color: var(--muted) }

/* Footer */
.site-footer { max-width: 1240px; padding: 36px 32px; margin: auto; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px }
.site-footer p { font-size: 12px; line-height: 1.7 }
.site-footer p span { display: block; color: var(--muted) }
.site-footer small { font-size: 10px; color: var(--muted) }
.footer-login { text-decoration: underline; text-underline-offset: 2px; transition: color .2s var(--ease) }
.footer-login:hover { color: var(--ink) }

/* Login modal */
.ipy-login-modal-overlay { position: fixed; inset: 0; background: rgba(13, 31, 27, .67); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 1000; padding: 24px }
.ipy-login-modal-box { position: relative; width: min(400px, 100%); background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 38px 32px 32px; animation: ipy-modal-in .2s var(--ease) }
@keyframes ipy-modal-in { from { opacity: 0; transform: translateY(8px) scale(.98) } to { opacity: 1; transform: none } }
.ipy-login-modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 15px; line-height: 1; display: grid; place-items: center; padding: 0; transition: background .2s var(--ease) }
.ipy-login-modal-close:hover { background: var(--paper) }
.ipy-login-modal-form h2 { font-family: var(--font-display); margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.5px }
.ipy-login-modal-form > p { margin: 0 0 22px; font-size: 13px; color: var(--muted); line-height: 1.6 }
.ipy-login-modal-form label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 7px }
.ipy-login-modal-form input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; font-size: 14px; background: color-mix(in srgb, var(--paper) 60%, var(--white)); color: var(--ink) }
.ipy-login-modal-form .ipy-login-modal-message { min-height: 18px; font-size: 12.5px; color: #b3261e; margin: 12px 0 0 }
.ipy-login-modal-form button[type=submit] { width: 100%; margin: 6px 0 0; border: 0 }

/* Content elements */
.ce-gallery img { max-width: 100%; height: auto; border-radius: 18px }
.ce-gallery { margin: 20px 0 }

.frame-type-ipy_faq_item { max-width: 820px; margin: 14px auto }
.ipy-faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; transition: box-shadow .2s var(--ease) }
.ipy-faq-item[open] { box-shadow: var(--shadow-sm) }
.ipy-faq-item summary { cursor: pointer; list-style: none; padding: 20px 54px 20px 22px; font-weight: 600; font-size: 16px; position: relative; transition: background .2s var(--ease) }
.ipy-faq-item summary:hover { background: color-mix(in srgb, var(--ink) 4%, transparent) }
.ipy-faq-item summary::-webkit-details-marker { display: none }
.ipy-faq-item summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s var(--ease) }
.ipy-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg) }
.ipy-faq-answer { padding: 0 22px 20px; color: var(--muted); line-height: 1.65 }
.ipy-faq-answer p { margin: 0 }

/* Multi-level nav */
.site-nav-group { display: flex; align-items: center; gap: 8px; position: relative }
.site-submenu summary { cursor: pointer; font-size: 11px; white-space: nowrap }
.site-submenu-items { position: absolute; left: 0; top: 100%; z-index: 110; min-width: 180px; max-width: 280px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md) }
.site-submenu-items .site-nav-group { display: block; padding: 4px 0 }
.site-submenu-items .site-submenu-items { position: static; box-shadow: none; margin-top: 8px; min-width: 0 }

/* Feature-Übersicht (plain <ul><li> from bodytext, styled as a card grid) */
.frame-layout-30 { max-width: 1240px }
.frame-layout-30 ul { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px }
.frame-layout-30 li { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); padding: 22px; font-size: 14px; line-height: 1.6; color: var(--muted); transition: box-shadow .2s var(--ease), transform .2s var(--ease) }
.frame-layout-30 li:hover { box-shadow: var(--shadow-md); transform: translateY(-2px) }
.frame-layout-30 li strong { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px }

/* Preise (jedes <li> ein Plan; verschachtelte <ul> = Leistungsliste) */
.frame-layout-40 { max-width: 1240px }
.frame-layout-40 [data-ipy-edit-body] > ul { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: start }
.frame-layout-40 [data-ipy-edit-body] > ul > li { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 28px; font-size: 17px; font-weight: 650; line-height: 1.5; color: var(--ink) }
.frame-layout-40 [data-ipy-edit-body] > ul > li strong:first-child { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 4px }
.frame-layout-40 [data-ipy-edit-body] > ul > li ul { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; font-weight: 400; line-height: 1.55; color: var(--muted) }
.frame-layout-40 [data-ipy-edit-body] > ul > li ul li { display: grid; grid-template-columns: 1.4em 1fr; align-items: baseline }
.frame-layout-40 [data-ipy-edit-body] > ul > li ul li::before { content: '✓'; color: var(--ink); font-weight: 700 }
@media (max-width: 640px) { .frame-layout-40 [data-ipy-edit-body] > ul { gap: 14px; margin-top: 24px } .frame-layout-40 [data-ipy-edit-body] > ul > li { padding: 22px } }

/* Foto-Hero (layout=60): Foto-Vollbild-Sektion mit Textkarte, für Höfe/Erzeuger-Sites.
   Nutzt zwei image-Referenzen am selben Textelement: die erste als Vollbild-Hintergrund,
   die zweite (optional) als rundes Logo-Badge über der Karte. */
.frame-layout-60 { position: relative; max-width: 1400px; min-height: 560px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); display: flex; align-items: flex-end; justify-content: flex-end }
.frame-layout-60 .ipy-hero-image { position: absolute; inset: 0; margin: 0; max-width: none; border-radius: 0; z-index: 0 }
.frame-layout-60 .ipy-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block }
.frame-layout-60 .ipy-hero-image + .ipy-hero-image { inset: auto; top: -34px; right: 40px; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid var(--white); box-shadow: var(--shadow-md); z-index: 2 }
.frame-layout-60::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(20, 20, 10, .55) 100%); z-index: 1 }
.frame-layout-60 [data-ipy-edit-body] { position: relative; z-index: 2; width: min(380px, 90%); margin: 32px; background: color-mix(in srgb, var(--white) 96%, transparent); border-radius: var(--radius-sm); padding: 26px; box-shadow: var(--shadow-lg); max-height: calc(100% - 64px); overflow-y: auto }
.frame-layout-60 [data-ipy-edit-body] h2 { font-size: 22px; line-height: 1.3; margin: 0 0 14px; color: var(--ink) }
.frame-layout-60 [data-ipy-edit-body] ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted) }
.frame-layout-60 [data-ipy-edit-body] ul ul { margin: 2px 0 6px 14px; max-height: none; overflow: visible }
.frame-layout-60 [data-ipy-edit-body] li { margin: 0 }

/* Oliv-Theme (Ziegenhof-Vorbild): kantige Flächen statt runder Ecken, Foto randabschneidend
   über die volle Fensterbreite statt in einer eingerahmten Box. */
[data-ipy-theme="oliv"] .frame-layout-60,
[data-ipy-theme="oliv"] .frame-layout-61 {
  max-width: none; width: 100vw; margin: 0 calc(50% - 50vw); min-height: 0;
  border-radius: 0; box-shadow: none; overflow: visible;
  padding: 14px 10vw 56px;
}
[data-ipy-theme="oliv"] .frame-layout-60 { flex-direction: column-reverse; justify-content: flex-end; align-items: flex-end; gap: 0 }
[data-ipy-theme="oliv"] .frame-layout-60::before,
[data-ipy-theme="oliv"] .frame-layout-61::before { content: none }
/* Hintergrundfoto wie im Original: fest am Viewport, der Inhalt scrollt darüber. */
[data-ipy-theme="oliv"] .frame-layout-60 .ipy-hero-image,
[data-ipy-theme="oliv"] .frame-layout-61 .ipy-hero-image { position: fixed; inset: 0; width: 100vw; height: 100vh }
/* Karten: Original nutzt die rechte (bzw. linke+rechte) Hälfte eines 80%-Rasters, 20px
   Innenabstand, opakes Weiß. */
[data-ipy-theme="oliv"] .frame-layout-60 [data-ipy-edit-body],
[data-ipy-theme="oliv"] .frame-layout-61 [data-ipy-edit-body],
[data-ipy-theme="oliv"] .frame-layout-61 .ipy-hero-image + .ipy-hero-image {
  width: calc(40vw - 19.2px); margin: 0 9.6px; padding: 20px; background: #fff;
  border-radius: 0; box-shadow: none; max-height: none; overflow: visible; box-sizing: border-box;
}
/* Logo-Bild gehört im Original zur selben weißen Fläche wie der Text, nicht als kleines
   Eck-Badge über dem Foto (siehe Basisregel oben, dort für andere Themes weiterhin so).
   Beide Karten sind opak weiß und liegen bündig aufeinander. */
[data-ipy-theme="oliv"] .frame-layout-60 .ipy-hero-image + .ipy-hero-image {
  position: static; inset: auto; top: auto; right: auto; margin: 0 9.6px;
  width: calc(40vw - 19.2px); height: auto; aspect-ratio: auto;
  border-radius: 0; border: 0; box-shadow: none; overflow: visible;
  background: #fff; padding: 40px 20px 20px; box-sizing: border-box;
}
[data-ipy-theme="oliv"] .frame-layout-60 .ipy-hero-image + .ipy-hero-image img { width: min(480px, 100%); height: auto; margin: 0 auto; object-fit: contain }
[data-ipy-theme="oliv"] .frame-layout-61 { flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; align-content: flex-start; gap: 0 }
/* Willkommen (layout=60): Titel steht im Original linksbündig über der Karte auf dem Foto.
   Im column-reverse-Container liegt der höchste order-Wert ganz oben. */
[data-ipy-theme="oliv"] .frame-layout-60 { padding-top: 42px }
[data-ipy-theme="oliv"] .frame-layout-60 > header { order: 10; position: relative; z-index: 2; width: calc(40vw - 19.2px); margin: 0 9.6px 24.9px; box-sizing: border-box }
[data-ipy-theme="oliv"] .frame-layout-60 > header h1 { font-size: 30px; line-height: 45px; font-weight: 700; margin: 0; letter-spacing: 0; color: #646464; text-wrap: balance }
/* Seitentitel steht im Original zentriert über beiden Karten direkt auf dem Foto. */
[data-ipy-theme="oliv"] .frame-layout-61 > header { flex: 0 0 100%; order: 0; position: relative; z-index: 2; text-align: center; margin: 0 0 53.5px }
[data-ipy-theme="oliv"] .frame-layout-61 > header h1 { font-size: 30px; line-height: 45px; font-weight: 700; margin: 0; letter-spacing: 0; color: #646464 }
[data-ipy-theme="oliv"] .frame-layout-61 .ipy-hero-image + .ipy-hero-image { position: static; inset: auto; height: auto; z-index: 2 }
[data-ipy-theme="oliv"] .frame-layout-70 .ipy-hero-image { border-radius: 0 }

/* Foto-Hero mit Bildkarte (layout=61): wie layout=60 (Vollbild-Hintergrund), aber die zweite
   image-Referenz wird zur eigenen Bildkarte (scharfes Beweisfoto + Bildunterschrift aus dem
   FAL-Beschreibungsfeld) neben der Textkarte, statt zu einem Logo-Badge – für Seiten wie
   „Märkte“, die ein zweites Foto statt einer Marke zeigen. */
.frame-layout-61 { position: relative; max-width: 1400px; min-height: 560px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 24px }
.frame-layout-61 .ipy-hero-image { position: absolute; inset: 0; margin: 0; max-width: none; border-radius: 0; z-index: 0 }
.frame-layout-61 .ipy-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block }
.frame-layout-61::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(20, 20, 10, .55) 100%); z-index: 1 }
.frame-layout-61 [data-ipy-edit-body] { position: relative; z-index: 2; order: 2; width: min(340px, 90%); margin: 32px 0; background: color-mix(in srgb, var(--white) 96%, transparent); border-radius: var(--radius-sm); padding: 26px; box-shadow: var(--shadow-lg); max-height: calc(100% - 64px); overflow-y: auto }
.frame-layout-61 [data-ipy-edit-body] h3 { font-size: 18px; margin: 0 0 8px; color: var(--ink) }
.frame-layout-61 [data-ipy-edit-body] ul { list-style: none; margin: 0 0 14px; padding: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted) }
.frame-layout-61 .ipy-hero-image + .ipy-hero-image {
  position: static; inset: auto; order: 1; margin: 32px 0; z-index: 2;
  width: min(300px, 90%); background: color-mix(in srgb, var(--white) 96%, transparent);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: 10px; overflow: visible; box-sizing: border-box;
}
.frame-layout-61 .ipy-hero-image + .ipy-hero-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius-sm) - 6px); display: block }
.frame-layout-61 .ipy-hero-image + .ipy-hero-image .ipy-hero-image-caption { display: block; margin: 0; font-size: 13px; color: var(--muted) }

.site-header[data-ipy-theme="oliv"] { background: var(--lime); backdrop-filter: none; -webkit-backdrop-filter: none }
.site-header[data-ipy-theme="oliv"] nav a { color: var(--ink) }

/* Galerie-Grid (layout=70): mehrere image-Referenzen am selben Textelement als Kachel-Raster
   statt einzeln volle Breite gestapelt. */
.frame-layout-70 { max-width: 1240px; display: flex; flex-wrap: wrap; gap: 16px }
.frame-layout-70 > h1, .frame-layout-70 > h2, .frame-layout-70 > h3, .frame-layout-70 [data-ipy-edit-body] { flex: 1 1 100%; margin: 0 0 8px }
.frame-layout-70 .ipy-hero-image { flex: 1 1 240px; max-width: none; margin: 0; border-radius: var(--radius-sm); cursor: pointer; transition: opacity .2s var(--ease) }
.frame-layout-70 .ipy-hero-image:hover { opacity: .85 }
.frame-layout-70 .ipy-hero-image:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }
.frame-layout-70 .ipy-hero-image img { aspect-ratio: 4 / 3; object-fit: cover }

/* Oliv-Galerie (Ziegenhof-Original): weißer Seitenhintergrund, 4 Spalten im 80%-Raster, Bilder 3:2
   ohne Schatten/Rundung, Bildunterschrift (FAL-Beschreibung) 17,5px darunter. Seitentitel wie im
   Original nicht sichtbar (bleibt für Screenreader im DOM). */
html:has(#content[data-ipy-theme="oliv"]) { background: #fff }
[data-ipy-theme="oliv"] .frame-layout-70 {
  max-width: none; margin: 0; padding: 62px calc(10vw + 9.6px) 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 19.2px; align-items: start;
}
[data-ipy-theme="oliv"] .frame-layout-70 > header { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
[data-ipy-theme="oliv"] .frame-layout-70 [data-ipy-edit-body] { grid-column: 1 / -1; margin: 0 }
[data-ipy-theme="oliv"] .frame-layout-70 .ipy-hero-image { margin: 0; border-radius: 0; box-shadow: none }
[data-ipy-theme="oliv"] .frame-layout-70 .ipy-hero-image img { width: 100%; height: auto; aspect-ratio: 480 / 319; object-fit: cover; display: block; border-radius: 0; box-shadow: none }
[data-ipy-theme="oliv"] .frame-layout-70 .ipy-hero-image-caption { display: block; margin: 17.5px 0; font-size: 17.5px; line-height: 26.25px; text-align: left; color: #646464 }
@media (max-width: 900px) {
  [data-ipy-theme="oliv"] .frame-layout-70 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 16px 0 }
}
@media (max-width: 480px) {
  [data-ipy-theme="oliv"] .frame-layout-70 { grid-template-columns: minmax(0, 1fr) }
}

/* Lightbox für das Galerie-Grid (layout=70): gallery-lightbox.js öffnet je angeklickter
   Kachel ein Overlay mit Großansicht + Vor/Zurück zwischen den Bildern desselben Grids. */
.ipy-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(10, 10, 8, .92); padding: 24px }
.ipy-lightbox[hidden] { display: none }
.ipy-lightbox-image { max-width: min(1200px, 92vw); max-height: 88vh; width: auto; height: auto; display: block; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); object-fit: contain }
.ipy-lightbox-close, .ipy-lightbox-arrow { position: fixed; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(2px); transition: background .2s var(--ease) }
.ipy-lightbox-close:hover, .ipy-lightbox-arrow:hover { background: rgba(255, 255, 255, .28) }
.ipy-lightbox-close { top: 18px; right: 18px; width: 40px; height: 40px; font-size: 14px }
.ipy-lightbox-arrow { top: 50%; width: 48px; height: 48px; font-size: 16px; transform: translateY(-50%) }
.ipy-lightbox-prev { left: 18px }
.ipy-lightbox-next { right: 18px }
.ipy-lightbox-single .ipy-lightbox-arrow { display: none }
body.ipy-lightbox-open { overflow: hidden }

/* Editor-Ansicht der Lightbox: seitliche Thumbnail-Leiste (Klick = anzeigen, ziehen = verschieben),
   unten Werkzeuge zum Ersetzen/Hinzufügen/Verschieben/Entfernen und für die Bildunterschrift. */
.ipy-lightbox-strip { display: none; position: fixed; left: 0; top: 0; bottom: 0; width: 132px; box-sizing: border-box; padding: 12px; overflow-y: auto; flex-direction: column; gap: 8px; background: rgba(0, 0, 0, .5); z-index: 2 }
.ipy-lightbox-tools { display: none; position: fixed; left: 132px; right: 0; bottom: 0; box-sizing: border-box; padding: 12px 16px; flex-wrap: wrap; align-items: center; gap: 8px; background: rgba(0, 0, 0, .5); color: #fff; z-index: 2; font: 14px/1.3 system-ui, sans-serif }
.ipy-lightbox-editing .ipy-lightbox-strip, .ipy-lightbox-editing .ipy-lightbox-tools { display: flex }
.ipy-lightbox-editing { padding: 24px 80px 96px 156px }
.ipy-lightbox-editing .ipy-lightbox-image { max-height: calc(100vh - 140px); max-width: 100% }
.ipy-lightbox-editing .ipy-lightbox-prev { left: 148px }
.ipy-lightbox-editing.ipy-lightbox-single .ipy-lightbox-arrow { display: none }
.ipy-lightbox-empty { color: #fff; font: 16px/1.4 system-ui, sans-serif; text-align: center }
.ipy-lightbox-thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; background: none; cursor: grab; display: block; border-radius: 0 }
.ipy-lightbox-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover }
.ipy-lightbox-thumb.is-active { border-color: #fff }
.ipy-lightbox-thumb.is-dragover { outline: 2px dashed #98b25c; outline-offset: 1px }
.ipy-lightbox-thumb-add { height: 72px; display: grid; place-items: center; color: #fff; font-size: 28px; border: 2px dashed rgba(255, 255, 255, .55); cursor: pointer }
.ipy-lightbox-tools input[type="text"] { flex: 1 1 220px; min-width: 0; padding: 8px 10px; font: inherit; border: 0; border-radius: 4px }
.ipy-lightbox-tool { padding: 8px 12px; font: inherit; color: #fff; background: rgba(255, 255, 255, .16); border: 0; border-radius: 4px; cursor: pointer }
.ipy-lightbox-tool:hover { background: rgba(255, 255, 255, .3) }
.ipy-lightbox-tool-danger:hover { background: #b3261e }
.ipy-lightbox-status { min-width: 6em; font-size: 13px; opacity: .85 }
.ipy-lightbox-busy .ipy-lightbox-tools, .ipy-lightbox-busy .ipy-lightbox-strip { opacity: .6; pointer-events: none }
@media (max-width: 640px) {
  .ipy-lightbox-strip { width: 84px; padding: 8px }
  .ipy-lightbox-tools { left: 84px; padding: 8px }
  .ipy-lightbox-editing { padding: 12px 12px 140px 96px }
  .ipy-lightbox-editing .ipy-lightbox-prev { left: 96px }
}
@media (max-width: 640px) {
  .ipy-lightbox-arrow { width: 40px; height: 40px }
  .ipy-lightbox-prev { left: 10px }
  .ipy-lightbox-next { right: 10px }
  .ipy-lightbox-close { width: 34px; height: 34px; top: 12px; right: 12px }
}

/* Präsentations-Navigation (Slideshow, opt-in via site.configuration.ipySlideshowNav) --
   erhält das Vor/Zurück + Abspielen-Verhalten der alten ipresentyou-Editor-Seiten, siehe
   PROTOKOLL_CODEX.md. Blättert zwischen echten Seiten statt AJAX-Inhaltswechsel. */
.ipy-slide-arrow, .ipy-slide-play { position: fixed; z-index: 500; border: 0; border-radius: 50%; background: rgba(20, 20, 10, .45); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(2px); transition: background .2s var(--ease) }
.ipy-slide-arrow:hover, .ipy-slide-play:hover { background: rgba(20, 20, 10, .7) }
.ipy-slide-arrow { top: 50%; width: 44px; height: 44px; font-size: 15px; transform: translateY(-50%) }
.ipy-slide-prev { left: 18px }
.ipy-slide-next { right: 18px }
.ipy-slide-play { top: 18px; right: 18px; width: 40px; height: 40px; font-size: 13px }
@media (max-width: 640px) {
  .ipy-slide-arrow { width: 36px; height: 36px }
  .ipy-slide-play { width: 34px; height: 34px; top: 12px; right: 12px }
  .ipy-slide-prev { left: 10px }
  .ipy-slide-next { right: 10px }
}

/* Fortschrittsbalken beim Abspielen: dieselbe feste, von der Theme-Farbe unabhängige
   Signalfarbe (#47005a), die das Original-ipresentyou-Plugin dafür verwendet. */
.ipy-slide-progress { position: fixed; left: 0; right: 0; bottom: 0; height: 5px; z-index: 501; overflow: hidden }
.ipy-slide-progress[hidden] { display: none }
.ipy-slide-progress-fill { height: 100%; width: 0%; background: #47005a }

/* Solange die Slideshow-Navigation aktiv ist, wandert die Navigation ans untere
   Bildschirmende und der Footer entfällt – Kiosk-Stil wie im Original der migrierten
   Kundenseite. Betrifft nur Sites mit aktivem site.configuration.ipySlideshowNav. */
body:has(#content[data-ipy-slideshow="1"]) .site-header {
  position: fixed; top: auto; bottom: 0; left: 0; right: 0; max-width: none;
  justify-content: center; border-bottom: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 500;
}
body:has(#content[data-ipy-slideshow="1"]) .site-header .brand { display: none }
body:has(#content[data-ipy-slideshow="1"]) #content { padding-bottom: 64px }
body:has(#content[data-ipy-slideshow="1"]) .site-footer { display: none }
/* Volle 100vh-Hero-Sektionen ragen sonst hinter die jetzt untenliegende, fixierte
   Navigation (~80px) – Karten wären sonst teilweise verdeckt. */
body:has(#content[data-ipy-slideshow="1"]) .frame-layout-60,
body:has(#content[data-ipy-slideshow="1"]) .frame-layout-61 {
  min-height: calc(100vh - 80px);
}

/* Oliv-Kiosk-Stil (Ziegenhof-Original): flache Navigationsleiste mit weißer Schrift und
   weißem aktivem Reiter, eckige hellgraue Pfeile am Rand, Play-Symbol ohne Kreis. Werte aus
   dem berechneten Stil der alten Live-Seite übernommen (siehe PROTOKOLL_CODEX.md, 21.09.). */
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .site-header { padding: 0; border-top: 0 }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .site-header nav { gap: 0; font-size: 17px; line-height: 25.5px; justify-content: center }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .site-header .site-nav-group { gap: 0 }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .site-header nav a { color: #fff; padding: 8px 14px }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .site-header nav a::after { content: none }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .site-header nav a.is-active { background: #fff; color: var(--lime) }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) #content { padding-bottom: 42px }

body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-arrow,
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-play {
  width: 50px; height: 50px; border-radius: 0; font-size: 0; transform: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-arrow { top: 50%; background: #d7d7d7; color: #000 }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-arrow:hover { background: #c6c6c6 }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-prev { left: 0 }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-next { right: 0 }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-play { top: 0; right: 0; padding: 8px 0 0; background: transparent; color: #646464 }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-play:hover { background: transparent; color: #000 }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-arrow::before,
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-play::before { content: ''; display: block; background: currentColor }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-arrow::before { width: 12px; height: 22px }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-prev::before { clip-path: polygon(100% 0, 0 50%, 100% 100%) }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-next::before { clip-path: polygon(0 0, 100% 50%, 0 100%) }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-play::before { width: 20px; height: 24px; clip-path: polygon(0 0, 100% 50%, 0 100%) }
body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .ipy-slide-play.is-playing::before { width: 18px; height: 22px; clip-path: none; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65% 100%) }
@media (max-width: 640px) {
  body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .site-header nav { font-size: 13px; overflow-x: auto; justify-content: flex-start }
  body:has(#content[data-ipy-theme="oliv"][data-ipy-slideshow="1"]) .site-header nav a { padding: 8px 9px; white-space: nowrap }
}

/* Oliv-Typografie: Original nutzt PT Serif 20px/30px in #646464, Überschriften 30px fett,
   Listen mit Aufzählungspunkten (Einzug 40px), Absätze mit 30px Abstand. */
main#content[data-ipy-theme="oliv"] { font-size: 20px; line-height: 30px; color: #646464 }
[data-ipy-theme="oliv"] .frame-layout-60 [data-ipy-edit-body] h2,
[data-ipy-theme="oliv"] .frame-layout-61 [data-ipy-edit-body] h2 { font-size: 30px; line-height: 45px; margin: 0 0 24.9px; color: #646464 }
[data-ipy-theme="oliv"] .frame-layout-60 [data-ipy-edit-body] h3,
[data-ipy-theme="oliv"] .frame-layout-61 [data-ipy-edit-body] h3 { font-size: 23.4px; line-height: 35.1px; margin: 0 0 23.4px; color: #646464 }
[data-ipy-theme="oliv"] .frame-layout-60 [data-ipy-edit-body],
[data-ipy-theme="oliv"] .frame-layout-61 [data-ipy-edit-body] { line-height: 30px }
[data-ipy-theme="oliv"] .frame-layout-60 [data-ipy-edit-body] p,
[data-ipy-theme="oliv"] .frame-layout-61 [data-ipy-edit-body] p { margin: 0 0 30px }
[data-ipy-theme="oliv"] .frame-layout-60 [data-ipy-edit-body] ul,
[data-ipy-theme="oliv"] .frame-layout-61 [data-ipy-edit-body] ul { list-style: disc; margin: 0 0 20px; padding: 0 0 0 40px; font-size: 20px; line-height: 30px; color: #646464 }
[data-ipy-theme="oliv"] .frame-layout-60 [data-ipy-edit-body] ul ul,
[data-ipy-theme="oliv"] .frame-layout-61 [data-ipy-edit-body] ul ul { list-style: disc; margin: 0 }
[data-ipy-theme="oliv"] .frame-layout-61 .ipy-hero-image + .ipy-hero-image { padding: 40px 20px 20px; gap: 17.5px }
[data-ipy-theme="oliv"] .frame-layout-61 .ipy-hero-image + .ipy-hero-image img { width: min(480px, 100%); margin: 0 auto; aspect-ratio: 3 / 2; border-radius: 0 }
[data-ipy-theme="oliv"] .frame-layout-61 .ipy-hero-image + .ipy-hero-image .ipy-hero-image-caption { font-size: 17.5px; line-height: 26.25px; margin: 0 auto; width: min(480px, 100%) }
@media (max-width: 900px) {
  [data-ipy-theme="oliv"] .frame-layout-60, [data-ipy-theme="oliv"] .frame-layout-61 { padding-left: 16px; padding-right: 16px; flex-direction: column; flex-wrap: nowrap; align-items: stretch }
  [data-ipy-theme="oliv"] .frame-layout-61 > header { margin-bottom: 24px }
  [data-ipy-theme="oliv"] .frame-layout-60 > header { width: auto; margin: 0 0 16px }
  [data-ipy-theme="oliv"] .frame-layout-60 > header h1 { font-size: 24px; line-height: 34px }
  [data-ipy-theme="oliv"] .frame-layout-60 { flex-direction: column-reverse }
  [data-ipy-theme="oliv"] .frame-layout-60 [data-ipy-edit-body],
  [data-ipy-theme="oliv"] .frame-layout-61 [data-ipy-edit-body],
  [data-ipy-theme="oliv"] .frame-layout-60 .ipy-hero-image + .ipy-hero-image,
  [data-ipy-theme="oliv"] .frame-layout-61 .ipy-hero-image + .ipy-hero-image { width: auto; margin: 0 }
  main#content[data-ipy-theme="oliv"] { font-size: 17px; line-height: 26px }
  [data-ipy-theme="oliv"] .frame-layout-60 [data-ipy-edit-body] ul, [data-ipy-theme="oliv"] .frame-layout-61 [data-ipy-edit-body] ul { font-size: 17px; line-height: 26px; padding-left: 28px }
  [data-ipy-theme="oliv"] .frame-layout-60 [data-ipy-edit-body] h2, [data-ipy-theme="oliv"] .frame-layout-61 [data-ipy-edit-body] h2 { font-size: 24px; line-height: 34px }
}

/* Kunden-Login/Buchung ("Platzhalter", siehe ipy_tenant_gate) */
.tenant-status-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: -8px 0 24px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ink) 5%, var(--paper)); font-size: 14px }
.tenant-form-error { color: #b3261e !important }
.tenant-websites { margin: 0 0 28px }
.tenant-websites h3 { margin: 0 0 12px; font-size: 20px }
.tenant-website-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.tenant-website-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white) }
.tenant-website-list li > div:first-child { display: grid; gap: 2px; min-width: 0 }
.tenant-website-list a { color: var(--muted); font-size: 14px; overflow-wrap: anywhere }
[data-tenant-forgot-form] h3, [data-tenant-reset-form] h3 { margin: 0 0 8px }
[data-tenant-login-form] .example-button, [data-tenant-forgot-form] .example-button { display: block; margin-top: 14px }
@media (max-width: 640px) { .tenant-website-list li { flex-direction: column; align-items: flex-start } }

@media (max-width: 900px) {
  .site-header { padding: 18px 24px; flex-wrap: wrap }
  .site-header nav { order: 3; width: 100%; justify-content: center; gap: 24px }
  .builder-shell { grid-template-columns: minmax(0, 1fr) 240px }
  .builder-aside { padding: 30px 20px }
  .builder-main { padding: 25px }
  .form-columns { grid-template-columns: 1fr; gap: 0 }
  .page-outline { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 640px) {
  .site-header { padding: 16px 20px; gap: 18px }
  .brand { font-size: 22px }
  .site-header > .button { font-size: 12px; padding: 12px; gap: 8px }
  .site-header nav { font-size: 12px; gap: 20px; overflow-x: auto; justify-content: flex-start }
  .frame-layout-10 { padding-top: 24px; margin-top: 28px; margin-bottom: 40px }
  .frame-layout-10 h1 { font-size: 43px; letter-spacing: -1.7px }
  .frame-layout-10 p { font-size: 16px }
  .frame-layout-10 header:before { font-size: 9px; letter-spacing: 1px }
  .builder-section { padding: 0 16px; margin-bottom: 56px }
  .builder-shell { grid-template-columns: 1fr; border-radius: 18px }
  .builder-main { padding: 20px }
  .builder-tabs button { font-size: 11px; padding: 12px 7px }
  .builder-aside { padding: 25px }
  .builder-aside h3 { font-size: 26px; margin: 18px 0 }
  .builder-aside h3 br { display: none }
  .builder-aside ol { gap: 22px }
  .aside-note { margin-top: 10px }
  .frame { padding-left: 24px; padding-right: 24px; margin-top: 48px; margin-bottom: 48px }
  .frame-layout-80 .ipy-hero-image { width: calc(100% + 48px); margin-left: -24px; margin-right: -24px }
  .frame-layout-50, .frame-layout-51 { display: flex; flex-direction: column; align-items: stretch; gap: 18px }
  .frame-layout-50 > header, .frame-layout-51 > header { order: 1 }
  .frame-layout-50 > [data-ipy-edit-body], .frame-layout-51 > [data-ipy-edit-body] { order: 2 }
  .frame-layout-50 .ipy-hero-image, .frame-layout-51 .ipy-hero-image { order: 3 }
  .frame-ipy-tint.frame-layout-80 .ipy-hero-image,
  .frame-ipy-accent.frame-layout-80 .ipy-hero-image,
  .frame-ipy-ink.frame-layout-80 .ipy-hero-image { width: calc(100% + 54px); margin-left: -27px; margin-right: -27px }
  .frame-layout-20 { margin-left: 16px; margin-right: 16px; padding: 27px }
  .frame h2 { font-size: 28px }
  .site-footer { padding: 25px 24px; align-items: flex-start; flex-direction: column; gap: 8px }
  .page-outline { grid-template-columns: 1fr }
  .builder-result { padding: 22px }
  .button { max-width: 100% }
  .section-heading { padding: 0 4px }
}

/* Curated presets for generated customer websites (unchanged brand, own font) */
[data-ipy-theme="warm"] { --ink: #4a2f22; --lime: #e0793c; --paper: #faf6f0; --muted: #8a7568; --line: #e8ddd0; font-family: 'Fraunces', Georgia, serif }
[data-ipy-theme="cool"] { --ink: #1e293b; --lime: #38bdf8; --paper: #f8fafc; --muted: #64748b; --line: #e2e8f0; font-family: 'Work Sans', Arial, sans-serif }
[data-ipy-theme="bold"] { --ink: #111111; --lime: #ff5a5f; --paper: #ffffff; --muted: #6b6b6b; --line: #e5e5e5; font-family: 'Bricolage Grotesque', Arial, sans-serif }
[data-ipy-theme="oliv"] { --ink: #3f4a2c; --lime: #98b25c; --paper: #ffffff; --muted: #646464; --line: #e2e5da; font-family: 'PT Serif', Georgia, serif }
/* header/main/footer each carry data-ipy-theme, but :root already resolves color/background once -
   re-declaring both here forces every themed section (and its inherited text) onto its own --ink/--paper */
[data-ipy-theme="warm"], [data-ipy-theme="cool"], [data-ipy-theme="bold"] { color: var(--ink); background: var(--paper) }
[data-ipy-theme="warm"] h1, [data-ipy-theme="warm"] h2, [data-ipy-theme="warm"] h3, [data-ipy-theme="warm"] .brand, [data-ipy-theme="warm"] .brand-icon,
[data-ipy-theme="cool"] h1, [data-ipy-theme="cool"] h2, [data-ipy-theme="cool"] h3, [data-ipy-theme="cool"] .brand, [data-ipy-theme="cool"] .brand-icon,
[data-ipy-theme="bold"] h1, [data-ipy-theme="bold"] h2, [data-ipy-theme="bold"] h3, [data-ipy-theme="bold"] .brand, [data-ipy-theme="bold"] .brand-icon,
[data-ipy-theme="oliv"] h1, [data-ipy-theme="oliv"] h2, [data-ipy-theme="oliv"] h3, [data-ipy-theme="oliv"] .brand, [data-ipy-theme="oliv"] .brand-icon { font-family: inherit }

/* Hauptseite ipresentyou: Farben aus dem Originallogo (Lila #622576, Schrift fast schwarz) */
[data-ipy-theme="ipresentyou"] { --ipy-text: #1d1820; --ink: #622576; --lime: #dcc6e6; --paper: #fbf9fc; --muted: #5f5764; --line: #e9e2ed; color: #1d1820; background: var(--paper) }
:root:has(#content[data-ipy-theme="ipresentyou"]) { background: #fbf9fc }
[data-ipy-theme="ipresentyou"] h1, [data-ipy-theme="ipresentyou"] h2, [data-ipy-theme="ipresentyou"] h3 { color: #1d1820 }
[data-ipy-theme="ipresentyou"] .frame-layout-20 h1, [data-ipy-theme="ipresentyou"] .frame-layout-20 h2, [data-ipy-theme="ipresentyou"] .frame-layout-20 h3,
[data-ipy-theme="ipresentyou"] .frame-ipy-ink h1, [data-ipy-theme="ipresentyou"] .frame-ipy-ink h2, [data-ipy-theme="ipresentyou"] .frame-ipy-ink h3 { color: var(--white) }
.brand-logo img { display: block; height: 30px; width: auto }
.site-footer .brand-logo img { height: 24px }

/* Karte (layout=90, Text.fluid.html) */
.ipy-map { width: 100%; height: 420px; margin: 24px 0 }
.ipy-map-frame { display: block; width: 100%; height: 100%; border: 0 }

/* Carola Schellong (übernommen von der alten ipresentyou-Seite): Grau #646464, Lachs #eb7c68 aus dem Logo,
   Schrift „Sorts Mill Goudy“ (per setup.typoscript nur für dieses Theme geladen). Kein Preset im Assistenten. */
[data-ipy-theme="schellong"] { --ipy-text: #646464; --ink: #5a5a5a; --lime: #eb7c68; --paper: #ffffff; --muted: #646464; --line: #eee8e6; --font-sans: 'Sorts Mill Goudy', Georgia, serif; --font-display: 'Sorts Mill Goudy', Georgia, serif; font-family: var(--font-sans); color: #646464; background: var(--paper) }
:root:has(#content[data-ipy-theme="schellong"]) { background: #ffffff }
[data-ipy-theme="schellong"] h1, [data-ipy-theme="schellong"] h2, [data-ipy-theme="schellong"] h3, [data-ipy-theme="schellong"] .brand { font-family: inherit; font-weight: 400; letter-spacing: 0; color: #5a5a5a }
[data-ipy-theme="schellong"] p { color: #646464 }
[data-ipy-theme="schellong"].site-header nav { font-size: 16px }
[data-ipy-theme="schellong"].site-header nav a::after { height: 2px; background: var(--lime) }
[data-ipy-theme="schellong"] .frame-layout-51 .ipy-hero-image { max-width: 463px; justify-self: end; border-radius: 0; box-shadow: none; background: none }
[data-ipy-theme="schellong"] .frame-layout-51 .ipy-hero-image img { border-radius: 0 }
@media (max-width: 640px) {
  [data-ipy-theme="schellong"] .frame-layout-51 > header { align-self: auto }
  [data-ipy-theme="schellong"] .frame-layout-51 .ipy-hero-image { order: 0; justify-self: auto }
}

/* Ausrichtung aus dem Frontend-Editor (Text: text-align-*, Überschrift: ce-headline-* aus header_position) */
.text-align-left, .ce-headline-left { text-align: left !important }
.text-align-center, .ce-headline-center { text-align: center !important }
.text-align-right, .ce-headline-right { text-align: right !important }

/* Tab „Aussehen“ im Edit-Panel (DesignService): Hinterlegung über frame_class, Abstände über
   space_before_class/space_after_class. Nur diese freigegebenen Klassen, kein freies CSS. */
.frame-ipy-tint, .frame-ipy-accent, .frame-ipy-ink { padding: 44px; border-radius: var(--radius) }
.frame-ipy-tint { background: color-mix(in srgb, var(--lime) 18%, var(--paper)) }
.frame-ipy-accent { background: var(--lime); color: var(--ink) }
.frame-ipy-accent p { color: color-mix(in srgb, var(--ink) 82%, var(--lime)) }
.frame-ipy-ink { background: var(--ink); color: var(--white) }
.frame-ipy-ink p, .frame-ipy-ink li { color: color-mix(in srgb, var(--white) 82%, var(--ink)) }
.frame-ipy-ink a { color: var(--white) }
.frame-ipy-tint-wide, .frame-ipy-accent-wide, .frame-ipy-ink-wide { position: relative; z-index: 0; isolation: isolate; overflow: visible; border-radius: 0; background: transparent }
.frame-ipy-tint-wide::before, .frame-ipy-accent-wide::before, .frame-ipy-ink-wide::before { content: ''; position: absolute; z-index: -1; inset-block: 0; left: 50%; width: 100vw; transform: translateX(-50%) }
.frame-ipy-tint-wide::before { background: color-mix(in srgb, var(--lime) 18%, var(--paper)) }
.frame-ipy-accent-wide::before { background: var(--lime) }
.frame-ipy-ink-wide::before { background: var(--ink) }
.frame-ipy-ink-wide { color: var(--white) }
.frame-ipy-ink-wide p, .frame-ipy-ink-wide li { color: color-mix(in srgb, var(--white) 82%, var(--ink)) }
.frame-ipy-ink-wide a { color: var(--white) }
.frame-layout-80.frame-ipy-tint,
.frame-layout-80.frame-ipy-accent,
.frame-layout-80.frame-ipy-ink { position: relative; z-index: 0; isolation: isolate; overflow: visible; border-radius: 0; background: transparent }
.frame-layout-80.frame-ipy-tint::before,
.frame-layout-80.frame-ipy-accent::before,
.frame-layout-80.frame-ipy-ink::before { content: ''; position: absolute; z-index: -1; inset-block: 0; left: 50%; width: 100vw; transform: translateX(-50%) }
.frame-layout-80.frame-ipy-tint::before { background: color-mix(in srgb, var(--lime) 18%, var(--paper)) }
.frame-layout-80.frame-ipy-accent::before { background: var(--lime) }
.frame-layout-80.frame-ipy-ink::before { background: var(--ink) }
.frame .form-element { margin: 0 0 22px; max-width: 720px }
.frame .form-element .form-label { display: block; margin: 0 0 7px; color: var(--ink); font-size: 14px; font-weight: 650 }
.frame .form-element .form-control { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; line-height: 1.5 }
.frame .form-element textarea.form-control { min-height: 160px; resize: vertical }
.frame .form-element .form-control:focus { outline: 0; border-color: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 22%, transparent) }
.frame .form-navigation { margin-top: 28px }
.frame .form-navigation .btn { min-height: 48px; padding: 12px 22px; border: 0; border-radius: 10px; background: var(--ink); color: var(--white); font: inherit; font-weight: 650; cursor: pointer }
.frame .form-navigation .btn:hover { background: color-mix(in srgb, var(--ink) 85%, black) }
.frame .form-element .invalid-feedback { color: #a52a25; font-size: 13px }
.frame-type-ipy_faq_item.frame-ipy-tint, .frame-type-ipy_faq_item.frame-ipy-accent, .frame-type-ipy_faq_item.frame-ipy-ink { padding: 6px }
.frame.frame-space-before-small { margin-top: 40px }
.frame.frame-space-before-large { margin-top: 144px }
.frame.frame-space-after-small { margin-bottom: 40px }
.frame.frame-space-after-large { margin-bottom: 144px }
.frame-type-ipy_faq_item.frame-space-before-small { margin-top: 4px }
.frame-type-ipy_faq_item.frame-space-before-large { margin-top: 48px }
.frame-type-ipy_faq_item.frame-space-after-small { margin-bottom: 4px }
.frame-type-ipy_faq_item.frame-space-after-large { margin-bottom: 48px }
@media (max-width: 700px) {
  .frame-ipy-tint, .frame-ipy-accent, .frame-ipy-ink, .frame-ipy-tint-wide, .frame-ipy-accent-wide, .frame-ipy-ink-wide { padding: 28px 20px; border-radius: var(--radius-sm) }
  .frame.frame-space-before-large { margin-top: 96px }
  .frame.frame-space-after-large { margin-bottom: 96px }
}
