/* ==========================================================================
   3 MusicTeers – Theme-Styles (Design nach 3mt.es / Flatsome "boxed")
   ========================================================================== */

/* Schriften (lokal, siehe assets/fonts/README) */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dancing-script-400.woff2") format("woff2"); }

:root {
	--color-primary: #8c0202;
	--color-accent: #b4232c;
	--color-secondary: #d26e4b;
	--color-text: #777;
	--color-heading: #555;
	--color-link: #8c0202;
	--color-page: #5b5b5b;
	--color-soft: #f5f5f5;
	--font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
	--font-script: "Dancing Script", "Brush Script MT", cursive;
	--wrap: 1170px;
	--gutter: clamp(15px, 3vw, 30px);
	--header-h: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

body {
	margin: 0;
	background: var(--color-page);
	color: var(--color-text);
	font: 400 16px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: #111; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--color-heading); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1.2em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 10000; width: auto; height: auto; clip: auto; padding: .7em 1em; background: #fff; color: #111; }

/* Boxed-Layout */
.site { max-width: var(--wrap); margin: 0 auto; background: #fff; box-shadow: 0 0 25px rgba(0, 0, 0, .25); min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* Topbar */
.topbar { background: var(--color-primary); color: #fff; font-size: 12px; line-height: 1; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 30px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: rgba(255, 255, 255, .75); }
.topbar__phone { display: inline-flex; align-items: center; gap: .4em; text-transform: uppercase; }
.topbar__phone strong { font-weight: 700; }
.topbar__right { display: flex; align-items: center; gap: 1rem; }
.social { list-style: none; display: flex; gap: .6rem; margin: 0; padding: 0; }
.social a { display: inline-flex; padding: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.site-logo__img { display: block; width: auto; max-height: 60px; }
.site-logo__text { font-family: var(--font-script); font-size: 2rem; color: var(--color-primary); text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu--primary { display: flex; align-items: center; gap: .25rem; }
.menu--primary a { display: block; padding: .45em .9em; border-radius: 99px; color: #555; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.menu--primary a:hover { color: var(--color-accent); }
.menu--primary .current-menu-item > a, .menu--primary .current_page_item > a, .menu--primary .current-menu-ancestor > a { background: var(--color-accent); color: #fff; }
.menu--primary .sub-menu { list-style: none; margin: 0; padding: .4rem 0; position: absolute; min-width: 200px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); display: none; }
.menu--primary li { position: relative; }
.menu--primary li:hover > .sub-menu, .menu--primary li:focus-within > .sub-menu { display: block; }
.lang-switch { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.lang-switch a { display: block; padding: .3em .45em; font-size: .75rem; font-weight: 700; color: #999; text-decoration: none; border-radius: 4px; }
.lang-switch a:hover { color: var(--color-primary); }
.lang-switch .is-current { color: var(--color-primary); box-shadow: inset 0 -2px 0 var(--color-primary); border-radius: 0; }

.nav-toggle { display: none; background: none; border: 0; color: #555; padding: .4rem; cursor: pointer; }
.nav-toggle__close { display: none; }

@media (max-width: 900px) {
	:root { --header-h: 70px; }
	.site-logo__img { max-height: 46px; }
	.nav-toggle { display: inline-flex; }
	.site-nav { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.2rem; background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .15); display: none; }
	.site-nav.is-open { display: flex; }
	.menu--primary { flex-direction: column; align-items: stretch; }
	.menu--primary a { padding: .8em 1em; border-radius: 0; font-size: .9rem; border-bottom: 1px solid #eee; }
	.menu--primary .sub-menu { position: static; display: block; box-shadow: none; padding-left: 1rem; }
	.lang-switch { justify-content: center; margin-top: .8rem; }
	.lang-switch a { font-size: .9rem; padding: .5em .8em; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }
	.topbar__link { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: #222; aspect-ratio: 1170 / 512; max-height: 560px; min-height: 260px; width: 100%; }
.hero__track, .hero__slide { position: absolute; inset: 0; margin: 0; }
.hero__slide { opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform 7s ease-out; }
.hero__slide.is-active .hero__img { transform: scale(1); }
.hero__frame { position: absolute; inset: 15px; border: 2px dashed rgba(255, 255, 255, .55); pointer-events: none; }
.hero__dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero__dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; opacity: .8; }
.hero__dot.is-active { background: #fff; opacity: 1; }

/* Intro / H1 */
.intro { padding: clamp(1.6rem, 4vw, 2.8rem) 0 1rem; text-align: center; }
.headline { font-family: var(--font-script); font-weight: 400; color: var(--color-heading); font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.2; margin: 0; }

/* Kacheln */
.tiles { padding: 1rem 0 1.5rem; }
.tiles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; display: flex; align-items: center; justify-content: center; min-height: 230px; overflow: hidden; background: #333; text-decoration: none; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); transition: background .3s; }
.tile__frame { position: absolute; inset: 12px; border: 2px dashed rgba(255, 255, 255, .6); }
.tile__title { position: relative; color: #fff; font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 0 1.5rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.tile:hover .tile__img, .tile:focus-visible .tile__img { transform: scale(1.06); }
.tile:hover .tile__overlay, .tile:focus-visible .tile__overlay { background: rgba(140, 2, 2, .55); }
@media (max-width: 760px) { .tiles__grid { grid-template-columns: 1fr; } .tile { min-height: 170px; } }

/* WhatsApp-CTA wie im Original: roter Button */
.wa-band { padding: .5rem 0; }
.wa-band .tmt-btn--wa { background: var(--color-primary); font-size: clamp(.95rem, 1.6vw, 1.15rem); padding: .95em 1.6em; }

/* Agenda – Überschrift im Script-Stil */
.tmt-agenda__title, .faq__title, .newsletter-band__title { font-family: var(--font-script); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-align: center; }

/* Seiten-Header */
.page-header { position: relative; background: var(--color-primary); color: #fff; padding: clamp(2.2rem, 6vw, 4rem) 0; text-align: center; }
.page-header.has-image { background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)), var(--page-header-bg) center / cover no-repeat; }
.page-header::after { content: ""; position: absolute; inset: 12px; border: 2px dashed rgba(255, 255, 255, .5); pointer-events: none; }
.page-header__title { color: #fff; font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); margin: 0; }

/* Inhalte */
.entry { padding-block: 2.5rem; }
.entry--center { text-align: center; }
.entry-content { max-width: 860px; margin-inline: auto; }
.entry-content > * + * { margin-top: 0; }
.entry-content img { border-radius: 4px; }
.entry-content .wp-block-embed, .entry-content iframe { margin-block: 1.5rem; }
.entry-content .wp-block-columns { gap: 2rem; }
.entry-content .wp-block-button__link { background: var(--color-primary); border-radius: 0; text-transform: uppercase; font-weight: 700; }
.home-content { padding: 1rem 0 2rem; background: var(--color-soft); }
.home-content .entry-content { max-width: none; }

/* FAQ */
.faq { padding: 2.5rem 0 3rem; }
.faq__list { max-width: 860px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid #e5e5e5; }
.faq__q { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative; font-weight: 700; color: var(--color-heading); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font-size: 1.4rem; color: var(--color-primary); transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 1rem; }

/* Newsletter */
.newsletter-band { background: var(--color-soft); padding: 2.5rem 0; border-top: 1px solid #eee; scroll-margin-top: 100px; }
.anchor-alias { position: relative; top: -100px; display: block; }

/* Footer */
.site-footer { background: var(--color-page); color: rgba(255, 255, 255, .6); font-size: .875rem; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding-block: 1.8rem; text-align: center; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.menu--footer { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; }
.lang-switch--footer a { color: rgba(255, 255, 255, .7); }
.lang-switch--footer .is-current { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.site-footer__copy { margin: 0; }
.site-footer__copy strong { color: #fff; }

.back-to-top { position: fixed; right: 22px; bottom: 86px; z-index: 900; display: inline-flex; padding: 8px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; pointer-events: none; transition: opacity .3s; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--color-primary); color: #fff; }

/* Blog-Liste */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.post-card img { display: block; width: 100%; height: auto; }
.post-card__title { font-size: 1.15rem; margin-top: .8rem; }
.post-card__title a { color: var(--color-heading); text-decoration: none; }

/* Einzelansicht Auftritt im Theme-Kontext */
.tmt-single__title { font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem, 4.5vw, 2.8rem); }

/* Druck */
@media print {
	body { background: #fff; }
	.topbar, .site-header, .hero, .wa-band, .newsletter-band, .site-footer, .back-to-top, .tmt-wa-float, .tmt-filters { display: none !important; }
	.site { box-shadow: none; }
}

/* YouTube 2-Klick */
.yt-consent { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #222 linear-gradient(135deg, #3a0000, #8c0202); overflow: hidden; color: #fff; }
.wp-has-aspect-ratio .yt-consent { position: absolute; inset: 0; aspect-ratio: auto; }
.yt-consent__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
.yt-consent__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .4s, filter .3s; filter: brightness(.8); }
.yt-consent__btn:hover .yt-consent__img, .yt-consent__btn:focus-visible .yt-consent__img { transform: scale(1.03); filter: brightness(.65); }
.yt-consent__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); transition: transform .2s; }
.yt-consent__btn:hover .yt-consent__play { transform: translate(-50%, -50%) scale(1.08); }
.yt-consent__title { position: absolute; top: 0; left: 0; right: 0; padding: .7rem 1rem 1.6rem; text-align: left; font-weight: 700; font-size: .95rem; background: linear-gradient(rgba(0, 0, 0, .65), transparent); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.yt-consent__note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 1.4rem 1rem .55rem; font-size: .72rem; line-height: 1.35; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); pointer-events: none; }
.yt-consent__note a { color: #fff; pointer-events: auto; }
.yt-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Menü: Newsletter + WhatsApp */
.menu--primary .menu-item--newsletter > a, .menu--primary .menu-item--whatsapp > a { display: inline-flex; align-items: center; gap: .35em; }
.menu--primary .menu-item--whatsapp > a { background: #25d366; color: #fff; }
.menu--primary .menu-item--whatsapp > a:hover, .menu--primary .menu-item--whatsapp > a:focus-visible { background: #1da851; color: #fff; }
@media (max-width: 900px) {
	.menu--primary .menu-item--newsletter > a, .menu--primary .menu-item--whatsapp > a { display: flex; }
	.menu--primary .menu-item--whatsapp > a { justify-content: center; margin-top: .6rem; border-radius: 99px; border-bottom: 0; }
}
