/* Template "hommel" – Schuh Hommel */

:root {
	--hm-ink: #14142B;
	--hm-accent: #FF6A4D;
	--hm-cream: #FFF3C4;
	--hm-rose: #FFE9E4;
	--hm-yellow: #FFD23F;
	--hm-green: #1FA45B;
	--hm-red: #D93A2B;
	--hm-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--hm-font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.hm-body {
	margin: 0;
	font-family: var(--hm-font-body);
	color: var(--hm-ink);
	background: #fff;
	line-height: 1.55;
}
.hm-body a { color: var(--hm-ink); text-decoration: none; }
.hm-body a:hover { color: #E8321F; }
.hm-body a:focus-visible,
.hm-body button:focus-visible { outline: 3px solid var(--hm-ink); outline-offset: 3px; }
.hm-body img { max-width: 100%; height: auto; }

.hm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hm-h { font-family: var(--hm-font-head); font-weight: 800; margin: 0; line-height: 1.1; letter-spacing: -.01em; }
.hm-body h2.hm-h { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }

.hm-skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.hm-skip:focus { left: 8px; }

/* Buttons */
.hm-body .hm-btn,
.hm-body .btn {
	display: inline-block;
	padding: 14px 28px;
	min-height: 44px;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	text-align: center;
	border: 2px solid var(--hm-ink);
	cursor: pointer;
	background: #fff;
	color: var(--hm-ink);
}
.hm-body .hm-btn-dark,
.hm-body .btn-primary { background: var(--hm-ink); color: #fff; }
.hm-body .hm-btn-dark:hover,
.hm-body .btn-primary:hover { color: #fff; opacity: .88; }
.hm-body .hm-btn-accent { background: var(--hm-accent); }
.hm-body .hm-btn-light { background: #fff; }

/* Kopfbereich */
.hm-header { border-bottom: 2px solid var(--hm-ink); background: #fff; position: sticky; top: 0; z-index: 30; }
.hm-header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.hm-logo { display: block; line-height: 0; }
.hm-logo img { height: 60px; width: auto; border-radius: 8px; display: block; }
.hm-toggle {
	display: none;
	font: inherit; font-weight: 700;
	min-height: 44px; padding: 8px 20px;
	border: 2px solid var(--hm-ink); border-radius: 999px;
	background: #fff; color: var(--hm-ink); cursor: pointer;
}

/* Hauptmenü (Ausgabe von mod_menu) */
.hm-nav { flex: 1 1 0; min-width: 0; }
.hm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 22px; }
.hm-nav li { position: relative; margin: 0; }
.hm-nav a,
.hm-nav .mod-menu__heading,
.hm-nav button {
	display: inline-block;
	padding: 8px 0;
	font: inherit; font-weight: 500;
	background: none; border: 0; cursor: pointer;
	color: var(--hm-ink);
}
.hm-nav li.active > a,
.hm-nav li.current > a { box-shadow: inset 0 -3px 0 var(--hm-accent); }
.hm-nav ul ul {
	display: none;
	position: absolute; top: 100%; left: -14px; min-width: 210px; z-index: 40;
	flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
	padding: 8px 16px;
	background: #fff; border: 2px solid var(--hm-ink); border-radius: 14px;
}
.hm-nav li:hover > ul,
.hm-nav li:focus-within > ul { display: flex; }

/* Startseite: Hero */
.hm-hero { background: var(--hm-cream); }
.hm-hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.hm-hero-text { flex: 1.2 1 480px; min-width: 0; }
.hm-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.hm-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.hm-body .hm-pill-dark { background: var(--hm-ink); color: #fff; }
.hm-body .hm-pill-status { background: #fff; border: 2px solid var(--hm-ink); padding: 4px 14px; }
.hm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hm-red); display: inline-block; flex: none; }
.is-open .hm-dot { background: var(--hm-green); }
.hm-hero h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); margin-bottom: 24px; hyphens: auto; overflow-wrap: break-word; }
.hm-hero h1 span { color: var(--hm-accent); }
.hm-hero-lead { font-size: 1.25rem; max-width: 540px; margin: 0 0 32px; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hm-hero-photo { flex: 1 1 440px; min-width: 0; position: relative; }
.hm-frame { background: var(--hm-accent); border: 2px solid var(--hm-ink); border-radius: 32px; height: 340px; overflow: hidden; }
.hm-frame img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 25% center; display: block; }
.hm-badge { position: absolute; right: -8px; top: -24px; background: var(--hm-ink); color: var(--hm-cream); padding: 14px 22px; border-radius: 999px; font-size: 1.75rem; transform: rotate(8deg); }

/* Marken */
.hm-brands { background: var(--hm-ink); color: #fff; }
.hm-brands { overflow: hidden; }
.hm-marquee { display: flex; width: max-content; padding: 26px 0; animation: hm-scroll var(--hm-marquee-time, 90s) linear infinite; }
.hm-marquee:hover { animation-play-state: paused; }
.hm-marquee-list { display: flex; flex-shrink: 0; margin: 0; padding: 0; list-style: none; }
.hm-marquee-list li { font-size: 1.6rem; white-space: nowrap; padding: 0 28px; position: relative; }
.hm-marquee-list li::after { content: "\2605"; position: absolute; right: -6px; color: var(--hm-accent); font-size: .8rem; top: 50%; transform: translateY(-50%); }
@keyframes hm-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.hm-marquee { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 20px 24px; }
	.hm-marquee-list { flex-wrap: wrap; justify-content: center; }
	.hm-marquee-list[aria-hidden="true"] { display: none; }
}

/* Neuheiten */
.hm-news { padding: 88px 0 72px; }
.hm-lead { font-size: 1.1rem; margin: 0 0 28px; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hm-body .hm-chip {
	font: inherit; font-weight: 700;
	padding: 10px 24px; min-height: 44px;
	border-radius: 999px; border: 2px solid var(--hm-ink);
	background: #fff; color: var(--hm-ink); cursor: pointer;
}
.hm-body .hm-chip[aria-pressed="true"] { background: var(--hm-ink); color: #fff; }
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.hm-card { display: block; background: #fff; border-radius: 20px; overflow: hidden; border: 2px solid var(--hm-ink); transition: transform .15s; }
.hm-card:hover { transform: translateY(-4px) rotate(-.6deg); }
.hm-card[hidden] { display: none; }
.hm-card-img { height: 260px; position: relative; overflow: hidden; }
.hm-card-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.hm-tag { position: absolute; left: 16px; top: 16px; background: var(--hm-ink); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hm-tone-0 { background: #FFC7B8; }
.hm-tone-1 { background: #BFD4FF; }
.hm-tone-2 { background: #FFE08A; }
.hm-card-body { padding: 20px; }
.hm-card-date { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.hm-card-title { font-size: 1.35rem; margin: 6px 0 14px; }
.hm-card-more { font-weight: 700; }

.hm-extra { padding: 0 0 72px; }

/* Service */
.hm-service { background: var(--hm-rose); padding: 80px 0; }
.hm-service h2 { margin-bottom: 40px; }
.hm-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.hm-service-item { background: #fff; border: 2px solid var(--hm-ink); border-radius: 20px; padding: 28px; }
.hm-service-item svg { width: 40px; height: 40px; }
.hm-service-item h3 { font-size: 1.35rem; margin: 16px 0 8px; }
.hm-service-item p { margin: 0; }

/* Über uns */
.hm-about { background: var(--hm-ink); color: #fff; padding: 88px 0; }
.hm-about-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hm-about-text { flex: 1 1 440px; min-width: 0; }
.hm-about-text h2 { margin-bottom: 20px; }
.hm-about-text p { font-size: 1.1rem; margin: 0; }
.hm-facts { flex: 1 1 440px; min-width: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.hm-fact { flex: 1 1 120px; color: var(--hm-ink); border-radius: 20px; padding: 24px 10px; text-align: center; }
.hm-fact .hm-h { font-size: clamp(1.7rem, 3vw, 2.25rem); white-space: nowrap; }
.hm-fact span { font-weight: 700; }
.hm-fact-1 { background: var(--hm-accent); }
.hm-fact-2 { background: var(--hm-yellow); }
.hm-fact-3 { background: #fff; }

/* Kontakt */
.hm-contact { background: var(--hm-cream); padding: 88px 0; }
.hm-contact-in { display: flex; flex-wrap: wrap; gap: 48px; }
.hm-contact-info { flex: 1 1 400px; min-width: 0; font-size: 1.1rem; }
.hm-contact-info h2 { margin-bottom: 20px; }
.hm-contact-info p { margin: 0 0 16px; }
.hm-status { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--hm-ink); border-radius: 999px; padding: 8px 18px; font-weight: 700; }
.hm-status .hm-dot { width: 12px; height: 12px; }
.hm-contact-actions { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Innenseiten */
.hm-page { padding-top: 56px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hm-page.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
.hm-content { min-width: 0; }
.hm-content h1, .hm-content h2, .hm-content h3, .hm-content h4 { font-family: var(--hm-font-head); line-height: 1.15; letter-spacing: -.01em; }
.hm-content h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 20px; }
.hm-content h2 { font-size: 1.7rem; margin: 40px 0 12px; }
.hm-content h3 { font-size: 1.3rem; margin: 28px 0 8px; }
.hm-content p, .hm-content ul, .hm-content ol { max-width: 75ch; }
.hm-content a { text-decoration: underline; text-decoration-color: var(--hm-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hm-content table { border-collapse: collapse; width: 100%; max-width: 100%; }
.hm-content th, .hm-content td { border: 1px solid #d8d8e2; padding: 8px 12px; text-align: left; }
.hm-content input[type="text"], .hm-content input[type="email"], .hm-content input[type="password"],
.hm-content input[type="tel"], .hm-content input[type="search"], .hm-content select, .hm-content textarea {
	width: 100%; max-width: 560px; font: inherit; padding: 10px 14px;
	border: 2px solid var(--hm-ink); border-radius: 12px; background: #fff; color: var(--hm-ink);
}
.hm-content label { font-weight: 700; }
.hm-content .pagination { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.hm-content .page-link { display: inline-block; padding: 6px 14px; border: 2px solid var(--hm-ink); border-radius: 999px; text-decoration: none; }
.hm-content .active > .page-link { background: var(--hm-ink); color: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px; font-size: 14px; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 6px; }
.hm-sidebar > div, .hm-sidebar .moduletable { margin-bottom: 32px; }
.hm-sidebar h3, .hm-sidebar .module-title { font-family: var(--hm-font-head); font-size: 1.2rem; margin: 0 0 10px; }

/* Fußbereich */
.hm-footer { background: var(--hm-ink); color: #fff; font-size: 14px; }
.hm-footer .hm-wrap { padding-top: 32px; padding-bottom: 24px; }
.hm-body .hm-footer a { color: #fff; text-decoration: underline; }
.hm-footer-text { margin-bottom: 20px; }
.hm-footer-modules { margin-bottom: 20px; }
.hm-footer-modules ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; }
.hm-footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 16px; }

/* Fehlerseite */
.hm-error-box { padding-top: 96px; padding-bottom: 96px; text-align: center; }
.hm-error-code { font-size: clamp(4rem, 14vw, 8rem); color: var(--hm-accent); }

/* Mobil */
@media (max-width: 900px) {
	.hm-toggle { display: inline-block; }
	.hm-nav { display: none; flex-basis: 100%; order: 3; }
	.hm-nav.is-open { display: block; }
	.hm-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
	.hm-nav ul ul { display: block; position: static; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.hm-cta { display: none; }
	.hm-page.has-sidebar { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
	.hm-hero-in { padding-top: 48px; padding-bottom: 48px; gap: 36px; }
	.hm-frame { height: 240px; }
	.hm-news, .hm-service, .hm-about, .hm-contact { padding-top: 56px; padding-bottom: 56px; }
	.hm-badge { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hm-card { transition: none; }
	.hm-card:hover { transform: none; }
}

/* Popup für Beiträge */
.hm-modal { border: 2px solid var(--hm-ink); border-radius: 20px; padding: 0; width: min(880px, calc(100vw - 24px)); height: min(86vh, 900px); background: #fff; color: var(--hm-ink); overflow: hidden; }
.hm-modal[open] { display: block; animation: hm-pop .18s ease-out; }
.hm-modal::backdrop { background: rgba(20, 20, 30, .6); }
.hm-modal-frame { width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity .15s; }
.hm-modal-frame.is-ready { opacity: 1; }
.hm-modal-loading { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; }
.hm-modal-loading[hidden] { display: none; }
.hm-modal-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--hm-ink); background: #fff; color: var(--hm-ink); font-size: 28px; line-height: 1; cursor: pointer; }
.hm-modal-close:hover, .hm-modal-close:focus-visible { background: var(--hm-accent, #FF6A4D); color: #fff; }
.hm-modal-open { overflow: hidden; }
.hm-component .hm-page { padding-top: 32px; padding-bottom: 32px; }
@keyframes hm-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hm-modal[open] { animation: none; } .hm-modal-frame { transition: none; } }
.hm-component h1 { padding-right: 52px; }

/* Beitrag im Popup: Bild zuerst, dann Titel und Text; Details (Autor, Datum, Aufrufe …) ausgeblendet */
.hm-component .com-content-article { display: flex; flex-direction: column; }
.hm-component .com-content-article > * { order: 1; }
.hm-component .com-content-article > .com-content-image,
.hm-component .com-content-article > .item-image,
.hm-component .com-content-article > .pull-left,
.hm-component .com-content-article > .pull-right,
.hm-component .com-content-article > figure { order: -1; float: none; margin: 0 0 20px; }
.hm-component .com-content-article .com-content-image img,
.hm-component .com-content-article .item-image img { width: 100%; max-height: 55vh; object-fit: cover; border-radius: 14px; display: block; }
.hm-component .article-info,
.hm-component .com-content-article__info,
.hm-component .article-info-term,
.hm-component .icons,
.hm-component .com-content-article__pagination,
.hm-component .pagenavigation,
.hm-component .hm-modal-hide { display: none !important; }

.hm-component .hm-intro-image { margin: 0 0 20px; }
.hm-component .hm-intro-image img { width: 100%; max-height: 55vh; object-fit: cover; border-radius: 14px; display: block; }

.hm-marquee-list li.hm-logo { padding: 0 14px; display: flex; align-items: center; }
.hm-marquee-list li.hm-logo::after { display: none; }
.hm-marquee-list li.hm-logo img { height: 64px; width: auto; max-width: 180px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px 14px; display: block; }
.hm-marquee-list li[hidden] { display: none; }

/* Popup mit QR-Code */
.hm-body .hm-modal.hm-qr { width: min(420px, calc(100vw - 24px)); height: fit-content; max-height: 92vh; padding: 28px 28px 24px; text-align: center; overflow: auto; }
.hm-body .hm-qr h2.hm-h { font-size: 1.6rem; margin: 0 40px 16px; }
.hm-qr img { width: 100%; max-width: 320px; height: auto; margin: 0 auto; display: block; border-radius: 12px; }
.hm-qr p { margin: 16px 0 0; }
