/*
Theme Name: Zusya Archiv
Theme URI: https://zusya.de
Author: Alex
Description: Ruhiges Block-Theme für das Archiv des Zusya-Blogs (2008–2016): Kopfbild, Lesespalte, Seitenleiste, Feiertags-Piktogramme.
Version: 1.0.10
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zusya-archiv
*/

/* Kleine Ergänzungen, die theme.json nicht abdeckt */

.zusya-meta {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--leather);
}
.zusya-meta a { color: inherit; text-decoration: none; }
.zusya-meta .zusya-sep { color: var(--wp--preset--color--muted); font-weight: 500; }

.zusya-label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--leather);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* Navigation in gesperrten Versalien */
.zusya-nav a {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--muted);
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
.zusya-nav a:hover, .zusya-nav .current-menu-item a { color: var(--wp--preset--color--ink); }

.zusya-cover img { display: block; width: 100%; height: auto; border-radius: 4px; }

/* Suche */
.zusya-search .wp-block-search__inside-wrapper {
	border: 1px solid #CFC5B1 !important;
	border-radius: 3px;
	background: #fff;
	padding: 6px !important;
}
.zusya-search .wp-block-search__input {
	border: 0 !important;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 18px;
	padding: 8px 12px;
	background: transparent;
}
.zusya-search .wp-block-search__button {
	background: var(--wp--preset--color--sage);
	color: #fff;
	border: 0;
	border-radius: 3px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0 18px;
	min-height: 44px;
}

/* Feiertagskacheln */
.zusya-feasts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.zusya-feast {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	text-decoration: none !important;
	color: var(--wp--preset--color--ink) !important;
	height: 100%;
	box-sizing: border-box;
}
.zusya-feast:hover { border-color: var(--wp--preset--color--sage); }
.zusya-feast svg { width: 36px; height: 36px; }
.zusya-feast__name { font-size: 18px; line-height: 1.25; }
.zusya-feast__month {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* Feiertagsleiste (Archiv) */
.zusya-feast-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.zusya-feast-row a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 10px;
	background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 3px;
	text-decoration: none; color: var(--wp--preset--color--ink); font-size: 16px;
}
.zusya-feast-row a:hover { border-color: var(--wp--preset--color--sage); }
.zusya-feast-row svg { width: 24px; height: 24px; }

/* Lieblingsstücke */
.zusya-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.zusya-door {
	display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box;
	padding: 20px; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 3px;
	text-decoration: none !important; color: var(--wp--preset--color--ink) !important;
}
.zusya-door:hover { border-color: var(--wp--preset--color--sage); }
.zusya-door__title { font-weight: 600; font-size: 19px; line-height: 1.3; }
.zusya-door__text { font-size: 15px; line-height: 1.55; color: var(--wp--preset--color--muted); }

/* Archivliste */
.zusya-year { margin: 0 0 48px; }
.zusya-year h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 12px; font-size: clamp(28px, 3vw, 36px); }
.zusya-year ol { list-style: none; margin: 0; padding: 0; }
.zusya-year li { border-top: 1px solid var(--wp--preset--color--line); }
.zusya-year li a { display: flex; gap: 20px; align-items: baseline; padding: 11px 0; text-decoration: none; color: var(--wp--preset--color--ink); }
.zusya-year li a:hover { color: var(--wp--preset--color--sage); }
.zusya-year time { flex: 0 0 52px; font-family: var(--wp--preset--font-family--sans); font-size: 13px; color: var(--wp--preset--color--muted); }
.zusya-year .zusya-title { flex: 1; min-width: 0; font-size: 18px; line-height: 1.45; }

/* Seitenleiste */
.zusya-sidebar { font-size: 16px; line-height: 1.55; }
.zusya-sidebar ul { list-style: none; margin: 0; padding: 0; }
.zusya-sidebar .wp-block-categories-list { columns: 2; column-gap: 20px; }
.zusya-sidebar .wp-block-categories-list li { padding: 4px 0; break-inside: avoid; }
.zusya-sidebar .wp-block-archives-list li { border-top: 1px solid var(--wp--preset--color--line); padding: 9px 0; }
.zusya-sidebar a { text-decoration: none; color: var(--wp--preset--color--ink); }
.zusya-sidebar a:hover { color: var(--wp--preset--color--sage); }

/* Beitragsliste in Kategorien/Suche */
.zusya-list .wp-block-post { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0 0 28px; margin: 0 0 28px; }

/* Archiv-Hinweis */
.zusya-note {
	background: var(--wp--preset--color--sage-bg);
	color: #3B4A33;
	border-radius: 3px;
	padding: 14px 18px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	line-height: 1.55;
}

/* Alte Inhalte aufräumen */
.wp-block-post-content img { max-width: 100%; height: auto; border-radius: 3px; }
.wp-block-post-content p:empty { display: none; }

@media (max-width: 781px) {
	.zusya-hide-mobile { display: none; }
	.zusya-feasts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Themenübersicht */
.zusya-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); column-gap: 32px; }
.zusya-topics li { border-top: 1px solid var(--wp--preset--color--line); }
.zusya-topics a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; text-decoration: none; color: var(--wp--preset--color--ink); font-size: 17px; }
.zusya-topics a:hover { color: var(--wp--preset--color--sage); }
.zusya-count { font-family: var(--wp--preset--font-family--sans); font-size: 13px; color: var(--wp--preset--color--muted); }

/* Kopf von Kategorieseiten */
.zusya-term-head { display: flex; align-items: center; gap: 20px; margin: 0 0 32px; }
.zusya-term-head h1 { margin: 4px 0 0; }
.zusya-term-head .zusya-meta { margin: 0; }
.zusya-term-icon svg { width: 56px; height: 56px; display: block; }

.zusya-button a, a.zusya-button {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
	border: 1px solid #CFC5B1; border-radius: 3px; background: #fff;
	font-family: var(--wp--preset--font-family--sans); font-size: 14px; font-weight: 600;
	color: var(--wp--preset--color--ink); text-decoration: none;
}
.zusya-button a:hover, a.zusya-button:hover { border-color: var(--wp--preset--color--sage); color: var(--wp--preset--color--sage); }
