/* ==========================================================================
   Anliker Original – Ergänzungen zum Original-CSS (original.css bleibt unverändert)
   Galerie, Lightbox, YouTube nach Klick, Song, Gästebuch, Social-Leiste, Fussmenü.
   Schrift, Farben und Formen wie das alte Artisteer-Theme: Arial, Rot, Grau.
   ========================================================================== */

:root {
	--ao-rot: #f00f13;
	--ao-rot-dunkel: #b4080b;
	--ao-grau: #7f7f7f;
	--ao-rand: #c8c8c8;
}

.screen-reader-text, .au-lock {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.au-skip { position: fixed; left: 1rem; top: -4rem; z-index: 1000; background: var(--ao-rot); color: #fff; padding: .5rem 1rem; font: bold 13px Arial, sans-serif; }
.au-skip:focus { top: 1rem; }

.art-postcontent img { max-width: 100%; height: auto; }
.wp-block-embed iframe { max-width: 100%; }

/* --------------------------------------------------------------------------
   Social-Leiste am linken Rand (früher Plugin «Sticklr», Variante «light»)
   -------------------------------------------------------------------------- */
.ao-social {
	position: fixed; left: 0; top: 40%; z-index: 90;
	margin: 0; padding: 0; list-style: none;
	background: rgba(240, 240, 240, .95);
	border: 1px solid #b7b7b7; border-left: 0;
	border-radius: 0 2px 2px 0;
	box-shadow: 0 0 3px rgba(24, 24, 24, .25);
}
.ao-social li { margin: 0; padding: 0; border-bottom: 1px solid #f7f7f7; border-top: 1px solid #dadada; }
.ao-social li:first-child { border-top: 0; }
.ao-social li:last-child { border-bottom: 0; }
.ao-social a {
	display: block; width: 24px; height: 24px; padding: 5px;
	background: transparent; transition: background-color .15s;
}
.ao-social a:hover, .ao-social a:focus-visible { background: #fff; }
.ao-social svg { display: block; width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   Fussmenü (Datenschutz, Impressum …)
   -------------------------------------------------------------------------- */
.art-footer-text p { margin: 0 0 .3em; }
.ao-fuss-menue { margin: 0; padding: 0; list-style: none; text-align: center; }
.art-footer-body .ao-fuss-menue li { display: inline; margin: 0; padding: 0; background: none; }
.ao-fuss-menue li + li::before { content: "|"; margin: 0 .6em; color: var(--ao-grau); }
.ao-fuss-menue a { text-decoration: none; }
.ao-fuss-menue a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Song: schlichter Player wie früher
   -------------------------------------------------------------------------- */
.ao-player { width: 350px; max-width: 100%; margin: 1em auto; }
.ao-player audio { display: block; width: 100%; }

/* --------------------------------------------------------------------------
   YouTube: Vorschaubild, Video lädt erst nach Klick
   -------------------------------------------------------------------------- */
.au-video { margin: 1em auto; max-width: 500px; }
.au-video-start, .au-video iframe {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0;
	background: #000 center / cover no-repeat; cursor: pointer; overflow: hidden;
}
.au-video-play {
	position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px;
	background: rgba(33, 33, 33, .8); border-radius: 12px; transition: background .2s;
}
.au-video-play::after {
	content: ""; position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -7px;
	border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff;
}
.au-video-start:hover .au-video-play, .au-video-start:focus-visible .au-video-play { background: var(--ao-rot); }
.au-video-text {
	position: absolute; left: 0; right: 0; bottom: 0; padding: .5em .8em; text-align: left;
	font: bold 12px/1.3 Arial, Helvetica, sans-serif; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent);
}
.au-video-text small { display: block; font-weight: normal; font-size: 11px; color: #ddd; }

/* --------------------------------------------------------------------------
   Galerie (früher NextGEN): Vorschaubilder mit Rahmen
   -------------------------------------------------------------------------- */
.au-galerie { margin: 1em 0; }
/* Wie NextGEN im Original: gleich grosse Vorschaubilder, mittig, mit weissem Rand */
.au-raster { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.au-raster .au-bild {
	position: relative; margin: 0; overflow: hidden;
	flex: 0 0 190px; height: 127px;
	padding: 2px; background: #fff; border: 1px solid #ddd;
}
.au-raster .au-bild:hover { border-color: var(--ao-rot); }
.au-bild a { display: block; height: 100%; }
.art-article .au-bild img, .au-bild img {
	display: block; width: 100%; height: 100%; object-fit: cover;
	margin: 0; border: 0; padding: 0;
}
/* Kapitel und Zähler gab es im Original nicht */
.au-kapitel, .au-fueller { display: none; }
.au-kapitel h3 { margin: 0 0 .2em; }
.au-kapitel small { color: var(--ao-grau); }
.au-kapitel-flagge { display: none; }
.au-nachladen, .au-ziel { display: flex; align-items: center; justify-content: center; gap: .6em; margin: 1em 0 0; min-height: 40px; color: var(--ao-grau); font-size: 12px; }
.au-ziel, .au-ziel[hidden] { display: none; }
.au-zielflagge { display: none; }
.au-rad { width: 20px; height: 20px; border: 3px solid #ddd; border-top-color: var(--ao-rot); border-radius: 50%; animation: ao-drehen .8s linear infinite; }
@keyframes ao-drehen { to { transform: rotate(360deg); } }
.au-nachladen.fehler .au-rad { animation: none; opacity: .4; }

/* Lightbox */
.au-lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(0, 0, 0, .85); }
.au-lightbox[hidden] { display: none; }
.au-lightbox figure { margin: 0; display: grid; justify-items: center; gap: .6em; }
.au-lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; border: 6px solid #fff; }
.au-lightbox figcaption { font: bold 13px Arial, Helvetica, sans-serif; color: #fff; text-align: center; }
.au-lightbox button {
	position: absolute; width: 44px; height: 44px; border: 0; cursor: pointer;
	font: 30px/44px Arial, sans-serif; color: #fff; background: rgba(240, 15, 19, .85); border-radius: 3px;
}
.au-lightbox button:hover { background: var(--ao-rot-dunkel); }
.au-lb-zu { top: 1rem; right: 1rem; }
.au-lb-zurueck { left: 1rem; top: 50%; margin-top: -22px; }
.au-lb-vor { right: 1rem; top: 50%; margin-top: -22px; }
.au-lb-zaehler { position: absolute; left: 1rem; top: 1.2rem; font: 12px Arial, sans-serif; color: #ccc; }

/* --------------------------------------------------------------------------
   Verkauf: Fahrzeugliste als Tabelle (auf schmalen Bildschirmen seitlich scrollbar)
   -------------------------------------------------------------------------- */
.ao-tabelle { overflow-x: auto; margin: 0 0 1.2em; -webkit-overflow-scrolling: touch; background: #fff; }
.art-article .ao-verkauf td { background: #fff; }
.art-article table.ao-verkauf { width: 100%; min-width: 640px; margin: 0; border-collapse: collapse; font-size: 11px; }
.art-article .ao-verkauf th, .art-article .ao-verkauf td { padding: 4px 6px; border: 1px solid #c8c8c8; vertical-align: top; text-align: left; }
.art-article .ao-verkauf thead th { color: #fff; background: var(--ao-rot); border-color: var(--ao-rot-dunkel); text-transform: uppercase; white-space: nowrap; }
.art-article .ao-verkauf .ao-gruppe th { color: var(--ao-rot); background: #eee; text-transform: uppercase; }
.art-article .ao-verkauf tbody tr:not(.ao-gruppe):nth-child(even) td { background: #f7f7f7; }
.art-article .ao-verkauf tbody tr:not(.ao-gruppe):hover td { background: #fde8e8; }
.ao-verkauf td:nth-child(-n+6), .ao-verkauf td:last-child { white-space: nowrap; }
.ao-verkauf td:nth-child(n+4):nth-child(-n+6) { text-align: right; }
.ao-verkauf td:last-child { font-weight: bold; }

/* --------------------------------------------------------------------------
   Gästebuch (WordPress-Kommentare)
   -------------------------------------------------------------------------- */
.au-gaestebuch { margin: 0; }
.au-gb-hinweis { color: var(--ao-grau); font-size: 12px; }
.comment-form > p { margin: 0 0 .8em; }
.au-feld label { display: block; margin-bottom: .2em; font-weight: bold; }
.au-feld small { font-weight: normal; color: var(--ao-grau); }
.au-feld input, .au-feld textarea, textarea#comment {
	width: 100%; max-width: 480px; box-sizing: border-box; padding: 4px 6px;
	font: 13px Arial, Helvetica, sans-serif; border: 1px solid #a5a5a5; background: #fff;
}
.au-feld textarea, textarea#comment { max-width: 100%; }
.comment-form input[type="submit"] {
	padding: 5px 18px; cursor: pointer; font: bold 13px Arial, Helvetica, sans-serif; color: #fff;
	background: var(--ao-rot); border: 1px solid var(--ao-rot-dunkel); border-radius: 3px;
}
.comment-form input[type="submit"]:hover { background: var(--ao-rot-dunkel); }
#cancel-comment-reply-link { margin-left: 1em; font-size: 12px; }

.au-eintraege, .au-eintraege .children { list-style: none; margin: 0; padding: 0; }
.art-article .au-eintraege li { background: none; padding-left: 0; }
.au-eintraege .children { margin-left: 2.5em; }
.au-eintrag article { margin: 0 0 1em; padding: .7em 1em; background: #f6f6f6; border: 1px solid #ddd; border-left: 4px solid var(--ao-rot); }
.au-eintrag header { display: flex; align-items: baseline; gap: .6em; margin-bottom: .4em; }
.au-eintrag header div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6em; }
.au-eintrag-initial { display: none; }
.au-eintrag-name { font-weight: bold; color: var(--ao-rot); }
.au-eintrag-ort { color: #555; }
.au-eintrag time { font-size: 11px; color: var(--ao-grau); }
.au-eintrag-text p { margin: 0 0 .5em; }
.au-antworten { margin: .3em 0 0; font-size: 12px; }
.comments-pagination, .nav-links { margin-top: 1.5em; text-align: center; }
.page-numbers { padding: 0 .3em; }

/* --------------------------------------------------------------------------
   Menüknopf nur für kleine Bildschirme (das Original war nur für Desktop gebaut)
   -------------------------------------------------------------------------- */
.ao-menue-knopf { display: none; }

@media (max-width: 760px) {
	body { min-width: 0; }
	.art-sheet { width: auto; min-width: 0; margin: 10px 8px 0; }
	.art-sheet:before, .art-sheet:after, .art-sheet-body:before, .art-sheet-body:after { display: none; }
	.art-sheet-body { background: #fff; }
	.art-content-layout, .art-content-layout-row, .art-layout-cell { display: block; width: auto !important; }
	.art-content-layout .art-sidebar1 { padding: 8px 8px 0; }
	.ao-menue-knopf {
		display: block; width: 100%; padding: 8px 12px; cursor: pointer; text-align: left;
		font: bold 13px Arial, Helvetica, sans-serif; text-transform: uppercase; color: #fff;
		background: var(--ao-rot); border: 1px solid var(--ao-rot-dunkel); border-radius: 3px;
	}
	.ao-menue-knopf::before { content: "☰ "; }
	.js #ao-menue { display: none; }
	.js #ao-menue.offen { display: block; }
	.ao-social { top: auto; bottom: 20%; }
}

/* --------------------------------------------------------------------------
   Projekte: Titel immer rot (auch besucht/hover, sonst grau bzw. dunkelbraun)
   -------------------------------------------------------------------------- */
.page-id-677 .art-postcontent h1,
.page-id-677 .art-postcontent h1 a,
.page-id-677 .art-postcontent h1 a:link,
.page-id-677 .art-postcontent h1 a:visited,
.page-id-677 .art-postcontent h1 a:hover,
.page-id-677 .art-postcontent h1 a:focus { color: #F22C2F; }

/* --------------------------------------------------------------------------
   Startseite: 360°-Panorama mittig wie das Video
   -------------------------------------------------------------------------- */
.art-postcontent figure:has(a[href*="IMGPanorama"]) { text-align: center; margin-left: auto; margin-right: auto; }
.art-postcontent figure:has(a[href*="IMGPanorama"]) img { display: inline-block; }
.art-postcontent figure:has(a[href*="IMGPanorama"]) + p { text-align: center; }
