/*
Theme Name: Lieblings
Theme URI: https://lieblings.chat
Description: Schlankes Theme für die KI-Freundin-Plattform Lieblings.chat. Landingpage, Charakter-Galerie, Seiten für Pakete, Konto und Rechtstexte. Benötigt das Plugin „Companion“.
Author: Lieblings.chat
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lieblings
*/

/* ===== Tokens ===== */
:root {
	--id-night: #1f1420;
	--id-night-2: #2b1c2c;
	--id-cream: #faf5f2;
	--id-paper: #ffffff;
	--id-ink: #241a1f;
	--id-muted: #7a7075;
	--id-line: #e9e0e3;
	--id-rose: #c4436e;
	--id-rose-dark: #a5335a;
	--id-rose-soft: #fde2ea;
	--id-online: #3ec46d;
	--id-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--id-radius: 16px;
	--id-max: 1120px;
}

/* ===== Basis ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--id-font);
	font-size: 17px;
	line-height: 1.55;
	color: var(--id-ink);
	background: var(--id-cream);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--id-rose); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.id-wrap { max-width: var(--id-max); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--id-rose); outline-offset: 2px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ===== Buttons ===== */
.id-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 22px;
	border-radius: 999px;
	border: 0;
	background: var(--id-rose);
	color: #fff !important;
	font: inherit; font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s;
}
.id-btn:hover { background: var(--id-rose-dark); }
.id-btn--ghost { background: transparent; color: var(--id-ink) !important; border: 1.5px solid var(--id-line); }
.id-btn--ghost:hover { background: #fff; border-color: var(--id-ink); }
.id-btn--light { background: #fff; color: var(--id-night) !important; }
.id-btn--light:hover { background: var(--id-rose-soft); }
.id-btn--big { padding: 16px 30px; font-size: 1.05em; }

/* ===== Wortmarke: der Punkt der Domain ist der grüne Online-Punkt ===== */
.id-logo {
	display: inline-flex; align-items: center; gap: 4px;
	font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
	color: inherit; text-decoration: none;
}
.id-logo .id-dot {
	width: 11px; height: 11px; border-radius: 50%;
	background: var(--id-online);
	box-shadow: 0 0 0 4px rgba(62, 196, 109, .18);
	position: relative; top: 1px;
}
.id-logo .id-tld { opacity: .8; }

/* ===== Header ===== */
.id-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 245, 242, .92);
	backdrop-filter: saturate(150%) blur(8px);
	border-bottom: 1px solid var(--id-line);
}
.id-header .id-wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.id-nav { display: flex; gap: 22px; margin-left: auto; }
.id-nav a { color: var(--id-ink); text-decoration: none; font-weight: 500; }
.id-nav a:hover { color: var(--id-rose); }
.id-header-actions { display: flex; gap: 10px; align-items: center; }
.id-header-actions .id-btn { padding: 10px 18px; }
.id-header-actions .id-link { color: var(--id-ink); text-decoration: none; font-weight: 500; padding: 0 6px; }
.id-burger { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; cursor: pointer; padding: 6px; }

/* ===== Hero ===== */
.id-hero {
	background: var(--id-night);
	color: #fff;
	padding: 72px 0 80px;
	overflow: hidden;
}
.id-hero .id-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.id-hero h1 { color: #fff; margin-bottom: 18px; }
.id-hero-text { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 36ch; }
.id-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.id-hero-actions .id-btn--ghost { color: #fff !important; border-color: rgba(255,255,255,.35); }
.id-hero-actions .id-btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.id-hero-note { font-size: .92rem; color: rgba(255,255,255,.55); }

/* Telefon-Vorschau: der eine Moment mit Bewegung */
.id-phone {
	justify-self: center;
	width: 320px; max-width: 100%;
	background: #f2ebe6;
	border-radius: 34px;
	padding: 14px;
	box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 10px #120b13;
	color: var(--id-ink);
	font-size: 15px;
}
.id-phone-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 12px; border-bottom: 1px solid #e3d9d5; }
.id-phone-avatar { width: 38px; height: 38px; border-radius: 50%; background: #f1d9df; position: relative; }
.id-phone-avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--id-online); border: 2px solid #f2ebe6; }
.id-phone-name { font-weight: 700; line-height: 1.1; }
.id-phone-status { font-size: 12px; color: var(--id-muted); }
.id-phone-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 6px; }
.id-bubble { max-width: 82%; padding: 8px 11px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.id-bubble--out { align-self: flex-end; background: var(--id-rose-soft); border-top-right-radius: 3px; }
.id-bubble--in { align-self: flex-start; border-top-left-radius: 3px; }
.id-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 12px; border-top-left-radius: 3px; }
.id-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a8f95; opacity: .35; animation: id-blink 1.2s infinite; }
.id-typing i:nth-child(2) { animation-delay: .2s; }
.id-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes id-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .id-typing i { animation: none; opacity: .6; } }

/* ===== Sektionen ===== */
.id-section { padding: 72px 0; }
.id-section--alt { background: var(--id-paper); border-top: 1px solid var(--id-line); border-bottom: 1px solid var(--id-line); }
.id-section-head { max-width: 60ch; margin-bottom: 36px; }
.id-section-head p { color: var(--id-muted); font-size: 1.05rem; }

/* Galerie (Plugin-Shortcode) */
.cmp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.cmp-gallery-card { background: #fff; border: 1px solid var(--id-line); border-radius: var(--id-radius); overflow: hidden; display: flex; flex-direction: column; }
.cmp-gallery-img { display: block; aspect-ratio: 4 / 5; background: var(--id-rose-soft); overflow: hidden; }
.cmp-gallery-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cmp-gallery-card:hover .cmp-gallery-img img { transform: scale(1.03); }
.cmp-gallery-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cmp-gallery-body h3 { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.cmp-gallery-body h3 span { font-weight: 500; color: var(--id-muted); font-size: .9em; }
.cmp-gallery-tagline { margin: 0; color: var(--id-muted); font-size: .95rem; }
.cmp-gallery-profile { font-size: .95rem; }
.cmp-gallery-btn {
	margin-top: auto; padding-top: 10px;
	color: var(--id-rose); font-weight: 700; text-decoration: none;
}
.cmp-gallery-btn::after { content: " →"; }
.cmp-gallery-btn:hover { text-decoration: underline; }

/* So funktioniert's – echte Reihenfolge, daher nummeriert */
.id-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.id-step { counter-increment: step; }
.id-step::before {
	content: counter(step);
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--id-rose); color: #fff; font-weight: 800;
	margin-bottom: 12px;
}
.id-step h3 { margin-bottom: 6px; }
.id-step p { color: var(--id-muted); margin: 0; }

/* Ehrlichkeit */
.id-honest { background: var(--id-night); color: #fff; }
.id-honest h2 { color: #fff; }
.id-honest-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px 32px; margin: 0; padding: 0; list-style: none; }
.id-honest-list li { padding-left: 28px; position: relative; color: rgba(255,255,255,.85); }
.id-honest-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--id-online); }
.id-honest-list strong { color: #fff; display: block; }

/* CTA */
.id-cta { text-align: center; }
.id-cta p { color: var(--id-muted); }

/* ===== Seiten ===== */
.id-page { padding: 56px 0 80px; }
.id-page .id-wrap { max-width: 760px; }
.id-page h1 { margin-bottom: 24px; }
.id-page .entry-content h2 { margin-top: 1.8em; font-size: 1.4rem; }
.id-page .entry-content h3 { margin-top: 1.4em; }
.id-page .entry-content pre { white-space: pre-wrap; }
.id-page--wide .id-wrap { max-width: var(--id-max); }

/* ===== Footer ===== */
.id-footer { background: var(--id-night-2); color: rgba(255,255,255,.75); padding: 44px 0 36px; font-size: .95rem; }
.id-footer .id-wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.id-footer .id-logo { color: #fff; }
.id-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.id-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.id-footer a:hover { color: #fff; text-decoration: underline; }
.id-footer-note { flex-basis: 100%; color: rgba(255,255,255,.5); font-size: .88rem; margin: 0; }

/* ===== Mobil ===== */
@media (max-width: 900px) {
	.id-hero .id-wrap { grid-template-columns: 1fr; gap: 40px; }
	.id-hero { padding: 48px 0 56px; }
	.id-steps { grid-template-columns: 1fr; }
	.id-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--id-cream); border-bottom: 1px solid var(--id-line); padding: 8px 20px 16px; }
	.id-nav a { padding: 10px 0; }
	.id-header.is-open .id-nav { display: flex; }
	.id-burger { display: block; }
	.id-header-actions .id-link { display: none; }
	.id-section { padding: 52px 0; }
}
