:root {
    --bg: #08070d;
    --surface: #12101a;
    --surface-soft: #191622;
    --surface-glass: rgba(24, 20, 32, .78);
    --text: #f8f5fa;
    --muted: #aaa3b1;
    --line: rgba(255,255,255,.09);
    --pink: #dd72b5;
    --violet: #8d6ade;
    --green: #67d3a8;
    --danger: #ef8796;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 80% 5%, rgba(141,106,222,.18), transparent 32rem),
        radial-gradient(circle at 8% 36%, rgba(221,114,181,.12), transparent 28rem),
        var(--bg);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
img { max-width: 100%; }

.site-header {
    position: relative;
    z-index: 20;
    width: min(1440px, calc(100% - 42px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo span {
    width: 41px; height: 41px; display: grid; place-items: center;
    border-radius: 14px; font-size: 13px; font-weight: 850;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    box-shadow: 0 12px 32px rgba(221,114,181,.22);
}
.logo strong { font-size: 15px; letter-spacing: -.01em; }
.site-header nav { display: flex; gap: 24px; color: var(--muted); font-size: 13px; }
.site-header nav a:hover { color: white; }

main { position: relative; z-index: 2; }
.hero {
    width: min(1440px, calc(100% - 42px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 60px;
    padding: 72px 0 84px;
}
.hero-copy { max-width: 720px; }
.eyebrow {
    display: inline-flex;
    color: #e8a8d3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero h1 {
    margin: 18px 0 23px;
    max-width: 760px;
    font-size: clamp(48px, 7vw, 92px);
    line-height: .98;
    letter-spacing: -.062em;
    background: linear-gradient(135deg, #fff 10%, #d9c8e5 62%, #b58bd3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-copy > p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}
.hero-actions { display: flex; gap: 18px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.trust-note { color: #89828f; font-size: 12px; }

.hero-visual { position: relative; height: 500px; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 340px; height: 340px; background: radial-gradient(circle at 35% 30%, #eb8ac4, #7e56cf 60%, transparent 70%); opacity: .55; }
.orb-two { width: 230px; height: 230px; right: 8%; bottom: 4%; background: radial-gradient(circle at 40% 40%, #7057bd, transparent 70%); opacity: .5; }
.glass-card {
    position: relative;
    width: min(390px, 90%);
    min-height: 285px;
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025));
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    transform: rotate(3deg);
}
.glass-card span { color: #f5b5db; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.glass-card strong { margin: 12px 0 20px; font-size: 38px; line-height: 1.08; letter-spacing: -.045em; }
.glass-card small { color: var(--muted); }

.button {
    min-height: 47px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: white;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: transparent; background: linear-gradient(135deg, var(--pink), var(--violet)); box-shadow: 0 13px 34px rgba(141,106,222,.2); }
.button-secondary { background: rgba(255,255,255,.045); }
.button-large { width: 100%; min-height: 55px; font-weight: 750; }

.section { width: min(1440px, calc(100% - 42px)); margin: 0 auto; padding: 50px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 30px; }
.section-heading h2 { margin: 10px 0 0; font-size: clamp(31px, 4vw, 54px); letter-spacing: -.045em; }
.section-heading > p { color: var(--muted); font-size: 13px; }

.character-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.character-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease;
}
.character-card:hover { transform: translateY(-5px); border-color: rgba(221,114,181,.28); }
.character-card.featured { border-color: rgba(221,114,181,.28); }
.character-image { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--surface-soft); }
.character-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s ease; }
.character-card:hover .character-image img { transform: scale(1.025); }
.image-gradient { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8,7,13,.82)); }
.image-placeholder { height: 100%; display: grid; place-items: center; color: var(--muted); }
.featured-label { position: absolute; top: 16px; left: 16px; padding: 7px 10px; border-radius: 999px; background: rgba(8,7,13,.72); border: 1px solid rgba(255,255,255,.14); font-size: 11px; backdrop-filter: blur(12px); }
.character-content { padding: 20px; }
.character-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.character-title h3 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.character-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.online-dot { width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(103,211,168,.1); }
.greeting-preview { min-height: 58px; margin: 18px 0; color: #d8d1dc; line-height: 1.55; font-size: 14px; }
.trait-list { display: flex; flex-wrap: wrap; gap: 7px; }
.trait-list span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; background: rgba(255,255,255,.025); }
.trait-list.large span { padding: 8px 11px; font-size: 11px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 19px; }
.card-actions form, .card-actions button { width: 100%; }

.value-grid { width: min(1440px, calc(100% - 42px)); margin: 0 auto 100px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.value-grid article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.022); }
.value-grid article > span { color: #d894c1; font-size: 11px; letter-spacing: .13em; }
.value-grid h3 { margin: 18px 0 10px; font-size: 19px; }
.value-grid p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 13px; }

.notice { width: 100%; margin: 0 0 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; font-size: 13px; }
.notice-error { color: #ffd5dc; background: rgba(239,135,150,.1); }
.notice-success { color: #cdf7e6; background: rgba(103,211,168,.1); }
.empty-state { padding: 60px 25px; text-align: center; border: 1px dashed rgba(255,255,255,.15); border-radius: var(--radius); color: var(--muted); }
.empty-state h1, .empty-state h3 { color: white; }
.empty-state .button { margin-top: 16px; }

.profile-page { width: min(1440px, calc(100% - 42px)); margin: 0 auto; padding: 34px 0 100px; }
.back-link { display: inline-flex; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(380px,.75fr); gap: 34px; align-items: start; }
.profile-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.gallery-item { margin: 0; overflow: hidden; aspect-ratio: 4/5; border-radius: 19px; background: var(--surface); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main { grid-row: span 2; }
.profile-panel { position: sticky; top: 25px; padding: 34px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface-glass); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.profile-badge { float: right; padding: 7px 10px; border-radius: 999px; color: #f8cde8; background: rgba(221,114,181,.12); font-size: 11px; }
.profile-panel h1 { margin: 12px 0 7px; font-size: 52px; letter-spacing: -.055em; }
.profile-subtitle { margin: 0; color: var(--muted); }
.profile-panel blockquote { margin: 28px 0; padding: 20px 0 20px 20px; border-left: 2px solid var(--pink); color: #e3dce7; font-size: 16px; line-height: 1.65; }
.profile-section { margin: 25px 0; }
.profile-section h2 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.profile-section p { color: #d4cdd9; line-height: 1.7; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.profile-facts div { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.profile-facts span, .profile-facts strong { display: block; }
.profile-facts span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.profile-facts strong { margin-top: 6px; font-size: 12px; }
.legal-note { margin: 12px 0 0; text-align: center; color: #77717d; font-size: 10px; }

.chat-shell { min-height: calc(100vh - 82px); display: grid; place-items: center; padding: 26px 20px 60px; }
.chat-panel { width: min(980px,100%); height: min(790px, calc(100vh - 135px)); min-height: 620px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: rgba(18,16,26,.92); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.chat-back { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.035); }
.chat-avatar { width: 46px; height: 46px; overflow: hidden; border-radius: 14px; background: var(--surface-soft); }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-person { flex: 1; }
.chat-person strong, .chat-person span { display: block; }
.chat-person strong { font-size: 14px; }
.chat-person span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.chat-person i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); }
.demo-badge { padding: 7px 9px; border-radius: 999px; color: #f5cae5; background: rgba(221,114,181,.1); font-size: 10px; }
.chat-notice { margin: 12px 18px 0; padding: 10px 12px; border: 1px solid rgba(141,106,222,.2); border-radius: 11px; color: #bdb2c5; background: rgba(141,106,222,.08); font-size: 11px; line-height: 1.5; }
.messages { flex: 1; overflow-y: auto; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.message { display: flex; }
.message-user { justify-content: flex-end; }
.message-character { justify-content: flex-start; }
.message-bubble { max-width: min(650px, 78%); padding: 13px 15px 9px; border-radius: 18px; }
.message-character .message-bubble { background: var(--surface-soft); border-bottom-left-radius: 5px; }
.message-user .message-bubble { background: linear-gradient(135deg, #b85c99, #7356b9); border-bottom-right-radius: 5px; }
.message-bubble p { margin: 0; line-height: 1.55; font-size: 14px; }
.message-bubble time { display: block; margin-top: 7px; text-align: right; color: rgba(255,255,255,.55); font-size: 9px; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 15px; border-top: 1px solid var(--line); }
.composer textarea { width: 100%; max-height: 130px; resize: none; border: 1px solid var(--line); border-radius: 15px; outline: none; padding: 13px 15px; color: white; background: rgba(255,255,255,.035); line-height: 1.45; }
.composer textarea:focus { border-color: rgba(221,114,181,.45); }
.send-button { width: 48px; height: 48px; border: 0; border-radius: 15px; color: white; background: linear-gradient(135deg,var(--pink),var(--violet)); cursor: pointer; }

.simple-page { width: min(900px, calc(100% - 42px)); margin: 0 auto; min-height: 65vh; display: grid; place-items: center; }
.site-footer { position: relative; z-index: 2; width: min(1440px, calc(100% - 42px)); margin: 0 auto; padding: 32px 0; display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { color: white; margin-bottom: 5px; }
.site-footer p { margin: 0; }

@media (max-width: 1050px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-visual { height: 370px; }
    .character-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-panel { position: static; }
}
@media (max-width: 700px) {
    .site-header { width: min(100% - 28px, 1440px); min-height: 70px; }
    .site-header nav a:first-child { display: none; }
    .hero, .section, .value-grid, .profile-page, .site-footer { width: min(100% - 28px, 1440px); }
    .hero { padding: 54px 0 64px; gap: 10px; }
    .hero h1 { font-size: 52px; }
    .hero-copy > p { font-size: 15px; }
    .hero-visual { height: 300px; }
    .glass-card { min-height: 220px; padding: 27px; }
    .glass-card strong { font-size: 30px; }
    .section { padding-bottom: 70px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .character-grid, .value-grid { grid-template-columns: 1fr; }
    .profile-gallery { grid-template-columns: 1fr 1fr; }
    .gallery-main { grid-column: 1/-1; grid-row: auto; }
    .profile-panel { padding: 24px; }
    .profile-panel h1 { font-size: 43px; }
    .site-footer { flex-direction: column; }
    .chat-shell { padding: 0; }
    .chat-panel { height: calc(100vh - 70px); min-height: 0; border-radius: 0; border-left: 0; border-right: 0; }
    .demo-badge { display: none; }
    .message-bubble { max-width: 88%; }
}

/* DreamGirlChat: sofortige Nachricht und Tippanzeige */
.message-pending {
    opacity: 0.85;
}

.message-typing .message-bubble {
    opacity: 0.82;
}

.message-typing p {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.typing-dots {
    display: inline-flex;
    gap: 0.12rem;
}

.typing-dots span {
    display: inline-block;
    animation: dgc-typing-dot 1.1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.16s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.32s;
}

.message-send-error .message-bubble {
    border: 1px solid rgba(220, 70, 70, 0.45);
}

.composer button:disabled {
    cursor: wait;
    opacity: 0.65;
}

@keyframes dgc-typing-dot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }

    30% {
        transform: translateY(-0.2rem);
        opacity: 1;
    }
}
