/* Fonts werden über <link> im HTML geladen */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg: #d9d9d9;
    --card-bg: #c8c8c8;
    --text: #1a1a1a;
    --text-muted: #555;
    --border: #aaa;
    --header-bg: #d9d9d9;
    --accent: #1a1a1a;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.12);
    --hover-bg: rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ── HEADER / NAV ── */
header {
    margin: 0;
    padding: 12px 40px 12px 20px;
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.codedby {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-item a {
    display: inline-block;
    text-decoration: none;
    font-family: 'Inter', 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    padding: 6px 14px;
    border-radius: 30px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-item a:hover {
    background: var(--hover-bg);
}

#Dark {
    cursor: pointer;
    display: flex;
    align-items: center;
}

#Dark img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

#Dark:hover img { transform: rotate(20deg); }

/* ── HERO / HOME ── */
.HomeAbout {
    font-family: 'Inter', 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 900;
    text-align: center;
    padding: 60px 60px 20px 60px;
}

.HeybisName {
    margin-right: 116px;
}

.Homename {
    font-size: 80px;
    font-weight: 900;
}

.Homehey {
    font-weight: 200;
    font-size: 96px;
}

.Homeib {
    font-size: 56px;
    font-weight: 200;
}

.Leerzeichen {
    color: var(--bg);
}

.HomeiB {
    font-size: 56px;
    font-weight: 200;
    padding-left: 180px;
    width: 100%;
}

.Videospiel { color: #32A116; font-weight: 900; font-size: 86px; padding-right: 16px; }
.Java       { color: #A94C98; font-weight: 900; font-size: 86px; padding-left: 16px; }
.Html       { color: #DB7024; font-weight: 900; font-size: 86px; }
.CSS        { color: #E4B10A; font-weight: 900; font-size: 86px; margin-left: 10px; }

/* ── PROJEKTE ── */
.ProjektHeadline {
    font-size: clamp(80px, 14vw, 180px);
    font-family: 'Inter', 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 900;
    text-align: center;
    margin: 60px 0 10px 0;
    color: var(--text);
    letter-spacing: -2px;
}

.Projekt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-items: center;
    margin: 40px auto;
    max-width: 900px;
    padding: 0 20px;
}

.Projekt-grid-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    justify-items: center;
    margin: 30px auto 50px;
    max-width: 1100px;
    padding: 0 20px;
}

.projekt-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.text-block {
    text-align: center;
    padding: 20px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card-bg);
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.text-block:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.text-block h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text);
}

.text-block p {
    margin: 0 0 12px 0;
    color: var(--text-muted);
    font-size: 0.9em;
}

.status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.status.fertig  { background-color: #048017; color: #fff; }
.status.inarbeit { background-color: #FEE42A; color: #333; }
.status.pausiert { background-color: #FF901F; color: #fff; }

/* ── SECTION TITLES ── */
.Dbi, .Psb {
    text-align: center;
    font-family: 'Inter', 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 900;
    color: var(--text);
    margin: 40px 0 10px;
}
.Dbi { font-size: clamp(48px, 8vw, 90px); }
.Psb { font-size: clamp(28px, 4vw, 46px); line-height: 1.2; padding: 0 20px; }

/* ── CONTENT SECTION (Über mich) ── */
.content-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px auto;
    padding: 30px 40px;
    max-width: 1100px;
}

.content-bild {
    width: 280px;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.text-container h2 {
    margin-top: 0;
    color: var(--text);
    font-weight: 700;
    font-size: 22px;
}

.text-container p {
    line-height: 1.7;
    color: var(--text-muted);
}

/* ── BILDUNG ── */
.Bildungbild {
    margin: 40px auto;
    padding: 0 40px;
    max-width: 1200px;
}

.Bildungbild img {
    border-radius: 12px;
    border: 2px solid var(--border);
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* ── GITHUB ── */
.github-section {
    display: flex;
    justify-content: center;
    margin: 40px 0 60px;
    padding: 0 20px;
}

.github-chart {
    width: 100%;
    max-width: 820px;
    border-radius: 10px;
    border: 2px solid var(--border);
}

/* ── SKILLS ── */
.skills-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.Sprachen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.Sprachen-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.Sprachen-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.Sprachen-icon   { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.Sprachen-iconpy { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.Sprachen-iconjar { width: 15%; height: 65px; object-fit: contain; flex-shrink: 0; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.tool-item {
    background-color: var(--card-bg);
    padding: 28px 16px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tool-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.tool-icon    { width: 72px; height: 72px; object-fit: contain; }
.tool-iconin  { width: 100%; height: 72px; object-fit: contain; }
.tool-iconfig { width: 85%; height: 72px; object-fit: contain; }

/* ── KONTAKT ── */
.Kontakt-container {
    max-width: 580px;
    margin: 50px auto;
    padding: 0 20px;
}

.Kontakt-title {
    text-align: center;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 10px;
    font-size: 2.2em;
}

.Hinweis {
    margin-top: 0;
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
}

.Hinweistext {
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 400;
    text-decoration: none;
}

.Kontakt-form {
    background-color: var(--card-bg);
    padding: 36px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.form { margin-bottom: 22px; }

.form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
}

.form input,
.form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: 'Inter', 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    background-color: var(--bg);
    color: var(--text);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form input::placeholder,
.form textarea::placeholder { color: var(--text-muted); }

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--text);
}

.form textarea { resize: vertical; min-height: 120px; }

.senden-btn {
    width: 100%;
    background-color: var(--text);
    color: var(--bg);
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.senden-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.senden-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

#form-status {
    margin-top: 14px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

/* ── FOOTER ── */
footer {
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 0;
    margin-top: 40px;
}

footer img[alt="Grauer Kasten oben abgerundet"] { width: 100%; display: block; }

footer p {
    position: absolute;
    bottom: 12px;
    left: 14px;
    color: #fff;
    margin: 0;
    padding: 4px 10px;
    font-size: 13px;
    font-family: 'Inter', 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.4;
}

.footer-links {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 16px;
    line-height: 1;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 0.6; }

.coffee-bild {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 280px;
    height: auto;
    line-height: 0;
}

/* ── IMPRESSUM / DATENSCHUTZ ── */
.Impressumm h1, .Impressumm h2 {
    color: var(--text);
    font-weight: 900;
    font-size: 22px;
    text-align: center;
}

.Impressumm p {
    color: var(--text);
    font-size: 16px;
    text-align: center;
    line-height: 1.6;
}

.Datentitel {
    color: var(--text);
    font-weight: 900;
    font-size: 32px;
    text-align: center;
    margin: 30px 0 10px;
}

.Datenlayout { display: block; max-width: 900px; margin: 0 auto; padding: 0 20px; }

.Datenlayout h1, .Datenlayout h2, .Datenlayout h3, .Datenlayout h4 {
    color: var(--text);
    font-weight: 900;
    font-size: 22px;
    text-align: center;
    margin-top: 24px;
}

.Datenlayout p, .Datenlayout li {
    color: var(--text);
    font-weight: 400;
    font-size: 15px;
    text-align: center;
    line-height: 1.7;
}

.Datenlayout a { color: var(--text); }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .HomeAbout { padding: 30px 20px; }
    .Homehey { font-size: 56px; }
    .Homeib, .HomeiB { font-size: 32px; }
    .Homename { font-size: 46px; }
    .HomeiB { padding-left: 0; }
    .Videospiel, .Java, .Html, .CSS { font-size: 52px; }
    .Projekt-grid { grid-template-columns: repeat(2, 1fr); }
    .Sprachen-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .content-section { flex-direction: column; padding: 20px; }
    header { padding: 10px 16px; }
    .nav-item a { font-size: 13px; padding: 5px 10px; }
}

@media (max-width: 480px) {
    .Projekt-grid { grid-template-columns: 1fr; }
}
