/* WaveWorks – one page, dark, app icons first (inspired by rogueamoeba.com) */

:root {
    --bg: #161616;
    --paper: #1f1f1f;
    --ink: #f1f1f1;
    --muted: #9a9a9a;
    --line: #2f2f2f;
    --dark: #232323;
    --orange: #ff8c00;
    --magenta: #ff00ff;
    --link: #ff5fd2;
    --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.inner, .section { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .inner, .section { padding-left: 32px; padding-right: 32px; } }

/* ─── Header ─── */
#header { background: var(--paper); border-bottom: 1px solid var(--line); }
#header .inner { display: flex; align-items: center; gap: 22px; min-height: 104px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
#logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
#logo img { width: 64px; height: 64px; }
#logo span { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
#tagline { color: var(--muted); font-size: .95rem; line-height: 1.25; font-style: italic; padding-left: 22px; border-left: 1px solid var(--line); }
#nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-weight: 600; font-size: .95rem; }
#nav > a { text-decoration: none; color: var(--muted); transition: color .2s; }
#nav > a:hover { color: var(--ink); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; font-size: .78rem; }
.lang-switch a { padding: 4px 10px; text-decoration: none; color: var(--muted); }
.lang-switch a.active { background: var(--ink); color: var(--bg); }

@media (max-width: 860px) {
    #tagline { display: none; }
}
@media (max-width: 640px) {
    #header .inner { gap: 12px; min-height: 0; }
    #logo img { width: 44px; height: 44px; }
    #logo span { font-size: 1.35rem; }
    #nav { margin-left: 0; width: 100%; gap: 16px; font-size: .88rem; }
    .lang-switch { margin-left: auto; }
}

/* ─── News banner ─── */
.banner {
    position: relative;
    display: flex; align-items: center; gap: 32px;
    margin-top: 28px; padding: 30px 36px;
    border-radius: 24px;
    background: #262626;
    border: 1px solid #353535;
    color: #fff;
    overflow: hidden;
    text-decoration: none;
    isolation: isolate;
    animation: zoom .6s ease-out both;
}
.banner::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(600px 260px at 0% 0%, rgba(255,140,0,.35), transparent 70%),
        radial-gradient(600px 300px at 100% 100%, rgba(255,0,255,.28), transparent 70%);
    pointer-events: none;
    transition: opacity .3s;
}
.banner:hover::before { opacity: .75; }
.banner-icon { position: relative; flex-shrink: 0; animation: plop .7s .35s cubic-bezier(.3,1.6,.5,1) both; }
.banner-icon img { width: 128px; height: 128px; border-radius: 28px; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45)); }
.banner h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 500; letter-spacing: -0.01em; }
.banner h2 strong { font-weight: 800; text-transform: uppercase; }
.banner-features { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; margin-top: 14px; font-size: .98rem; color: rgba(255,255,255,.8); }
.banner-features li { padding-left: 18px; position: relative; animation: zoom .5s calc(.5s + var(--d) * .12s) ease-out both; }
.banner-features li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--magenta)); }
.banner-features strong { color: #fff; }

@media (max-width: 720px) {
    .banner { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 20px; }
    .banner-icon img { width: 88px; height: 88px; border-radius: 20px; }
    .banner-features { grid-template-columns: 1fr; }
}

/* ─── Short intro ─── */
.intro { margin-top: 56px; text-align: center; }
.intro p { max-width: 720px; margin: 0 auto; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.5; color: var(--muted); }

/* ─── App grid ─── */
.group-title { margin-top: 56px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; margin-top: 26px; }
@media (max-width: 900px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }

.app-tile { text-align: center; animation: rise .6s calc(var(--d) * .08s) ease-out both; }
.app-main { display: block; text-decoration: none; }
.app-main img {
    width: 160px; height: 160px; margin: 0 auto; border-radius: 36px;
    /* drop-shadow folgt der echten Icon-Form (Mac-Icons haben transparente Ecken) */
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.55));
    transition: filter .3s;
}
.app-tile:hover .icon-wrap { transform: translateY(-6px) scale(1.04); }
.app-tile:hover .app-main img { filter: drop-shadow(0 14px 18px rgba(255,0,255,.25)) drop-shadow(0 6px 16px rgba(255,140,0,.3)); }
.app-main h3 { margin-top: 18px; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.app-main p { color: var(--muted); font-size: .93rem; margin-top: 2px; min-height: 2.8em; }
@media (max-width: 640px) {
    .icon-wrap { width: 120px; }
    .app-main img { width: 120px; height: 120px; border-radius: 27px; }
    .app-main h3 { font-size: 1.12rem; }
}

.icon-wrap { position: relative; display: block; width: 160px; margin: 0 auto; transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: linear-gradient(#2a2a2a, #2a2a2a) padding-box, linear-gradient(90deg, var(--orange), var(--magenta)) border-box; border: 1px solid transparent;  position: absolute; top: -8px; right: -18px; white-space: nowrap; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.5); z-index: 1; }
.app-btns { display: inline-flex; margin-top: 14px; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--paper); }
.app-btns a { padding: 6px 16px; font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--muted); transition: background .2s, color .2s; }
.app-btns a + a { border-left: 1px solid var(--line); }
.app-btns a:hover { background: var(--ink); color: var(--bg); }


.more-apps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; margin-top: 40px; font-size: .9rem; color: var(--muted); }
.more-apps a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.more-apps img { width: 32px; height: 32px; border-radius: 8px; }
.more-apps a:hover { color: var(--link); }

/* ─── News + side column ─── */
.news-row { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin-top: 64px; }
@media (max-width: 860px) { .news-row { grid-template-columns: 1fr; } }

.news, .side-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.news h4, .side-box h4 { font-size: 1.15rem; font-weight: 700; }
.news-block + .news-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.news-head { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.news-head img { width: 24px; height: 24px; border-radius: 6px; }
.news-head a { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--link); text-decoration: none; }
.news-list { list-style: none; margin-top: 10px; }
.news-list li + li { border-top: 1px dashed var(--line); }
.news-list a { display: flex; gap: 16px; padding: 12px 0; text-decoration: none; }
.news-list img { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--bg); }
.news-list h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.news-list p { font-size: .88rem; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list a:hover h3 { color: var(--link); }
@media (max-width: 520px) { .news-list img { width: 80px; height: 45px; } }

.side { display: flex; flex-direction: column; gap: 20px; }
.side-box p { color: var(--muted); font-size: .9rem; margin: 4px 0 10px; }
.side-link { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .95rem; }
.side-link::after { content: "→"; color: var(--muted); transition: transform .2s; }
.side-link small { margin-left: auto; margin-right: 10px; font-weight: 400; color: var(--muted); font-size: .8rem; }
.side-link:hover { color: var(--link); }
.side-link:hover::after { transform: translateX(3px); color: var(--link); }

/* ─── About Zinne ─── */
.about { display: flex; gap: 32px; align-items: center; margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.about img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.about-text h4 { font-size: 1.15rem; font-weight: 700; }
.about-text p { color: var(--muted); margin-top: 10px; line-height: 1.65; }
@media (max-width: 640px) { .about { flex-direction: column; padding: 22px; } .about img { width: 112px; height: 112px; } }

/* ─── Footer ─── */
#footer { margin-top: 72px; background: #0f0f0f; border-top: 1px solid var(--line); color: rgba(255,255,255,.62); padding: 44px 0 36px; font-size: .9rem; }
#footer h4 { color: #fff; font-size: 1rem; }
#footer .directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
@media (max-width: 720px) { #footer .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#footer h5 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
#footer .directory a { display: block; padding: 3px 0; text-decoration: none; }
#footer .directory a:hover { color: #fff; }
#footer .copy { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

/* ─── Legal / 404 ─── */
.legal { padding-top: 40px; max-width: 820px; }
.legal h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 32px 0 14px; }
.legal h1:first-child { margin-top: 0; }
.legal-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.legal h2 { font-size: 1.05rem; margin: 20px 0 6px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); margin-bottom: 8px; }
.legal a { color: var(--link); }

/* ─── Motion ─── */
@keyframes zoom { from { opacity: 0; transform: scale(.97); } }
@keyframes plop { from { opacity: 0; transform: scale(.4) rotate(-8deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
