/*
Theme Name: Anruf69
Theme URI: https://anruf69.de/
Author: Anruf69
Description: Eigenes, schlankes WordPress-Theme für Anruf69.de. Dunkles responsives Portal-Design ohne Pagebuilder.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: anruf69
*/

:root {
    --a69-bg: #050505;
    --a69-surface: #111111;
    --a69-surface-2: #181818;
    --a69-border: #2a2a2a;
    --a69-text: #f5f5f5;
    --a69-muted: #a7a7a7;
    --a69-red: #ff101b;
    --a69-red-dark: #d90d16;
    --a69-header-h: 82px;
    --a69-max: 1240px;
    --a69-radius: 18px;
    --a69-shadow: 0 18px 55px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--a69-bg);
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 85% -10%, rgba(255,16,27,.12), transparent 34rem),
        var(--a69-bg);
    color: var(--a69-text);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }

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

a:hover { color: var(--a69-red); }

img {
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--a69-max));
    margin-inline: auto;
}

.site-main { min-height: 65vh; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    height: var(--a69-header-h);
    background: rgba(5,5,5,.86);
    border-bottom: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-branding {
    flex: 0 0 auto;
}

.site-logo {
    display: block;
    width: 255px;
    max-height: 62px;
    object-fit: contain;
    object-position: left center;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    width: 255px;
    max-height: 62px;
    object-fit: contain;
}

.primary-navigation {
    margin-left: auto;
}

.primary-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.primary-navigation a {
    color: #dedede;
    font-weight: 650;
    font-size: .96rem;
    transition: color .18s ease;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
    color: #fff;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 21px;
    border-radius: 10px;
    background: var(--a69-red);
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(255,16,27,.18);
    transition: transform .18s ease, background .18s ease;
}

.header-cta:hover {
    color: #fff;
    background: var(--a69-red-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border: 1px solid var(--a69-border);
    border-radius: 10px;
    background: var(--a69-surface);
    color: #fff;
    cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
    display: block;
    width: 21px;
    height: 2px;
    background: currentColor;
    margin: auto;
    position: relative;
    transition: .2s ease;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle-lines::before { top: -7px; }
.menu-toggle-lines::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 665px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.hero::before {
    content: "";
    position: absolute;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    right: -160px;
    top: 30px;
    background:
        radial-gradient(circle, rgba(255,16,27,.20) 0, rgba(255,16,27,.08) 32%, transparent 67%);
    filter: blur(4px);
    pointer-events: none;
}

.hero::after {
    content: "69";
    position: absolute;
    right: 4vw;
    bottom: -140px;
    font-size: clamp(330px, 35vw, 620px);
    line-height: .8;
    font-weight: 900;
    letter-spacing: -0.1em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,16,27,.08);
    pointer-events: none;
    user-select: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 105px 0 95px;
    max-width: 790px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #eee;
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--a69-red);
}

.hero h1 {
    margin: 0 0 24px;
    font-size: clamp(3rem, 6vw, 6.2rem);
    line-height: .94;
    letter-spacing: -.055em;
    font-weight: 900;
    max-width: 870px;
}

.hero h1 .accent {
    color: var(--a69-red);
}

.hero-lead {
    max-width: 670px;
    margin: 0 0 34px;
    color: #c6c6c6;
    font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 850;
    transition: .18s ease;
    cursor: pointer;
}

.button-primary {
    background: var(--a69-red);
    color: #fff;
    box-shadow: 0 12px 34px rgba(255,16,27,.18);
}

.button-primary:hover {
    background: var(--a69-red-dark);
    color: #fff;
    transform: translateY(-2px);
}

.button-secondary {
    border-color: #343434;
    background: rgba(255,255,255,.035);
    color: #f6f6f6;
}

.button-secondary:hover {
    border-color: #5a5a5a;
    background: rgba(255,255,255,.07);
    color: #fff;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 38px;
    color: #9b9b9b;
    font-size: .91rem;
    font-weight: 650;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--a69-red);
    box-shadow: 0 0 0 5px rgba(255,16,27,.09);
}

/* Sections */
.section {
    padding: 88px 0;
}

.section-tight { padding: 65px 0; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.section-heading p {
    margin: 0;
    max-width: 590px;
    color: var(--a69-muted);
}

.kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--a69-red);
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .13em;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 20px;
}

.a69-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding: 26px;
    border: 1px solid var(--a69-border);
    border-radius: var(--a69-radius);
    background:
        linear-gradient(150deg, rgba(255,255,255,.035), transparent 38%),
        var(--a69-surface);
    box-shadow: var(--a69-shadow);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.a69-card:hover {
    transform: translateY(-4px);
    border-color: #3d3d3d;
    background:
        linear-gradient(150deg, rgba(255,16,27,.06), transparent 40%),
        var(--a69-surface-2);
}

.a69-card-number {
    position: absolute;
    right: 22px;
    top: 12px;
    font-size: 5rem;
    line-height: 1;
    font-weight: 900;
    color: rgba(255,255,255,.035);
}

.a69-card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 58px;
    border-radius: 12px;
    background: rgba(255,16,27,.1);
    color: var(--a69-red);
    font-size: 1.35rem;
    font-weight: 900;
}

.a69-card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.a69-card p {
    margin: 0;
    color: var(--a69-muted);
}

/* category chips */
.chip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}

.category-chip {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid var(--a69-border);
    border-radius: 14px;
    background: var(--a69-surface);
    font-weight: 800;
    transition: .18s ease;
}

.category-chip::after {
    content: "→";
    color: var(--a69-red);
    font-size: 1.3rem;
}

.category-chip:hover {
    color: #fff;
    border-color: rgba(255,16,27,.46);
    background: #171010;
    transform: translateY(-2px);
}

/* CTA panel */
.cta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 6vw, 72px);
    border: 1px solid rgba(255,16,27,.25);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,16,27,.22), transparent 38%),
        linear-gradient(135deg, #151010, #0b0b0b 60%);
}

.cta-panel::after {
    content: "69";
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(8rem, 20vw, 17rem);
    line-height: 1;
    font-weight: 900;
    color: rgba(255,16,27,.05);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
}

.cta-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: .98;
    letter-spacing: -.05em;
}

.cta-panel p {
    color: #bdbdbd;
    margin: 0 0 28px;
}

/* Generic WordPress content */
.content-wrap {
    width: min(calc(100% - 40px), 900px);
    margin-inline: auto;
    padding: 70px 0 100px;
}

.entry-header {
    margin-bottom: 35px;
}

.entry-title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    letter-spacing: -.045em;
    line-height: 1;
}

.entry-content {
    color: #d2d2d2;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #fff;
    line-height: 1.15;
    margin-top: 1.7em;
}

.entry-content a {
    color: var(--a69-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 15px 0 15px 24px;
    border-left: 3px solid var(--a69-red);
    color: #bbb;
}

.entry-content input:not([type="submit"]),
.entry-content textarea,
.entry-content select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--a69-border);
    border-radius: 10px;
    background: #0f0f0f;
    color: #fff;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255,255,255,.07);
    background: #030303;
}

.footer-main {
    padding: 65px 0 48px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
}

.footer-logo {
    width: 230px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #858585;
    max-width: 400px;
    margin: 0;
}

.footer-col h3 {
    margin: 0 0 16px;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li + li { margin-top: 9px; }

.footer-col a {
    color: #8f8f8f;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    color: #707070;
    font-size: .88rem;
}

.age-note {
    color: #7c7c7c;
}

/* 404 */
.error-404 {
    text-align: center;
    padding: 120px 0;
}

.error-code {
    font-size: clamp(6rem, 20vw, 14rem);
    line-height: .75;
    font-weight: 900;
    color: var(--a69-red);
    letter-spacing: -.08em;
}

/* Responsive */
@media (max-width: 1050px) {
    .primary-navigation,
    .header-cta {
        display: none;
    }

    .menu-toggle { display: block; }

    .primary-navigation.is-open {
        display: block;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        margin: 0;
        padding: 20px;
        background: rgba(5,5,5,.98);
        border-bottom: 1px solid var(--a69-border);
    }

    .primary-navigation.is-open ul {
        width: min(100%, var(--a69-max));
        margin: auto;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .primary-navigation.is-open a {
        display: block;
        padding: 14px 4px;
        border-bottom: 1px solid #1b1b1b;
        font-size: 1.04rem;
    }

    .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .chip-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-col:last-child { grid-column: 2 / -1; }
}

@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 720px) {
    :root { --a69-header-h: 70px; }
    .container { width: min(calc(100% - 28px), var(--a69-max)); }
    .site-logo, .custom-logo { width: 205px; max-height: 50px; }
    .hero { min-height: 590px; }
    .hero-inner { padding: 75px 0; }
    .hero h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
    .hero::after { right: -40px; bottom: -65px; font-size: 270px; }
    .section { padding: 68px 0; }
    .section-heading { display: block; }
    .section-heading p { margin-top: 15px; }
    .card-grid, .chip-grid { grid-template-columns: 1fr; }
    .a69-card { min-height: 250px; }
    .a69-card-icon { margin-bottom: 35px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-col:last-child { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 22px 0; }
}

@media (max-width: 480px) {
    .hero-actions .button { width: 100%; }
    .trust-row { gap: 14px; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-brand,
    .footer-col:last-child { grid-column: auto; }
}
