/* Aldo Todaro Photography – neu aufgebaut nach dem Design von 2012 (Silverfish AG) */

@font-face { font-family: 'Bodoni Book'; src: url('/fonts/bodoni-book.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Bodoni Book Italic'; src: url('/fonts/bodoni-book-italic.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Bodoni Bold'; src: url('/fonts/bodoni-bold.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Yanone Kaffeesatz'; src: url('/fonts/yanone-kaffeesatz-400.woff2') format('woff2'); font-display: swap; }

:root {
    --pink: #f2a8c7;
    --poly-bg: #fdecf8;
    --text: #000;
    --serif: 'Bodoni Book', 'Bodoni 72', Didot, Times, serif;
    --serif-italic: 'Bodoni Book Italic', 'Bodoni 72', Didot, Times, serif;
    --label: 'Yanone Kaffeesatz', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 20px 20px 40px 60px; color: var(--text); background: #fff; font: 17px/1.15 var(--serif); }
body.section-polygrafie { background: var(--poly-bg); }
::selection { background: var(--pink); color: #fff; }
a { color: inherit; text-decoration: none; }
a:hover, a.active { color: var(--pink); }
a:focus-visible, button:focus-visible { outline: 1px dotted currentColor; outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
html, body { overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ Kopf */
.brand { display: flex; align-items: flex-end; gap: 12px; padding-bottom: 20px; }
.logo img { width: 110px; }
.switch { display: flex; gap: 28px; font: 32px/1 var(--label); letter-spacing: .01em; padding-bottom: 2px; }
.switch a { color: #8c8c8c; }
.switch a:hover, .switch a.active { color: #000; }

.main-nav { background: url(/images/dots.png) repeat-x left bottom; padding-bottom: 2px; }
.main-nav ul { display: flex; flex-wrap: wrap; column-gap: 8px; }
.main-nav a { font: 20px/24px var(--serif-italic); }
.main-nav li:not(.last):not(:nth-last-child(2)) a::after { content: ","; color: #000; }
.main-nav li.last { margin-left: auto; }
.main-nav li.last a { font-family: var(--serif); text-transform: lowercase; }

/* ------------------------------------------------------------ Fotografie */
#container { margin-top: 40px; }
.split { display: flex; gap: 0; align-items: flex-start; }
.sidebar { flex: 0 0 220px; }
.content { flex: 1 1 auto; min-width: 0; }
.project-nav li { margin-bottom: 4px; }
.project-nav a { font: 17px/19px var(--serif); }
.toggle-projects { display: none; font: 1em/1 'Bodoni Bold', var(--serif); }
.download { margin-top: 60px; }

.gallery-images img { max-height: 75vh; width: auto; max-width: 100%; cursor: pointer; }
.gallery-nav { margin-top: 14px; font: 17px/17px var(--serif); display: flex; align-items: center; gap: 6px; user-select: none; }
.gallery-nav button { padding: 4px; }

.text { font: 17px/19px var(--serif); }
.text p { margin: 0 0 19px; }

/* ------------------------------------------------------------ Polygrafie */
.poly-grid { display: grid; grid-template-columns: repeat(auto-fill, 201px); gap: 20px; max-width: 900px; }
/* Rollover wie im Original: zweites Bild liegt darüber und wird beim Hover eingeblendet */
.poly-tile { position: relative; display: block; }
.poly-tile img { width: 100%; height: auto; }
.poly-tile img.hover { position: absolute; inset: 0; opacity: 0; }
.poly-tile:hover img.hover, .poly-tile:focus-visible img.hover { opacity: 1; }

.poly-work, .poly-page { max-width: 900px; }
.poly-images { display: grid; gap: 20px; }
.poly-text { margin-top: 30px; max-width: 640px; font: 15px/1.45 Verdana, Geneva, sans-serif; }
.poly-text h1 { font: 28px/1.1 'Bodoni Bold', var(--serif); margin: 0 0 14px; }
.poly-text p { margin: 0 0 1em; }
.credits { margin: 20px 0 0; text-transform: uppercase; font-size: 12px; }
.credits div { padding: 3px 0; background: url(/images/dots.png) repeat-x left bottom; }
.credits dt, .credits dd { display: inline; margin: 0; }
.poly-pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; font: 17px/1.2 var(--serif); }
.poly-pager .overview { margin: 0 auto; }
.poly-page { display: flex; gap: 40px; align-items: flex-start; }
.poly-page-image { flex: 0 0 300px; }
.poly-page .poly-text { margin-top: 0; }
.social { display: flex; gap: 16px; margin-top: 20px; }

/* ------------------------------------------------------------ Mobile */
@media (max-width: 700px) {
    body { margin: 10px 12px 30px; }
    .logo img { width: 70px; }
    .switch { font-size: 24px; gap: 16px; }
    .main-nav ul { column-gap: 6px; }
    .main-nav a { font-size: 18px; line-height: 24px; }
    .main-nav li.last { margin-left: 0; }
    #container { margin-top: 12px; }
    .split { display: block; }
    .sidebar { position: relative; margin-bottom: 12px; }
    .toggle-projects { display: block; }
    .project-nav { display: none; position: absolute; z-index: 10; top: 1.6em; left: 0; min-width: 180px; padding: 8px; background: rgba(255,255,255,.95); }
    .project-nav.open { display: block; }
    .download { display: none; }
    .gallery-images img { max-height: 70vh; height: auto; object-fit: contain; }
    .gallery-nav { justify-content: flex-end; }
    .poly-grid { grid-template-columns: repeat(2, minmax(0, 201px)); gap: 12px; }
    .poly-page { display: block; }
    .poly-page-image { margin-bottom: 20px; }
}
