/* ==========================================================================
   AUF WEEDERSEHEN – Theme-Styles v1.1
   Stil: YouTube-Banner (Weiß, Weeder-Grün, orange Schachbrett, Schreibschrift-Claim)
   ========================================================================== */

:root {
	--aw-green: var(--wp--preset--color--green);          /* #006e3f */
	--aw-deep: var(--wp--preset--color--green-deep);      /* #0b3b26 */
	--aw-ink-green: var(--wp--preset--color--green-ink);  /* #072a1b */
	--aw-orange: var(--wp--preset--color--orange);        /* #f46111 */
	--aw-orange-deep: var(--wp--preset--color--orange-deep);
	--aw-mint: var(--wp--preset--color--mint);
	--aw-ink: var(--wp--preset--color--ink);
	--aw-muted: var(--wp--preset--color--muted);
	--aw-line: rgba(0, 110, 63, .16);
	--aw-radius: 14px;
	--aw-gutter: clamp(16px, 4vw, 40px);
	--aw-max: 1180px;
	--aw-display: var(--wp--preset--font-family--display);
	--aw-script: var(--wp--preset--font-family--script);
	--aw-sq: 22px; /* Kantenlänge eines Schachbrett-Quadrats */
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body { overflow-x: hidden; }
:focus-visible { outline: 3px solid var(--aw-orange); outline-offset: 3px; border-radius: 6px; }

/* Abstände zwischen Kopf, Inhalt und Fuß – regeln die Sektionen selbst */
.wp-site-blocks { padding: 0; min-height: 100svh; display: flex; flex-direction: column; }
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks > main, .wp-site-blocks > .aw-main { flex: 1 0 auto; }
.wp-site-blocks > footer { margin-top: auto; }
.aw-main { margin: 0; }
.aw-main > .wp-block-post-content > * { margin-block: 0; }

/* Überschriften: breite, schwere Groteske wie im Banner */
h1, h2, h3, .wp-block-heading { font-stretch: 125%; }

/* --------------------------------------------------------------------------
   Schachbrett – zwei Reihen orange Quadrate wie im Banner
   -------------------------------------------------------------------------- */
.aw-checker {
	--sq: var(--aw-sq);
	height: calc(var(--sq) * 2);
	background:
		conic-gradient(var(--aw-orange) 25%, transparent 0 50%, var(--aw-orange) 0 75%, transparent 0) 0 0 / calc(var(--sq) * 2) calc(var(--sq) * 2);
}
.aw-checker--band { background-color: #fff; }

/* --------------------------------------------------------------------------
   Kopfzeile – weiß wie das Banner
   -------------------------------------------------------------------------- */
header.aw-header { position: sticky; top: 0; z-index: 30; }
.admin-bar header.aw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar header.aw-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.aw-header { top: 0; } }

.aw-top {
	padding: 0 var(--aw-gutter);
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(160%) blur(8px);
	backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid var(--aw-line);
}
.aw-top .aw-top__inner { max-width: var(--aw-max); margin: 0 auto; min-height: 66px; gap: 16px; }
.aw-brand {
	display: flex; align-items: center; gap: 10px;
	color: var(--aw-green); text-decoration: none; white-space: nowrap;
	font-family: var(--aw-display); font-weight: 900; font-stretch: 125%;
	text-transform: uppercase; font-size: 17px; letter-spacing: -.01em; line-height: 1;
}
.aw-brand img { width: 46px; height: auto; }
.aw-brand:hover { color: var(--aw-deep); }
@media (max-width: 380px) { .aw-brand span { font-size: 14px; } }

.aw-nav { color: var(--aw-deep); font-weight: 600; font-size: 14px; }
.aw-nav .wp-block-navigation-item__content { color: inherit; text-decoration: none; }
.aw-nav .wp-block-navigation-item__content:hover { color: var(--aw-orange-deep); }
.aw-nav .wp-block-navigation__responsive-container-open svg,
.aw-nav .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }
.aw-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: #fff !important; color: var(--aw-green) !important;
	padding: 24px var(--aw-gutter);
	background-image: conic-gradient(var(--aw-orange) 25%, transparent 0 50%, var(--aw-orange) 0 75%, transparent 0) !important;
	background-size: 44px 44px !important; background-repeat: repeat-x !important; background-position: 0 100% !important;
}
.aw-nav .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--aw-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
	font-size: 30px; letter-spacing: -.01em;
}
.aw-nav .is-menu-open .wp-block-navigation__container { gap: 18px; }

/* --------------------------------------------------------------------------
   Hero – Gewächshaus-Foto, Logo-Badge, Schriftzug wie im Banner
   -------------------------------------------------------------------------- */
.aw-hero {
	position: relative; isolation: isolate; overflow: hidden; margin: 0;
	display: flex; align-items: flex-end;
	min-height: min(90svh, 820px);
	background: var(--aw-ink-green); color: #fff;
}
.aw-hero > .aw-hero__bg { position: absolute; inset: 0; margin: 0; z-index: -2; }
.aw-hero > .aw-hero__bg picture { display: block; width: 100%; height: 100%; }
.aw-hero > .aw-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 759px) { .aw-hero > .aw-hero__bg img { object-position: 50% 0%; } }
.aw-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(7,42,27,0) 0%, rgba(7,42,27,.05) 38%, rgba(7,42,27,.82) 72%, var(--aw-ink-green) 100%);
}
/* Logo-Badge oben rechts: Rückenmotiv, freigestellt, ohne Kreis */
.aw-hero__badge {
	position: absolute !important; z-index: 1; margin: 0 !important;
	top: clamp(20px, 4vw, 48px);
	right: max(var(--aw-gutter), calc((100vw - var(--aw-max)) / 2 + var(--aw-gutter)));
	width: clamp(130px, 19vw, 260px);
}
.aw-hero__badge img {
	width: 100%; height: auto; display: block;
}
.aw-hero__content { width: 100%; max-width: var(--aw-max); margin: 0 auto !important; padding: 140px var(--aw-gutter) 40px; box-sizing: border-box; }
.aw-hero__content > * { margin-block: 0; }
.aw-hero .aw-hero__title {
	color: #fff; font-weight: 900; font-stretch: 125%;
	font-size: clamp(46px, 9vw, 120px); line-height: .86; letter-spacing: -.02em;
	text-shadow: 0 2px 24px rgba(7,42,27,.35);
}
.aw-hero__claim {
	font-family: var(--aw-script); color: var(--aw-orange);
	font-size: clamp(24px, 3.2vw, 42px); line-height: 1.1; margin: 10px 0 18px !important;
	transform: rotate(-3deg); transform-origin: left center;
	text-shadow: 0 1px 12px rgba(7,42,27,.5);
}
.aw-lead { font-size: clamp(16px, 2vw, 19px); max-width: 40ch; color: rgba(255,255,255,.92); margin: 0 0 24px !important; }

.aw-channels { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 500px; }
.aw-channels .wp-block-button { width: auto; margin: 0; }
.aw-ch .wp-block-button__link {
	display: flex; align-items: center; width: 100%; box-sizing: border-box;
	text-align: left; padding: 13px 14px 13px 50px; border-radius: 12px;
	font-size: 12px; font-weight: 400; line-height: 1.3; position: relative;
	transition: background-color .15s ease, color .15s ease;
}
.aw-ch .wp-block-button__link::first-line { font-size: 16px; font-weight: 600; }
.aw-ch .wp-block-button__link::before {
	content: ""; position: absolute; left: 15px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%);
	background: currentColor;
	-webkit-mask: var(--aw-icon) center / contain no-repeat; mask: var(--aw-icon) center / contain no-repeat;
}
.aw-ch--yt .wp-block-button__link { background: #fff; color: var(--aw-green); }
.aw-ch--yt .wp-block-button__link:hover { background: var(--aw-mint); color: var(--aw-deep); }
.aw-ch--yt { --aw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 7.2a3 3 0 0 0-2.1-2.1C19 4.6 12 4.6 12 4.6s-7 0-8.9.5A3 3 0 0 0 1 7.2 31 31 0 0 0 .5 12a31 31 0 0 0 .5 4.8 3 3 0 0 0 2.1 2.1c1.9.5 8.9.5 8.9.5s7 0 8.9-.5a3 3 0 0 0 2.1-2.1c.4-1.6.5-3.2.5-4.8s-.1-3.2-.5-4.8ZM9.7 15.1V8.9l5.8 3.1-5.8 3.1Z'/%3E%3C/svg%3E"); }
.aw-ch--ig .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.aw-ch--ig .wp-block-button__link:hover { background: rgba(255,255,255,.12); color: #fff; }
.aw-ch--ig { --aw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2.8' y='2.8' width='18.4' height='18.4' rx='4.2'/%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Ccircle cx='17.4' cy='6.6' r='1' fill='black'/%3E%3C/svg%3E"); }
@media (max-width: 759px) {
	.aw-hero__content { padding-top: 46vh; }
	.aw-hero__badge { width: 30vw; max-width: 150px; top: 16px; }
}
@media (max-width: 480px) { .aw-channels { grid-template-columns: 1fr; max-width: 100%; } }

/* --------------------------------------------------------------------------
   Laufband
   -------------------------------------------------------------------------- */
.aw-ticker { background: var(--aw-orange); color: #fff; overflow: hidden; white-space: nowrap; }
.aw-ticker__run { display: inline-flex; gap: 40px; padding: 12px 0; font-family: var(--aw-display); font-weight: 900; font-stretch: 125%; font-size: 17px; letter-spacing: -.01em; text-transform: uppercase; animation: aw-run 42s linear infinite; }
.aw-ticker__run span::after { content: ""; display: inline-block; width: 10px; height: 10px; background: #fff; margin-left: 40px; vertical-align: middle; }
@keyframes aw-run { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sektionen allgemein
   -------------------------------------------------------------------------- */
.aw-sec { padding: clamp(56px, 8vw, 96px) var(--aw-gutter); margin: 0; }
.aw-wrap { max-width: var(--aw-max); margin: 0 auto; }
.aw-wrap > * { margin-block: 0; }
.aw-head { display: grid; gap: 12px; margin-bottom: 32px !important; }
.aw-head > * { margin: 0; }
.aw-head h2 { margin: 0; }
.aw-head p { color: var(--aw-muted); max-width: 52ch; }
@media (min-width: 900px) { .aw-head { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 40px; } }

/* --------------------------------------------------------------------------
   Rabattcodes – Gutschein-Karten
   -------------------------------------------------------------------------- */
.aw-codes { background: var(--aw-mint); }
.aw-coupons { display: grid; gap: 18px; }
@media (min-width: 760px) { .aw-coupons { grid-template-columns: 1fr 1fr; } }
.aw-coupons > * { margin: 0 !important; }
.aw-coupon {
	position: relative; display: grid; grid-template-columns: 104px 1fr;
	background: #fff; border: 2px solid var(--aw-green); border-radius: var(--aw-radius);
	box-shadow: 5px 5px 0 var(--aw-green); overflow: hidden;
}
.aw-coupon > * { margin: 0 !important; }
.aw-stub {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	background: var(--aw-green); color: #fff;
	border-right: 2px dashed #fff; padding: 14px 6px;
	font-size: 11px; font-weight: 600; letter-spacing: .06em;
}
.aw-stub strong { display: block; font-family: var(--aw-display); font-weight: 900; font-stretch: 125%; font-size: 30px; line-height: 1; letter-spacing: -.02em; margin-bottom: 6px; }
.is-alt .aw-stub { background: var(--aw-orange); border-right-color: #fff; }
.aw-coupon__body { position: relative; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aw-coupon__body > * { margin: 0 !important; }
.aw-coupon h3 { color: var(--aw-green); padding-right: 70px; }
.aw-ad { position: absolute; top: 12px; right: 14px; font-size: 11px; color: var(--aw-muted); }
.aw-what { font-size: 14px; color: var(--aw-muted); line-height: 1.45; }
.aw-coupon .wp-block-buttons { gap: 8px; margin-top: 8px !important; }
.aw-code .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 8px; min-height: 42px; box-sizing: border-box;
	border: 1.5px dashed var(--aw-green); background: var(--aw-mint); color: var(--aw-deep);
	font: 600 14px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em;
	padding: 10px 12px; border-radius: 9px; cursor: pointer;
}
.aw-code .wp-block-button__link::after {
	content: ""; width: 16px; height: 16px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 9h10v12H9zM5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 9h10v12H9zM5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.aw-code .wp-block-button__link:hover { background: #dcebe0; color: var(--aw-deep); }
.aw-code.is-copied .wp-block-button__link { background: var(--aw-green); color: #fff; border-style: solid; }
.aw-go .wp-block-button__link { display: inline-flex; align-items: center; min-height: 42px; box-sizing: border-box; padding: 10px 16px; border-radius: 9px; font-size: 14px; background: var(--aw-deep); }
.aw-go .wp-block-button__link:hover { background: var(--aw-green); }
.aw-fine { margin-top: 24px !important; font-size: 13px; color: var(--aw-muted); max-width: 70ch; }

/* --------------------------------------------------------------------------
   Videos
   -------------------------------------------------------------------------- */
.aw-videos { background: #fff; }
.aw-vids {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%); gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
	padding: 4px var(--aw-gutter) 18px; margin: 0 calc(var(--aw-gutter) * -1) !important;
}
.aw-vids > * { margin: 0 !important; }
.aw-vid { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border-radius: var(--aw-radius); overflow: hidden; }
.aw-vid > * { margin: 0 !important; }
.aw-vid__th { margin: 0; aspect-ratio: 16 / 9; background: var(--aw-deep); border-radius: var(--aw-radius); overflow: hidden; }
.aw-vid__th a { display: block; height: 100%; position: relative; }
.aw-vid__th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.aw-vid:hover .aw-vid__th img { transform: scale(1.03); }
.aw-vid__th a::after {
	content: ""; position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--aw-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7 4v16l13-8z'/%3E%3C/svg%3E") 56% 50% / 18px no-repeat;
}
.aw-tag { position: absolute !important; right: 10px; top: 10px; background: #fff; color: var(--aw-green); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.aw-vid__t { padding: 12px 2px 4px; margin: 0; font-family: var(--wp--preset--font-family--body); font-weight: 600; font-stretch: 100%; text-transform: none; letter-spacing: 0; font-size: 15px; line-height: 1.35; }
.aw-vid__t a { color: var(--aw-ink); text-decoration: none; }
.aw-vid__t a::before { content: ""; position: absolute; inset: 0; }
.aw-vid:hover .aw-vid__t a { color: var(--aw-green); }
@media (min-width: 900px) {
	.aw-vids { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0 !important; padding: 4px 0 0; }
}
.aw-more { margin-top: 24px !important; }
.aw-more a { font-weight: 600; color: var(--aw-green); text-decoration: none; border-bottom: 2px solid var(--aw-orange); padding-bottom: 2px; }

/* --------------------------------------------------------------------------
   Buttons in Orange
   -------------------------------------------------------------------------- */
.aw-btn-orange .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; box-sizing: border-box; background: var(--aw-orange); color: #fff; padding: 14px 22px; border-radius: 12px; }
.aw-btn-orange .wp-block-button__link:hover { background: var(--aw-orange-deep); color: #fff; }

/* --------------------------------------------------------------------------
   Merch – das Rückenmotiv in Weiß auf Grün, wie gedruckt
   -------------------------------------------------------------------------- */
.aw-merch { background: var(--aw-green); color: #fff; }
.aw-merch h2 { color: #fff; }
.aw-merch p { color: rgba(255,255,255,.9); max-width: 42ch; }
.aw-split { display: grid; gap: 32px; align-items: center; }
.aw-merch__text > * { margin-block: 0; }
.aw-merch__text > * + * { margin-top: 14px; }
.aw-merch__text .wp-block-buttons { margin-top: 24px !important; }
.aw-merch__art { margin: 0 !important; justify-self: center; width: min(82vw, 440px); }
.aw-merch__art a { display: block; transition: transform .2s ease; } .aw-merch__art a:hover { transform: rotate(-2deg) scale(1.02); }
.aw-merch__art img { width: 100%; height: auto; display: block; filter: brightness(0) invert(1); }
@media (min-width: 860px) { .aw-merch .aw-split { grid-template-columns: 1.1fr .9fr; gap: 64px; } .aw-merch__art { justify-self: end; } }
@media (max-width: 859px) { .aw-merch__art { width: min(72vw, 320px); } }

/* --------------------------------------------------------------------------
   Für Marken
   -------------------------------------------------------------------------- */
.aw-marken { background: var(--aw-deep); color: #fff; }
.aw-marken h2 { color: #fff; }
.aw-marken .aw-head p { color: rgba(255,255,255,.78); }
.aw-offer { display: grid; gap: 22px; margin-bottom: 32px !important; }
.aw-offer > * { margin: 0 !important; }
.aw-offer__item { border-top: 3px solid var(--aw-orange); padding-top: 14px; }
.aw-offer__item > * { margin: 0 !important; }
.aw-offer__item h3 { color: #fff; font-family: var(--wp--preset--font-family--body); font-weight: 600; font-stretch: 100%; text-transform: none; font-size: 17px; line-height: 1.3; margin-bottom: 6px !important; letter-spacing: 0; }
.aw-offer__item p { font-size: 15px; color: rgba(255,255,255,.75); }
@media (min-width: 860px) { .aw-offer { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.aw-contact { display: inline-flex !important; margin: 0 16px 0 0 !important; vertical-align: middle; }
.aw-note { display: inline-block; font-size: 14px; color: rgba(255,255,255,.7); margin: 12px 0 0 !important; vertical-align: middle; }

/* --------------------------------------------------------------------------
   Fußzeile
   -------------------------------------------------------------------------- */
footer.aw-footer { margin: 0; }
.aw-foot { background: var(--aw-ink-green); color: rgba(255,255,255,.75); font-size: 14px; padding: 0 var(--aw-gutter); margin: 0; }
.aw-foot__inner { max-width: var(--aw-max); margin: 0 auto; padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); display: grid; gap: 18px; }
.aw-foot__inner > * { margin: 0 !important; }
.aw-disc { border: 1px solid rgba(255,255,255,.18); border-radius: var(--aw-radius); padding: 16px; line-height: 1.5; max-width: 900px; }
.aw-disc strong { color: #fff; }
.aw-foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.aw-foot__links a { color: #fff; text-underline-offset: 3px; }
.aw-foot__links a:hover { color: var(--aw-orange); }
.aw-foot__copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.aw-foot__sign { font-family: var(--aw-script); color: var(--aw-orange); font-size: 24px; line-height: 1; }

/* --------------------------------------------------------------------------
   Unterseiten (Impressum, Datenschutz, 404)
   -------------------------------------------------------------------------- */
.aw-page { padding: clamp(40px, 7vw, 80px) var(--aw-gutter) clamp(56px, 8vw, 96px); background: #fff; }
.aw-page .aw-page__title, .aw-404 h1 { font-size: clamp(36px, 7vw, 72px); margin-bottom: 28px; }
.aw-page h2 { font-size: clamp(20px, 3vw, 28px); margin-top: 40px; }
.aw-page h3 { font-family: var(--wp--preset--font-family--body); font-weight: 600; font-stretch: 100%; text-transform: none; font-size: 18px; margin-top: 28px; }

/* --------------------------------------------------------------------------
   Toast „Code kopiert“
   -------------------------------------------------------------------------- */
.aw-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, calc(100% + 60px)); opacity: 0; visibility: hidden; background: var(--aw-green); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: transform .25s ease, opacity .25s ease, visibility .25s; z-index: 100; }
.aw-toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* v1.2.1 – Thumbnails sind gestaltet: kein Play-Button darüber */
.aw-vid__th a::after { content: none; display: none; }
