/* styles_def.css */

/* Neue Layout-Basis fuer def/ nach Vorbild von src/def/whoishe-lebenslauf.htm.
   Wird NACH base.css/style.css geladen und ueberlagert diese schrittweise.
   Nur fuer def/ – base.css und style_gew.css bleiben unberuehrt. */

:root {
    --ink: #17233b;
    --muted: #5d6b82;
    --paper: #f6f7fb;
    --card: rgba(255, 255, 255, .92);
    --blue: #4145c1;
    --cyan: #80d8ff;
    --accent: #fbf076;
    --line: #dce2ee;
    --shadow: 0 18px 50px rgba(20, 28, 72, .15);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Arial, sans-serif;
    line-height: 1.55;
    background: linear-gradient(145deg, #30369f 0%, #8f99b2 44%, #d6d9df 100%);
    background-attachment: fixed;
}

a {
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:link,
a:visited {
    color: var(--blue);
}

a:hover {
    color: #1c2188;
}

a:active {
    color: #1c2188;
}

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ------------------------------------------------------------
   Schritt 2: Shell (Karten-Rahmen) + Header/Hero + Navbar
   Der Wrapper <div class="shell"> oeffnet sich im Fragment
   def/header.htm und schliesst sich im Fragment def/footer.htm.
   ------------------------------------------------------------ */

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 40px;
}

#header {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 26px 26px 16px 16px;
    background: linear-gradient(120deg, rgba(21, 28, 80, .97), rgba(65, 69, 193, .94));
    box-shadow: var(--shadow);
}

#header:after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    top: -160px;
    border: 70px solid rgba(128, 216, 255, .14);
    border-radius: 50%;
}

#header > header {
    position: relative;
    padding: 40px clamp(24px, 5vw, 70px) 30px;
    text-align: left;
}

#header .global-title {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 780px;
    color: #fff;
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    line-height: .98;
    letter-spacing: -.06em;
    text-align: left;
    text-shadow: none;
    font-weight: bold;
}

#header .hero-role {
    position: relative;
    z-index: 1;
    margin: 20px 0 0;
    max-width: 700px;
    color: #e8edff;
    font-size: 1.15rem;
}

#header .hero-note {
    position: relative;
    z-index: 1;
    margin: 25px 0 0;
    max-width: 680px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
    color: #fff;
}

#header .navbar {
    display: block;
    background: #252a3a;
    padding: 13px 22px;
    border-radius: 0 0 16px 16px;
}

#header .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#header .nav-links li {
    margin: 0;
}

#header .nav-links a {
    display: block;
    padding: 8px 13px;
    border-radius: 7px;
    color: #fff;
    background: transparent;
    text-decoration: none;
    font-size: .92rem;
    font-weight: normal;
    transition: background-color .3s ease;
}

#header .nav-links a:hover,
#header .nav-links a:focus-visible {
    background: #5d6071;
    color: var(--accent);
    outline: none;
}

#header .nav-links .shortcut-hint {
    color: #aeb9d9;
    font-size: .8rem;
}

@media (max-width: 800px) {
    .shell {
        width: min(100% - 18px, 1180px);
        margin: 9px auto 20px;
    }
    #header > header {
        padding: 34px 24px 28px;
    }
    #header .navbar {
        padding: 11px 14px;
    }
}

#content {
    width: 100%;
    max-width: none;
    padding: 28px;
    background: rgba(245, 247, 252, .8);
}

@media (max-width: 800px) {
    #content {
        padding: 18px;
    }
}

#footer {
    padding: 24px 30px 30px;
    background: #202536;
    color: #dce2ee;
    text-align: center;
    border-radius: 0 0 18px 18px;
}

#footer .footer_link-right {
    text-align: center;
}

#footer a:link,
#footer a:visited {
    color: var(--cyan);
}

#footer a:hover,
#footer a:focus-visible {
    color: var(--accent);
}

#footer .shortcut-hint {
    color: #9fabc9;
}

#footer .button-link-small {
    background: transparent;
    color: var(--cyan);
    font-weight: normal;
}

#footer hr.footer_hr {
    height: 5px;
    margin: 0 0 20px;
    border: none;
    border-radius: 2px;
    background: #b7c0a0;
}

body:not(.legal-plain) #content h2 {
    margin: 0 0 20px;
    font-size: 1.7rem;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 11px;
}

body:not(.legal-plain) #content h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 11px;
}

body:not(.legal-plain) #content h2:before {
    content: "";
    display: inline-block;
    flex: none;
    width: 10px;
    height: 28px;
    border-radius: 2px;
    background: var(--accent);
}

#content .item-box {
    width: min(450px, 100%);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 8px 25px rgba(20, 28, 72, .08);
}

#content .theme-list-with-img li {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 8px 25px rgba(20, 28, 72, .08);
}

a.button-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--blue);
    color: #fff;
    text-decoration: none;
    border-radius: 7px;
    border: none;
    font-weight: normal;
    text-align: center;
}

a.button-link-small {
    display: inline-block;
    padding: 2px 5px;
    background-color: var(--blue);
    color: #fff;
    text-decoration: none;
    border-radius: 7px;
    border: none;
    font-weight: normal;
    text-align: center;
}

@media print {
    body {
        background: #fff;
    }
    .shell {
        width: 100%;
        margin: 0;
    }
    #header {
        box-shadow: none;
    }
    #header .navbar {
        display: none;
    }
    #content {
        padding: 0;
        background: #fff;
    }
    #footer {
        border-radius: 0;
    }
    #content .item-box,
    #content .theme-list-with-img li {
        box-shadow: none;
        border: 1px solid #ccd2df;
    }
}

p,
li {
    font-size: 1em;
}

a img {
    border: none;
}

.mobile .shortcut-hint {
    display: none;
}

.shortcut-hint {
    display: inline;
}

.box-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 75px;
    max-width: 100%;
}

.item-box {
    width: 450px;
    height: 320px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
    opacity: 1;
}

.box-piece {
    left: 2px;
    top: 2px;
    width: 100%;
    height: 100%;
    position: absolute;
}

.box-title {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    text-align: center;
    margin: 0;
    color: #333;
    padding: 5px;
    z-index: 10;
    opacity: 1;
}

#content img:not(.box-piece) {
    float: right;
    margin-left: 20px;
    max-width: 40%;
    height: auto;
}

#content::after {
    content: "";
    display: block;
    clear: both;
}

#content p:last-child {
    position: relative;
}

#content p:last-child::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(40% + 20px);
    height: 1px;
}

.theme-list-with-img {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 768px;
}

.theme-list-with-img li {
    margin: 10px 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, #f0f0f0, #fafafa);
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s;
}

.theme-list-with-img li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.theme-list-with-img a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.theme-list-with-img img {
    width: 70px;
    height: 50px;
    margin-right: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
}

.theme-list-with-img .text {
    flex-grow: 1;
    font-weight: bold;
    font-family: Arial, sans-serif;
    color: #444;
}

.theme-list-with-img a:hover .text {
    color: #0d6efd;
}

.footer_copyright {
    margin-top: 30px;
}

/* ------------------------------------------------------------
   whoishe.htm (Lebenslauf-Layout, hartkodiert Deutsch)
   Entspricht dem Design von whoishe-lebenslauf.htm; der Eyebrow
   sitzt im Content (als h1), Farbe --blue statt --cyan wegen des
   hellen Karten-Hintergrunds (im Original stand er auf dunklem Hero).
   ------------------------------------------------------------ */

.skip {
    position: absolute;
    left: -10000px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10;
    background: #fff;
    padding: .7rem 1rem;
}

#content.cv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr);
    gap: 24px;
}

#content .eyebrow {
    margin: 0 0 16px;
    color: var(--blue);
    font-size: .85rem;
    line-height: 1.4;
    text-align: left;
    font-weight: bold;
    letter-spacing: .18em;
    text-transform: uppercase;
}

#content .panel {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 18px;
    padding: 27px 30px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(20, 28, 72, .08);
}

#content .profile {
    font-size: 1.1rem;
}

#content .badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

#content .badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8edff;
    color: #2932a0;
    font-size: .82rem;
    font-weight: bold;
}

#content .timeline {
    display: grid;
    gap: 19px;
}

#content .role {
    position: relative;
    padding: 0 0 0 20px;
    border-left: 3px solid #cbd2fa;
}

#content .role:before {
    content: "";
    position: absolute;
    left: -8px;
    top: 3px;
    width: 11px;
    height: 11px;
    background: var(--cyan);
    border: 3px solid var(--blue);
    border-radius: 50%;
}

#content .role h3 {
    margin-bottom: 7px;
    line-height: 1.3;
}

#content .role .period {
    display: block;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: .84rem;
    font-weight: bold;
    letter-spacing: .05em;
    text-transform: uppercase;
}

#content .role ul {
    padding-left: 19px;
}

#content .role .tech {
    margin-top: 8px;
    font-size: .9rem;
    color: var(--muted);
}

#content .skill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#content .skill {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafbff;
}

#content .skill strong {
    display: block;
    margin-bottom: 5px;
    color: var(--blue);
}

#content aside {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#content .side-card {
    background: rgba(23, 35, 59, .95);
    color: #fff;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

#content .side-card h2 {
    color: #fff;
    font-size: 1.25rem;
}

#content .side-card h2:before {
    background: var(--cyan);
}

#content .side-card a {
    color: var(--cyan);
}

#content .side-card a:hover,
#content .side-card a:focus-visible {
    color: var(--accent);
}

#content .contact-line {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

#content .contact-line:last-child {
    border-bottom: 0;
}

#content .contact-label {
    display: block;
    color: #aeb9d9;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

#content .notice {
    border-left: 4px solid var(--accent);
    padding: 12px 14px;
    background: #fff9cf;
    color: #35405a;
    border-radius: 0 10px 10px 0;
    font-size: .93rem;
}

@media (max-width: 800px) {
    #content.cv-layout {
        grid-template-columns: 1fr;
    }
    #content .panel {
        padding: 22px;
    }
    #content .skill-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    #content.cv-layout {
        grid-template-columns: 1.5fr .8fr;
    }
    #content .panel,
    #content .side-card {
        box-shadow: none;
        border: 1px solid #ccd2df;
    }
}

/* ------------------------------------------------------------
   CV-Typografie: Erfahrung und Eigenprojekte an die kompakte
   Darstellung der Kompetenz-Kacheln angleichen.
   ------------------------------------------------------------ */

body:not(.legal-plain) #content #erfahrung h2,
body:not(.legal-plain) #content #projekte h2 {
    font-size: 1.25rem;
}

#content #erfahrung .role h3 {
    font-size: 1rem;
}

#content #erfahrung .role ul,
#content #projekte > ul {
    font-size: .9rem;
}

#content #projekte > p {
    font-size: .9rem;
}

@media print {
    /* Header (einschließlich Navigation) und der vollständige Footer
       gehören nicht in den Ausdruck. */
    #header,
    #footer {
        display: none;
    }

    /* 70 % der normalen rem-basierten Schriftgrößen. */
    html {
        font-size: 80%;
    }

    body {
        font-size: 1rem;
    }

    #content.cv-layout {
        grid-template-columns: 1.5fr .8fr;
    }

    #content .panel,
    #content .side-card {
        box-shadow: none;
        border: 1px solid #ccd2df;
    }

    body:not(.legal-plain) #content h2:before {
        display: none;
    }    

    body:not(.legal-plain) #content h2 {
        display: block;
        gap: 0;
    }
}
