/* =====================================================================
   Componist – Sitepackage-Styles (Design-Überarbeitung Oktober 2026)
   Schriften self-hosted (OFL, siehe Fonts/LICENSE-*), keine externen Ressourcen.
   ===================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../Fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../Fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

:root {
    /* Farben – Markenlila bleibt #9933ff */
    --ink: #17122b; --ink-2: #2c2445; --muted: #5e5873; --muted-2: #8a849c;
    --surface: #f7f5fc; --surface-2: #efe8fb; --line: #e7e2f1; --white: #fff;
    --accent: #9933ff; --accent-dark: #6f22c9; --accent-soft: #f2e9ff; --accent-line: #dcc6ff;
    --dark: #17122b; --dark-2: #2a1659;
    --radius: 1.25rem; --radius-lg: 1.75rem; --radius-sm: .75rem;
    --shadow-sm: 0 1px 2px rgb(23 18 43 / 5%), 0 1px 3px rgb(23 18 43 / 4%);
    --shadow-md: 0 12px 32px -12px rgb(46 20 102 / 22%), 0 2px 6px rgb(23 18 43 / 5%);
    --shadow-lg: 0 30px 60px -24px rgb(46 20 102 / 35%);
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
    /* Fluide Typo-Skala */
    --fs-hero: clamp(2.35rem, 1.5rem + 3.2vw, 4rem);
    --fs-h2:   clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem);
    --fs-lead: clamp(1.25rem, 1.1rem + .8vw, 1.6rem);
    --fs-card: 1.3rem;
    --fs-stat: clamp(2rem, 1.4rem + 2.3vw, 3rem);
    --fs-body: 1.0625rem;
    --fs-body-lg: 1.1875rem;
    --fs-eyebrow: .78rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.65; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-display); font-weight: 750; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.container { width: min(1160px, calc(100% - 3rem)); margin: 0 auto; }

/* ---------- Header / Navigation ---------- */
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); background: color-mix(in srgb, #fff 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.navigation { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 26px; max-width: 170px; }
.footer-logo { display: block; width: auto; height: 26px; max-width: 170px; max-height: 26px; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu { display: flex; align-items: center; gap: .35rem; padding: 0; margin: 0; list-style: none; }
.nav-link { position: relative; display: block; padding: .45rem .7rem; border-radius: 999px; color: var(--muted); font-weight: 560; font-size: .95rem; }
.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav-link.active { color: var(--ink); background: var(--accent-soft); }
.nav-submenu { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 999px; padding: .85rem 1.35rem; background: var(--accent); color: #fff; font-weight: 650; line-height: 1.2; box-shadow: 0 6px 16px -6px rgb(153 51 255 / 55%); transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.button:hover { color: #fff; background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgb(111 34 201 / 60%); }
.button-small { padding: .6rem 1rem; font-size: .9rem; }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button-ghost:hover { background: #fff; color: var(--accent-dark); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.nav-toggle { display: none; align-items: center; gap: .5rem; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font: inherit; font-size: .92rem; font-weight: 650; cursor: pointer; }
.nav-toggle::before { content: ""; width: 1rem; height: .7rem; background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem); background:
    radial-gradient(48rem 30rem at 92% 0%, rgb(153 51 255 / 16%), transparent 70%),
    radial-gradient(36rem 26rem at -10% 110%, rgb(91 140 255 / 10%), transparent 70%),
    linear-gradient(180deg, #fbf9ff 0%, #fff 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(111 34 201 / 12%) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 0%, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); pointer-events: none; }
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(16rem, .75fr); align-items: center; gap: clamp(2rem, 6vw, 5.5rem); }
.hero h1, .hero h2 { max-width: 15ch; margin: 0 0 1.4rem; font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.hero p { max-width: 56ch; color: var(--muted); font-size: var(--fs-body-lg); line-height: 1.6; }
.hero p:first-of-type { color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-media .frame, .hero-media figure, .hero-media .textmedia,
.lh-media .frame, .lh-media figure, .lh-media .textmedia { min-height: 17rem; margin: 0; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media .ce-column, .lh-media .ce-column { aspect-ratio: var(--componist-image-aspect-ratio, 4 / 5); overflow: hidden; }
.hero-media .ce-row, .lh-media .ce-row, .kontakt-media .ce-row, .hero-media .ce-column, .lh-media .ce-column, .kontakt-media .ce-column { float: none; width: 100%; margin: 0; }
.hero-media .image-embed-item, .lh-media .image-embed-item { display: block; width: 100%; height: 100%; object-fit: cover; }
/* eigene Illustrationen (Fallback, solange kein Bild gepflegt ist) */
.illustration { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media .illustration, .lh-media .illustration { min-height: 0; }
.illustration img { display: block; width: 100%; height: 100%; object-fit: cover; }
.illustration::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%); pointer-events: none; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-muted { background: var(--surface); }
.section-intro { padding-top: clamp(3rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 5vw, 4.5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro .container > .frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.section-intro h2 { max-width: 20ch; margin: 0; font-size: var(--fs-lead); line-height: 1.2; letter-spacing: -.025em; }
.section-intro p { max-width: 58ch; margin: 0; color: var(--muted); font-size: var(--fs-body-lg); line-height: 1.65; }
.section-header { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-header > span, .section-header h4, .eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; padding: 0; color: var(--accent-dark); font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: 700; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; }
.section-header > span::before, .section-header h4::before, .eyebrow::before { content: ""; width: 1.4rem; height: 2px; border-radius: 2px; background: var(--accent); }
.section-header h2 { margin: 0; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.03em; }
.section-header p { margin: 1rem 0 0; max-width: 58ch; color: var(--muted); font-size: var(--fs-body-lg); line-height: 1.6; }
.section-header a, .section-intro a, .prose a, .kontakt-intro a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.section-header a:hover, .prose a:hover { text-decoration-color: var(--accent); }

/* ---------- Karten ---------- */
.cards { counter-reset: card; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.cards > * { position: relative; padding: 1.9rem 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cards > *:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.cards h2, .cards h3 { margin: 0 0 .65rem; font-size: var(--fs-card); line-height: 1.25; letter-spacing: -.015em; }
.cards p { margin-bottom: 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.6; }
.cards a { color: var(--accent-dark); font-weight: 600; }
/* nummerierte Leistungskarten (Startseite) */
.section-services .cards > * { counter-increment: card; }
.section-services .cards > *::before { content: counter(card, decimal-leading-zero); display: block; margin-bottom: 1.4rem; color: var(--accent); font-family: var(--font-display); font-size: .95rem; font-weight: 800; letter-spacing: .04em; }
.section-services .cards > *::after { content: ""; position: absolute; left: 1.75rem; right: 1.75rem; top: 3.55rem; height: 1px; background: linear-gradient(90deg, var(--accent-line), transparent); }
/* „Warum Componist“ – Häkchen-Icons */
.cards-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-features > *::before { content: ""; display: block; width: 2.5rem; height: 2.5rem; margin-bottom: 1.2rem; border-radius: .8rem; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239933ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 1.25rem no-repeat; }
/* Beispielprojekte-Teaser (Startseite) */
.cards-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-wide > * { display: flex; flex-direction: column; }
.cards-wide > *::before { content: "Beispielprojekt"; display: inline-block; align-self: flex-start; margin-bottom: 1.1rem; padding: .3rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cards-wide p:last-child { margin-top: auto; padding-top: 1.1rem; }
.section-more { margin-top: 2rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.stats > * { padding: 1.5rem; }
.stats h2, .stats h3 { margin: 0; font-size: var(--fs-stat); line-height: 1; letter-spacing: -.03em; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.25rem, 5vw, 4.25rem); border-radius: var(--radius-lg); color: #fff; background:
    radial-gradient(36rem 22rem at 100% 0%, rgb(153 51 255 / 45%), transparent 70%),
    radial-gradient(28rem 20rem at 0% 120%, rgb(91 140 255 / 18%), transparent 70%),
    linear-gradient(135deg, var(--dark), var(--dark-2)); box-shadow: var(--shadow-lg); }
.cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / 10%) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 20ch; color: #fff; }
.cta p { color: #d9d2ea; }
.cta .button, .cta a.button { background: #fff; color: var(--ink); box-shadow: 0 8px 20px -10px rgb(0 0 0 / 50%); }
.cta .button:hover, .cta a.button:hover { background: var(--accent-soft); color: var(--accent-dark); }
.cta a:not(.button) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta-block { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.1rem; }
.cta-block .eyebrow { margin: 0; color: #d8bfff; }
.cta-block .eyebrow::before { background: #d8bfff; }
.cta-block .frame { width: 100%; }
.cta-block .frame h2 { max-width: 24ch; margin: 0 0 .8rem; font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.03em; }
.cta-block .frame > p { max-width: 60ch; margin: 0 0 1.4rem; font-size: var(--fs-body-lg); }
.cta-block .frame > p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(3.5rem, 6vw, 5rem) 0 1.75rem; color: #cfc8e0; background: radial-gradient(40rem 20rem at 85% 0%, rgb(153 51 255 / 18%), transparent 70%), var(--dark); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-grid strong { display: block; margin-bottom: .75rem; color: #fff; font-family: var(--font-display); font-weight: 700; }
.site-footer .brand { margin-bottom: 1rem; color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #d8bfff; }
.site-footer p { max-width: 42ch; color: #a9a2bd; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 10%); color: #a9a2bd; font-size: .9rem; }

/* ---------- Seitenköpfe (Leistungen, Projekte, Über uns) ---------- */
.leistungen-head { position: relative; overflow: hidden; padding-top: clamp(3rem, 6vw, 5.5rem); background: radial-gradient(40rem 26rem at 100% 0%, rgb(153 51 255 / 10%), transparent 70%), linear-gradient(180deg, #fbf9ff 0%, #fff 100%); }
.lh-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(14rem, .7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.lh-copy h1 { max-width: 18ch; margin: 0 0 1.2rem; font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.lh-copy p { max-width: 58ch; margin: 0 0 .9rem; color: var(--muted); }
.lh-copy p:first-of-type { max-width: 44ch; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -.01em; }
.lh-copy p:last-child { margin-bottom: 0; }
.lh-copy a { color: var(--accent-dark); font-weight: 600; }

/* Bild-Platzhalter (nur noch Rückfall, wird durch Illustrationen ersetzt) */
.ph { position: relative; width: 100%; border-radius: var(--radius); border: 1px dashed var(--accent-line); background: var(--surface); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.ph::after { content: attr(data-label); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

/* ---------- Leistungsbereiche ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; }
.svc-grid > .frame { position: relative; display: flex; flex-direction: column; padding: 1.9rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); scroll-margin-top: 6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.svc-grid > .frame:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.svc-grid > .frame:target { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md); }
.svc-grid > .frame::before { content: ""; flex: none; width: 2.75rem; height: 2.75rem; margin-bottom: 1.25rem; border-radius: .85rem; background: var(--accent-soft) var(--icon, none) center / 1.35rem no-repeat; }
.svc-grid > .frame:nth-child(1) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239933ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M8 11h6M11 8v6'/%3E%3C/svg%3E"); }
.svc-grid > .frame:nth-child(2) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239933ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='2'/%3E%3Crect x='3' y='13' width='18' height='7' rx='2'/%3E%3Cpath d='M7 7.5h.01M7 16.5h.01'/%3E%3C/svg%3E"); }
.svc-grid > .frame:nth-child(3) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239933ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.5 3.4 8 8 9 4.6-1 8-4.5 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.svc-grid > .frame:nth-child(4) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239933ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 8-4 4 4 4M16 8l4 4-4 4M13.5 5l-3 14'/%3E%3C/svg%3E"); }
.svc-grid > .frame:nth-child(5) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239933ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 0 1 13.7-5.6L20 8.5M20 4v4.5h-4.5M20 12a8 8 0 0 1-13.7 5.6L4 15.5M4 20v-4.5h4.5'/%3E%3C/svg%3E"); }
.svc-grid > .frame:nth-child(6) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239933ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18a4.5 4.5 0 0 1-.5-9 6 6 0 0 1 11.5 1.5A3.75 3.75 0 0 1 17.5 18z'/%3E%3C/svg%3E"); }
.svc-grid > .frame:nth-child(7) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239933ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.2L4 16.8V20h3.2l5.3-5.3a4 4 0 0 0 5.2-5.4l-2.4 2.4-2.8-.6-.6-2.8z'/%3E%3C/svg%3E"); }
.svc-grid .frame header { margin: 0; }
.svc-grid .frame h2 { margin: 0 0 .6rem; font-size: var(--fs-card); line-height: 1.25; letter-spacing: -.015em; }
.svc-grid .frame > p { margin: 0 0 1.25rem; color: var(--muted); font-size: var(--fs-body); line-height: 1.6; }
.svc-grid .frame > ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: auto 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.svc-grid .frame > ul > li { padding: .3rem .7rem; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .78rem; font-weight: 600; line-height: 1.35; }

/* ---------- Vorgehen (5 Schritte) ---------- */
.process { position: relative; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.process::before { content: ""; position: absolute; top: 1.3rem; left: 1.3rem; right: 1.3rem; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-line)); }
.process > .frame { position: relative; counter-increment: step; padding: 0; background: none; border: 0; }
.process > .frame::before { content: counter(step); position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1.15rem; border-radius: 999px; background: #fff; color: var(--accent-dark); box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px #fff; font-family: var(--font-display); font-size: 1rem; font-weight: 800; }
.process > .frame:last-child::before { background: var(--accent); color: #fff; }
.process .frame header { margin: 0; }
.process .frame h2 { margin: 0 0 .4rem; font-size: 1.15rem; letter-spacing: -.015em; }
.process .frame > p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* ---------- Projekteseite ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1.5rem; }
.projects-grid > .frame { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.projects-grid > .frame:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.projects-grid > .frame, .projects-grid > .frame * { min-width: 0; }
.projects-grid > .frame > header { margin: 0; padding: 1.5rem 1.6rem 0; }
.projects-grid .frame h2, .projects-grid .frame h3 { margin: 0; font-size: var(--fs-card); line-height: 1.25; letter-spacing: -.015em; }
.projects-grid .frame .ce-textpic { margin: 1.1rem 0 0; }
.projects-grid .frame:not(:has(img)) .ce-textpic::before { content: ""; display: block; aspect-ratio: 16 / 10; background: url("../Images/illustrations/projekte-verbindungen.svg") center / cover; }
.projects-grid .frame .ce-gallery, .projects-grid .frame .ce-outer, .projects-grid .frame .ce-inner, .projects-grid .frame .ce-row, .projects-grid .frame .ce-column { margin: 0; padding: 0; width: 100%; max-width: 100%; }
.projects-grid .frame .ce-column { aspect-ratio: 16 / 10; overflow: hidden; }
.projects-grid .frame figure { height: 100%; margin: 0; }
.projects-grid .frame .ce-gallery img, .projects-grid .frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.projects-grid > .frame:hover img { transform: scale(1.03); }
.projects-grid .frame .ce-bodytext { padding: 1.2rem 1.6rem 1.6rem; }
.projects-grid .frame .ce-bodytext p { margin: 0 0 .75rem; color: var(--muted); font-size: var(--fs-body); line-height: 1.6; }
.projects-grid .frame .ce-bodytext p strong { color: var(--ink); }
.projects-grid .frame .ce-bodytext ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.projects-grid .frame .ce-bodytext ul li { padding: .3rem .7rem; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .78rem; font-weight: 600; line-height: 1.35; transition: background .15s ease; }
.projects-grid > .frame > header::before { content: "Beispielprojekt"; display: inline-block; margin-bottom: .6rem; padding: .25rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.projects-grid .frame .ce-bodytext ul li a { color: inherit; }
.projects-grid .frame .ce-bodytext ul li:hover { background: var(--accent-soft); }
.projects-grid .frame .ce-bodytext ul li a:hover { color: var(--accent-dark); }

/* ---------- Über uns: Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem; }
.team-grid > .frame { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.team-grid > .frame, .team-grid > .frame * { min-width: 0; }
.team-grid > .frame > header { order: 2; margin: 0; padding: 1.4rem 1.6rem 0; }
.team-grid > .frame > .ce-textpic { display: contents; }
.team-grid .frame .ce-gallery { order: 1; }
.team-grid .frame .ce-bodytext { order: 3; }
.team-grid .frame h2, .team-grid .frame h3 { margin: 0; font-size: var(--fs-card); line-height: 1.25; letter-spacing: -.015em; }
/* Porträt klein und rund (8 rem); Platzhalter im selben Format, bis echte Fotos vorliegen */
.team-grid .frame .ce-gallery, .team-grid .frame .ce-outer, .team-grid .frame .ce-inner, .team-grid .frame .ce-row, .team-grid .frame .ce-column { float: none; margin: 0; padding: 0; width: auto; max-width: none; }
.team-grid .frame .ce-gallery { align-self: flex-start; margin: 1.6rem 1.6rem 0; }
.team-grid .frame .ce-column, .team-grid .frame:not(:has(img))::before { width: 8rem; height: 8rem; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.team-grid .frame figure { width: 100%; height: 100%; margin: 0; }
.team-grid .frame .ce-gallery img, .team-grid .frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.team-grid .frame:not(:has(img))::before { content: ""; order: 1; display: block; flex: none; margin: 1.6rem 1.6rem 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='82' r='34' fill='%23dcc6ff'/%3E%3Cpath d='M38 200c4-40 30-62 62-62s58 22 62 62' fill='%23dcc6ff'/%3E%3C/svg%3E") center bottom / 80% no-repeat, linear-gradient(160deg, #f6f1ff, #ebe0ff); }
.team-grid > .frame > header { padding-top: 1.25rem; }
.team-grid .frame .ce-bodytext { padding: 1rem 1.6rem 1.6rem; }
.team-grid .frame .ce-bodytext p { margin: 0 0 .65rem; color: var(--muted); font-size: var(--fs-body); line-height: 1.6; }
.team-grid .frame .ce-bodytext p strong { color: var(--ink); }
.team-grid .frame .ce-bodytext p:first-child strong { color: var(--accent-dark); font-size: .9rem; }
.team-grid .frame .ce-bodytext p:last-child { margin-bottom: 0; }

/* ---------- Kontaktseite ---------- */
.kontakt-head { padding-bottom: clamp(2.5rem, 5vw, 4rem); background: radial-gradient(40rem 26rem at 100% 0%, rgb(153 51 255 / 10%), transparent 70%), linear-gradient(180deg, #fbf9ff 0%, #fff 100%); }
.kontakt-intro > * { max-width: 50rem; }
.kontakt-intro h1 { margin: 0 0 1.1rem; font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.kontakt-intro p { margin: 0 0 .8rem; max-width: 56ch; color: var(--muted); font-size: var(--fs-body-lg); line-height: 1.6; }
.kontakt-intro p:last-child { margin-bottom: 0; }
.kontakt-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.kontakt-info { display: flex; flex-direction: column; gap: 1.25rem; }
.kontakt-info, .kontakt-info * { min-width: 0; }
.kontakt-media .ph { aspect-ratio: 4 / 3; }
.kontakt-media .frame { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.kontakt-media .ce-column { aspect-ratio: var(--componist-image-aspect-ratio, 4 / 3); overflow: hidden; }
.kontakt-media .image-embed-item { display: block; width: 100%; height: 100%; object-fit: cover; }
.kontakt-media .illustration { aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.kontakt-details { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.kontakt-details h2, .kontakt-details h3 { margin: 0 0 .8rem; font-size: var(--fs-card); line-height: 1.2; letter-spacing: -.015em; }
.kontakt-details p { margin: 0 0 .8rem; color: var(--muted); line-height: 1.65; }
.kontakt-details p:last-child { margin-bottom: 0; }
.kontakt-details strong { color: var(--ink); }
.kontakt-details a { color: var(--accent-dark); font-weight: 600; }
.kontakt-details a:hover { color: var(--accent); }

/* Formular als Karte (TYPO3 Form Framework, standard-Prototyp) */
.kontakt-form { padding: clamp(1.5rem, 3vw, 2.4rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.kontakt-form h2 { font-size: var(--fs-card); }
.kontakt-form .form-group { margin-bottom: 1.15rem; }
.kontakt-form legend { padding: 0; font-weight: 700; font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.kontakt-form label, .kontakt-form .form-label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9rem; color: var(--ink); }
.kontakt-form input[type=text], .kontakt-form input[type=email], .kontakt-form input[type=tel], .kontakt-form input[type=number], .kontakt-form textarea, .kontakt-form select, .kontakt-form .form-control { width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.kontakt-form .form-control:hover, .kontakt-form input:hover, .kontakt-form textarea:hover, .kontakt-form select:hover { border-color: var(--accent-line); }
.kontakt-form textarea { min-height: 8.5rem; resize: vertical; }
.kontakt-form select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f22c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .95rem center; background-size: 1.05rem; }
.kontakt-form .form-control:focus, .kontakt-form input:focus, .kontakt-form textarea:focus, .kontakt-form select:focus { outline: none; background-color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.kontakt-form .form-check { display: flex; align-items: flex-start; gap: .55rem; }
.kontakt-form .form-check-label { order: 1; margin: 0; font-weight: 400; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.kontakt-form .form-check-label a { color: var(--accent-dark); text-decoration: underline; }
.kontakt-form .form-check input[type=checkbox] { order: 0; width: 1.05rem; height: 1.05rem; margin: .18rem 0 0; flex: none; accent-color: var(--accent); }
.kontakt-form .actions { margin-top: 1.5rem; }
.kontakt-form .btn, .kontakt-form button, .kontakt-form input[type=submit] { display: inline-flex; align-items: center; justify-content: center; padding: .9rem 1.6rem; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 650; cursor: pointer; box-shadow: 0 6px 16px -6px rgb(153 51 255 / 55%); }
.kontakt-form .btn:hover, .kontakt-form button:hover, .kontakt-form input[type=submit]:hover { background: var(--accent-dark); }
.kontakt-form .alert { margin-bottom: 1.25rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.kontakt-form .alert-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.kontakt-form .help-block, .kontakt-form .error, .kontakt-form ul.error { margin: .35rem 0 0; padding: 0; list-style: none; color: #b42318; font-size: .85rem; }
.kontakt-form .has-error .form-control, .kontakt-form input[aria-invalid=true], .kontakt-form textarea[aria-invalid=true] { border-color: #d92d20; }

/* ---------- Inhaltsseiten (Impressum, Datenschutz, AGB) ---------- */
.section-page { padding-top: clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, #fbf9ff 0, #fff 18rem); }
.prose { max-width: 50rem; }
.prose > .frame + .frame { margin-top: 2.5rem; }
.prose > .frame:first-child > header h1, .prose > .frame:first-child > header h2 { margin: 0 0 2rem; font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.prose h2 { margin: 2.4rem 0 .75rem; font-size: 1.45rem; letter-spacing: -.02em; }
.prose h3 { margin: 1.8rem 0 .5rem; font-size: 1.15rem; letter-spacing: -.015em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--accent); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .cards-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); row-gap: 2rem; }
    .process::before { display: none; }
}
@media (max-width: 860px) {
    .main-nav { gap: .75rem; }
    .nav-link { padding: .45rem .5rem; font-size: .9rem; }
    .cards, .cards-wide { grid-template-columns: 1fr 1fr; }
    .section-intro .container > .frame { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .container { width: calc(100% - 2rem); }
    .hero-grid, .cards, .cards-wide, .cards-features, .stats, .footer-grid, .lh-grid, .kontakt-grid { grid-template-columns: 1fr; }
    .hero-media .ce-column, .lh-media .ce-column { aspect-ratio: 16 / 10; }
    .illustration { aspect-ratio: 4 / 3; }
    .lh-media { order: -1; }
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; position: absolute; top: 4.5rem; right: 1rem; left: 1rem; flex-direction: column; align-items: stretch; gap: .5rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); }
    .main-nav.is-open { display: flex; }
    .nav-menu { flex-direction: column; align-items: stretch; gap: .15rem; }
    .nav-link { padding: .7rem .85rem; font-size: 1rem; border-radius: var(--radius-sm); }
    .button-small { padding: .8rem 1rem; text-align: center; }
    .hero-actions .button { flex: 1 1 auto; }
    .cta { display: block; }
    .cta > * + * { margin-top: 1rem; }
    .process { grid-template-columns: 1fr; row-gap: 1.25rem; }
    .process > .frame { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1rem; }
    .process > .frame::before { grid-row: span 2; margin: 0; }
    .footer-bottom span[aria-hidden] { display: none; }
    .footer-bottom { gap: .25rem 1rem; }
    .prose > .frame:first-child > header h1, .prose > .frame:first-child > header h2 { font-size: clamp(1.6rem, .9rem + 3vw, 2.4rem); letter-spacing: -.03em; }
    .prose h2 { font-size: 1.25rem; }
}

/* Bestätigung nach dem Absenden des Kontaktformulars */
.form-confirmation { padding: .5rem 0; }
.form-confirmation::before { content: ""; display: block; width: 3rem; height: 3rem; margin-bottom: 1.1rem; border-radius: 999px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239933ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 1.5rem no-repeat; }
.form-confirmation-title { margin: 0 0 .5rem; font-size: var(--fs-card); letter-spacing: -.015em; }
.form-confirmation p { margin: 0; color: var(--muted); }
