:root {
	--font: "LT Standard", ui-monospace, monospace;
	--spalte: 34rem;
	--feder: cubic-bezier(0.2, 0.9, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--clr-background); color: var(--clr-text); }
body {
	font: 400 1rem/1.5 var(--font);
	padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
	-webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 3px; }

.lt { width: min(100%, var(--spalte)); margin: 0 auto; }

/* Druck-Feedback sofort beim Antippen, nicht erst beim Loslassen */
.lt-druck { transition: transform 120ms ease-out, color 120ms ease-out; }
.lt-druck:active { transform: scale(0.98); }

/* Kapitälchen-Ersatz: Versalien, klein, gesperrt – gleiche Farbe wie der Text */
.lt-kategorie, .lt-klein {
	font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4;
}
.lt-klein { font-weight: 400; }

/* Knöpfe oben rechts */
.lt-leiste { display: flex; justify-content: flex-end; gap: 0.25rem; margin-bottom: 0.5rem; }
.lt-knopf { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 50%; transition: transform 120ms ease-out; }
.lt-knopf:active { transform: scale(0.9); }
.lt-knopf:hover { color: var(--clr-primary); }
.lt-knopf svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lt-modus .symbol-mond { fill: currentColor; stroke: none; }

/* Kopf: Logo links versetzt, daneben Name, Handle, Tagline; darunter die Socials */
.lt-kopf { display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1rem; align-items: center; margin-bottom: 2.75rem; }
.lt-logo { display: block; width: 4.5rem; height: 4.5rem; transition: transform 200ms var(--feder); }
.lt-logo:active { transform: scale(0.94); }
.lt-logo img { display: block; width: 100%; height: 100%; }
.lt-name { font-size: 1.35rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.lt-handle { color: var(--clr-primary); margin-top: 0.15rem; }
.lt-tagline { font-size: 1rem; margin-top: 0.15rem; }
.lt-socials { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 1.5rem 0 0 -0.6rem; }
.lt-socials a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; transition: transform 120ms ease-out, color 120ms ease-out; }
.lt-socials a:hover { color: var(--clr-primary); }
.lt-socials a:active { transform: scale(0.88); }
.lt-socials svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }
/* Breiter Bildschirm: Logo hängt links aus der Spalte heraus, Text steht auf der Flucht der Abschnitte */
@media (min-width: 52rem) {
	.lt-kopf { grid-template-columns: 1fr; margin-left: 0; position: relative; }
	.lt-logo { position: absolute; right: calc(100% + 1.5rem); top: 0.2rem; width: 5.5rem; height: 5.5rem; }
	.lt-name { font-size: 1.5rem; }
}

/* Abschnitte: Kategorie über einer Linie in Textfarbe */
.lt-abschnitt { margin-bottom: 2.5rem; }
.lt-abschnitt > .lt-kategorie { margin-bottom: 0.25rem; }
.lt-text { display: block; font-size: 0.9rem; line-height: 1.45; margin-top: 0.3rem; }
/* Slash vor Seitennamen wie auf der Website (/Feed, /Geguckt); beim Hover grün */
.lt-slash { font-weight: 400; margin-right: 0.04em; }

/* Projekte untereinander: Strichgrafik links (wie im Tableau, Schraffur erst beim Hover), Text rechts */
.lt-projekt { display: grid; grid-template-columns: 8.5rem 1fr; column-gap: 1rem; align-items: start; padding: 0.9rem 0; }

/* Abwechselnd getönte Zeilen bei Projekten und Feed: Fläche ragt um --rand aus der Spalte,
   der Text bleibt auf der Flucht der Überschriften. Tönung aus der Textfarbe, passt hell wie dunkel. */
.lt-projekt, .lt-art-blog .lt-zeile { --rand: 0.75rem; margin: 0 calc(-1 * var(--rand)); padding-left: var(--rand); padding-right: var(--rand); border-radius: var(--radius); }
.lt-projekte li:nth-child(even) .lt-projekt, .lt-art-blog .lt-liste li:nth-child(even) .lt-zeile { background: color-mix(in srgb, currentColor 5%, transparent); }
.lt-projekt > :not(.lt-umriss) { grid-column: 2; }
.lt-umriss { grid-column: 1; grid-row: 1 / span 3; display: block; aspect-ratio: 4 / 3; }
.lt-umriss svg { display: block; width: 100%; height: 100%; color: currentColor; }
.lt-umriss svg [stroke="#1b1b1b"], .lt-umriss svg [color] { color: currentColor; }
.lt-umriss .w { fill: var(--clr-background); }
.lt-projekt:not(:hover) .lt-umriss .s { fill: transparent; }
.lt-projekt:not(:hover) .lt-umriss .h, .lt-projekt:hover .lt-umriss .r { display: none; }
.lt-projekt-titel { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.lt-projekt:hover .lt-projekt-titel { color: var(--clr-primary); }
.lt-projekt .lt-klein { display: block; margin-top: 0.25rem; }

/* Gefeaturt: groß, mit Bildreihe, wenn es Bilder gibt */
.lt-feature { padding: 0.75rem 0 0.25rem; }
.lt-feature-link { display: block; }
.lt-bilder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-bottom: 0.75rem; }
.lt-bilder img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.lt-feature-titel { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }
.lt-feature-link:hover .lt-feature-titel { color: var(--clr-primary); }

/* Meta-Zeile wie im Feed: ■ Syndication, ● Reaktionen, ▲ Stats – Form klappt beim Hover/Antippen zum Inhalt auf */
.lt-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-top: 0.75rem; min-height: 2rem; }
.lt-aktion { position: relative; display: inline-flex; align-items: center; height: 2rem; }
.lt-form { width: 14px; height: 14px; margin: 0; padding: 0; border: 0; color: var(--clr-text); background: currentColor; cursor: pointer; -webkit-appearance: none; appearance: none; transition: transform 120ms ease-out, opacity 150ms ease; }
.lt-form::before { content: ""; position: absolute; inset: -0.5rem; }   /* größere Trefferfläche */
.lt-form:active { transform: scale(0.85); }
.lt-form:hover, .lt-form:focus-visible { color: var(--clr-primary); }
.lt-form:focus:not(:focus-visible) { outline: none; }
.lt-aktion-herz .lt-form { border-radius: 50%; }
.lt-aktion-stats .lt-form { width: 16px; background: none; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid currentColor; }
.lt-panel { display: inline-flex; align-items: center; gap: 0.15rem; max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: max-width 300ms var(--feder), opacity 200ms ease; }
.lt-aktion:hover .lt-panel, .lt-aktion.offen .lt-panel, .lt-aktion:focus-within .lt-panel { max-width: 12rem; opacity: 1; }
.lt-aktion:hover .lt-form, .lt-aktion.offen .lt-form, .lt-aktion:focus-within .lt-form { position: absolute; opacity: 0; pointer-events: none; }
.lt-panel a { display: grid; place-items: center; min-width: 2rem; height: 2rem; font-weight: 700; }
.lt-panel a:hover { color: var(--clr-primary); }
.lt-panel svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.lt-aktion-stats .lt-panel a, .lt-aktion-herz .lt-panel a { min-width: 0; padding: 0 0.1rem; }

/* Zeilen: eine Linie je Eintrag, durchgehend */
.lt-liste li + li .lt-zeile { border-top: 1px solid currentColor; }
.lt-art-blog .lt-liste li .lt-zeile { border-top: 0; padding-top: 0.55rem; padding-bottom: 0.55rem; }   /* Feed: nur die Artikel, ohne Linien */
.lt-kategorie a:hover { color: var(--clr-primary); }
.lt-zeile { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline; padding: 0.8rem 0; }
.lt-zeile-titel { font-weight: 700; }
/* Geguckt: die zehn neuesten Poster, vier in einer Reihe */
.lt-poster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; padding: 0.25rem 0 0.5rem; }
.lt-poster a { display: block; }
.lt-poster img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }

/* Bilder: die neun neuesten Fotos, 3 × 3 */
.lt-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 0.25rem 0 0.5rem; }
.lt-fotos a { display: block; }
.lt-fotos img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

/* Link-Abschnitte: Seitenname mit Slash, so groß wie gefeaturte Titel (/Portfolio, /Geguckt) */
.lt-art-link .lt-zeile-titel { font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.015em; }
.lt-art-link .lt-zeile { padding: 0.6rem 0; }
.lt-zeile .lt-text { grid-column: 1 / -1; margin-top: 0.15rem; }
.lt-zeile:hover .lt-zeile-titel { color: var(--clr-primary); }
.lt-art-blog .lt-liste { margin-top: 0.5rem; }
.lt-art-blog .lt-zeile-titel { font-weight: 400; }
/* Notizen: ganzer Text wie im Feed, Datum rechts verlinkt zum Beitrag */
.lt-notiz-text > * { margin: 0; }
.lt-notiz-text > * + * { margin-top: 0.5em; }
.lt-notiz-text a { text-decoration: underline; text-underline-offset: 0.15em; }
.lt-notiz > a:hover, .lt-notiz-text a:hover { color: var(--clr-primary); }

/* Footer mit Schriftwechsler */
.lt-fuss { margin-top: 3.5rem; padding-top: 0.75rem; border-top: 1px solid currentColor; display: grid; gap: 1rem; }
.lt-fuss p a:hover { color: var(--clr-primary); }
.lt-schrift { display: flex; align-items: center; gap: 0.1rem; }
.lt-schrift > .lt-klein { margin-right: 0.5rem; }
.lt-schrift button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.lt-schrift-schritt { width: 2rem; height: 2rem; border-radius: 50%; font-size: 0.9rem !important; position: relative; }
.lt-schrift-schritt::before { content: ""; position: absolute; inset: -0.4rem 0; }   /* Trefferfläche bleibt fingergroß */
.lt-schrift-schritt:hover { color: var(--clr-primary); }
.lt-schrift-wahl {
	flex: 0 1 auto; min-width: 0; max-width: 14rem; height: 2rem; padding: 0 0.3rem;
	font-size: 0.8rem !important; font-weight: 700 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lt-schrift-wahl:hover, .lt-schrift-wahl[aria-expanded="true"] { color: var(--clr-primary); }
.lt-schrift button:focus:not(:focus-visible) { outline: none; }

/* Schrift-Blatt */
.lt-blatt-hinten { position: fixed; z-index: 20; opacity: 0; transition: opacity 260ms ease; }
.lt-blatt-hinten.offen { opacity: 1; }
.lt-blatt {
	position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: min(75vh, 34rem);
	display: flex; flex-direction: column;
	color: var(--clr-text); border-radius: var(--radius) var(--radius) 0 0;
	padding: 0 calc(16px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(16px + env(safe-area-inset-left));
	transform: translateY(100%); transition: transform 380ms var(--feder);
	touch-action: none;
}
.lt-blatt.offen { transform: translateY(0); }
.lt-blatt-griff { width: 2.5rem; height: 0.3rem; border-radius: var(--radius); background: currentColor; margin: 0.6rem auto 0.4rem; opacity: 0.35; cursor: grab; }
.lt-blatt-kopf { display: flex; justify-content: flex-end; }
.lt-blatt-fertig { font: 700 0.8rem var(--font); color: var(--clr-primary); background: none; border: 0; padding: 0.4rem 0 0.4rem 1rem; cursor: pointer; }
.lt-blatt-liste { overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding-bottom: 0.75rem; }
.lt-blatt-liste button {
	display: block; width: 100%; padding: 0.4rem 0; text-align: left;
	font: inherit; font-size: 1rem; color: inherit; background: none; border: 0; cursor: pointer;
}
.lt-blatt-liste button:hover, .lt-blatt-liste button:active { color: var(--clr-primary); }
.lt-blatt-liste button[aria-pressed="true"] { color: var(--clr-primary); font-weight: 700; }
.lt-blatt-liste button:focus:not(:focus-visible) { outline: none; }
@media (min-width: 40rem) {
	.lt-blatt {
		left: auto; right: auto; bottom: auto; width: 22rem; max-height: 26rem; border-radius: var(--radius);
		padding: 0 1rem; transform: scale(0.92); opacity: 0; transform-origin: bottom center;
		transition: transform 260ms var(--feder), opacity 180ms ease;
	}
	.lt-blatt.offen { transform: scale(1); opacity: 1; }
	.lt-blatt-griff { display: none; }
}


@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 1ms !important; }
	.lt-druck:active, .lt-knopf:active, .lt-socials a:active { transform: none; }
}
