/* ==========================================================================
   Design „Abenteurergilde“ – Ergänzungen für WordPress
   gilde.css ist identisch mit dem Mockup (redesign/mockups/m2/assets/style.css).
   Hier stehen nur Dinge, die das Mockup nicht kennt.
   ========================================================================== */

/* ---------- Schriften (im Theme, kein Google-Server; SIL Open Font License) ----------
   Je Schriftstärke ein Eintrag wie bei Google Fonts, damit die Darstellung exakt dem Mockup entspricht. */
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/alegreya-latin.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: "Alegreya"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/alegreya-latin.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: "Alegreya"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/alegreya-latin.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: "Alegreya"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/alegreya-latin.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: "Alegreya"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/alegreya-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/alegreya-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/alegreya-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/alegreya-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/alegreya-italic-latin.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: "Alegreya"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/alegreya-italic-latin.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: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/alegreya-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/alegreya-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Grenze Gotisch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/grenze-gotisch-latin.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: "Grenze Gotisch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/grenze-gotisch-latin.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: "Grenze Gotisch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/grenze-gotisch-latin.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: "Grenze Gotisch"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/grenze-gotisch-latin.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: "Grenze Gotisch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/grenze-gotisch-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Grenze Gotisch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/grenze-gotisch-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Grenze Gotisch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/grenze-gotisch-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Grenze Gotisch"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/grenze-gotisch-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- WebP von Imagify: <picture> ist für das Layout unsichtbar ----------
   Klassen bleiben per Filter am <img> (functions.php). Falls Imagify sie doch an
   <picture> setzt, greifen die Rückfallregeln darunter. */
picture { display: contents; }
picture[class] { display: block; }
picture[class] > img { width: 100%; height: auto; margin: 0; }
.page picture.aligncenter { margin: 1.4em auto; width: 100%; max-width: 100%; }
.page picture.alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 44%; }
.page picture.alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 44%; }
.article__body picture.alignleft { float: left; width: min(44%, 320px); margin: .35em 1.6em 1em 0; max-width: none; }
.article__body picture.alignright { float: right; width: min(44%, 320px); margin: .35em 0 1em 1.6em; max-width: none; }
.page picture.alignleft > img, .page picture.alignright > img, .page picture.aligncenter > img {
	box-shadow: 0 0 0 5px var(--parch-light), 0 0 0 6px var(--parch-edge), 0 14px 24px -12px rgba(0, 0, 0, .55);
}
/* Initiale nicht vor einem Bild am Absatzanfang */
.article__body > p:first-of-type:has(> picture:first-child)::first-letter {
	float: none; font: inherit; color: inherit; margin: 0; padding: 0; background: none; text-shadow: none;
}
@media (max-width: 760px) {
	.page picture.alignright, .page picture.alignleft { float: none; margin: 1em auto; max-width: 100%; }
	.article__body picture.alignleft, .article__body picture.alignright { float: none; width: 100%; margin: .4em 0 1.2em; }
}

/* ---------- WordPress-Werkzeugleiste (nur angemeldet) ---------- */
@media (min-width: 601px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .sheet { top: calc(var(--header-h) + 18px + 46px); max-height: calc(100vh - var(--header-h) - 36px - 46px); }
}
@media (min-width: 783px) {
	.admin-bar .site-header { top: 32px; }
	.admin-bar .sheet { top: calc(var(--header-h) + 18px + 32px); max-height: calc(100vh - var(--header-h) - 36px - 32px); }
}

/* ---------- Seiten ohne Seitenleiste (Impressum, Datenschutz, Suche, 404, Archive) ---------- */
.layout--solo { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.questboard__empty { margin: 0; text-align: center; color: var(--parch-light); font-size: 1.15rem; }
.cat-outro { font-size: 1.125rem; }
.cat-outro > p:first-of-type::first-letter { float: none; font: inherit; color: inherit; margin: 0; }

/* Rechtstexte: Überschriften links und ruhiger, damit lange Texte gut lesbar bleiben */
.legal { font-size: 1.08rem; }
.legal h2 { text-align: left; font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-top: 1.4em; }
.legal h2::after { margin-left: 0; width: 180px; }
.legal > h2:first-child { margin-top: 0; }
.legal h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 1.3em; }
.legal h4 { font-family: var(--f-body); font-size: 1.12rem; font-weight: 800; margin: 1.2em 0 .4em; }
.legal a { overflow-wrap: anywhere; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .98rem; }
.legal th, .legal td { padding: .5em .7em; border: 1px solid var(--parch-edge); text-align: left; vertical-align: top; }
.legal th { background: var(--parch-deep); }
.legal :is(ul, ol) li + li { margin-top: .3em; }

/* Suchformular */
.guildsearch { display: grid; gap: 8px; }
.guildsearch__label { font: 700 1.25rem/1.2 var(--f-head); color: var(--ink); }
.guildsearch__row { display: flex; flex-wrap: wrap; gap: 12px; }
.guildsearch__input {
	flex: 1 1 260px; min-height: 52px; padding: 10px 16px; border: 2px solid var(--parch-edge); border-radius: 8px;
	background: var(--parch-light); color: var(--ink); font: 400 1.1rem/1.3 var(--f-body);
	box-shadow: inset 0 2px 6px rgba(90, 55, 20, .18);
}
.guildsearch__input:focus-visible { outline: 3px solid var(--wax); outline-offset: 2px; border-color: var(--wax); }
.guildsearch__btn { flex: 0 0 auto; }
.guildsearch__btn svg { width: 22px; height: 22px; }
.search-box > p { margin-bottom: 1.2em; }

/* Wegweiser (Suche ohne Treffer, 404) */
.lost__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lost__list a {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 8px;
	background: var(--parch-light); color: var(--ink); text-decoration: none; font-weight: 700; border-left: 6px solid var(--rc);
	box-shadow: 0 0 0 1px rgba(185, 143, 78, .55), 0 10px 18px -12px rgba(0, 0, 0, .5);
}
.lost__list a:hover { background: #fff8e6; color: var(--wax); }
.lost__list a span { margin-left: auto; font-weight: 400; font-style: italic; color: var(--ink-soft); white-space: nowrap; }
.lost__list b { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--rc); color: #fff; font-family: var(--f-head); }

/* Bildunterschriften aus dem Editor */
.wp-caption { max-width: 100%; }
.wp-caption-text { margin: .5em 0 0; font-size: .95rem; font-style: italic; color: var(--ink-soft); text-align: center; }

/* Das Payment-Bild steht im Inhalt mit alignleft, im Design rechts (wie im Mockup) */
.chapter--payment img.alignleft { float: right; max-width: 44%; margin: .4em 0 1em 1.6em; }
@media (max-width: 760px) {
	.chapter--payment img.alignleft { float: none; margin: 1em auto; max-width: 100%; }
}
