/* ============================================================
   BIKOOP MEDIA - Aussehen (CSS)
   ============================================================
   Hier steht NUR wie die Seite aussieht, nicht was drin steht.

   Ganz oben stehen "Variablen" - das sind gespeicherte Werte.
   Wenn du z.B. --accent aenderst, aendert sich die Farbe
   ueberall auf der Seite gleichzeitig. Das ist der einfachste
   Weg, den Look umzustellen.

   WICHTIG: Ich benutze absichtlich KEINE Google Fonts.
   Google Fonts laedt Daten von Google-Servern, das ist in
   Deutschland ein DSGVO-Problem und wurde schon abgemahnt.
   Stattdessen nehmen wir Schriften, die jeder PC schon hat.
   ============================================================ */

/* ---------- 1. VARIABLEN (hier Farben aendern) ---------- */
:root {
    --bg:            #0a0a0f;   /* Hintergrund der Seite */
    --bg-alt:        #101018;   /* Hintergrund abwechselnder Bereiche */
    --surface:       #16161f;   /* Karten */
    --surface-hover: #1d1d28;   /* Karten wenn Maus drueber */
    --border:        #262633;   /* Linien und Raender */

    --text:          #f2f2f5;   /* Normale Schrift */
    --text-muted:    #9a9aab;   /* Unwichtigere Schrift */

    --accent:        #ff5230;   /* Deine Hauptfarbe */
    --accent-2:      #ff9345;   /* Zweite Farbe fuer Verlaeufe */
    --accent-soft:   rgba(255, 82, 48, 0.12);

    --radius:        16px;      /* Wie rund die Ecken sind */
    --wrap:          1140px;    /* Maximale Breite des Inhalts */

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. GRUNDLAGEN ---------- */

/* Sorgt dafuer, dass Breite/Hoehe inkl. Innenabstand gerechnet wird.
   Ohne das wird Layout in CSS zur Hoelle. Immer drin lassen. */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;      /* Sanftes Scrollen bei Klick auf Menue */
    scroll-padding-top: 90px;     /* Damit die Navi den Titel nicht verdeckt */
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;           /* Kein seitliches Scrollen */
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1, h2, h3 {
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
}

/* "wrap" zentriert Inhalt und begrenzt die Breite */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* Farbverlauf-Text fuer hervorgehobene Woerter */
.grad {
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Link fuer Tastatur-Nutzer, normalerweise unsichtbar */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 12px 20px;
    z-index: 2000;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
}

/* Sichtbarer Rahmen wenn man mit Tab navigiert */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- 3. NAVIGATION ---------- */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(14px);          /* Milchglas-Effekt */
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}

/* Diese Klasse setzt script.js beim Scrollen dazu */
.nav.is-scrolled {
    border-bottom-color: var(--border);
    background: rgba(10, 10, 15, 0.9);
}

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

.nav__logo {
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}
.nav__logo-accent {
    color: var(--accent);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav__menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color .2s;
}
.nav__menu a:hover {
    color: var(--text);
}

/* Der Kontakt-Button in der Navi */
.nav__cta {
    background: var(--accent);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
}
.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 82, 48, .35);
}

/* Burger-Button (nur Handy) */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}
.nav__burger span {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--text);
    margin: 0 auto;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
/* Burger wird zum X wenn das Menue offen ist */
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 4. HERO ---------- */

.hero {
    position: relative;
    padding: 190px 0 110px;
    overflow: hidden;
}

/* Der farbige Schimmer im Hintergrund */
.hero__glow {
    position: absolute;
    top: -240px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    max-width: 140vw;
    background: radial-gradient(circle, rgba(255, 82, 48, .18) 0%, transparent 65%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    text-align: center;
}

.hero__eyebrow {
    display: inline-block;
    margin: 0 0 22px;
    padding: 7px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero__title {
    font-size: clamp(38px, 7vw, 74px);   /* Waechst mit der Bildschirmbreite */
    font-weight: 800;
    margin-bottom: 26px;
}

.hero__text {
    max-width: 620px;
    margin: 0 auto 38px;
    color: var(--text-muted);
    font-size: clamp(16px, 2vw, 19px);
}

.hero__buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: clamp(28px, 7vw, 72px);
    margin-top: 78px;
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat__num {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.stat__label {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------- 5. BUTTONS ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border: 1px solid transparent;
    border-radius: 100px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}

.btn--primary {
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    color: #fff;
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 82, 48, .38);
}

.btn--ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
.btn--ghost:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

/* ---------- 6. ABSCHNITTE ---------- */

.section {
    padding: 110px 0;
}
.section--alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.section__title {
    font-size: clamp(30px, 4.6vw, 46px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section__lead {
    max-width: 620px;
    margin: 0 0 56px;
    color: var(--text-muted);
    font-size: 18px;
}

/* ---------- 7. LEISTUNGS-KARTEN ---------- */

.cards {
    display: grid;
    /* auto-fit + minmax = automatisch 1, 2 oder 3 Spalten je nach Platz.
       Du musst dich um Handy/Tablet/PC nicht extra kuemmern. */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: transform .3s, border-color .3s, background .3s;
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    background: var(--surface-hover);
}

.card__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 24px;
}
.card__icon svg {
    width: 27px;
    height: 27px;
}

.card__title {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card__text {
    color: var(--text-muted);
    margin: 0 0 22px;
    font-size: 16px;
}

.card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}
.card__list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-muted);
}
/* Der kleine Haken vor jedem Listenpunkt */
.card__list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* ---------- 8. PROJEKTE ---------- */

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 26px;
}

.project {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s, border-color .3s;
}
.project:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.project__media {
    aspect-ratio: 16 / 10;      /* Immer gleiches Seitenverhaeltnis */
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.project__img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Bild fuellt den Rahmen ohne zu verzerren */
    transition: transform .5s;
}
.project:hover .project__img {
    transform: scale(1.05);
}

/* Platzhalter solange kein Bild da ist */
.project__ph {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        repeating-linear-gradient(
            45deg,
            transparent 0 12px,
            rgba(255, 255, 255, .02) 12px 24px
        );
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.project__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.tag {
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

.project__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.project__text {
    color: var(--text-muted);
    font-size: 15.5px;
    margin: 0 0 22px;
    flex: 1;                    /* Schiebt den Link nach unten */
}

.project__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    align-self: flex-start;
}
.project__link svg {
    width: 16px;
    height: 16px;
    transition: transform .2s;
}
.project__link:hover svg {
    transform: translate(3px, -3px);
}

/* ---------- 9. UEBER MICH ---------- */

.about {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__text p {
    color: var(--text-muted);
    margin: 0 0 18px;
}

.about__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
.skill {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
}

.about__media {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about__ph {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 30%, var(--accent-soft), transparent 60%),
        var(--surface);
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ---------- 10. KONTAKT ---------- */

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.contact__card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 28px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform .3s, border-color .3s, background .3s;
}
.contact__card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: var(--surface-hover);
}

.contact__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 16px;
}
.contact__icon svg {
    width: 21px;
    height: 21px;
}

.contact__label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
}
.contact__value {
    font-weight: 600;
    font-size: 16px;
    word-break: break-word;     /* Lange Mails brechen um statt rauszuragen */
}

.contact__cta {
    margin-top: 52px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}
.contact__cta p {
    margin: 0 0 20px;
    color: var(--text-muted);
}

/* Die "Kopiert!"-Meldung - standardmaessig unsichtbar */
.contact__feedback {
    margin: 18px 0 0 !important;
    color: #4ade80 !important;
    font-weight: 600;
    opacity: 0;
    transition: opacity .35s;
}
.contact__feedback.is-visible {
    opacity: 1;
}

/* ---------- 11. FUSSZEILE ---------- */

.footer {
    border-top: 1px solid var(--border);
    padding: 46px 0;
    background: var(--bg);
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}
.footer__logo {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 4px;
}
.footer__small {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}
.footer__links {
    display: flex;
    gap: 26px;
}
.footer__links a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
}
.footer__links a:hover {
    color: var(--accent);
}

/* ---------- 12. RECHTS-SEITEN (Impressum / Datenschutz) ---------- */

.legal {
    padding: 160px 0 100px;
}
.legal h1 {
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 800;
    margin-bottom: 36px;
}
.legal h2 {
    font-size: 21px;
    font-weight: 700;
    margin: 42px 0 12px;
}
.legal h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 26px 0 8px;
}
.legal p,
.legal li {
    color: var(--text-muted);
    margin: 0 0 12px;
}
.legal ul {
    padding-left: 22px;
}
.legal a {
    color: var(--accent);
}
.legal__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
}
.legal__back:hover {
    color: var(--accent);
}
/* Gelber Kasten fuer "hier musst du noch was eintragen" */
.legal__todo {
    border: 1px dashed #eab308;
    background: rgba(234, 179, 8, .08);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 20px 0;
}
.legal__todo p {
    color: #eab308;
    margin: 0;
    font-size: 15px;
}

/* ---------- 13. EINBLEND-ANIMATION ---------- */

/* Elemente mit class="reveal" starten unsichtbar und leicht nach unten
   versetzt. script.js gibt ihnen "is-visible" wenn sie ins Bild scrollen. */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- 14. HANDY UND TABLET ---------- */

/* Alles hier drin gilt NUR bei Bildschirmen schmaler als 900px */
@media (max-width: 900px) {

    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about__media {
        max-width: 340px;
        order: -1;              /* Foto ueber den Text schieben */
    }

    /* Menue wird zum Ausklapp-Panel */
    .nav__burger {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 28px;
        background: rgba(10, 10, 15, .98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);

        /* Standardmaessig zugeklappt */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity .28s, transform .28s, visibility .28s;
    }
    .nav__menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav__menu a {
        padding: 15px 0;
        font-size: 17px;
        border-bottom: 1px solid var(--border);
    }
    .nav__cta {
        margin-top: 18px;
        border-bottom: 0 !important;
        text-align: center;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }
    .hero {
        padding: 150px 0 80px;
    }
    .section {
        padding: 80px 0;
    }
    .hero__buttons .btn {
        width: 100%;
    }
    .contact__cta {
        padding: 30px 22px;
    }
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- 15. BARRIEREFREIHEIT ---------- */

/* Wenn jemand am Betriebssystem "weniger Animationen" eingestellt hat,
   schalten wir alle Bewegungen ab. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
