
/* ==========================================================
   NEO THEISSL – EDITORIAL PORTFOLIO
   ==========================================================
   Beschreibung:
   Stylesheet für ein responsives Portfolio.

   Aufbau:
   01. Globale Variablen
   02. Reset & Grundeinstellungen
   03. Header & Navigation
   04. Hero-Bereich
   05. Sprachauswahl
   06. Über mich
   07. Fähigkeiten
   08. Projekte
   09. Kontakt
   10. Responsive Design

   Keine externen Schriftarten erforderlich.
   ========================================================== */


/* ==========================================================
   01. GLOBALE VARIABLEN
   ========================================================== */

:root {
    /* Farbpalette */
    --black: #172b29;
    --white: #fafbf8;
    --turquoise: #087c70;
    --muted: #62716c;
    --line: #dce4dd;
    --surface: #edf2eb;

    /* Allgemeine Gestaltung */
    --radius: 22px;
}


/* ==========================================================
   02. RESET & GRUNDEINSTELLUNGEN
   ========================================================== */

/* Standardabstände entfernen und Box-Modell vereinheitlichen */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Weiches Scrollen bei Ankerlinks */
html {
    scroll-behavior: smooth;
}

/* Grundlayout und Standardschrift */
body {
    min-height: 100vh;
    background: var(--white);
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Links übernehmen die Textfarbe */
a {
    color: inherit;
}

/* Buttons übernehmen die Schriftart */
button {
    font: inherit;
}

/* Farbe für markierten Text */
::selection {
    background: #c9e8db;
}

/* Sichtbarer Fokus für Tastaturbedienung */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--turquoise);
    outline-offset: 5px;
}

/* Bilder bleiben innerhalb ihres Containers */
img {
    display: block;
    max-width: 100%;
}


/* ==========================================================
   03. HEADER & NAVIGATION
   ========================================================== */

/* Hauptheader mit Logo und Navigation */
.site-header {
    width: min(1240px, 90%);
    margin: auto;
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    border-bottom: 1px solid var(--line);
}

/* Logo */
.logo {
    text-decoration: none;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.7px;
    white-space: nowrap;
}

/* Untertitel des Logos */
.logo small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--muted);
}

/* Navigationsleiste */
.main-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Einzelne Navigationslinks */
.main-nav a {
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.6px;
    font-weight: 700;

    padding: 11px 15px;
    border-radius: 30px;

    transition: background 0.2s, color 0.2s;
}

/* Hover-Effekt der Navigation */
.main-nav a:hover {
    background: var(--surface);
}

/* Aktuell aktive Seite */
.main-nav a.active {
    color: var(--turquoise);
    background: #e0eee6;
}

/* Barrierefreier Link zum Hauptinhalt */
.skip-link {
    position: absolute;
    left: 20px;
    top: -80px;
    z-index: 10;

    background: var(--black);
    color: white;
    padding: 12px;
}

/* Skip-Link bei Tastaturfokus sichtbar machen */
.skip-link:focus {
    top: 12px;
}


/* ==========================================================
   04. HERO-BEREICH / STARTSEITE
   ========================================================== */

/* Zweispaltiges Layout für Text und Portrait */
.hero {
    flex: 1;
    width: min(1240px, 90%);
    margin: auto;

    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;

    padding: 75px 0;
}

/* Kleine Überschrift über dem Haupttitel */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--turquoise);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 25px;
}

/* Dekorative Linie vor der kleinen Überschrift */
.eyebrow::before {
    content: '';
    width: 25px;
    height: 2px;
    background: var(--turquoise);
}

/* Große Hauptüberschrift */
.hero-content h1 {
    font-size: clamp(58px, 6.8vw, 96px);
    font-weight: 800;
    letter-spacing: -5px;
    line-height: 1.02;

    margin-bottom: 28px;
}

/* Farbige zweite Zeile der Überschrift */
.hero-content h1 span {
    display: block;
    color: var(--turquoise);
}

/* Beschreibungstext */
.hero-content p {
    max-width: 540px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--muted);

    margin-bottom: 16px;
}

/* Hervorgehobene Wörter innerhalb des Textes */
.hero-content p span {
    color: var(--black);
    font-weight: 700;
}

/* Container für Call-to-Action-Buttons */
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: 32px;
}

/* Allgemeiner Button */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    padding: 14px 23px;
    border: 1px solid var(--line);
    border-radius: 8px;

    text-decoration: none;
    font-size: 13px;
    font-weight: 700;

    transition: transform 0.2s, background 0.2s;
}

/* Primärer Button mit türkisem Hintergrund */
.button-primary {
    background: var(--turquoise);
    border-color: var(--turquoise);
    color: white;
}

/* Hover-Animation für normale Buttons */
.button:hover {
    transform: translateY(-3px);
    background: #e4ece5;
}

/* Hover-Farbe des primären Buttons */
.button-primary:hover {
    background: #06675d;
}


/* ----------------------------------------------------------
   HERO – PORTRAITBILD
   ---------------------------------------------------------- */

/* Äußerer Bildcontainer */
.hero-image {
    position: relative;
    padding: 28px 28px 0 0;
}

/* Dekorativer Hintergrund hinter dem Bild */
.hero-image::before {
    content: '';
    position: absolute;
    inset: 0 0 28px 28px;

    background: #e0eadd;
    border-radius: 110px 22px 22px 22px;
}

/* Eigentliches Portrait */
.hero-image img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;

    border-radius: 110px 18px 18px 18px;
    filter: saturate(0.85);
}

/* Beschriftung unter dem Portrait */
.portrait-caption {
    position: relative;

    display: flex;
    justify-content: space-between;
    gap: 10px;

    padding: 18px 0;

    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Erster Teil der Bildbeschriftung */
.portrait-caption span:first-child {
    color: var(--black);
    font-weight: 700;
}


/* ==========================================================
   05. SPRACHAUSWAHL / FOOTER
   ========================================================== */

/* Sprachumschalter am unteren Seitenbereich */
.language-switcher {
    width: min(1240px, 90%);
    margin: 0 auto;
    padding: 23px 0;

    display: flex;
    align-items: center;
    gap: 14px;

    border-top: 1px solid var(--line);

    font-size: 12px;
    font-weight: 700;
}

/* Automatischer Portfolio-Schriftzug links */
.language-switcher::before {
    content: 'NEO THEIßL / PORTFOLIO';

    margin-right: auto;

    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
}

/* Sprachlinks */
.language-switcher a {
    text-decoration: none;
    padding: 5px 7px;
}

/* Aktive Sprache und Hover-Zustand */
.language-switcher a:hover,
.language-switcher .active-language {
    color: var(--turquoise);
}

/* Trennzeichen zwischen den Sprachen */
.language-switcher span {
    color: var(--line);
}


/* ==========================================================
   06. ÜBER MICH
   ========================================================== */

/* Gemeinsames Seitenlayout für About und Kontakt */
.about,
.contact {
    flex: 1;
    width: min(1100px, 90%);
    margin: auto;
    padding: 70px 0;
}

/* Allgemeine Seitenüberschrift */
.page-heading {
    font-size: clamp(40px, 5vw, 68px);
    letter-spacing: -2px;
    line-height: 1.1;

    margin-bottom: 38px;
}

/* Maximale Breite des About-Textes */
.about-content {
    max-width: 850px;
}

/* Normale Absätze */
.about-content p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 25px;
    color: var(--muted);
    text-transform: none;
}

/* Erster Absatz wird stärker hervorgehoben */
.about-content p:first-of-type {
    font-size: 20px;
    color: var(--black);
}

/* Farbige Hervorhebungen */
.about-content span {
    color: var(--turquoise);
    font-weight: 700;
}


/* ==========================================================
   07. FÄHIGKEITEN / SKILLS
   ========================================================== */

/* Zweispaltiges Raster für Skill-Kategorien */
.skills {
    flex: 1;
    width: min(1240px, 90%);
    margin: auto;
    padding: 60px 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
}

/* Überschriften der Skill-Bereiche */
.skills-title {
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 1.2;

    padding-bottom: 20px;
    color: var(--turquoise);
}

/* Einzelne Skill-Karte */
.skill-item {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
}

/* Titel einer Fähigkeit */
.skill-item h2 {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}

/* Container für Tools und Projekt-Tags */
.skill-tools,
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-bottom: 18px;
}

/* Kleine Labels für Technologien und Tools */
.skill-tools span,
.project-tags span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;

    color: var(--turquoise);
    background: #e8f1eb;

    border-radius: 5px;
    padding: 5px 9px;
}

/* Beschreibung einer Fähigkeit */
.skill-item p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}


/* ==========================================================
   08. PROJEKTE / PORTFOLIO
   ========================================================== */

/* Hauptcontainer mit linker und rechter Navigation */
.projects {
    flex: 1;
    width: min(1320px, 94%);
    margin: auto;
    padding: 60px 0;

    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 18px;
    align-items: center;
}

/* Karte mit Projektbild und Beschreibung */
.project-card {
    display: grid;
    grid-template-columns: 42% 58%;

    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;

    background: white;
}


/* ----------------------------------------------------------
   PROJEKTE – BILDBEREICH
   ---------------------------------------------------------- */

/* Container für das Projektbild */
.project-image {
    background: var(--surface);

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    padding: 24px;
}

/* Standarddarstellung des Projektbildes */
.project-image img {
    width: 100%;
    height: 100%;
    max-height: 560px;

    object-fit: contain;
    border-radius: 10px;
}

/* Bild füllt den gesamten verfügbaren Bereich */
.project-image img.cover {
    object-fit: cover;
}

/* Bild wird vollständig ohne Beschneiden dargestellt */
.project-image img.contain {
    object-fit: contain;
}

/* Weicher Übergang beim Wechsel des Bildinhalts */
.project-image-content {
    transition: opacity 0.2s;
}

/* Bild während des Ladevorgangs ausblenden */
.project-image-content.is-loading {
    opacity: 0;
}


/* ----------------------------------------------------------
   PROJEKTE – INFORMATIONSBEREICH
   ---------------------------------------------------------- */

/* Äußerer Informationscontainer */
.project-info {
    min-width: 0;
}

/* Scrollbarer Bereich für längere Projektbeschreibungen */
.project-info-scroll {
    height: 580px;
    overflow-y: auto;
    padding: 40px;

    scrollbar-width: thin;
    scrollbar-color: var(--turquoise) transparent;
}

/* Projektname */
.project-info-scroll h1 {
    font-size: 34px;
    letter-spacing: -1px;
    line-height: 1.15;

    margin-bottom: 20px;
}

/* Einzelner Abschnitt innerhalb der Projektbeschreibung */
.project-section {
    margin-bottom: 25px;
}

/* Abschnittsüberschrift inklusive optionalem Link */
.project-section-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 9px;
}

/* Abschnittstitel */
.project-section h2 {
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--turquoise);
}

/* Links innerhalb von Projektabschnitten */
.project-section a {
    font-size: 11px;
    text-underline-offset: 4px;
}

/* Projektbeschreibung */
.project-section p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
}


/* ----------------------------------------------------------
   PROJEKTE – NAVIGATION
   ---------------------------------------------------------- */

/* Runde Pfeilbuttons zum Projektwechsel */
.project-arrow {
    width: 48px;
    height: 48px;

    border: 1px solid var(--line);
    border-radius: 50%;

    background: white;
    color: var(--turquoise);
    font-size: 18px;

    cursor: pointer;
    transition: background 0.2s;
}

/* Hover-Effekt der Projektpfeile */
.project-arrow:hover {
    background: #e0eee6;
}

/* Anzeige der aktuellen Projektnummer */
.project-counter {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--muted);

    margin-bottom: 16px;
}


/* ==========================================================
   09. KONTAKT
   ========================================================== */

/* Maximale Breite des Kontaktbereichs */
.contact-content {
    max-width: 1000px;
}

/* Große Kontaktüberschrift */
.contact-content h1 {
    font-size: clamp(42px, 6vw, 80px);
    letter-spacing: -3px;
    line-height: 1.1;

    max-width: 900px;
    margin-bottom: 30px;

    color: var(--turquoise);
}

/* Einleitungstext */
.contact-intro {
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted);

    max-width: 720px;
    margin-bottom: 40px;
}

/* Zweispaltiges Layout für Kontaktmöglichkeiten */
.contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Einzelne Kontaktkarte */
.contact-item {
    padding: 28px;

    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;

    min-width: 0;
}

/* Beschriftung einer Kontaktmöglichkeit */
.contact-label {
    display: block;

    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;

    margin-bottom: 12px;
}

/* Kontaktlink, beispielsweise E-Mail-Adresse */
.contact-item a {
    font-size: clamp(15px, 2vw, 25px);
    font-weight: 700;
    text-decoration: none;

    overflow-wrap: anywhere;
}

/* Farbwechsel beim Überfahren eines Kontaktlinks */
.contact-item a:hover {
    color: var(--turquoise);
}


/* ==========================================================
   10. RESPONSIVE DESIGN
   ========================================================== */


/* ----------------------------------------------------------
   DESKTOP: AB 761px
   ----------------------------------------------------------
   Beide Skill-Überschriften stehen nebeneinander
   in der ersten Zeile des Rasters.
   ---------------------------------------------------------- */

@media (min-width: 761px) {

    /* Linke Überschrift */
    .skills-title-left {
        grid-column: 1;
        grid-row: 1;
    }

    /* Rechte Überschrift */
    .skills-title-right {
        grid-column: 2;
        grid-row: 1;
    }
}


/* ----------------------------------------------------------
   TABLET / KLEINERE DESKTOPS: BIS 1000px
   ----------------------------------------------------------
   Abstände und Schriftgrößen werden reduziert.
   Kontaktkarten erscheinen untereinander.
   ---------------------------------------------------------- */

@media (max-width: 1000px) {

    /* Header kompakter gestalten */
    .site-header {
        padding: 20px 0;
        gap: 20px;
    }

    /* Kleinere Navigationslinks */
    .main-nav a {
        padding: 9px;
        font-size: 11px;
    }

    /* Hero-Abstände reduzieren */
    .hero {
        gap: 40px;
        padding: 55px 0;
    }

    /* Zeichenabstand der Hauptüberschrift anpassen */
    .hero-content h1 {
        letter-spacing: -3px;
    }

    /* Weniger Innenabstand im Projektbereich */
    .project-info-scroll {
        padding: 26px;
    }

    /* Kontaktkarten einspaltig darstellen */
    .contact-links {
        grid-template-columns: 1fr;
    }
}


/* ----------------------------------------------------------
   SMARTPHONE: BIS 760px
   ----------------------------------------------------------
   Umstellung auf einspaltige Layouts.
   Navigation, Bilder und Texte passen sich
   kleineren Displays an.
   ---------------------------------------------------------- */

@media (max-width: 760px) {

    /* Header vertikal anordnen */
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    /* Navigation über die gesamte Breite */
    .main-nav {
        width: 100%;
        gap: 4px;
    }

    /* Kompakte Navigationslinks */
    .main-nav a {
        padding: 9px 10px;
        font-size: 10px;
    }


    /* ------------------------------------------------------
       MOBILE – HERO
       ------------------------------------------------------ */

    /* Text und Bild untereinander anordnen */
    .hero {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 45px 0;
    }

    /* Hauptüberschrift verkleinern */
    .hero-content h1 {
        font-size: 64px;
    }

    /* Beschreibungstext anpassen */
    .hero-content p {
        font-size: 16px;
    }

    /* Portrait zentrieren und Breite begrenzen */
    .hero-image {
        max-width: 440px;
        width: 100%;
        justify-self: center;
    }

    /* Quadratisches Portraitformat */
    .hero-image img {
        aspect-ratio: 1 / 1;
    }


    /* ------------------------------------------------------
       MOBILE – SKILLS
       ------------------------------------------------------ */

    /* Skills untereinander anzeigen */
    .skills {
        grid-template-columns: 1fr;
        padding: 40px 0;
        gap: 16px;
    }

    /* Erste Kategorieüberschrift */
    .skills-title-left {
        order: 0;
    }

    /* Ungerade Skill-Karten */
    .skill-item:nth-child(odd) {
        order: 1;
    }

    /* Zweite Kategorieüberschrift */
    .skills-title-right {
        order: 2;
        margin-top: 24px;
    }

    /* Gerade Skill-Karten */
    .skill-item:nth-child(even) {
        order: 3;
    }

    /* Kleinere Überschriften */
    .skills-title {
        font-size: 26px;
    }

    /* Kompaktere Karten */
    .skill-item {
        padding: 24px;
    }


    /* ------------------------------------------------------
       MOBILE – PROJEKTE
       ------------------------------------------------------ */

    /* Zweispaltiges Raster für Navigationspfeile */
    .projects {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 35px 0;
    }

    /* Projektkarte über beide Spalten */
    .project-card {
        grid-column: 1 / -1;
        grid-row: 1;
        grid-template-columns: 1fr;
    }

    /* Kleinere Bildhöhe */
    .project-image {
        height: 290px;
    }

    /* Projektbeschreibung ohne feste Scrollhöhe */
    .project-info-scroll {
        height: auto;
        max-height: none;
        padding: 25px;
    }

    /* Rechten Navigationspfeil rechts positionieren */
    .project-arrow-right {
        justify-self: end;
    }

    /* Projektüberschrift verkleinern */
    .project-info-scroll h1 {
        font-size: 29px;
    }


    /* ------------------------------------------------------
       MOBILE – ÜBER MICH & KONTAKT
       ------------------------------------------------------ */

    /* Vertikale Seitenabstände reduzieren */
    .about,
    .contact {
        padding: 45px 0;
    }

    /* Einleitungsabsatz verkleinern */
    .about-content p:first-of-type {
        font-size: 17px;
    }

    /* Allgemeine Textgröße reduzieren */
    .about-content p {
        font-size: 14px;
    }

    /* Zeichenabstand der Kontaktüberschrift */
    .contact-content h1 {
        letter-spacing: -2px;
    }


    /* ------------------------------------------------------
       MOBILE – SONSTIGE ANPASSUNGEN
       ------------------------------------------------------ */

    /* Kleinerer Portfolio-Schriftzug */
    .language-switcher::before {
        font-size: 8px;
    }

    /* Kleinere Portraitbeschriftung */
    .portrait-caption {
        font-size: 9px;
    }
}
