/* ==========================================================================
   Ergänzungen für WordPress (Admin-Leiste, Inhaltsseiten).
   Die Gestaltung der Startseite steht in style.css, die der Unterseiten
   in project-detail.css.
   ========================================================================== */

/* Feste Navigation unter die Admin-Leiste schieben (nur eingeloggt sichtbar) */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* Fließtext auf Inhaltsseiten (Impressum, Datenschutz …) */
.page-content { max-width: 760px; padding: 24px 0 72px; line-height: 1.65; }
.page-content h2 { margin: 2em 0 .5em; font-size: clamp(24px, 3vw, 32px); }
.page-content h3 { margin: 1.6em 0 .4em; font-family: 'Inter Tight', Inter, sans-serif; }
.page-content p, .page-content ul, .page-content ol { margin: 0 0 1em; }
.page-content a { text-decoration: underline; }

/* Hinweis „Website im Umbau“ (template-parts/hinweis-umbau.php) */
.am-hinweis {
	position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50;
	display: flex; align-items: flex-start; gap: 12px;
	max-width: min(380px, calc(100vw - 32px));
	padding: 14px 10px 14px 16px;
	background: #14271d; color: #f4f1ea;
	border: 1px solid rgba(255, 255, 255, .14);
	box-shadow: 0 18px 50px rgba(10, 18, 13, .32);
	font: 400 13px/1.45 Inter, system-ui, sans-serif;
	animation: am-hinweis-in .5s cubic-bezier(.22, .61, .36, 1) .8s both;
}
.am-hinweis[hidden] { display: none; }
.am-hinweis p { margin: 0; }
.am-hinweis b {
	display: block; margin-bottom: 2px; color: #fff;
	font: 800 12px/1.4 'Inter Tight', Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
.am-hinweis-dot { position: relative; flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #7cc043; }
.am-hinweis-dot::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%; background: #7cc043;
	animation: am-hinweis-puls 2.4s ease-out infinite;
}
.am-hinweis-close {
	flex: none; width: 28px; height: 28px; margin: -6px 0 0 4px; padding: 0;
	border: 0; background: none; color: rgba(255, 255, 255, .7);
	font-size: 20px; line-height: 1; cursor: pointer;
}
.am-hinweis-close:hover { color: #fff; }
.am-hinweis-close:focus-visible { outline: 2px solid #7cc043; outline-offset: 2px; }
@keyframes am-hinweis-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes am-hinweis-puls { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3); } }
@media (prefers-reduced-motion: reduce) { .am-hinweis, .am-hinweis-dot::after { animation: none; } }

/* Am Handy nur als kompakte Pille: Punkt, Titel, Schliessen (44 px Tippflaeche) */
@media (max-width: 760px) {
	.am-hinweis { align-items: center; gap: 10px; padding: 2px 2px 2px 14px; }
	.am-hinweis-text { display: none; }
	.am-hinweis b { margin: 0; }
	.am-hinweis-dot { margin-top: 0; }
	.am-hinweis-close { width: 44px; height: 44px; margin: 0; }
}
