/* ==========================================================
   MARY Lou Pics and More – Stylesheet
   ========================================================== */
:root {
    --text: #272525;
    --muted: #666;
    --accent: #5d9da0;
    --accent-dark: #3d6c6f;
    --sand: #c5bbab;
    --bg: #fff;
    --nav-bg: #fff;
    --content-width: 960px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Work Sans", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: #222 url('/assets/img/6c86984ea09520d6.jpg') center 24% / cover fixed no-repeat;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--accent-dark); }

/* ---------- Header / Hero ---------- */
.hero {
    position: relative;
    height: calc(100vh - 50px);
    min-height: 450px;
    max-height: 1100px;
    background-size: cover;
    background-position: 55% 24%;
    background-attachment: fixed;
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, .3);
    animation: fadein 2s;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Navigation ---------- */
.main-nav {
    background: var(--nav-bg);
    text-align: center;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { display: inline-block; }
.main-nav a {
    display: block;
    padding: 16px 18px;
    font-family: "Alegreya", serif;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text);
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }

.nav-toggle {
    display: none;
    position: fixed; top: 12px; left: 10px; z-index: 200;
    width: 46px; height: 46px;
    background: #fff; border: 0; border-radius: 3px; cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    position: absolute; left: 8px; width: 30px; height: 2px; background: #000;
    content: ""; transition: transform .3s, top .3s, opacity .3s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -9px; left: 0; }
.nav-toggle span::after { top: 9px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Content ---------- */
.content {
    background: var(--bg);
    max-width: 100%;
    padding: 30px 20px 60px;
}
.content > * { max-width: var(--content-width); margin-left: auto; margin-right: auto; }

.breadcrumb {
    font-family: "Alegreya", serif;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); }

h1 {
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    font-size: 50px;
    line-height: 1.2;
    margin: .4em auto;
}
h2 {
    font-family: "IM Fell English", serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.5;
    text-align: center;
    color: var(--muted);
    margin: 1em auto .5em;
}
h3 { font-family: "Fira Sans", sans-serif; font-weight: 400; }

.text p { margin: 0 0 .6em; }
.text p:empty { display: none; }
.text h2 { margin: .3em 0; }

hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 30px auto;
}

.fig { margin: 10px auto 20px; }
.content > .fig { max-width: min(var(--w, 100%), var(--content-width)); }
.content > .fig--left { margin-left: max(0px, calc((100% - var(--content-width)) / 2)); }
.content > .fig--right { margin-right: max(0px, calc((100% - var(--content-width)) / 2)); }
.text-with-image .fig { max-width: min(var(--w, 100%), 50%); }
.fig--center { text-align: center; }
.fig--center img { margin: 0 auto; }
.fig--left { margin-left: 0; }
.fig--right { margin-right: 0; }
.fig figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }

.text-with-image::after { content: ""; display: table; clear: both; }
.text-with-image .fig--left { float: left; width: 50%; margin: 0 30px 15px 0; }
.text-with-image .fig--right { float: right; width: 50%; margin: 0 0 15px 30px; }

.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > .col { flex-grow: 1; min-width: 0; }

/* Galerie (Masonry-artig) */
.gallery {
    columns: 3 260px;
    column-gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.gallery:has(> a:only-child) { columns: 1; }
.gallery:has(> a:nth-child(2):last-child) { columns: 2 260px; }
.gallery a { display: block; margin-bottom: 8px; break-inside: avoid; overflow: hidden; }
.gallery img { width: 100%; transition: transform .4s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.03); opacity: .92; }

/* ---------- Kontaktformular ---------- */
.contact-form { max-width: 700px; margin: 0 auto; }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; margin-bottom: 4px; }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    color: var(--text);
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent);
}
.contact-form .field--check label { display: flex; gap: 8px; align-items: flex-start; }
.contact-form .field--check input { margin-top: 5px; }
.contact-form .has-error input, .contact-form .has-error textarea, .contact-form .has-error select { border-color: #c0392b; }
.contact-form .err { color: #c0392b; }
.contact-form .req { color: #c0392b; }
.contact-form .hint { font-size: 14px; color: var(--muted); }
.contact-form .hp { position: absolute; left: -9999px; }
.btn {
    display: inline-block;
    padding: 12px 34px;
    font: inherit;
    letter-spacing: .05em;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    transition: background .2s;
}
.btn:hover { background: var(--accent-dark); }
.form-msg { padding: 12px 16px; border-radius: 2px; }
.form-msg--ok { background: #e7f3f3; color: var(--accent-dark); }
.form-msg--err { background: #fbeaea; color: #922; }

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    color: #fff;
    padding: 50px 20px;
    background: rgba(0, 0, 0, .35);
    font-size: 16px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { font-family: "Alegreya", serif; letter-spacing: .05em; }

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 44px; height: 44px; line-height: 44px; text-align: center;
    background: rgba(0,0,0,.5); color: #fff; border-radius: 50%;
    opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top.visible { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0, 0, 0, .92);
    display: flex; align-items: center; justify-content: center;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img { max-width: 92vw; max-height: 90vh; width: auto; object-fit: contain; }
.lightbox-overlay button {
    position: absolute; background: none; border: 0; color: #fff;
    font-size: 48px; line-height: 1; cursor: pointer; padding: 10px 18px; opacity: .8;
}
.lightbox-overlay button:hover { opacity: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .hero, body { background-attachment: scroll; }
    .hero { height: 60vh; min-height: 300px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; top: 0; left: 0; right: 0; z-index: 150;
        padding-top: 70px;
        transform: translateY(-100%); opacity: 0; visibility: hidden;
        transition: transform .3s, opacity .3s, visibility .3s;
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }
    .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
    .main-nav li { display: block; }
    .main-nav a { padding: 12px; }
    h1 { font-size: 34px; }
    h2 { font-size: 24px; }
    .text-with-image .fig--left, .text-with-image .fig--right { float: none; width: auto; max-width: min(var(--w, 100%), 100%); margin: 0 auto 20px; }
    .text span[style*="font-size: 20px"], .text span[style*="font-size: 22px"] { font-size: 18px !important; }
}
