/*
 * Socials-Seite: Text links, iPhone mit Profil-Vorschau rechts.
 * Wird nur auf dieser Seite geladen, siehe inc/setup.php.
 * Das Handy rechnet komplett in em: die Schriftgröße von .iphone skaliert alles.
 */

.socials {
	align-items: center;
	display: grid;
	gap: 2.5rem;
	padding: 0.5rem 0 1.5rem;
}

.socials__text {
	min-width: 0;
}

.socials__titel {
	margin-bottom: 1.25rem;
}

.socials__lead {
	color: var(--ing-muted);
	font-size: clamp(1.125rem, 3vw, 1.3rem);
	margin: 0 0 1rem;
	max-width: 34rem;
}

.socials__text > p {
	max-width: 34rem;
}

.socials__handle {
	align-items: center;
	border: 1px solid var(--ing-line-strong);
	border-radius: var(--ing-radius);
	display: inline-flex;
	font-family: var(--ing-mono);
	font-size: 1.0625rem;
	font-weight: 700;
	gap: 0.6rem;
	margin: 0.5rem 0 1.5rem;
	padding: 0.6rem 0.9rem;
}

.socials__icon {
	color: var(--ing-accent);
	height: 1.4rem;
	width: 1.4rem;
}

.socials__knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
}

.socials__hinweis {
	color: var(--ing-muted);
	font-size: 0.875rem;
}

/* Bühne: Blaupausen-Kreise hinter dem Handy, ragen bewusst über den Rand */
.socials__buehne {
	display: flex;
	justify-content: center;
	padding: 1.5rem 0 3rem;
	position: relative;
}

.socials__buehne::before,
.socials__buehne::after {
	aspect-ratio: 1;
	border: 1px dashed var(--ing-accent);
	border-radius: 50%;
	content: "";
	left: 50%;
	opacity: 0.45;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(27rem, 105%);
}

.socials__buehne::after {
	border-style: solid;
	opacity: 0.18;
	width: min(36rem, 140%);
}

/* --- iPhone --------------------------------------------------------------- */

.iphone {
	--ig-bg: #fff;
	--ig-text: #0f1419;
	--ig-muted: #6b7280;
	--ig-line: #e2e5e9;
	--ig-knopf: #eceef1;

	animation: ing-schweben 7s ease-in-out infinite;
	/* Rahmen aus gebürstetem Titan */
	background: linear-gradient(145deg, #9a9da3 0%, #3b3d42 16%, #74777d 36%, #2c2e32 58%, #85888e 82%, #45474c 100%);
	border-radius: 3.5em;
	box-shadow:
		inset 0 0 0.1em 0.08em rgba(255, 255, 255, 0.4),
		0 0 0 0.05em #17181b,
		2.4em 3.2em 4.2em -1.6em rgba(10, 14, 22, 0.6),
		0.7em 1.1em 1.7em -0.7em rgba(10, 14, 22, 0.45);
	color: var(--ig-text);
	display: block;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(10.5px, 4.1vw, 16px);
	height: 39.5em;
	line-height: 1.25;
	padding: 0.42em;
	position: relative;
	text-decoration: none;
	transform: perspective(1500px) rotateY(-17deg) rotateX(5deg) rotateZ(1.5deg);
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
	width: 19em;
	z-index: 1;
}

:root[data-theme="dark"] .iphone {
	--ig-bg: #000;
	--ig-text: #f5f5f5;
	--ig-muted: #a3a8b0;
	--ig-line: #25272b;
	--ig-knopf: #26282d;
}

.iphone:hover,
.iphone:focus-visible {
	color: var(--ig-text);
	transform: perspective(1500px) rotateY(-4deg) rotateX(1deg) rotateZ(0deg);
}

.iphone:focus-visible {
	outline-offset: 0.6em;
}

/* Seitentasten: links Lautstärke, rechts Ein/Aus */
.iphone::before,
.iphone::after {
	background: linear-gradient(90deg, #2c2e32, #7a7d83);
	border-radius: 0.12em 0 0 0.12em;
	content: "";
	height: 2.7em;
	left: -0.16em;
	position: absolute;
	top: 9.6em;
	width: 0.2em;
}

.iphone::before {
	box-shadow: 0 3.4em 0 #55585d, 0 -3.3em 0 -0.55em #55585d;
}

.iphone::after {
	background: linear-gradient(270deg, #2c2e32, #7a7d83);
	border-radius: 0 0.12em 0.12em 0;
	height: 4.3em;
	left: auto;
	right: -0.16em;
	top: 11.6em;
}

.iphone__rand {
	background: #050506;
	border-radius: 3.1em;
	display: block;
	height: 100%;
	padding: 0.34em;
}

.iphone__schirm {
	background: var(--ig-bg);
	border-radius: 2.78em;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.iphone__insel {
	background: #000;
	border-radius: 1em;
	height: 1.75em;
	left: 50%;
	margin-left: -3em;
	position: absolute;
	top: 0.7em;
	width: 6em;
	z-index: 3;
}

.iphone__insel::after {
	background: radial-gradient(circle at 35% 35%, #40537a, #0a0c11 62%);
	border-radius: 50%;
	content: "";
	height: 0.62em;
	position: absolute;
	right: 0.55em;
	top: 50%;
	transform: translateY(-50%);
	width: 0.62em;
}

.iphone__status {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	font-size: 0.86em;
	font-weight: 600;
	justify-content: space-between;
	padding: 1.15em 1.9em 0.55em 2.3em;
}

.iphone__status svg {
	height: 0.8em;
	width: 3.9em;
}

.iphone__balken {
	background: var(--ig-text);
	border-radius: 1em;
	flex: 0 0 auto;
	height: 0.3em;
	margin: 0.3em auto 0.5em;
	width: 7.2em;
}

/* Spiegelung auf dem Glas */
.iphone__glanz {
	background: linear-gradient(118deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 20%, transparent 36%);
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 4;
}

@keyframes ing-schweben {
	50% {
		translate: 0 -0.6em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iphone {
		animation: none;
	}
}

/* --- Profil-Vorschau im Bildschirm ---------------------------------------- */

.ig__i,
.ig__winkel {
	flex: 0 0 auto;
	height: 1.45em;
	width: 1.45em;
}

.ig__kopf {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	justify-content: space-between;
	padding: 0.35em 1em 0.5em;
}

.ig__name {
	align-items: center;
	display: inline-flex;
	font-size: 1.12em;
	font-weight: 700;
	gap: 0.15em;
}

.ig__winkel {
	height: 0.9em;
	width: 0.9em;
}

.ig__werkzeug {
	display: inline-flex;
	gap: 1em;
}

.ig__profil {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 1.2em;
	padding: 0.3em 1em 0.5em;
}

/* Profilbild mit Ring in der Akzentfarbe */
.ig__avatar {
	background: linear-gradient(135deg, #5b8fc4, #1f4566);
	border-radius: 50%;
	display: block;
	flex: 0 0 auto;
	height: 5em;
	padding: 0.16em;
	width: 5em;
}

.ig__avatar > span {
	align-items: center;
	background: #fafaf8;
	border: 0.16em solid var(--ig-bg);
	border-radius: 50%;
	color: #1a1d23;
	display: flex;
	height: 100%;
	justify-content: center;
}

.ig__logo {
	height: 66%;
	width: 66%;
}

.ig__logo .logo__punkt {
	fill: #2b5b84;
}

.ig__avatar--mini {
	height: 1.55em;
	padding: 0.08em;
	width: 1.55em;
}

.ig__avatar--mini > span {
	border-width: 0.06em;
}

.ig__wer,
.ig__bio {
	display: flex;
	flex-direction: column;
	font-size: 0.82em;
	gap: 0.12em;
	min-width: 0;
}

.ig__wer strong {
	font-size: 1.15em;
}

.ig__wer span {
	color: var(--ig-muted);
}

.ig__wer .ig__ort,
.ig__link {
	color: var(--ing-accent);
	font-weight: 600;
}

.ig__zahlen {
	display: grid;
	flex: 1 1 auto;
	font-size: 0.78em;
	grid-template-columns: repeat(3, 1fr);
	text-align: center;
}

.ig__zahlen strong {
	display: block;
	font-size: 1.3em;
}

.ig__bio {
	flex: 0 0 auto;
	padding: 0 1.25em 0.2em;
}

.ig__knoepfe {
	display: grid;
	flex: 0 0 auto;
	gap: 0.4em;
	grid-template-columns: 1fr 1fr auto;
	padding: 0.7em 1em;
}

.ig__knopf {
	align-items: center;
	background: var(--ig-knopf);
	border-radius: 0.6em;
	display: flex;
	font-size: 0.82em;
	font-weight: 600;
	justify-content: center;
	min-height: 2.3em;
	padding: 0 0.7em;
}

.ig__knopf--voll {
	background: var(--ing-accent);
	color: var(--ing-on-accent);
}

.ig__knopf--klein .ig__i {
	height: 1.1em;
	width: 1.1em;
}

.ig__highlights {
	display: flex;
	flex: 0 0 auto;
	gap: 0.75em;
	padding: 0.25em 1em 0.8em;
}

.ig__highlight {
	align-items: center;
	display: flex;
	flex-direction: column;
	font-size: 0.62em;
	gap: 0.45em;
	width: 6em;
}

.ig__highlight > span {
	align-items: center;
	border: 1px solid var(--ig-line);
	border-radius: 50%;
	color: var(--ing-accent);
	display: flex;
	height: 5.4em;
	justify-content: center;
	width: 5.4em;
}

.ig__highlight .ig__i {
	height: 2.4em;
	width: 2.4em;
}

.ig__tabs {
	border-top: 1px solid var(--ig-line);
	color: var(--ig-muted);
	display: grid;
	flex: 0 0 auto;
	grid-template-columns: repeat(3, 1fr);
}

.ig__tabs > span {
	display: flex;
	justify-content: center;
	padding: 0.5em 0;
}

.ig__tabs .ist-aktiv {
	box-shadow: inset 0 -0.1em 0 var(--ig-text);
	color: var(--ig-text);
}

.ig__raster {
	align-content: start;
	display: grid;
	flex: 1 1 auto;
	gap: 0.12em;
	/* Feste Zeilenhöhe = Kachelbreite, sonst staucht der knappe Platz die Kacheln */
	grid-auto-rows: 5.75em;
	grid-template-columns: repeat(3, 1fr);
	min-height: 0;
	overflow: hidden;
}

.ig__kachel {
	display: block;
	overflow: hidden;
}

.ig__kachel img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/* Platzhalter-Kacheln im Stil der Blaupause, solange es keine echten Bilder gibt */
.ig__kachel--leer {
	align-items: center;
	background-color: #2b5b84;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
	background-size: 0.75em 0.75em;
	color: #fff;
	display: flex;
	justify-content: center;
}

.ig__kachel--leer:nth-child(3n + 2) {
	background-color: #1f4566;
}

.ig__kachel--leer:nth-child(4n + 3) {
	background-color: #e8eaed;
	background-image:
		linear-gradient(rgba(43, 91, 132, 0.12) 1px, transparent 1px),
		linear-gradient(90deg, rgba(43, 91, 132, 0.12) 1px, transparent 1px);
	color: #2b5b84;
}

.ig__kachel--leer .ig__i {
	height: 2.2em;
	width: 2.2em;
}

.ig__nav {
	align-items: center;
	background: var(--ig-bg);
	border-top: 1px solid var(--ig-line);
	display: flex;
	flex: 0 0 auto;
	justify-content: space-around;
	padding: 0.6em 0.4em 0.15em;
}

/* --- Ab Tablet: zwei Spalten --------------------------------------------- */

@media (min-width: 900px) {
	.socials {
		gap: 4rem;
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 2rem 0 3rem;
	}

	.socials__buehne {
		padding: 2rem 3rem 3.5rem 1rem;
	}
}
