/* ==========================================================================
   yorulmaz.xyz – Styles
   Nur System-Schriften (keine Google Fonts → DSGVO-unkritisch), keine externen
   Ressourcen.
   ========================================================================== */

:root {
    --bg: #0b0f19;
    --bg-elev: rgba(255, 255, 255, 0.04);
    --bg-elev-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #e8ecf5;
    --text-muted: #9aa3b8;
    --text-faint: #8590a6;
    --accent: #7c8cff;
    --accent-2: #3ee0c5;
    --accent-3: #ff7ab6;
    --ok: #3ee0a0;
    --radius: 16px;
    --radius-sm: 10px;
    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --max: 1080px;
    --gutter: clamp(16px, 4vw, 40px);
    --mx: 0;
    --my: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    padding: 8px 14px;
    background: var(--accent);
    color: #0b0f19;
    border-radius: 8px;
    font-weight: 600;
    z-index: 100;
    transition: top 0.15s;
}

.skip-link:focus {
    top: 16px;
}

/* --------------------------------------------------------------------------
   Hintergrund: Farb-Blobs, Raster, Rauschen
   -------------------------------------------------------------------------- */

.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    will-change: transform;
    animation: drift 22s ease-in-out infinite alternate;
    transform: translate(calc(var(--mx) * 18px), calc(var(--my) * 18px));
}

.bg__blob--1 {
    width: 55vmax;
    height: 55vmax;
    top: -20vmax;
    left: -15vmax;
    background: radial-gradient(circle at 30% 30%, var(--accent), transparent 65%);
}

.bg__blob--2 {
    width: 50vmax;
    height: 50vmax;
    right: -18vmax;
    top: 10vmax;
    background: radial-gradient(circle at 60% 40%, var(--accent-2), transparent 65%);
    animation-delay: -8s;
    animation-duration: 26s;
    transform: translate(calc(var(--mx) * -24px), calc(var(--my) * -24px));
}

.bg__blob--3 {
    width: 40vmax;
    height: 40vmax;
    left: 30vw;
    bottom: -25vmax;
    background: radial-gradient(circle at 50% 50%, var(--accent-3), transparent 65%);
    opacity: 0.35;
    animation-delay: -14s;
    animation-duration: 30s;
    transform: translate(calc(var(--mx) * 12px), calc(var(--my) * -12px));
}

.bg--subtle .bg__blob {
    opacity: 0.3;
}

.bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 100%);
}

.bg__noise {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@keyframes drift {
    0% {
        translate: 0 0;
        scale: 1;
    }
    50% {
        translate: 4vw -3vh;
        scale: 1.08;
    }
    100% {
        translate: -3vw 4vh;
        scale: 0.96;
    }
}

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */

.topbar {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.brand__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.15);
}

.brand__tld {
    color: var(--text-muted);
}

.topbar__nav {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.topbar__nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.topbar__nav a:hover {
    color: var(--text);
    background: var(--bg-elev);
    border-color: var(--border);
}

@media (max-width: 520px) {
    .topbar {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .topbar__nav a {
        padding: 7px 10px;
        font-size: 13px;
    }

    .hide-sm {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    flex: 1;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(40px, 10vh, 120px) var(--gutter) 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(48px, 8vh, 96px);
}

.hero__inner {
    max-width: 760px;
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__title {
    margin: 0 0 24px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(2rem, 8.5vw, 5.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.hero__prompt {
    color: var(--text-faint);
    font-weight: 400;
}

.hero__domain {
    background: linear-gradient(100deg, #ffffff 0%, var(--accent) 45%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    min-height: 1em;
}

.hero__cursor {
    display: inline-block;
    width: 0.55em;
    height: 0.9em;
    margin-left: 0.08em;
    background: var(--accent);
    transform: translateY(0.1em);
    animation: blink 1.05s steps(2, start) infinite;
    border-radius: 2px;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

.hero__lead {
    margin: 0 0 36px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 60ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    border: 1px solid transparent;
    transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0b0f19;
    box-shadow: 0 10px 30px -10px rgba(124, 140, 255, 0.7);
}

.btn--primary:hover {
    box-shadow: 0 14px 36px -10px rgba(124, 140, 255, 0.9);
}

.btn--ghost {
    background: var(--bg-elev);
    border-color: var(--border);
    color: var(--text);
    font-family: var(--font-mono);
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: var(--bg-elev-hover);
    border-color: var(--border-strong);
}

/* Karten */

.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 760px;
    gap: 14px;
}

.card {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.card:nth-child(1) { animation-delay: 0.15s; }
.card:nth-child(2) { animation-delay: 0.25s; }

.card:hover {
    border-color: var(--border-strong);
    background: var(--bg-elev-hover);
    transform: translateY(-3px);
}

.card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--accent);
    background: rgba(124, 140, 255, 0.1);
    border: 1px solid rgba(124, 140, 255, 0.22);
}

.card:nth-child(2) .card__icon {
    color: var(--accent-2);
    background: rgba(62, 224, 197, 0.1);
    border-color: rgba(62, 224, 197, 0.2);
}

.card__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card__text a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 3px;
}

.card__text a:hover {
    text-decoration-color: var(--accent);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Unterseite (Impressum)
   -------------------------------------------------------------------------- */

.page {
    flex: 1;
    width: 100%;
    max-width: 780px;
    overflow-wrap: break-word;
    margin: 0 auto;
    padding: clamp(24px, 6vh, 64px) var(--gutter) 60px;
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.page__head {
    margin-bottom: 32px;
}

.eyebrow {
    margin: 0 0 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.page__title {
    margin: 0 0 6px;
    font-size: clamp(1.75rem, 8vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.page__sub {
    margin: 0;
    color: var(--text-muted);
}

.legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal__block {
    padding: 22px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.legal__block--muted {
    background: transparent;
    border-style: dashed;
}

.legal__block h2 {
    margin: 0 0 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.legal__block p {
    margin: 0 0 6px;
}

.legal__block p:last-child {
    margin-bottom: 0;
}

.legal__block h3 {
    margin: 16px 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.legal__block ul {
    margin: 0 0 10px;
    padding-left: 22px;
}

.legal__block li {
    margin-bottom: 4px;
}

.legal__block li strong {
    font-weight: 600;
    color: var(--text);
}

.legal__block p a,
.legal__block address a {
    color: var(--accent-2);
    text-decoration: underline;
    text-decoration-color: rgba(62, 224, 197, 0.35);
    text-underline-offset: 3px;
}

.legal__block p a:hover,
.legal__block address a:hover {
    text-decoration-color: var(--accent-2);
}

.legal__block .contact + p {
    margin-top: 12px;
}

.legal__address {
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.55;
}

.legal__address:not(:last-child) {
    margin-bottom: 12px;
}

.legal__mono {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--accent-2);
}

.contact {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact__row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: center;
}

.contact dt {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact dd {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.98rem;
}

.contact dd a {
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 4px;
    transition: text-decoration-color 0.15s;
}

.contact dd a:hover {
    text-decoration-color: var(--accent);
}

.copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text-muted);
    font: inherit;
    font-family: var(--font-sans);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.copy:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--bg-elev-hover);
}

.copy.is-copied {
    color: var(--ok);
    border-color: rgba(62, 224, 160, 0.4);
}

@media (max-width: 480px) {
    .contact__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    font-size: 13px;
    color: var(--text-faint);
    border-top: 1px solid var(--border);
}

.footer p {
    margin: 0;
}

.footer nav {
    display: flex;
    gap: 16px;
}

.footer a:hover {
    color: var(--text);
}

::selection {
    background: rgba(124, 140, 255, 0.35);
    color: #fff;
}

@media (max-width: 600px) {
    .bg__blob {
        filter: blur(50px);
    }
}

/* --------------------------------------------------------------------------
   Sichere Bereiche (Notch im Querformat)
   -------------------------------------------------------------------------- */

.topbar,
.hero,
.page,
.footer {
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* --------------------------------------------------------------------------
   Druck (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */

@media print {
    html {
        color-scheme: light;
    }

    body {
        background: #fff;
        color: #111;
        font-size: 11pt;
    }

    .bg,
    .skip-link,
    .topbar__nav,
    .copy,
    .footer nav {
        display: none !important;
    }

    .brand,
    .brand__tld,
    .page__sub,
    .legal__block h2,
    .contact dt,
    .footer {
        color: #444;
    }

    .eyebrow,
    .legal__mono {
        color: #111;
    }

    .brand__dot {
        display: none;
    }

    .page {
        max-width: none;
        padding: 0;
        animation: none;
    }

    .legal__block {
        break-inside: avoid;
        border: 1px solid #ccc;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .legal__block p a,
    .legal__block address a,
    .contact dd a {
        color: #111;
        text-decoration: none;
    }

    .legal__block p a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #555;
    }

    .footer {
        border-top: 1px solid #ccc;
    }
}

/* --------------------------------------------------------------------------
   Reduzierte Bewegung
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .hero__cursor {
        display: none;
    }
}
