/*
 * SilberBrise – Projektgalerie (Pages.Web)
 * Design aus Claude_Works/Neue_SilberBrise_Pages_Index.html (Stand 13.10.2026).
 * Alle Regeln sind auf .sb-landing gekapselt, damit Bootstrap, modern.css und
 * design-tokens.css sowie andere Seiten (z. B. Impressum, Kundenseiten) unberührt bleiben.
 * Header/Footer-Partials verwenden .sb-landing-shell (display: contents), damit der
 * Header weiterhin "sticky" über die gesamte Seite bleibt.
 */

/* ===== Design-Tokens, Basis und Komponenten (aus dem Muster) ===== */
.sb-landing { color-scheme: dark; --background: #0d1321; --surface: #141d2d; --surface-raised: #192436; --text: #edf0f8; --muted: #b6c3d5; --line: #314057; --gold: #fbbb55; --gold-text: #fbbb55; --gold-ink: #281800; --gold-soft: #2b251d; --teal: #71d7cd; --teal-text: #71d7cd; --header: rgba(13, 19, 33, .96); --focus: #8ef4e9; --shadow: 0 22px 60px rgba(0, 0, 0, .2); --radius: 20px; --control-radius: 8px; --width: 1200px; --body-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --heading-font: 'Manrope', var(--body-font); }
[data-theme="light"] .sb-landing { color-scheme: light; --background: #fffaf3; --surface: #f3eee6; --surface-raised: #ffffff; --text: #192436; --muted: #526074; --line: #d0d6df; --gold-text: #805600; --gold-soft: #fff0d3; --teal-text: #00504a; --header: rgba(255, 250, 243, .97); --focus: #005b54; --shadow: 0 22px 60px rgba(36, 44, 55, .09); }
.sb-landing *, .sb-landing *::before, .sb-landing *::after { box-sizing: border-box; }
html:has(main.sb-landing) { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 7rem; }
.sb-landing { margin: 0; font-family: var(--body-font); color: var(--text); background: var(--background); line-height: 1.65; -webkit-font-smoothing: antialiased; }
.sb-landing [hidden] { display: none !important; }
.sb-landing h1, .sb-landing h2, .sb-landing h3, .sb-landing p, .sb-landing figure { margin: 0; }
.sb-landing h1, .sb-landing h2, .sb-landing h3 { font-family: var(--heading-font); text-wrap: balance; }
.sb-landing h1 { font-size: clamp(2.65rem, 5.2vw, 4.6rem); line-height: 1.09; letter-spacing: -.055em; font-weight: 800; }
.sb-landing h2 { font-size: clamp(1.85rem, 3.15vw, 2.65rem); line-height: 1.18; letter-spacing: -.04em; font-weight: 800; }
.sb-landing h3 { font-size: 1.3rem; line-height: 1.35; letter-spacing: -.025em; font-weight: 750; }
.sb-landing a { color: inherit; text-underline-offset: .22em; }
.sb-landing button, .sb-landing input, .sb-landing select, .sb-landing textarea { font: inherit; }
.sb-landing button, .sb-landing a { -webkit-tap-highlight-color: transparent; }
.sb-landing button { cursor: pointer; }
.sb-landing img { display: block; width: 100%; height: auto; }
.sb-landing svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sb-landing :focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.sb-landing ::selection { color: var(--gold-ink); background: var(--gold); }
.sb-landing .container { width: min(var(--width), calc(100% - 48px)); margin-inline: auto; }
.sb-landing .section { padding-block: 92px; scroll-margin-top: 6rem; border-top: 1px solid var(--line); }
.sb-landing .section-soft { background: var(--surface); }
.sb-landing .section-head { max-width: 680px; margin-bottom: 38px; }
.sb-landing .section-head p, .sb-landing .section-copy > p { margin-top: 18px; color: var(--muted); font-size: 1.0625rem; }
.sb-landing .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--teal-text); font-size: .75rem; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
.sb-landing .eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.sb-landing .gold { color: var(--gold-text); }
.sb-landing .muted { color: var(--muted); }
.sb-landing .small { font-size: .875rem; }
.sb-landing .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sb-landing .skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--gold-ink); transform: translateY(-180%); }
.sb-landing .skip-link:focus { transform: translateY(0); }
.sb-landing .button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 12px 21px; border: 1px solid transparent; border-radius: var(--control-radius); font-size: .9375rem; font-weight: 700; line-height: 1.35; text-decoration: none; transition: background-color .18s ease, border-color .18s ease; }
.sb-landing .button-primary { background: var(--gold); color: var(--gold-ink); }
.sb-landing .button-primary:hover { background: #ffcb7a; }
.sb-landing .button-secondary { background: transparent; border-color: var(--line); color: var(--text); }
.sb-landing .button-secondary:hover { background: var(--surface-raised); border-color: var(--muted); }
.sb-landing .text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--gold-text); font-size: .9375rem; font-weight: 650; text-decoration: none; }
.sb-landing .text-link:hover { text-decoration: underline; }
.sb-landing .text-link svg, .sb-landing .button svg { width: 18px; height: 18px; }
.sb-landing .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.sb-landing .icon-box { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); }
.sb-landing .check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.sb-landing .check-list li { display: flex; align-items: flex-start; gap: 12px; }
.sb-landing .check-list svg { width: 19px; height: 19px; margin-top: 4px; color: var(--teal-text); }
.sb-landing .site-header { position: sticky; top: 0; z-index: 30; background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.sb-landing .header-inner { min-height: 82px; display: flex; align-items: center; gap: 24px; }
.sb-landing .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--heading-font); font-size: 1.4rem; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.sb-landing .brand img { width: 34px; height: 34px; border-radius: 50%; }
.sb-landing .site-nav { margin-left: auto; }
.sb-landing .site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.sb-landing .nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.sb-landing .nav-link:hover, .sb-landing .nav-link[aria-current] { color: var(--gold-text); }
.sb-landing .header-actions { display: flex; align-items: center; gap: 12px; }
.sb-landing .login-link { font-size: .8125rem; text-decoration: none; font-weight: 600; }
.sb-landing .login-link:hover { color: var(--gold-text); }
.sb-landing .header-cta { min-height: 42px; padding: 10px 15px; font-size: .8125rem; white-space: nowrap; }
.sb-landing .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 44px; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--muted); }
.sb-landing .icon-button:hover { color: var(--text); background: var(--surface-raised); }
.sb-landing .menu-toggle, .sb-landing .cta-short, .sb-landing .mobile-theme, .sb-landing .mobile-login { display: none; }
.sb-landing .theme-moon { display: none; }
[data-theme="light"] .sb-landing .theme-sun { display: none; }
[data-theme="light"] .sb-landing .theme-moon { display: block; }
.sb-landing .gallery-intro { padding-block: 42px 54px; }
.sb-landing .breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: .75rem; margin-bottom: 35px; }
.sb-landing .breadcrumb a { text-decoration: none; }
.sb-landing .breadcrumb a:hover { color: var(--gold-text); text-decoration: underline; }
.sb-landing .intro-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.sb-landing .intro-copy, .sb-landing .intro-image { min-width: 0; }
.sb-landing .intro-image { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sb-landing .intro-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 43%; }
.sb-landing .intro-copy h1 { max-width: 800px; font-size: clamp(2.35rem, 4.5vw, 3.65rem); }
.sb-landing .intro-copy > p:not(.eyebrow) { max-width: 660px; margin-top: 22px; color: var(--muted); font-size: 1.0625rem; }
.sb-landing .intro-aside { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.sb-landing .intro-aside .aside-label { color: var(--teal-text); font-size: .875rem; font-weight: 700; }
.sb-landing .intro-aside p { color: var(--muted); font-size: .875rem; margin-top: 12px; }
.sb-landing .intro-aside .text-link { margin-top: 12px; font-size: .8125rem; }
.sb-landing .gallery-section { background: var(--surface); padding-block: 48px 72px; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.sb-landing .gallery-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 26px; }
.sb-landing .gallery-heading h2 { font-size: clamp(1.5rem, 2.5vw, 1.95rem); }
.sb-landing .result-count { color: var(--muted); font-size: .8125rem; }
.sb-landing .gallery-controls { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 20px; margin-bottom: 18px; align-items: start; }
.sb-landing .control-field { min-width: 0; }
.sb-landing .control-field label { display: block; margin-bottom: 8px; font-size: .8125rem; font-weight: 600; }
.sb-landing .search-wrap { position: relative; }
.sb-landing .search-wrap > svg { position: absolute; top: 15px; left: 15px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.sb-landing .search-input, .sb-landing .category-select { display: block; width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--background); color: var(--text); font: inherit; font-size: 1rem; line-height: 1.5; }
.sb-landing .search-input { padding-left: 46px; padding-right: 48px; }
.sb-landing .search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sb-landing .search-input::placeholder { color: var(--muted); opacity: 1; }
.sb-landing .search-clear { position: absolute; right: 6px; top: 3px; }
.sb-landing .filter-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; min-height: 46px; margin-bottom: 22px; }
.sb-landing .filter-summary p { color: var(--muted); font-size: .75rem; }
.sb-landing .reset-button { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--gold-text); font-size: .8125rem; font-weight: 600; }
.sb-landing .reset-button:hover { text-decoration: underline; text-underline-offset: .22em; }
.sb-landing .reset-button svg { width: 16px; height: 16px; }
.sb-landing .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sb-landing .project-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); }
.sb-landing .project-media { position: relative; display: block; aspect-ratio: 1.6; overflow: hidden; background: var(--gold-soft); color: var(--gold-text); text-decoration: none; }
.sb-landing .project-media:focus-visible { outline-offset: -6px; }
.sb-landing .project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-landing .project-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 19, 33, .15), transparent 40%); pointer-events: none; }
.sb-landing .project-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; padding: 32px; text-align: center; }
.sb-landing .project-fallback svg { width: 56px; height: 56px; stroke-width: 1.2; }
.sb-landing .project-fallback span { font-family: var(--heading-font); font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.sb-landing .project-badge { position: absolute; top: 18px; left: 18px; z-index: 1; padding: 6px 10px; border-radius: 5px; background: var(--gold); color: var(--gold-ink); font-size: .6875rem; font-weight: 700; line-height: 1.4; }
.sb-landing .project-content { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 27px; }
.sb-landing .project-category { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--teal-text); font-size: .75rem; font-weight: 600; }
.sb-landing .project-category svg { width: 16px; height: 16px; }
.sb-landing .project-content h3 { font-size: 1.4rem; }
.sb-landing .project-content h3 a { text-decoration: none; }
.sb-landing .project-content h3 a:hover { color: var(--gold-text); }
.sb-landing .project-description { margin-top: 16px; color: var(--muted); font-size: .9375rem; }
.sb-landing .project-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; color: var(--muted); font-size: .8125rem; }
.sb-landing .project-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; width: 100%; margin-top: auto; padding-top: 28px; }
.sb-landing .project-domain { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: .6875rem; overflow-wrap: anywhere; }
.sb-landing .project-domain svg { width: 14px; height: 14px; }
.sb-landing .project-footer .text-link { font-size: .875rem; }
.sb-landing .project-grid[data-single="true"] .project-card:not([hidden]) { grid-column: 1 / -1; display: grid; grid-template-columns: .95fr 1.05fr; }
.sb-landing .project-grid[data-single="true"] .project-media { aspect-ratio: auto; min-height: 330px; }
.sb-landing .project-grid[data-single="true"] .project-content { padding: 36px; }
.sb-landing .project-grid[data-single="true"] h3 { font-size: 1.85rem; }
.sb-landing .empty-state { padding: 50px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-raised); }
.sb-landing .empty-state > svg { color: var(--teal-text); width: 34px; height: 34px; margin-bottom: 18px; }
.sb-landing .empty-state h3 { font-size: 1.3rem; }
.sb-landing .empty-state p { color: var(--muted); margin: 12px auto 0; max-width: 430px; font-size: .9375rem; }
.sb-landing .empty-state .button { margin-top: 24px; }
.sb-landing .gallery-source { color: var(--muted); font-size: .75rem; margin-top: 24px; }
.sb-landing .gallery-source a { color: var(--text); }
.sb-landing .start-section { padding-block: 64px; border-top: 1px solid var(--line); }
.sb-landing .start-layout { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px 50px; }
.sb-landing .start-layout h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.sb-landing .start-layout p { max-width: 630px; margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.sb-landing .start-layout .actions { margin-top: 0; }
.sb-landing .landing-footer { border-top: 1px solid var(--line); padding-top: 52px; }
.sb-landing .footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 42px; }
.sb-landing .footer-brand p { color: var(--muted); font-size: .875rem; max-width: 260px; margin-top: 17px; }
.sb-landing .footer-title { font-size: .8125rem; font-weight: 700; margin-bottom: 15px; }
.sb-landing .footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sb-landing .footer-links a { color: var(--muted); font-size: .8125rem; text-decoration: none; }
.sb-landing .footer-links a:hover { color: var(--text); text-decoration: underline; }
.sb-landing .footer-news p { font-size: .8125rem; color: var(--muted); }
.sb-landing .footer-news .text-link { font-size: .8125rem; margin-top: 8px; }
.sb-landing .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 24px; font-size: .75rem; color: var(--muted); }
.sb-landing .footer-bottom a { text-decoration: none; }
@media (max-width: 1179px) {
    .sb-landing .header-inner { flex-wrap: wrap; gap: 14px; padding-block: 16px; min-height: 76px; }
    .sb-landing .header-actions { margin-left: auto; }
    .sb-landing .menu-toggle:not([hidden]) { display: inline-flex; }
    .sb-landing .site-nav { width: 100%; order: 3; margin: 0; border-top: 1px solid var(--line); padding-top: 12px; }
    .sb-landing .site-nav ul { display: grid; gap: 2px; }
    .sb-landing .nav-link { width: 100%; font-size: .9375rem; padding-block: 5px; }
    .sb-landing .mobile-login { display: block; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
    .sb-js .sb-landing .site-nav:not(.is-open) { display: none; }
    .sb-landing .intro-layout { gap: 32px; }
}
@media (max-width: 899px) {
    .sb-landing .intro-layout { grid-template-columns: 1fr; gap: 26px; }
    .sb-landing .intro-image { width: 100%; max-width: 640px; justify-self: center; }
    .sb-landing .intro-aside p { max-width: 420px; }
    .sb-landing .intro-aside .text-link { margin-top: 12px; }
    .sb-landing .gallery-intro { padding-bottom: 40px; }
    .sb-landing .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .sb-landing .project-grid[data-single="true"] .project-content { padding: 26px; }
    .sb-landing .project-grid[data-single="true"] h3 { font-size: 1.5rem; }
    .sb-landing .project-footer { gap: 10px; }
    .sb-landing .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 32px; }
}
@media (max-width: 649px) {
    .sb-landing .container { width: calc(100% - 32px); }
    .sb-landing .header-inner { gap: 8px; padding-block: 12px; min-height: 68px; }
    .sb-landing .brand { font-size: 1.15rem; gap: 7px; }
    .sb-landing .brand img { width: 29px; height: 29px; }
    .sb-landing .header-actions { gap: 5px; }
    .sb-landing .header-actions .login-link, .sb-landing .header-actions .theme-toggle, .sb-landing .cta-long { display: none; }
    .sb-landing .cta-short { display: inline; }
    .sb-landing .header-cta { min-height: 44px; padding: 10px 12px; }
    .sb-landing .mobile-theme:not([hidden]) { display: inline-flex; width: auto; justify-content: flex-start; gap: 10px; font-size: .875rem; padding-inline: 0; margin-top: 5px; }
    .sb-landing .gallery-intro { padding-top: 28px; }
    .sb-landing .breadcrumb { margin-bottom: 28px; }
    .sb-landing .intro-copy > p:not(.eyebrow) { font-size: 1rem; }
    .sb-landing .intro-aside { display: block; }
    .sb-landing .intro-aside .text-link { margin-top: 12px; }
    .sb-landing .gallery-section { padding-block: 36px 48px; }
    .sb-landing .gallery-controls, .sb-landing .project-grid { grid-template-columns: 1fr; }
    .sb-landing .gallery-controls { gap: 16px; }
    .sb-landing .filter-summary { margin-bottom: 20px; }
    .sb-landing .project-grid[data-single="true"] .project-card:not([hidden]) { display: flex; }
    .sb-landing .project-grid[data-single="true"] .project-media { aspect-ratio: 1.5; min-height: 0; }
    .sb-landing .project-content, .sb-landing .project-grid[data-single="true"] .project-content { padding: 24px; }
    .sb-landing .project-grid[data-single="true"] h3 { font-size: 1.5rem; }
    .sb-landing .start-section { padding-block: 48px; }
    .sb-landing .start-layout .actions { width: 100%; }
    .sb-landing .start-layout .button { width: 100%; }
    .sb-landing .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .sb-landing .footer-brand, .sb-landing .footer-news { grid-column: 1 / -1; }
    .sb-landing .footer-brand p { max-width: 360px; }
    .sb-landing .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(main.sb-landing) { scroll-behavior: auto; }
    .sb-landing *, .sb-landing *::before, .sb-landing *::after { transition: none !important; animation: none !important; }
}

/* ===== Integration in das bestehende Layout (Bootstrap, modern.css, design-tokens.css) ===== */
/* Hülle der Header-/Footer-Partials ohne eigene Box: Tokens werden vererbt, der Header bleibt über die ganze Seite "sticky". */
.sb-landing-shell { display: contents; }
/* Bootstrap .container und .breadcrumb: Maße kommen ausschließlich aus dem Design. */
.sb-landing .container { max-width: none; padding-inline: 0; }
.sb-landing .breadcrumb { padding: 0; background: none; border-radius: 0; }
/* Footer (eigener Klassenname, da .site-footer in modern.css/design-tokens.css mit !important belegt ist). */
.sb-landing .landing-footer { background: var(--background); margin-top: 0; }
/* "Weitere Projekte laden" – übernimmt die bisherige seitenweise Anzeige der Galerie. */
.sb-landing .load-more { display: flex; justify-content: center; margin-top: 32px; }
/* Beschreibungen aus der Datenbank können länger sein als im Muster. */
.sb-landing .project-description { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* Bootstrap .nav-link bringt eigene Innenabstände mit – Abstände kommen aus dem Design. */
.sb-landing .site-nav .nav-link { padding: 0; }
@media (max-width: 1179px) {
    .sb-landing .site-nav .nav-link { padding-block: 5px; }
}
