/* Kundengalerie · Feinschliff (Pruefung 2026-11)
   Beschriftete Werkzeugleiste, Auswahl-Leiste, ruhige Fotokarten. Gilt für alle Designs. */
:root{--ap-accent:var(--accent,var(--gc-accent,#b0245a));--ap-on-accent:var(--on-accent,#fff);--ap-line:var(--line,#e6dde3);--ap-ink:var(--ink,#2f2730);--ap-surface:var(--surface,#fff)}

/* ---------- Werkzeugleiste mit Text ---------- */
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos .gallery-album-toolbar{margin:4px 0 22px!important}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos .selection-bar{padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;position:static!important}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos .gallery-album-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;width:100%!important;max-width:none!important}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos .gallery-album-actions :is(.gallery-album-actions>button,.gallery-album-actions>a,.photo-management-toolbar>button){display:inline-flex!important;align-items:center!important;gap:7px!important;width:auto!important;min-width:0!important;height:auto!important;min-height:40px!important;padding:8px 14px!important;margin:0!important;border:1px solid var(--ap-line)!important;border-radius:999px!important;background:var(--ap-surface)!important;color:var(--ap-ink)!important;font-size:0!important;line-height:1!important;text-decoration:none!important;box-shadow:none!important;cursor:pointer}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos .gallery-album-actions :is(.gallery-album-actions>button,.gallery-album-actions>a,.photo-management-toolbar>button):hover{border-color:var(--ap-accent)!important}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos .gallery-album-actions :is(.gallery-album-actions>button,.gallery-album-actions>a,.photo-management-toolbar>button)>svg{width:17px!important;height:17px!important;flex:0 0 17px!important;margin:0!important;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos .toolbar-label{display:inline!important;visibility:visible!important;font-size:14px!important;font-weight:500;line-height:1.2;white-space:nowrap;letter-spacing:0}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos #selection-count{display:none!important}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos .toolbar-count{display:none;font-size:14px;font-weight:600;color:var(--ap-ink);margin-right:4px}
/* "Ausgeblendete zeigen" ist eine Nebenfunktion: als dezenter Textlink rechts */
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos #hidden-toggle{order:99;margin-left:auto!important;border-color:transparent!important;background:transparent!important;opacity:.75;padding-inline:6px!important}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos #hidden-toggle>svg{display:none!important}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos #hidden-toggle .toolbar-label{font-size:13px!important;text-decoration:underline;text-underline-offset:3px}
/* Ohne Auswahl: nur "Alle auswählen" und "Album herunterladen" */
html body.album-toolbar-labeled:not(.album-has-selection).gallery-page.gallery-page #album-photos#album-photos :is(#selection-toggle,#selection-clear,#selection-download,[data-gallery-action-icon=trash]){display:none!important}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos .commerce-selection-link[hidden]{display:none!important}
/* Mit Auswahl: Zähler, Herunterladen hervorgehoben */
html body.album-toolbar-labeled.album-has-selection.gallery-page.gallery-page #album-photos#album-photos .toolbar-count{display:inline-block}
html body.album-toolbar-labeled.album-has-selection.gallery-page.gallery-page #album-photos#album-photos #selection-download{background:var(--ap-accent)!important;border-color:var(--ap-accent)!important;color:var(--ap-on-accent)!important}
html body.album-toolbar-labeled.album-has-selection.gallery-page.gallery-page #album-photos#album-photos #selection-page{display:none!important}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos #selection-toggle[aria-pressed=true]{border-color:var(--ap-accent)!important;color:var(--ap-accent)!important}
html body.gallery-page:not(.workspace-ui) #album-photos#album-photos #gallery-feedback{font-size:13px;margin:8px 0 0}

/* Handy: Auswahl-Leiste schwebt über der Menüleiste */
@media(max-width:760px){
 html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos .gallery-album-actions>:is(button,a){padding:8px 12px!important}
 html body.album-toolbar-labeled:not(.album-has-selection).gallery-page.gallery-page #album-photos#album-photos #hidden-toggle{margin-left:0!important}
 html body.album-toolbar-labeled.album-has-selection.gallery-page.gallery-page #album-photos#album-photos .selection-bar{position:fixed!important;left:10px!important;right:10px!important;bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;z-index:30!important;padding:10px!important;border-radius:16px!important;background:var(--ap-surface)!important;border:1px solid var(--ap-line)!important;box-shadow:0 10px 30px rgba(0,0,0,.18)!important}
 html body.album-toolbar-labeled.album-has-selection.gallery-page.gallery-page #album-photos#album-photos .gallery-album-actions{gap:6px!important}
 html body.album-toolbar-labeled.album-has-selection.gallery-page.gallery-page #album-photos#album-photos .toolbar-count{flex:1 0 100%;margin:0 0 2px 2px}
 html body.album-toolbar-labeled.album-has-selection.gallery-page.gallery-page #album-photos#album-photos :is(#hidden-toggle,a[data-gallery-action-icon=downloadAll]){display:none!important}
 html body.album-toolbar-labeled.album-has-selection.gallery-page.gallery-page #album-photos#album-photos #selection-download{flex:1 1 auto;justify-content:center}
}

/* ---------- Fotokarten: ruhiger ---------- */
html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo{background:transparent!important;border:0!important;box-shadow:none!important}
html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo .photo-open{display:block;border-radius:10px!important;overflow:hidden}
html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo .photo-open img{border-radius:0!important}
html body.album-polish-ready.gallery-page:not(.workspace-ui) #album-photos .photo img:not(.is-loaded){opacity:0}
html body.album-polish-ready.gallery-page:not(.workspace-ui) #album-photos .photo img{transition:opacity .35s ease}
html body.album-polish-ready.gallery-page:not(.workspace-ui) #album-photos .photo .photo-open{background:rgba(127,127,127,.12)}

/* Maus: Aktionen erscheinen beim Überfahren oben rechts im Foto */
@media(hover:hover) and (pointer:fine){
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo{position:relative!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:auto!important;z-index:3;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:4px!important;min-height:0!important;padding:8px!important;margin:0!important;background:linear-gradient(rgba(0,0,0,.28),rgba(0,0,0,0))!important;border:0!important;border-radius:10px 10px 0 0;color:#fff!important;transition:opacity .18s ease;pointer-events:none;opacity:0!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo:is(:hover,:focus-within)>.photo-actions,
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions:has(.photo-menu[open]){opacity:1!important;pointer-events:auto}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions>:is(a,button,label),html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions>details>summary{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 32px!important;width:32px!important;max-width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;margin:0!important;border-radius:50%!important;background:rgba(255,255,255,.94)!important;border:0!important;color:#2f2730!important;font-size:0!important;box-shadow:0 1px 4px rgba(0,0,0,.18)!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions>details{position:relative}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions>details>summary{font-size:14px!important;letter-spacing:1px;list-style:none;cursor:pointer;color:#2f2730!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions>:is(a,button,label):hover,html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions>details>summary:hover{background:#fff!important;color:var(--ap-accent)!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions .icon{width:16px!important;height:16px!important;margin:0!important;color:currentColor!important;stroke:currentColor}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions :is(span:not(.badge),.selection-label){display:none!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions .photo-menu-panel{position:absolute!important;right:0;top:42px;min-width:190px;padding:6px!important;background:#fff!important;color:#2f2730!important;border-radius:12px!important;box-shadow:0 10px 30px rgba(0,0,0,.2)!important;font-size:14px!important;z-index:5}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions .photo-menu-panel>*{display:block!important;width:100%!important;text-align:left!important;font-size:14px!important;color:#2f2730!important;background:transparent!important;border:0!important;padding:9px 10px!important;border-radius:8px!important;height:auto!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions .photo-menu-panel>*:hover{background:#f5eef2!important}
 /* Gemerkte Fotos: Merk-Zeichen bleibt sichtbar */
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions:has(.photo-select input:checked){opacity:1!important;background:none!important;pointer-events:auto}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo:not(:hover):not(:focus-within)>.photo-actions:has(.photo-select input:checked)>:not(.photo-select){visibility:hidden}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions .photo-select:has(input:checked){background:var(--ap-accent)!important;color:#fff!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions .photo-select:has(input:checked) .icon{fill:#fff!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions .photo-select input{position:absolute;opacity:0;width:1px;height:1px}
}
/* Touch: kompakte Symbolzeile unter dem Foto, große Fingerflächen */
@media not ((hover:hover) and (pointer:fine)){
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:2px 0 0!important;gap:0!important;background:transparent!important;border:0!important;min-height:44px!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions>:is(a,button,label),html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions>details>summary{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:44px!important;min-height:44px!important;padding:0!important;font-size:0!important;background:transparent!important;border:0!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions>details>summary{font-size:16px!important;list-style:none}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions :is(span:not(.badge),.selection-label){display:none!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions .icon{width:21px!important;height:21px!important;margin:0!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions .photo-select:has(input:checked){color:var(--ap-accent)!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions .photo-select:has(input:checked) .icon{fill:currentColor!important}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions .photo-select input{position:absolute;opacity:0;width:1px;height:1px}
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo>.photo-actions .photo-menu-panel>*{font-size:14px!important}
}
/* Ausgewähltes Foto deutlich, aber ruhig markieren */
html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo:has(.photo-select input:checked) .photo-open{outline:3px solid var(--ap-accent);outline-offset:-3px}

/* ---------- Kleinigkeiten aus der Prüfung ---------- */
/* "Neue Bilder" nur bei neuen Fotos */
html body.album-polish-ready.gallery-page:not(.workspace-ui) .memory-tools:not(.has-new){display:none!important}
/* Mindestschriftgröße für Hinweise */
html body.gallery-page:not(.workspace-ui) .hero-meta{font-size:13px!important}
html body.gallery-page:not(.workspace-ui) .hero-meta *{font-size:13px!important}
html body.gallery-page:not(.workspace-ui)>footer,html body.gallery-page:not(.workspace-ui)>footer *{font-size:13px!important}
/* Vollbild am Handy: Knöpfe mit 44 px */
@media(max-width:760px){html body #lightbox .viewer-top :is(button,a){min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important}}
/* Teilen-Dialog: zweiter Knopf */
#gallery-share-native{margin-top:10px;width:100%}

/* Gemeinsame linke Kante für Titelbereich, Alben und Fotos */
html body.gallery-page:not(.workspace-ui) main .collection-grid{max-width:none!important;margin-left:0!important;margin-right:0!important}
html body.gallery-page:not(.workspace-ui) #album-photos .album-section-content{padding-left:0!important;padding-right:0!important}
/* Standard-Design: Albumüberschrift in der Schrift des Galerietitels statt kursiver Zierschrift */
html body.gallery-page.theme-classic:not(.workspace-ui) #album-photos .collection-heading h2{font-family:inherit!important;font-style:normal!important;font-weight:500!important;letter-spacing:-.02em!important;color:var(--ap-ink)!important;-webkit-text-fill-color:currentColor!important;background:none!important}
@media(min-width:761px){html body.gallery-page:not(.workspace-ui) main .collection-grid{justify-content:stretch!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* Titelbild: Größe kommt aus cover-fit.js; keine Höhenbegrenzung aus Layout-Regeln (sonst nur ein Streifen sichtbar) */
html body.gallery-page:not(.workspace-ui) .gallery-intro .album-cover .cover-print img[data-cover-fitted]{max-height:none!important;max-width:none!important;object-fit:fill!important}
/* Leere Shop-Leiste nicht als Balken anzeigen */
html body.gallery-page #commerce-links:not(:has(> :not([hidden]))){display:none!important}
/* Standard-Design: kompaktere Kopfzeile */
html body.gallery-page.theme-classic:not(.workspace-ui)>header{min-height:72px!important;padding-top:10px!important;padding-bottom:10px!important}
html body.gallery-page.theme-classic:not(.workspace-ui)>header .brand img{max-height:52px!important;width:auto!important}
/* Textlink in dunklen Designs lesbar */
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos #hidden-toggle{color:inherit!important}
/* Einheitliche Navigation: in den Designs A, B, C und Halloween gibt es die Menüleiste bereits – doppelte Kopf-Navigation entfällt */
html body.gallery-page.concept-gallery.has-guest-rail:not(.workspace-ui) .concept-header>nav{display:none!important}

/* Likes/Kommentare am Computer nur beim Überfahren, damit die Fotos ruhig wirken */
@media(hover:hover) and (pointer:fine){
 html body.gallery-page:not(.workspace-ui) #album-photos#album-photos article.photo .gallery-social-row:not(.gallery-social-viewer){transition:opacity .18s ease}
 html body.gallery-page:not(.workspace-ui):not(.theme-classic) #album-photos#album-photos article.photo:not(:hover):not(:focus-within) .gallery-social-row:not(.gallery-social-viewer){opacity:0!important}
}
html body.album-toolbar-labeled.gallery-page.gallery-page #album-photos#album-photos .gallery-album-actions :is(.gallery-album-actions>button,.gallery-album-actions>a,.photo-management-toolbar>button)[hidden]{display:none!important}
