/* ==========================================================================
   Ander8 Agents – Corporate Identity Stylesheet
   Farben:  Navy #0d1a2e   Tief #060c17   Grau #a8a8a8   Orange #d8843a
   ========================================================================== */

:root {
    --bg-deep:      #081320;
    --bg:           #0d1a2e;
    --bg-soft:      #16365f;
    --surface:      rgba(13, 26, 46, 0.82);
    --surface-line: rgba(168, 168, 168, 0.18);
    --gray:         #a8a8a8;
    --gray-soft:    #7d8694;
    --gray-strong:  #d6d6d6;
    --orange:       #d8843a;
    --orange-soft:  #c97a30;
    --orange-deep:  #8a4d18;
    --orange-glow:  rgba(216, 132, 58, 0.35);
    --maxw:         1180px;
    --radius:       4px;
    --font:         'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

    /* Lamellen-Mixins: navy + orange. Wiederholendes Highlight oben, Schatten unten. */
    --lamella-navy:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.07) 0px,
            rgba(255,255,255,0.07) 1px,
            rgba(255,255,255,0.018) 2px,
            transparent 4px,
            transparent 14px,
            rgba(0,0,0,0.42) 15px,
            rgba(0,0,0,0.58) 16px
        );
    --lamella-orange:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.34) 0px,
            rgba(255,255,255,0.34) 1px,
            rgba(255,255,255,0.12) 2px,
            transparent 4px,
            transparent 13px,
            rgba(0,0,0,0.18) 14px,
            rgba(0,0,0,0.32) 15px
        );
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-deep);
    color: var(--gray);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;          /* etwas fetter als Standard 400               */
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body {
    /* Stapel oben → unten: dunkler transparenter Layer, optionales bg-photo.jpg, bg-grunge.svg */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.40)),
        url('assets/bg-photo.jpg'),
        url('assets/bg-grunge.svg');
    background-size: cover, cover, cover;
    background-attachment: fixed, fixed, fixed;
    background-position: center, center, center top;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-color: var(--bg-deep);
    min-height: 100vh;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: #f0a35a; }

/* ---------- Markenschriftzug „Ander8" ---------- */
/* Verwendung: <span class="brand-name">Ander<i class="b8">8</i></span>            */
/* Farben bleiben überall identisch: „Ander" blass-grau, „8" orange (etwas fetter).*/
.brand-name      { color: var(--gray);   font-weight: 700; letter-spacing: inherit; }
.brand-name .b8  { color: var(--orange); font-weight: 400; font-style: normal; }

/* Großer Hero-Schriftzug — gleiche Typografie wie Header, nur größer und blass    */
.hero-mark {
    text-align: center;
    line-height: 1;
    margin: 0 0 18px;
    opacity: 0.42;                          /* deutlich transparent (Watermark)    */
    user-select: none;
}
.hero-mark .word {
    display: block;
    font-family: var(--font);
    font-weight: 300;
    font-size: clamp(3.4rem, 9vw, 6.4rem);
    letter-spacing: -2px;
}
.hero-mark .word .b8 {
    font-weight: 600;                       /* die 8 etwas fetter                  */
    color: var(--orange);
    font-style: normal;
}
.hero-mark .sub {
    display: block;
    margin-top: 8px;
    font-family: var(--font);
    font-weight: 700;                       /* AGENTS ebenfalls fetter             */
    color: var(--orange-soft);
    font-size: clamp(0.7rem, 1.2vw, 0.95rem);
    letter-spacing: 18px;
    text-indent: 18px;                      /* optisch zentriert trotz Tracking    */
    text-transform: uppercase;
}

h1, h2, h3, h4 { color: var(--gray-strong); font-weight: 400; letter-spacing: -0.5px; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); }

p { margin: 0 0 1em; }
strong { color: var(--gray-strong); font-weight: 700; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 90px 0; position: relative; }
section + section { border-top: 1px solid var(--surface-line); }

/* ---------- Header (3D-Lamellen, navy) ---------- */
header.site {
    position: sticky; top: 0; z-index: 50;
    background-color: var(--bg);
    background-image: var(--lamella-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
header.site .brand { display: flex; align-items: center; gap: 12px; }
header.site .brand img { height: 36px; width: auto; display: block; }
header.site nav a {
    color: var(--gray);
    margin-left: 26px;
    font-size: 0.92rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
header.site nav a:hover { color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
    min-height: calc(100vh - 70px);
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 60px 28px;
}
.hero .logo-wrap { max-width: 760px; width: 100%; margin: 0 auto 32px; }
.hero .logo-wrap img {
    width: 100%; height: auto; display: block;
    opacity: 0.42;
    filter: drop-shadow(0 2px 14px rgba(0,0,0,0.5));
}
.hero .tagline {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--gray-soft);
    max-width: 640px;
    margin: 0 auto 36px;
    letter-spacing: 0.5px;
}
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero-Slogan ---------- */
.hero-slogan {
    text-align: center;
    margin: 6px auto 28px;
    color: var(--orange);
    font-family: var(--font);
    font-style: italic;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 1.5px;
    opacity: 0.95;
}
.hero-slogan .shell {
    font-style: normal;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 2px;
}

/* Footer-Slogan (alle Seiten) */
footer.site .slogan {
    margin-top: 6px;
    color: var(--orange-soft);
    font-style: italic;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
}

/* ---------- Buttons (3D-Lamellen) ---------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    font: inherit; font-size: 0.92rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gray-strong);
    background-color: var(--bg-soft);
    background-image: var(--lamella-navy);
    border: 1px solid rgba(0, 0, 0, 0.6);
    border-top-color: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: color .2s, transform .15s, box-shadow .2s, border-color .2s;
}

/* Mini-Variante: ca. 1/3 der Größe von .btn — für kleine orange Action-Buttons */
.btn-mini {
    padding: 4px 10px;
    font-size: 0.62rem;
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 3px;
}
.btn-mini svg { width: 12px; height: 12px; flex-shrink: 0; display: block; }
.btn:hover {
    color: var(--orange);
    border-color: rgba(216, 132, 58, 0.7);
    border-top-color: rgba(255, 200, 140, 0.4);
    box-shadow: 0 0 0 1px var(--orange-glow), 0 6px 22px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}
.btn-primary {
    color: #2a1606;
    background-color: var(--orange);
    background-image: var(--lamella-orange);
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-top-color: rgba(255, 220, 180, 0.5);
    box-shadow: 0 2px 10px rgba(216, 132, 58, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
    color: #1a0d04;
    border-top-color: rgba(255, 235, 200, 0.65);
    box-shadow: 0 0 0 1px var(--orange), 0 8px 28px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ---------- Cards / Services ---------- */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h3 { margin-bottom: 12px; }
.section-title h2 { max-width: 720px; margin: 0 auto; }

.grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
    background-color: var(--bg);
    background-image: var(--lamella-navy);
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-top-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color .2s, transform .15s, box-shadow .2s;
}
.card:hover {
    border-color: rgba(216, 132, 58, 0.7);
    border-top-color: rgba(255, 200, 140, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.card .icon {
    width: 42px; height: 42px; border-radius: 6px;
    background: rgba(216, 132, 58, 0.12);
    color: var(--orange);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid var(--orange-glow);
}
.card h4 { color: var(--gray-strong); font-size: 1.1rem; margin: 0 0 8px; font-weight: 500; }
.card p { color: var(--gray); margin: 0; font-size: 0.95rem; }

/* ---------- Two-column About ---------- */
.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: center; }
.about-portrait {
    max-width: 100%;
    margin: 0;                         /* linksbündig — Text sitzt sofort rechts daneben */
    aspect-ratio: 3/4;
    background: var(--surface);
    border: 1px solid var(--bg-soft);
    border-radius: var(--radius);
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden; position: relative;
    box-shadow:
        inset 0 0 0 1px rgba(216, 132, 58, 0.35),     /* zarter orange Innenring */
        0 0 0 2px var(--bg-soft),                      /* dunkelblau außen */
        0 0 0 3px rgba(216, 132, 58, 0.30),            /* zarter orange Außenring */
        0 8px 24px rgba(0, 0, 0, 0.45);                /* dezente Tiefe */
}
.about-portrait img {
    width: 100%; height: 100%;        /* Bild füllt Feld komplett */
    object-fit: cover; object-position: center top;
    display: block;
    filter: contrast(1.05) brightness(0.95);
}
.about-portrait .ph {
    position: absolute; inset: 0;
    background:
      radial-gradient(circle at 50% 35%, rgba(216,132,58,0.08), transparent 55%),
      linear-gradient(180deg, rgba(22,38,63,0.4), rgba(6,12,23,0.9));
}
.about-portrait .ph::after {
    content: "Ander8";
    position: absolute; bottom: 24px; left: 0; right: 0;
    text-align: center;
    color: var(--gray-soft);
    font-size: 0.85rem; letter-spacing: 4px; text-transform: uppercase;
}
.about-text h3 { margin-bottom: 14px; }

/* ---------- Contact (sehr kompakt + Lamellen) ---------- */
.contact-grid {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center;
    margin-top: 22px;
}
.contact-card {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 10px 4px 7px;
    background-color: var(--bg);
    background-image: var(--lamella-navy);
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-top-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: left;
    text-decoration: none;
    color: var(--gray-strong);
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.contact-card:hover {
    border-color: rgba(216, 132, 58, 0.7);
    border-top-color: rgba(255, 200, 140, 0.4);
    color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange-glow), 0 4px 12px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}
.contact-card .icon-slot {
    width: 16px; height: 16px; flex-shrink: 0;
    color: var(--orange);
    display: inline-flex; align-items: center; justify-content: center;
}
.contact-card .icon-slot svg { width: 13px; height: 13px; display: block; }
.contact-card .label {
    font-size: 0.52rem; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--orange); margin: 0;
    line-height: 1;
    display: block;
}
.contact-card .value { color: inherit; font-size: 0.72rem; line-height: 1.1; word-break: break-word; display: block; margin-top: 1px; }

/* ---------- Footer ---------- */
footer.site {
    border-top: 1px solid var(--surface-line);
    padding: 28px 0 40px;
    text-align: center;
    color: var(--gray-soft);
    font-size: 0.85rem;
    background: rgba(6, 12, 23, 0.7);
}
footer.site a { color: var(--gray); margin: 0 10px; }
footer.site a:hover { color: var(--orange); }
footer.site .copy { margin-top: 10px; color: var(--gray-soft); }
footer.site .copy .accent { color: var(--orange); }

/* ---------- Sprach-Umschalter (DE | EN) ---------- */
/* Pill im Header, rechts von der Nav. Hover orange, aktive Sprache orange + fett. */
.lang-switch {
    display: inline-flex;
    align-items: stretch;
    margin-left: 26px;
    padding: 0;
    border: 1px solid var(--orange);
    border-radius: 999px;
    background: rgba(13, 26, 46, 0.6);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    line-height: 1;
    overflow: hidden;
    transition: box-shadow .2s;
}
.lang-switch:hover { box-shadow: 0 0 0 1px var(--orange-glow); }
.lang-switch .lang-opt {
    color: var(--gray);
    text-decoration: none;
    padding: 5px 16px 5px 8px;   /* asymmetrisch: Text 4 px nach links (optische Zentrierung trotz letter-spacing) */
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    transition: color .15s, background .15s;
}
.lang-switch .lang-opt:hover  { color: var(--orange); }
.lang-switch .lang-opt.active {
    color: #0d1a2e;
    background: var(--orange);
    font-weight: 800;
    cursor: default;
}
.lang-switch .lang-sep {
    width: 1px;
    background: var(--orange);
    color: transparent;
    font-size: 0;
    align-self: stretch;
    user-select: none;
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .about-grid { grid-template-columns: 1fr; }
    header.site nav a { margin-left: 16px; font-size: 0.85rem; }
    header.site .brand img { height: 30px; }
    header.site .lang-switch { margin-left: 14px; font-size: 0.72rem; }
    header.site .lang-switch .lang-opt { padding: 4px 14px 4px 6px; }
    section { padding: 70px 0; }
}
@media (max-width: 560px) {
    header.site nav a:not(.btn):not(.lang-opt) { display: none; }
    header.site .lang-switch { margin-left: 8px; }
}

/* ---------- RS × A8 (Mensch & Maschine / Human & Machine) ---------- */
#rsxa8 .rsx8 { text-align: center; max-width: 600px; margin: 0 auto; }
#rsxa8 .rsx8-kicker { font-size: 1.15rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; font-weight: 400; }
#rsxa8 .rsx8-title { color: var(--gray-strong); font-weight: 400; letter-spacing: -0.5px; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0 0 .6em; line-height: 1.25; }
#rsxa8 .rsx8-title .rsx8-rs { color: #c44a4e; font-weight: 700; }
#rsxa8 .rsx8-title .rsx8-x  { color: var(--gray-soft); margin: 0 .22em; }
#rsxa8 .rsx8-title .rsx8-a8 { color: var(--gray); font-weight: 700; }
#rsxa8 .rsx8-title .rsx8-a8 .eight { color: var(--orange); font-weight: 300; font-style: normal; }
#rsxa8 .rsx8-lead { color: var(--gray); font-size: 1.05rem; line-height: 1.7; margin: 0 0 28px; }
#rsxa8 .rsx8-lead strong { color: var(--gray-strong); font-weight: 700; }
#rsxa8 .rsx8-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
#rsxa8 .rsx8-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; padding: 5px 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.35); transition: transform .15s, box-shadow .2s; -webkit-font-smoothing: antialiased; }
#rsxa8 .rsx8-btn span { font-size: 0.85em; }
#rsxa8 .rsx8-btn:hover { transform: translateY(-1px); }
#rsxa8 .rsx8-orange { color: #fff; background: var(--orange); border-top-color: rgba(255,220,180,.4); box-shadow: 0 1px 4px rgba(216,132,58,.22), inset 0 1px 0 rgba(255,255,255,.25); }
#rsxa8 .rsx8-orange:hover { color: #fff; box-shadow: 0 0 0 1px rgba(216,132,58,.7), 0 4px 14px rgba(216,132,58,.30); }
#rsxa8 .rsx8-red { color: #fff; background: #941015; border-top-color: rgba(255,180,180,.3); box-shadow: 0 1px 4px rgba(148,16,21,.25), inset 0 1px 0 rgba(255,255,255,.14); }
#rsxa8 .rsx8-red:hover { color: #fff; box-shadow: 0 0 0 1px rgba(148,16,21,.7), 0 4px 14px rgba(148,16,21,.30); }
@media (max-width: 520px) { #rsxa8 .rsx8-btn { width: 100%; justify-content: center; } }