/* Maria Bahn – Stylesheet. Schriften liegen lokal in assets/fonts (kein Google-Fonts-Aufruf). Latin + Latin-Extended (u. a. ungarisches ő, ű). */
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/cormorant-500.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/cormorant-ext-500.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url(fonts/cormorant-500-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url(fonts/cormorant-ext-500-italic.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/cormorant-600.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/cormorant-ext-600.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-400.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-ext-400.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/inter-500.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/inter-ext-500.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/inter-600.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/inter-ext-600.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root {
  --bg: #f6f1e8;
  --bg-2: #efe7d8;
  --card: #fffaf1;
  --ink: #241f1b;
  --muted: #6d645a;
  --line: #ddd2bf;
  --accent: #b2502a;
  --accent-d: #8f3d1d;
  --green: #2f4a3c;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
  --shadow: 0 1px 2px rgba(36, 31, 27, .06), 0 12px 32px -12px rgba(36, 31, 27, .25);
  --gut: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip; margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - var(--gut) * 2); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow { font: 600 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); max-width: 34em; }
.lead.sm { font-size: 1.15rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .85em 1.6em; border-radius: 999px;
  font: 500 .95rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: .2s; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn.ghost { border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: var(--bg); color: var(--ink); }
.btn.light:hover { background: #fff; transform: translateY(-1px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0; }
.textlink { font-weight: 500; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; white-space: nowrap; }
.textlink:hover { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 232, .86); backdrop-filter: blur(12px); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font: 600 1.7rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; padding: .55em 1.1em; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--muted); transition: .15s; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current] { color: var(--ink); background: var(--bg-2); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: .25s; }
.burger i:nth-of-type(1) { top: 17px; } .burger i:nth-of-type(2) { top: 25px; }
.burger[aria-expanded='true'] i:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded='true'] i:nth-of-type(2) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 720px) {
  .burger { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 8px var(--gut) 20px;
    border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.1rem; padding: .8em 0; border-radius: 0; background: none !important; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy h1 { margin-bottom: .3em; }
.hero-meta { color: var(--muted); font-size: .9rem; margin-top: 2.2rem; }
.hero-meta strong { color: var(--ink); font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.hero-art { position: relative; }
.hero-art .frame { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow); border: 10px solid var(--card); z-index: 1; }
.hero-art .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-art .frame img.on { opacity: 1; }
.dots { display: flex; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; justify-content: center; position: relative; z-index: 1; }
.dots li { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: .3s; }
.dots li.on { background: var(--accent); width: 26px; border-radius: 99px; }
.blob { position: absolute; border-radius: 50%; z-index: 0; filter: blur(2px); }
.blob.b1 { width: 55%; aspect-ratio: 1; background: #e6c9a5; right: -12%; top: -6%; opacity: .55; }
.blob.b2 { width: 36%; aspect-ratio: 1; background: #cfdac9; left: -10%; bottom: 4%; opacity: .7; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section.tight { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 100px); }
.section.tint { background: var(--bg-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.pagehead { padding: clamp(40px, 7vw, 90px) 0 8px; }
.pagehead h1 { margin-bottom: .2em; }

/* Grid + Tiles */
.grid { display: grid; gap: clamp(12px, 2vw, 22px); }
.grid.featured { grid-template-columns: repeat(4, 1fr); }
.grid.featured .tile.big { grid-column: span 2; grid-row: span 2; }
.grid.gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.six { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.featured, .grid.four { grid-template-columns: repeat(2, 1fr); } .grid.six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid.gallery { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--bg-2); text-decoration: none;
  aspect-ratio: 4 / 3; box-shadow: 0 1px 2px rgba(36,31,27,.08); transition: transform .35s, box-shadow .35s; }
.tile[hidden] { display: none; }
.tile.big { aspect-ratio: auto; }
.tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tile:hover img { transform: scale(1.12); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, rgba(20, 15, 10, .75), transparent); opacity: 0; transform: translateY(8px); transition: .3s; }
.tile .cap b { font: 500 1.25rem/1.1 var(--serif); }
.tile .cap small { font-size: .78rem; opacity: .8; }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; transform: none; }
@media (hover: none) { .tile .cap { opacity: 1; transform: none; padding-top: 30px; } .tile .cap small { display: none; } }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { font: 500 .9rem/1 var(--sans); padding: .7em 1.2em; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: .15s; }
.chip em { font-style: normal; color: var(--muted); margin-left: .3em; font-size: .85em; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on em { color: #cfc6b8; }

/* Cats */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.catlist { list-style: none; margin: 0; padding: 0; }
.catlist a { display: flex; justify-content: space-between; align-items: baseline; text-decoration: none; padding: 18px 4px; border-bottom: 1px solid var(--line); transition: .2s; }
.catlist span { font: 500 1.7rem/1 var(--serif); }
.catlist em { font-style: normal; color: var(--muted); font-size: .9rem; }
.catlist a:hover { padding-left: 14px; color: var(--accent); }
@media (max-width: 800px) { .cats { grid-template-columns: 1fr; } }

/* About */
.about-teaser, .about-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-grid { align-items: start; grid-template-columns: minmax(260px, 420px) 1fr; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 999px 999px 18px 18px; border: 8px solid var(--card); box-shadow: var(--shadow); }
.portrait.big { aspect-ratio: 4 / 5; object-position: 60% 30%; }
.prose { max-width: 40em; }
@media (max-width: 760px) { .about-teaser, .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 320px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.card dl { margin: 0; } .card dt { font: 600 .72rem/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.card dd { margin: 0 0 22px; font-size: 1.1rem; } .card dd:last-child { margin-bottom: 0; }
.card a { text-decoration: none; border-bottom: 1.5px solid var(--accent); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Band */
.band { background: var(--green); color: #f3ede1; text-align: center; padding: clamp(56px, 8vw, 100px) 0; }
.band h2 { color: #fff; } .band p { color: #cdd8cc; }
.band .btn { margin-top: 10px; }

/* Art page */
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.art-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.art-img { display: block; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); cursor: zoom-in; }
.art-img img { width: 100%; }
.art-info h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.facts { margin: 1.4rem 0 1.8rem; padding: 14px 0; border-block: 1px solid var(--line); display: flex; gap: 16px; font-size: .95rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 500; }
.pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 2.2rem; font-size: .92rem; }
.pn a { text-decoration: none; color: var(--muted); } .pn a:hover { color: var(--accent); }
@media (max-width: 860px) { .art-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(18, 14, 10, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 20px 0; animation: fade .2s; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; max-height: 100%; }
.lb figure img { max-height: calc(100vh - 170px); max-width: 100%; object-fit: contain; border-radius: 6px; }
.lb figcaption { color: #e9e1d3; text-align: center; max-width: 640px; display: flex; flex-direction: column; gap: 4px; padding: 0 12px; font-size: .95rem; }
.lb figcaption b { font: 500 1.6rem/1.1 var(--serif); color: #fff; }
.lb figcaption .textlink { color: #fff; align-self: center; margin-top: 6px; font-size: .9rem; }
.lb-close, .lb-nav { background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; opacity: .75; transition: .15s; }
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-close { position: absolute; top: 12px; right: 18px; font-size: 2.4rem; z-index: 2; }
.lb-nav { height: 100%; }
@media (max-width: 600px) { .lb { grid-template-columns: 36px 1fr 36px; } .lb-nav { font-size: 2rem; } }
@keyframes fade { from { opacity: 0; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; background: var(--bg); }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot-brand { font: 600 1.6rem/1 var(--serif); margin: 0 0 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; color: var(--muted); font-size: .95rem; } .foot nav a:hover { color: var(--accent); }
.foot .small { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .foot { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Friends / Formulare / Admin ---------- */
.mt { margin-top: 24px; }
.h1s { font-size: clamp(2rem, 4vw, 3rem); }
.form-wrap { max-width: 760px; }
.form-wrap.narrow { max-width: 420px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 500; font-size: .95rem; }
.req { color: var(--accent); }
.form input[type=text], .form input[type=email], .form input[type=number], .form input[type=password], .form textarea, .form input[type=file] {
  font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: .75em 1em; width: 100%;
}
.form input[type=file] { padding: .6em 1em; background: var(--bg); }
.form textarea { resize: vertical; line-height: 1.55; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.hint { color: var(--muted); font-size: .875rem; margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { margin-top: .35em; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errors { background: #fbe9e4; border: 1px solid #e4b8aa; color: #6b2412; border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; }
.errors ul { margin: 8px 0 0; padding-left: 20px; }
.okbox { background: #e6f0e8; border: 1px solid #b9d3be; color: #1f4a2c; border-radius: 12px; padding: 12px 18px; margin: 14px 0; }

.friends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(36,31,27,.06); }
.fimgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--bg-2); }
.fimgs .tile { border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; }
.fimgs .tile:hover { transform: none; box-shadow: none; }
.fimgs .fcover { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.fimgs .fsmall { aspect-ratio: 1; }
.fbody { padding: 18px 22px 22px; }
.fbody h3 { font-size: 1.7rem; margin: 0 0 4px; }
.fmeta { color: var(--accent); font-weight: 500; font-size: .9rem; margin: 0 0 12px; }
.ftext { margin: 0 0 12px; }
.fby { color: var(--muted); font-size: .9rem; margin: 0; }

.atable { width: 100%; border-collapse: collapse; margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .95rem; }
.atable th, .atable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.athumb { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }
.btn.small { padding: .55em 1.1em; font-size: .85rem; }
.btn.danger { color: #8f2a14; border-color: #d8a99b; }
.btn.danger:hover { background: #8f2a14; color: #fff; border-color: #8f2a14; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; margin-top: 18px; }
.aphotos { display: grid; gap: 12px; }
.aphotos img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.badge { display: inline-block; font: 600 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .5em .9em; border-radius: 99px; vertical-align: middle; margin-left: 8px; }
.b-pending { background: #f3e3b8; color: #6b5210; } .b-approved { background: #cfe3d3; color: #1f4a2c; } .b-rejected { background: #efcfc6; color: #6b2412; }
.small { font-size: .85rem; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } .atable { font-size: .85rem; } .atable th:nth-child(3), .atable td:nth-child(3), .atable th:nth-child(5), .atable td:nth-child(5) { display: none; } }
button.btn { font-family: inherit; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost.danger { color: #8f2a14; }
.form > .btn { align-self: flex-start; }

/* ---------- Weltkarte (Friends) ---------- */
.mapwrap { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.mapsvg { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; background: #eef2f1; }
.mapsvg.zoomed { touch-action: none; }
.mapsvg.drag { cursor: grabbing; }
.mapsvg .land { fill: #e6dcc9; stroke: #fff; stroke-width: .35; vector-effect: non-scaling-stroke; }
.mapsvg .mk { cursor: pointer; }
.mapsvg .mk circle { fill: var(--accent); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill .15s; }
.mapsvg .mk:hover circle, .mapsvg .mk:focus-visible circle, .mapsvg .mk.on circle { fill: var(--accent-d); }
.mapsvg .mk:focus, .mapsvg .mk:focus-visible { outline: none; }
.mapsvg .mk:focus-visible circle { stroke: var(--ink); }
.mapsvg .mk text { fill: #fff; font-family: var(--sans); font-weight: 600; text-anchor: middle; pointer-events: none; }
.mapctl { position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.mapctl button { width: 38px; height: 38px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; font: 500 1.2rem/1 var(--sans); cursor: pointer; box-shadow: 0 1px 2px rgba(36,31,27,.1); }
.mapctl button:hover { background: var(--bg-2); }
.mappop { position: absolute; z-index: 5; width: min(300px, calc(100% - 24px)); max-height: 70%; overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px -6px rgba(36,31,27,.4); padding: 10px; }
.mappop[hidden] { display: none; }
.mappop .pi { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 8px; border-radius: 8px; align-items: center; }
.mappop .pi + .pi { border-top: 1px solid var(--line); }
.mappop img { width: 84px; height: 62px; object-fit: cover; border-radius: 6px; background: var(--bg-2); }
.mappop b { display: block; font: 500 1.15rem/1.15 var(--serif); }
.mappop span { display: block; font-size: .8rem; color: var(--muted); margin: 2px 0 4px; }
.mappop a { font-size: .85rem; font-weight: 500; color: var(--accent-d); }
.mappop .pclose { position: absolute; top: 4px; right: 8px; border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); }
.maphint { margin-top: 12px; }
.fcard.flash { outline: 3px solid var(--accent); outline-offset: 3px; animation: flashfade 2.4s ease-out forwards; }
@keyframes flashfade { 0%, 60% { outline-color: var(--accent); } 100% { outline-color: transparent; } }

/* ---------- Sprachumschalter (DE | EN | HU) und Hinweis auf Rechtstexten ---------- */
.langsw { display: inline-flex; gap: 2px; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); align-items: center; }
.nav .langsw a { padding: .4em .6em; font-size: .78rem; font-weight: 600; letter-spacing: .06em; border-radius: 8px; }
.nav .langsw a[aria-current] { background: var(--ink); color: #fff; }
@media (max-width: 720px) { .langsw { margin: 12px 0 0; padding: 0; border: 0; gap: 6px; } .nav .langsw a { border-bottom: 0; padding: .55em .9em; font-size: .85rem; border-radius: 8px; } .nav .langsw a[aria-current] { background: var(--ink) !important; color: #fff !important; } }
.box-note { background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin: 0 0 24px; font-size: .95rem; }

/* „Gesucht“: Bilder, deren Besitzer noch nicht gefunden sind */
.h2s { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 1.6rem 0 .6rem; }
.mapsvg .mk.miss circle { fill: #fff; stroke: var(--accent); stroke-width: 2.5; }
.mapsvg .mk.miss text { fill: var(--accent-d); }
.mapsvg .mk.miss:hover circle, .mapsvg .mk.miss:focus-visible circle, .mapsvg .mk.miss.on circle { fill: #f6e3d6; stroke: var(--accent-d); }
.mapsvg .mk.hide { display: none; }
.mapsvg .mk .bdg circle { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.mapsvg .mk .bdg text { fill: var(--accent-d); }
.maplegend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.lg { display: inline-flex; align-items: center; gap: .6em; font: 500 .9rem/1 var(--sans); padding: .6em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.lg i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font: 600 .62rem/1 var(--sans); font-style: normal; }
.lg-f i { background: var(--accent); }
.lg-m i, .missbadge i { background: #fff; border: 2px solid var(--accent); color: var(--accent-d); }
.lg[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
.lg:hover { border-color: var(--ink); }
.mappop .pi.nopic { grid-template-columns: 1fr; }
.fcard.miss { border-style: dashed; background: transparent; box-shadow: none; }
.missbadge { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 8px; font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-d); }
.missbadge i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 600 .66rem/1 var(--sans); font-style: normal; }

@media (max-width: 860px) { .atable.stat td:nth-child(3) { display: table-cell; } }
/* Admin: Statistik */
.statbig { font-size: 1.15rem; margin: 1.4rem 0 .6rem; } .statbig strong { font: 500 2.4rem/1 var(--serif); margin-right: .2em; }
.statchart { width: 100%; max-width: 760px; height: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.statchart .sbar, .stat .sbar { fill: var(--accent); } .statchart .axis { stroke: var(--line); stroke-width: 1; }
.statchart .tick { fill: var(--muted); font: 11px var(--sans); }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 8px 32px; margin-top: 1rem; }
.statgrid > div { min-width: 0; }
.atable.stat { margin-top: 6px; table-layout: auto; } .atable.stat td:first-child { width: 100%; } .atable.stat td:not(:first-child) { white-space: nowrap; } .atable.stat td { padding: 8px 12px; } .atable.stat .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Herzen („Gefällt mir“) */
.heart { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--accent); cursor: pointer; padding: 6px 8px; border-radius: 999px; font: 500 .95rem/1 var(--sans); }
.heart svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: transform .15s, fill .15s; }
.heart.has svg, .heart.on svg { fill: currentColor; }   /* ab dem ersten vergebenen Herz für alle ausgefüllt */ .heart:hover svg { transform: scale(1.12); }
.heart:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.heart[disabled] { opacity: .6; cursor: progress; }
.heart .hn:empty { display: none; }
.tilewrap { position: relative; } .tilewrap[hidden] { display: none; }
.tileheart { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.88); box-shadow: 0 1px 4px rgba(36,31,27,.25); padding: 7px 9px; }
.tileheart svg { width: 20px; height: 20px; }
.fheart { margin: 10px 0 0 -8px; }
.art-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.lb-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.lb figcaption .lb-actions .textlink { margin-top: 0; }
.lbheart { color: #fff; padding: 2px 8px; } .lbheart svg { width: 22px; height: 22px; } .lbheart[hidden] { display: none; }
.liketoast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 460px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .95rem; box-shadow: 0 10px 30px -6px rgba(36,31,27,.5); }
.liketoast[hidden] { display: none; }

/* Statistik: Druck / PDF (A4) */
.statmeta { margin: .4rem 0 .8rem; font-size: .95rem; color: var(--muted); } .statmeta strong { color: var(--ink); }
@media print {
  @page { size: A4; margin: 13mm; }
  body:has(.statpage) .site-header, body:has(.statpage) .site-footer, .statpage .noprint, .statpage [data-print] { display: none !important; }
  body:has(.statpage) { background: #fff; }
  .statpage { padding: 0; } .statpage .wrap { max-width: none; padding: 0; }
  .statpage .h1s { font-size: 1.9rem; margin: 0 0 4px; } .statpage .h2s { font-size: 1.15rem; margin: .9rem 0 .3rem; break-after: avoid; }
  .statpage .statmeta { color: #444; margin-bottom: .6rem; }
  .statpage .statbig { margin: .6rem 0 .3rem; }
  .statpage .statchart { max-width: 100%; break-inside: avoid; }
  .statpage .statgrid { grid-template-columns: 1fr 1fr; gap: 4px 14px; }
  .statpage .statgrid > div, .statpage .atable { break-inside: avoid; }
  .statpage .atable { font-size: .8rem; box-shadow: none; } .statpage .atable td { padding: 4px 8px; }
  .statpage .statgrid .statchart { height: auto; }
  .statpage svg, .statpage .sbar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .statpage .hint { font-size: .7rem; }
}
