/* ==========================================================================
   Atelier 34 – Sabine Deubert
   Warmes Galerie-/Atelier-Design: Papierton, Tinte, Petrol (Logo-Farbe)
   und Terrakotta. Durchgehend serifenlose Schrift (Wunsch Sabine),
   Pinselstrich-Akzente, rahmenlose Bilddarstellung, Liquid-Glass-Buttons.
   ========================================================================== */

:root {
	--paper: #f7f2e9;
	--paper-deep: #efe6d6;
	--ink: #2a2521;
	--ink-soft: #5c544b;
	/* Petrol des Original-Logos (aus bine/logo.jpg gemessen) – bestimmt
	   Schriftzug, aktiven Menüpunkt und Schaltflächen. */
	--teal: #377f93;
	--teal-dark: #2a6372;
	--teal-soft: #e3edef;
	--terracotta: #c05f3c;
	--terracotta-dark: #a54c2c;
	--gold: #b9924f;
	--white: #ffffff;
	--radius: 16px;
	--radius-sm: 9px;
	--shadow: 0 4px 18px rgba(42, 37, 33, 0.1);
	--shadow-lg: 0 14px 38px rgba(42, 37, 33, 0.18);
	--max-width: 1180px;
	/* Durchgehend serifenlos (Wunsch Sabine) – Überschriften wie Fließtext. */
	--font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	/* Ausnahme: der Schriftzug „Atelier34“ behält die Antiqua des Original-Logos –
	   in der Kopfzeile wie in den Überschriften. */
	--font-logo: "Iowan Old Style", "Palatino Nova", Palatino, "Book Antiqua", Georgia, serif;
	/* Pinselstrich-Unterstreichung (SVG, Petrol) */
	--brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 Q 20 2, 45 5 T 90 4 T 118 6' fill='none' stroke='%23377f93' stroke-width='2.6' stroke-linecap='round' opacity='0.75'/%3E%3C/svg%3E");
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background:
		radial-gradient(1200px 500px at 85% -5%, rgba(22, 128, 143, 0.07), transparent 60%),
		radial-gradient(900px 420px at -10% 30%, rgba(192, 95, 60, 0.06), transparent 55%),
		var(--paper);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--teal);
}

a:hover {
	color: var(--teal-dark);
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.18;
	color: var(--ink);
	font-weight: 700;
	letter-spacing: 0.005em;
}

h1 {
	font-size: clamp(1.9rem, 4.4vw, 3rem);
}

h2 {
	font-size: clamp(1.45rem, 3vw, 2.1rem);
	margin-top: 0;
}

h3 {
	font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}

/* Überschrift mit Pinselstrich darunter */
.brush-heading {
	display: inline-block;
	padding-bottom: 0.55rem;
	background: var(--brush) no-repeat bottom left / 100% 9px;
}

.container {
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.legal-page {
	max-width: 780px;
}

.legal-page h2 {
	margin-top: 2.5rem;
}

.legal-page h3 {
	margin-top: 1.75rem;
	color: var(--teal-dark);
}

section {
	padding-block: clamp(2.2rem, 5vw, 4.2rem);
}

section.alt {
	background: linear-gradient(180deg, rgba(22, 128, 143, 0.05), rgba(22, 128, 143, 0.02) 30%, transparent),
		var(--paper-deep);
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--terracotta);
}

/* Künstlerzitat */
.art-quote {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1.15rem, 2.4vw, 1.55rem);
	color: var(--teal-dark);
	text-align: center;
	max-width: 42ch;
	margin: 0 auto 0.4rem;
	line-height: 1.4;
}

.art-quote-source {
	text-align: center;
	color: var(--ink-soft);
	font-size: 0.9rem;
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Buttons – iOS-Liquid-Glass-Optik
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	font-family: var(--font-body);
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.65);
	cursor: pointer;
	min-height: 48px;
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18) 55%, rgba(255, 255, 255, 0.32));
	-webkit-backdrop-filter: blur(14px) saturate(170%);
	backdrop-filter: blur(14px) saturate(170%);
	color: var(--ink);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.85),
		inset 0 -6px 12px rgba(255, 255, 255, 0.18),
		0 6px 18px rgba(42, 37, 33, 0.16);
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, filter 0.16s ease;
}

.btn::after {
	/* Glanzlicht oben, wie bei iOS-Glas */
	content: "";
	position: absolute;
	inset: 2px 8% auto 8%;
	height: 42%;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
	pointer-events: none;
}

.btn:hover {
	transform: translateY(-2px) scale(1.015);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		inset 0 -6px 14px rgba(255, 255, 255, 0.22),
		0 12px 28px rgba(42, 37, 33, 0.22);
	filter: brightness(1.04);
}

.btn:active {
	transform: translateY(0) scale(0.99);
}

.btn-primary {
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.14)),
		linear-gradient(135deg, var(--teal), var(--teal-dark));
	color: var(--white);
	border-color: rgba(255, 255, 255, 0.4);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
	color: var(--white);
}

.btn-accent {
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.14)),
		linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
	color: var(--white);
	border-color: rgba(255, 255, 255, 0.4);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.btn-accent:hover {
	color: var(--white);
}

.btn-outline {
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.14) 55%, rgba(255, 255, 255, 0.26));
	border: 1.5px solid var(--teal);
	color: var(--teal-dark);
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247, 242, 233, 0.88);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid rgba(42, 37, 33, 0.09);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.6rem;
}

/* Marke rechts: nur der große Atelier34-Schriftzug, volle Kopfzeilenhöhe. */
.brand {
	display: flex;
	align-items: center;
	text-decoration: none;
	white-space: nowrap;
}

.brand .logo-schriftzug {
	font-size: clamp(1.7rem, 3.2vw, 2.3rem);
	line-height: 1;
}

nav.main-nav {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	flex-wrap: wrap;
}

nav.main-nav a,
nav.main-nav summary {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	border-radius: 999px;
	color: var(--ink);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

nav.main-nav summary::-webkit-details-marker {
	display: none;
}

nav.main-nav a:hover,
nav.main-nav summary:hover {
	background: rgba(22, 128, 143, 0.12);
	color: var(--teal-dark);
	transform: translateY(-1px);
}

nav.main-nav details {
	position: relative;
}

nav.main-nav details[open] summary {
	background: rgba(22, 128, 143, 0.12);
}

/* Aktive Seite */
nav.main-nav a.active,
nav.main-nav summary.active,
.nav-dropdown a.active {
	background: var(--teal);
	color: var(--white);
}

nav.main-nav a.active:hover,
nav.main-nav summary.active:hover,
.nav-dropdown a.active:hover {
	background: var(--teal-dark);
	color: var(--white);
}

.nav-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	background: rgba(255, 253, 248, 0.92);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	backdrop-filter: blur(16px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	padding: 0.4rem;
	min-width: 230px;
	display: flex;
	flex-direction: column;
}

.nav-dropdown a {
	white-space: nowrap;
	border-radius: 7px;
}

.nav-toggle {
	display: none;
	background: none;
	border: 2px solid var(--teal);
	border-radius: var(--radius-sm);
	padding: 0.5rem 0.7rem;
	font-weight: 700;
	color: var(--teal);
	cursor: pointer;
}

@media (max-width: 960px) {
	nav.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(247, 242, 233, 0.98);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
		flex-direction: column;
		align-items: stretch;
		padding: 0.75rem 1.25rem 1.25rem;
		box-shadow: var(--shadow-lg);
	}

	nav.main-nav.open {
		display: flex;
	}

	.nav-dropdown {
		position: static;
		box-shadow: none;
		border: none;
		background: transparent;
		padding-left: 1rem;
	}

	.nav-toggle {
		display: inline-flex;
	}
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
	text-align: center;
	padding-block: clamp(2.2rem, 6vw, 4.5rem) clamp(1.6rem, 4vw, 3rem);
}

.hero h1 {
	margin: 0.2rem 0 0.6rem;
}

.hero .hero-sub {
	max-width: 58ch;
	margin-inline: auto;
	color: var(--ink-soft);
	font-size: 1.05rem;
}

.hero .hero-actions {
	display: flex;
	gap: 0.8rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   Karten / Grids
   -------------------------------------------------------------------------- */
.grid {
	display: grid;
	gap: 1.5rem;
}

.grid-2 {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

a.card {
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover {
	transform: translateY(-4px) rotate(-0.3deg);
	box-shadow: var(--shadow-lg);
}

.card img {
	border-radius: 0;
	margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Kunstwerke: rahmenlose Darstellung (Wunsch Sabine — kein brauner Rahmen,
   kein weißes Passepartout), nur weiche Schatten + sanftes Anheben.
   -------------------------------------------------------------------------- */
.art-frame {
	display: block;
	/* Bilder bleiben scharfkantig – keine runden Ecken (Wunsch Sabine). */
	border-radius: 0;
	box-shadow:
		0 1px 3px rgba(42, 37, 33, 0.18),
		0 12px 30px rgba(42, 37, 33, 0.22);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	overflow: hidden;
}

.art-frame .art-mat {
	display: block;
}

.art-frame img {
	width: 100%;
	height: auto;
	display: block;
}

a.art-frame {
	cursor: zoom-in;
}

a.art-frame:hover {
	transform: translateY(-6px) scale(1.015);
	box-shadow:
		0 2px 5px rgba(42, 37, 33, 0.2),
		0 22px 46px rgba(42, 37, 33, 0.3);
}

/* Galerie-Raster mit Bildunterschriften */
.art-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: clamp(1.4rem, 3vw, 2.4rem);
	align-items: start;
}

.art-grid figure {
	margin: 0;
}

.art-grid figcaption {
	text-align: center;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 0.95rem;
	color: var(--ink-soft);
	margin-top: 0.65rem;
}

/* --------------------------------------------------------------------------
   Lightbox (JS, mit Titel unter dem Bild)
   -------------------------------------------------------------------------- */
.art-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(26, 22, 18, 0.93);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 200;
	padding: 1.5rem;
}

.art-lightbox[hidden] {
	display: none;
}

.art-lightbox figure {
	margin: 0;
	max-width: min(1100px, 94vw);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.art-lightbox img {
	max-width: 92vw;
	max-height: 78vh;
	width: auto;
	height: auto;
	border-radius: 0;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.art-lightbox figcaption {
	color: #f1e9da;
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1rem, 2.2vw, 1.3rem);
	margin-top: 0.9rem;
	text-align: center;
}

.art-lb-close {
	position: absolute;
	top: 1rem;
	right: 1.25rem;
	background: none;
	border: 0;
	color: #f1e9da;
	font-size: 2.4rem;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.art-lb-close:hover {
	transform: scale(1.15);
}

.art-lb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.art-lb-nav:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: translateY(-50%) scale(1.08);
}

.art-lb-prev {
	left: 1rem;
}

.art-lb-next {
	right: 1rem;
}

@media (max-width: 600px) {
	.art-lb-nav {
		width: 2.5rem;
		height: 2.5rem;
		font-size: 1.6rem;
	}
	.art-lb-prev {
		left: 0.4rem;
	}
	.art-lb-next {
		right: 0.4rem;
	}
	.art-lightbox img {
		border-width: 6px;
	}
}

/* --------------------------------------------------------------------------
   News-Zeitleiste
   -------------------------------------------------------------------------- */
.news-list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	max-width: 820px;
}

.news-list::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 8px;
	bottom: 8px;
	width: 2.5px;
	background: linear-gradient(180deg, var(--teal), var(--terracotta) 60%, var(--gold));
	border-radius: 2px;
	opacity: 0.55;
}

.news-item {
	position: relative;
	padding: 0 0 2rem 2.2rem;
}

.news-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--paper);
	border: 3.5px solid var(--teal);
	box-shadow: 0 0 0 3px rgba(22, 128, 143, 0.15);
}

.news-item .news-period {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--terracotta);
}

.news-item h3 {
	margin: 0.15rem 0 0.4rem;
}

.news-item .news-location {
	white-space: pre-line;
	color: var(--ink-soft);
	font-size: 0.95rem;
	margin: 0.3rem 0 0;
}

.news-item .news-links {
	margin-top: 0.7rem;
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.news-item .news-links .btn {
	padding: 0.5rem 1.1rem;
	min-height: 38px;
	font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Kontakt-Buttons
   -------------------------------------------------------------------------- */
.contact-methods {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	max-width: 400px;
}

.contact-method {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	text-align: left;
	padding: 0.75rem 1.1rem;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.5);
	text-decoration: none;
	color: var(--white);
	min-height: 58px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.contact-method:hover {
	transform: translateY(-2px) scale(1.01);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), var(--shadow-lg);
	filter: brightness(1.06);
	color: var(--white);
}

.contact-method .icon {
	font-size: 1.5rem;
	flex-shrink: 0;
	width: 1.9rem;
	text-align: center;
}

.contact-method-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.contact-method-text strong {
	font-size: 1rem;
	font-weight: 700;
}

.contact-method-text small {
	font-size: 0.82rem;
	opacity: 0.9;
}

.contact-method.whatsapp {
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02) 55%), #23b858;
}

.contact-method.telegram {
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02) 55%), #2299d1;
}

.contact-method.phone {
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02) 55%), var(--teal);
}

.contact-method.email {
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02) 55%), var(--ink);
}

form.contact-form {
	display: grid;
	gap: 1rem;
	max-width: 560px;
}

.field label {
	display: block;
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border-radius: var(--radius-sm);
	border: 1.5px solid rgba(42, 37, 33, 0.2);
	font-size: 1rem;
	font-family: inherit;
	background: var(--white);
	color: var(--ink);
}

input:focus,
textarea:focus {
	outline: 2.5px solid var(--teal);
	outline-offset: 1px;
}

/* --------------------------------------------------------------------------
   Flipbook
   -------------------------------------------------------------------------- */
#flipbook-container {
	max-width: 1120px;
	margin-inline: auto;
}

#flipbook-viewport {
	margin-inline: auto;
}

/* Geschlossenes Buch: die leere (weiße) Buchhälfte neben Deckblatt bzw.
   Rückseite ausblenden und das sichtbare Blatt mittig stellen. Nur im
   Doppelseiten-Modus nötig – im Hochformat zeigt StPageFlip ohnehin nur eine
   Seite. Die Klassen setzt Flipbook.astro je nach Blätterzustand. */
/* Nur auf breiten Bildschirmen: auf Handys zeigt StPageFlip ohnehin
   nur eine Seite – dort würde das Zuschneiden stören. */
@media (min-width: 760px) {
	#flipbook-container .stf__wrapper:not([class*="--portrait"]) {
		position: relative;
		left: 0;
		/* Ausgangszustand bewusst als inset() statt none: von einem Wert nach
		   `none` kann clip-path nicht animieren – auf iOS bliebe der Zuschnitt
		   sonst hängen und das Buch würde beim Aufklappen halbiert bleiben. */
		clip-path: inset(0 0 0 0);
		transition: left 0.4s ease, clip-path 0.4s ease;
	}

	#flipbook-container.book-at-front .stf__wrapper:not([class*="--portrait"]) {
		clip-path: inset(0 0 0 50%);
		left: -25%;
	}

	#flipbook-container.book-at-back .stf__wrapper:not([class*="--portrait"]) {
		clip-path: inset(0 50% 0 0);
		left: 25%;
	}
}

.flipbook-controls {
	display: flex;
	gap: 0.6rem;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 1.2rem;
}

/* --------------------------------------------------------------------------
   Einbettungen (Panorama-iframe)
   -------------------------------------------------------------------------- */
.embed-wrap {
	position: relative;
	width: 100%;
	/* Bildflächen scharfkantig, passend zu den Galeriebildern. */
	border-radius: 0;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	background: #1a1612;
}

.embed-wrap.ratio-16-9 {
	aspect-ratio: 16 / 9;
}

.embed-wrap iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
/* Fußzeile im Petrol des Atelier34-Schriftzugs (Wunsch Sabine). */
.site-footer {
	background: linear-gradient(180deg, var(--teal), var(--teal-dark));
	color: rgba(255, 255, 255, 0.92);
	padding-block: 2.6rem;
	text-align: center;
	font-size: 0.92rem;
}

.site-footer a {
	color: var(--white);
}

.footer-links {
	display: flex;
	gap: 1.1rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 0.8rem;
}

.footer-quote {
	font-family: var(--font-display);
	font-style: italic;
	opacity: 0.75;
	margin-bottom: 0.9rem;
}

/* --------------------------------------------------------------------------
   Sonstiges
   -------------------------------------------------------------------------- */
.back-to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05) 55%),
		var(--teal);
	color: var(--white);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--shadow-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, filter 0.15s ease;
	z-index: 60;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	filter: brightness(1.1);
}

@media (max-width: 600px) {
	.back-to-top {
		right: 0.85rem;
		bottom: 0.85rem;
		width: 44px;
		height: 44px;
	}
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--teal);
	color: var(--white);
	padding: 0.5rem 1rem;
	z-index: 300;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* --------------------------------------------------------------------------
   Schriftzug „Atelier34“ in Logo-Typografie
   -------------------------------------------------------------------------- */
.logo-schriftzug {
	font-family: var(--font-logo);
	color: var(--teal);
	font-weight: 700;
	letter-spacing: 0.005em;
	white-space: nowrap;
}

/* Die „34“ sitzt wie im Logo etwas tiefer und ist kleiner (Mediävalziffern). */
.logo-schriftzug .logo-34 {
	font-size: 0.78em;
	vertical-align: -0.12em;
	margin-left: 0.02em;
	font-feature-settings: "onum" 1;
}

/* In Überschriften erbt der Schriftzug die Größe, bleibt aber farbig. */
h1 .logo-schriftzug,
h2 .logo-schriftzug,
h3 .logo-schriftzug {
	font-size: inherit;
	font-weight: inherit;
}
