/* ===== Ab hier: dein bisheriges Design ===== */
html, body { overflow-x: hidden; width: 100%; position: relative; }
body { font-family: 'Inter', sans-serif; background-color: #fff; color: #111; margin: 0; display: flex; flex-direction: row; min-height: 100vh; -webkit-font-smoothing: antialiased; }
@media (min-width: 1024px) { body.no-scroll-home { overflow: hidden !important; height: 100vh; } }
.no-copy { -webkit-user-select: none !important; user-select: none !important; cursor: default; }

aside { width: 380px; height: 100vh; position: fixed; left: 0; top: 0; padding: 70px 0 40px 0; display: flex; flex-direction: column; border-right: 1px solid rgba(0,0,0,0.05); z-index: 1000; background: #fff; }
#site-logo-sidebar { width: 100%; padding: 0 40px; margin-bottom: 15px; filter: brightness(0); }
.sidebar-sub-header { padding: 0 10px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: #999; margin-bottom: 60px; text-align: center; }

nav { padding: 0 60px; flex-grow: 1; display: flex; flex-direction: column; }
nav ul li { margin-bottom: 22px; list-style: none; }
.nav-link { font-size: 12px; text-transform: uppercase; letter-spacing: 0.25em; color: #b5b5b5; transition: 0.4s; cursor: pointer; text-decoration: none; }
.nav-link:hover, .nav-link.active { color: #111; }

.sidebar-footer { margin-top: auto; padding: 0 0 40px 60px; text-align: left; width: 100%; }
.legal-link-small { font-size: 12px; text-transform: uppercase; letter-spacing: 0.25em; color: #b5b5b5; cursor: pointer; transition: 0.4s; display: inline-block; text-decoration: none; }
.legal-link-small:hover { color: #111; }

main { margin-left: 380px; width: calc(100% - 380px); position: relative; z-index: 1; flex-grow: 1; max-width: 100%; }
#hero-section { width: 100%; height: 100vh; overflow: hidden; background: #f4f4f5; }
#hero-img { width: 100%; height: 100%; object-fit: cover; }
.gallery-container { padding: 80px 5% 150px 5%; width: 100%; }

.modal-base { display: none; position: fixed; inset: 0; z-index: 5000; background: rgba(255,255,255,0.96); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.5s ease; }
.modal-base.show { display: flex; opacity: 1; }
.modal-content { max-width: 900px; width: 100%; text-align: center; transform: translateY(20px); transition: transform 0.5s ease; }

#portfolio-modal .pm-content { display: flex; max-width: 90vw; border-radius: 2px; max-height: 90vh; transform: scale(0.97); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.modal-base.show#portfolio-modal .pm-content { transform: scale(1); }
#portfolio-modal .pm-image img { max-width: 100%; max-height: 90vh; object-fit: contain; }
#portfolio-modal .pm-text { flex: 0 0 auto; padding: 40px 60px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; opacity: 0; transform: translateY(15px); transition: all 0.6s ease 0.2s; }
.modal-base.show#portfolio-modal .pm-text { opacity: 1; transform: translateY(0); }
@media (min-width: 769px) { #portfolio-modal .pm-content[style*="flex-direction: row"] .pm-text { width: 400px; flex: 0 0 400px; } }

.fav-heart { position: absolute; top: 15px; right: 15px; font-size: 20px; color: rgba(255,255,255,0.8); z-index: 20; transition: 0.3s; cursor: pointer; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); user-select: none; }
.fav-heart.active { color: #ff4b4b; transform: scale(1.2); }

#backToTop { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 1000; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; background: white; color: black; border: 1px solid #eee; padding: 12px 18px; cursor: pointer; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
#copy-notice, #toast { display: none; position: fixed !important; bottom: 50px !important; left: 50% !important; transform: translateX(-50%) !important; background: #000 !important; color: #fff !important; padding: 15px 30px !important; font-size: 11px !important; text-transform: uppercase !important; letter-spacing: 0.2em !important; z-index: 999999 !important; white-space: nowrap !important; opacity: 0; transition: opacity 0.4s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important; pointer-events: none !important; }
@media (max-width: 600px) { #copy-notice, #toast { white-space: normal !important; width: 90vw; text-align: center; } }

/* IPAD HOCHKANT & HANDY: Sidebar wird zur Kopfzeile */
@media (max-width: 1024px) and (orientation: portrait) {
    body { flex-direction: column; }
    aside { width: 100%; height: auto; position: relative; padding: 20px 0; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.05); }
    #site-logo-sidebar { width: 180px; margin: 0 auto 10px auto; padding: 0; }
    .sidebar-sub-header { margin-bottom: 20px; }
    nav { padding: 0; }
    nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; padding: 0 20px; margin: 0; }
    nav ul li { margin-bottom: 0; }
    main { margin-left: 0; width: 100%; }
    .sidebar-footer { padding: 20px; text-align: center; }
    #hero-section { height: 72vh; height: calc(100svh - 150px); min-height: 360px; }
}

/* IPAD QUERFORMAT & DESKTOP: Der weiße Streifen links */
@media (min-width: 1025px), (orientation: landscape) {
    body { flex-direction: row; }
    aside { width: 380px; height: 100vh; position: fixed; border-right: 1px solid rgba(0,0,0,0.05); }
    main { margin-left: 380px; width: calc(100% - 380px); }
}

/* Handy quer: schmalere Leiste */
@media (orientation: landscape) and (max-height: 500px) {
    aside { width: 240px; padding: 20px 0; overflow-y: auto; }
    #site-logo-sidebar { padding: 0 24px; }
    .sidebar-sub-header { margin-bottom: 20px; }
    nav { padding: 0 30px; }
    nav ul li { margin-bottom: 10px; }
    .sidebar-footer { padding: 10px 0 10px 30px; }
    main { margin-left: 240px; width: calc(100% - 240px); }
}

.fade-in { animation: fadeIn 1.2s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
img { -webkit-user-drag: none; }

.leaflet-container { font-family: 'Inter', sans-serif; }
#map { -webkit-transform: translate3d(0,0,0); -webkit-backface-visibility: hidden; }
.leaflet-tile-container { -webkit-transform: translate3d(0,0,0); }

/* ===== Neu ===== */
.btn-client { font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: #111; border-bottom: 1px solid #111; padding-bottom: 4px; cursor: pointer; background: none; text-decoration: none; transition: opacity .3s; }
.btn-client:hover { opacity: .5; }
.btn-client.btn-logout { color: #a1a1aa; border-color: transparent; }
.btn-client.btn-logout:hover { color: #111; opacity: 1; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.legal-text a { color: #111; }
.admin-fab { position: fixed; left: 14px; bottom: 14px; z-index: 99999; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: 16px; background: rgba(255,255,255,.85); border: 1px solid #e4e4e7; color: #a1a1aa; text-decoration: none; opacity: .55; transition: opacity .3s, color .3s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.admin-fab svg { width: 16px; height: 16px; flex: 0 0 16px; }
.admin-fab-text { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; transition: max-width .4s ease; }
.admin-fab:hover { opacity: 1; color: #111; }
.admin-fab:hover .admin-fab-text { max-width: 220px; }
.admin-fab-dot { position: absolute; top: 3px; left: 21px; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.empty-note { grid-column: 1 / -1; text-align: center; padding: 60px 0; font-family: ui-serif, Georgia, serif; font-style: italic; color: #a1a1aa; font-size: 1.25rem; }
body.maintenance-body { display: block; }
.gallery-tile img { transition: transform .7s ease; }

/* ===== Update 2: Titelbilder, Lightbox, Handy-Menü, Shootings ===== */
#hero-section { position: relative; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.2s ease; }
.hero-slide.is-on { opacity: 1; }

#pm-img { transition: opacity .35s ease; }
#pm-img.is-loading { opacity: .25; }
.pm-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 42px; line-height: 1; color: #fff; background: rgba(0,0,0,.22); border: 0; cursor: pointer; transition: background .3s, opacity .3s; z-index: 5; font-weight: 200; }
.pm-arrow:hover { background: rgba(0,0,0,.45); }
.pm-prev { left: 0; }
.pm-next { right: 0; }
.pm-count { position: absolute; bottom: 10px; right: 12px; font-size: 9px; letter-spacing: .2em; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
@media (hover: none) { .pm-arrow { width: 38px; height: 54px; font-size: 34px; background: rgba(0,0,0,.18); } }

.insta-link { font-size: 11px; text-transform: uppercase; letter-spacing: .25em; color: #111; border-bottom: 1px solid #111; padding-bottom: 5px; text-decoration: none; transition: opacity .3s; }
.insta-link:hover { opacity: .5; }

.shoot-types { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.shoot-types li { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: #111; padding-left: 16px; position: relative; }
.shoot-types li::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 1px; background: #111; }
.review { border-top: 1px solid #eee; padding: 26px 4px 6px; margin: 0; }
.review-stars { color: #111; letter-spacing: 3px; font-size: 13px; margin-bottom: 14px; }
.review-stars span { color: #d4d4d8; }
.review blockquote { font-family: ui-serif, Georgia, serif; font-style: italic; font-size: 1.15rem; color: #52525b; line-height: 1.6; margin: 0 0 14px; }
.review figcaption { font-size: 10px; text-transform: uppercase; letter-spacing: .22em; color: #a1a1aa; }

/* Handy-Menü (Hamburger) */
.menu-toggle { display: none; }
@media (max-width: 1024px) and (orientation: portrait) {
    aside { padding: 16px 0 14px; }
    #site-logo-sidebar { width: 150px; margin-bottom: 6px; }
    .sidebar-sub-header { margin-bottom: 0; font-size: 9px; }
    .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; padding: 10px 8px; background: none; border: 0; cursor: pointer; z-index: 1100; }
    .menu-toggle span { display: block; height: 1px; width: 100%; background: #111; transition: transform .35s, opacity .35s; }
    body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
    body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    aside nav, aside .sidebar-footer { display: none; }
    body.menu-open aside { position: fixed; inset: 0; height: 100vh; height: 100dvh; overflow-y: auto; z-index: 4000; border: 0; }
    body.menu-open aside nav { display: flex; padding: 40px 0 10px; animation: fadeIn .4s ease-out; }
    body.menu-open aside nav ul { flex-direction: column; align-items: center; gap: 26px; }
    body.menu-open .nav-link { font-size: 13px; }
    body.menu-open aside .sidebar-footer { display: block; }
    body.menu-open main { display: none; }
}

/* Karte: OpenStreetMap im hellen, ruhigen Look deiner Seite */
.leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.07); }
