/*
Theme Name:   MountMedia
Description:  Child-Theme von GeneratePress für mountmedia.de, angelehnt an das frühere Avada-Design.
Author:       Lightweb Media
Template:     generatepress
Version:      0.3.0
Requires PHP: 8.1
Text Domain:  mountmedia
*/

/* Schriften lokal: Roboto Slab (Apache 2.0), PT Sans (SIL OFL 1.1), Lizenzen in fonts/ */
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/roboto-slab-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/roboto-slab-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/pt-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/pt-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pt-sans-latin-700-normal.woff2) format("woff2"); }

:root {
	--mm-text: #646464;
	--mm-dunkel: #333333;
	--mm-titel: #444444;
	--mm-gruen: #4f7d1f;      /* Linkfarbe, 4,9:1 auf Weiß (Avada-Grün #8bc34a hatte 2,1:1) */
	--mm-gruen-hell: #8bc34a; /* Akzent auf dunklem Grund */
	--mm-rot: #d40101;
	--mm-fuss: #363839;
	--mm-fuss-unten: #282a2b;
	--mm-linie: #e5e5e5;
	--mm-slab: "Roboto Slab", Georgia, serif;
	--mm-sans: "PT Sans", Arial, Helvetica, sans-serif;
}

body { font-family: var(--mm-sans); font-size: 16px; line-height: 1.69; color: var(--mm-text); }
h1, h2, h3, h4, h5, h6 { font-family: var(--mm-slab); font-weight: 300; color: var(--mm-titel); line-height: 1.25; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 22px; }
a { color: var(--mm-gruen); }
a:hover, a:focus { color: var(--mm-rot); }
:focus-visible { outline: 2px solid var(--mm-rot); outline-offset: 2px; }
.mm-fuss :focus-visible { outline-color: var(--mm-gruen-hell); }
.entry-content a, .mm-kat-text a { text-decoration: underline; text-underline-offset: 2px; }

.mm-wrap { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* Leiste und Kopf */
.mm-leiste { background: #000; color: #fff; font-size: 13px; line-height: 1.4; padding: 12px 0; }
.mm-kopf { background: #fff; }
.mm-kopf-zeile { display: flex; justify-content: center; align-items: center; padding-top: 28px; padding-bottom: 20px; }
.mm-logo { display: block; line-height: 0; }
.mm-logo-bild { width: 210px; height: auto; }
.mm-burger { display: none; }

.mm-nav ul { list-style: none; margin: 0; }
.mm-nav > ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 46px; margin: 0 auto; padding-bottom: 6px; }
.mm-nav li { position: relative; margin: 0; }
.mm-nav a { display: inline-block; font-family: var(--mm-slab); font-size: 15px; color: var(--mm-dunkel); text-decoration: none; padding: 12px 0 10px; border-bottom: 2px solid transparent; }
.mm-nav a:hover, .mm-nav a:focus, .mm-nav [aria-current="page"], .mm-nav .mm-aktiv { color: var(--mm-rot); }
.mm-nav [aria-current="page"], .mm-nav .mm-aktiv { border-bottom-color: var(--mm-rot); }
.mm-unter-knopf { background: none; border: 0; padding: 0 0 0 6px; margin: 0; color: var(--mm-dunkel); cursor: pointer; vertical-align: middle; width: 24px; height: 24px; }
.mm-unter-knopf::before { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.mm-unter-knopf:hover, .mm-unter-knopf:focus { background: none; color: var(--mm-rot); }
.mm-unter { position: absolute; z-index: 50; left: -20px; top: 100%; min-width: 200px; padding: 8px 0; background: #fff; border-top: 2px solid var(--mm-rot); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); display: none; }
.mm-unter a { display: block; padding: 8px 20px; border: 0; }
/* Sichtbarkeit nur über aria-expanded (JS setzt es auch bei Hover); ohne JS: Hover/Fokus. */
.mm-unter-knopf[aria-expanded="true"] + .mm-unter { display: block; }
html:not(.mm-js) .mm-hat-unter:hover .mm-unter, html:not(.mm-js) .mm-hat-unter:focus-within .mm-unter { display: block; }

.mm-band { height: 150px; background-color: #d8d8d8; background-size: cover; background-position: center; }

/* Inhalt */
.site-content { padding-top: 50px; padding-bottom: 60px; }
.separate-containers .inside-article, .one-container .site-content { padding-left: 20px; padding-right: 20px; }
.page-header { margin-bottom: 30px; }
.page-header h1 { margin-bottom: 0; }
.entry-meta { font-size: 14px; }
.entry-meta, .entry-meta a { color: var(--mm-text); }
.entry-meta a:hover { color: var(--mm-rot); }
.single .featured-image, .page .featured-image { margin-bottom: 30px; }
.entry-content > * { max-width: 100%; }
.entry-content img { height: auto; }
.post-navigation { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--mm-linie); }

/* Karten */
.mm-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px 30px; margin-bottom: 40px; }
.mm-karte { display: flex; flex-direction: column; margin: 0; }
.mm-karte-bild { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f2f2f2; margin-bottom: 16px; }
.mm-karte-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mm-karte-bild:hover img { transform: scale(1.03); }
.mm-karte-text { display: flex; gap: 16px; align-items: flex-start; }
.mm-karte-text > div { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.mm-datum { flex: 0 0 64px; background: #000; color: #fff; text-align: center; font-size: 12px; line-height: 1.2; padding: 8px 4px 9px; }
.mm-datum b { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; }
.mm-karte-titel { font-size: 18px; line-height: 1.35; margin: 0 0 6px; }
.mm-karte-titel a { color: var(--mm-gruen); text-decoration: none; }
.mm-karte-titel a:hover, .mm-karte-titel a:focus { color: var(--mm-rot); }
.mm-meta { font-size: 13px; margin: 0; }
.mm-meta a { color: var(--mm-text); }
.mm-kat-text { border-top: 1px solid var(--mm-linie); padding-top: 30px; }

/* Archiv und Suche: Liste mit Seitenleiste (wie das Avada-Archiv) */
.mm-brotkrumen { font-size: 13px; margin-top: 6px; }
.mm-brotkrumen a { color: var(--mm-text); }
.mm-liste { margin-bottom: 30px; }
.mm-eintrag { margin: 0 0 60px; }
.mm-eintrag-bild { display: block; aspect-ratio: 669 / 272; overflow: hidden; background: #f2f2f2; margin-bottom: 22px; }
.mm-eintrag-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mm-eintrag-bild:hover img { transform: scale(1.02); }
.mm-eintrag-titel { font-size: 20px; line-height: 1.35; margin: 0 0 14px; overflow-wrap: anywhere; hyphens: auto; }
.mm-eintrag-titel a { color: var(--mm-gruen); text-decoration: none; }
.mm-eintrag-titel a:hover, .mm-eintrag-titel a:focus { color: var(--mm-rot); }
.mm-eintrag-anriss { margin: 0 0 12px; }
.right-sidebar .site-content { gap: 0; }
.right-sidebar .content-area { padding-right: 50px; }
.mm-seitenleiste { font-size: 15px; }
.mm-seitenleiste .widget { margin-bottom: 44px; padding: 0; background: none; }
.mm-seitenleiste .widget-title { font-family: var(--mm-slab); font-weight: 400; font-size: 16px; color: var(--mm-dunkel); margin-bottom: 20px; }
.mm-suchform { display: flex; }
.mm-suchform input[type="search"] { flex: 1; min-width: 0; height: 50px; border: 1px solid #d2d2d2; padding: 0 14px; font-size: 14px; background: #fff; color: var(--mm-dunkel); }
.mm-suchform button { flex: 0 0 50px; height: 50px; padding: 0; background: #000; color: #fff; border: 0; display: flex; align-items: center; justify-content: center; }
.mm-suchform button:hover, .mm-suchform button:focus { background: var(--mm-rot); color: #fff; }
.mm-widget-schlagwoerter ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; }
.mm-widget-schlagwoerter li { margin: 0; }
.mm-widget-schlagwoerter a { display: inline-block; padding: 5px 10px; border: 1px solid #e2e2e2; color: var(--mm-gruen); text-decoration: none; line-height: 1.4; }
.mm-widget-schlagwoerter a:hover, .mm-widget-schlagwoerter a:focus { border-color: var(--mm-rot); color: var(--mm-rot); }
.mm-widget-neu ul { list-style: none; margin: 0; }
.mm-widget-neu li { border-bottom: 1px solid var(--mm-linie); padding: 10px 0 10px 12px; margin: 0; position: relative; line-height: 1.5; }
.mm-widget-neu li::before { content: "›"; position: absolute; left: 0; color: var(--mm-text); }
.mm-widget-neu li:first-child { padding-top: 0; }
.mm-widget-neu a { color: var(--mm-dunkel); text-decoration: none; }
.mm-widget-neu a:hover, .mm-widget-neu a:focus { color: var(--mm-rot); }

/* Blättern: Kästchen wie bei Avada */
.paging-navigation { margin-top: 10px; }
.paging-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.paging-navigation .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #e2e2e2; color: var(--mm-dunkel); text-decoration: none; }
.paging-navigation .page-numbers.current { background: #000; border-color: #000; color: #fff; }
.paging-navigation a.page-numbers:hover, .paging-navigation a.page-numbers:focus { border-color: var(--mm-rot); color: var(--mm-rot); }

/* Startseite */
.home .entry-content > p { max-width: 680px; margin-left: auto; margin-right: auto; font-size: 15px; }

/* Fuß */
.mm-fuss { background: var(--mm-fuss); color: #bfbfbf; font-size: 15px; }
.mm-fuss a { color: #e6e6e6; text-decoration: none; }
.mm-fuss a:hover, .mm-fuss a:focus { color: var(--mm-gruen-hell); }
.mm-fuss-spalten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 30px; padding-top: 60px; padding-bottom: 50px; }
.mm-fuss h2 { font-family: var(--mm-sans); font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 22px; }
.mm-fuss ul { list-style: none; margin: 0; }
.mm-fuss li { border-bottom: 1px solid #4a4c4d; padding: 10px 0 10px 12px; position: relative; margin: 0; }
.mm-fuss li::before { content: "›"; position: absolute; left: 0; top: 9px; }
.mm-fuss li:first-child { padding-top: 0; }
.mm-fuss li:first-child::before { top: -1px; }
.mm-fuss-unten { background: var(--mm-fuss-unten); font-size: 13px; padding: 22px 0; }

@media (max-width: 1000px) {
	.mm-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mm-fuss-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.mm-kopf-zeile { justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
	.mm-logo-bild { width: 160px; }
	.mm-burger { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--mm-linie); color: var(--mm-dunkel); padding: 8px 12px; font-family: var(--mm-slab); font-size: 15px; line-height: 1; min-height: 44px; }
	.mm-burger:hover, .mm-burger:focus { background: #f5f5f5; color: var(--mm-rot); }
	.mm-nav { border-top: 1px solid var(--mm-linie); }
	.mm-js .mm-nav { display: none; }
	.mm-js .mm-nav.mm-offen { display: block; }
	html:not(.mm-js) .mm-burger { display: none; }
	html:not(.mm-js) .mm-unter { display: block; }
	.mm-nav > ul { display: block; padding: 0 20px 10px; }
	.mm-nav li { border-bottom: 1px solid var(--mm-linie); }
	.mm-nav a { padding: 12px 0; border-bottom: 0; }
	.mm-unter-knopf { position: absolute; right: 0; top: 4px; width: 44px; height: 44px; }
	.mm-unter { position: static; box-shadow: none; border: 0; padding: 0 0 6px 16px; }
	.mm-unter li { border: 0; }
	.mm-unter a { padding: 8px 0; }
	.mm-band { height: 90px; }
	.right-sidebar .content-area { padding-right: 0; }
	.mm-eintrag { margin-bottom: 44px; }
	.site-content { padding-top: 30px; }
}

@media (max-width: 600px) {
	.mm-raster { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.mm-fuss-spalten { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.mm-karte-bild img { transition: none; }
}
