:root {
    color-scheme: dark;
    --page: #101820;
    --panel: #1c2a35;
    --panel-deep: #111b23;
    --line: #34434e;
    --text: #f4f6f8;
    --muted: #aeb9c2;
    --accent: #80c9c8;
    --accent-dark: #12262c;
    --danger: #f18a8a;
    font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
    margin: 0;
    background: radial-gradient(ellipse at top, #1b2c37 0, var(--page) 560px);
    color: var(--text);
    font-size: 18px;
    line-height: 1.65;
}
a { color: inherit; }
.site-shell {
    width: min(100% - 32px, 800px);
    margin: 18px auto 0;
}
.hero-card, .content-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgb(0 0 0 / 14%);
}
.hero-card { margin-bottom: 42px; }
.hero-portrait {
    display: block;
    width: 100%;
    aspect-ratio: 2.28 / 1;
    object-fit: cover;
    object-position: center 42%;
}
.hero-title { padding: 22px 24px 8px; text-align: center; }
.hero-title h1 {
    margin: 0;
    font-size: clamp(1.22rem, 3.3vw, 1.8rem);
    line-height: 1.25;
    letter-spacing: .04em;
    font-weight: 800;
}
.hero-content { padding: 12px 34px 30px; }
.feature-image, .employer-banner {
    display: block;
    width: 100%;
    border-radius: 22px;
}
.feature-image {
    aspect-ratio: 2.32 / 1;
    object-fit: cover;
    margin: 0 0 24px;
}
.employer-banner {
    aspect-ratio: 3 / 1;
    object-fit: contain;
    background: #fff;
    margin: 0 0 24px;
}
.photo-strip {
    display: grid;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 0;
    align-items: stretch;
}
.photo-strip img {
    display: block;
    width: 100%;
    aspect-ratio: .86 / 1;
    object-fit: cover;
    object-position: center center;
    border-radius: 5px 5px 1px 1px;
}
/* Das vierte Foto ist ein Querformat. Der Bildausschnitt wird nach links
   verschoben, damit Ingo selbst mittig und vollständig sichtbar bleibt. */
.photo-strip img.photo-fourth {
    object-position: 20% center;
}
.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 0 0 28px;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 11px 27px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-size: 1.06rem;
    font-weight: 700;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.nav-link:hover, .nav-link.active {
    border-color: var(--accent);
    color: var(--accent);
}
.content-card { padding: 42px 48px; margin-bottom: 42px; }
.content-card h1, .content-card h2, .content-card h3 { line-height: 1.25; }
.welcome-card { text-align: center; }
.welcome-card h2 {
    max-width: 640px;
    margin: 0 auto 30px;
    font-size: clamp(1.75rem, 4.5vw, 2.55rem);
    font-weight: 800;
}
.welcome-card h3 {
    margin: 0 auto 40px;
    color: var(--muted);
    font-size: clamp(1.25rem, 3.4vw, 1.8rem);
}
.story-text {
    max-width: 650px;
    margin: 0 auto 24px;
    font-size: clamp(1.02rem, 2.3vw, 1.22rem);
    line-height: 1.78;
}
.welcome-note {
    margin: 36px auto 20px;
    max-width: 620px;
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    font-weight: 800;
    line-height: 1.6;
}
.date-line { color: var(--muted); font-size: 1.08rem; font-weight: 700; margin: 22px 0 0; }
.social-card h2 { margin: 0 0 20px; font-size: clamp(1.85rem, 4.5vw, 2.55rem); }
.section-intro { color: var(--muted); font-size: 1.18rem; line-height: 1.7; margin: 0 0 34px; }
.social-list { display: grid; gap: 18px; }
.social-link {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 88px;
    padding: 18px 24px;
    background: var(--panel-deep);
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--text);
    font-size: 1.22rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease;
}
.social-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.social-link-pending { border-style: dashed; cursor: default; }
.social-link-pending:hover { border-color: var(--line); transform: none; }
.social-icon { width: 42px; text-align: center; font-size: 1.7rem; line-height: 1; }
.external-mark { margin-left: auto; color: var(--muted); font-size: .95rem; }
.social-pending-label { margin-left: auto; color: var(--muted); font-size: .82rem; font-weight: 500; text-align: right; }
.site-footer {
    padding: 0 10px 36px;
    color: var(--muted);
    text-align: center;
    font-size: 1rem;
    letter-spacing: .01em;
}

/* Kontaktseite */
.message-nav { margin-top: 34px; }
.form-card { padding-top: 42px; }
.form-card h1 { max-width: 580px; margin: 0 auto 28px; text-align: center; font-size: clamp(2rem, 5vw, 2.7rem); }
.centered { text-align: center; }
.contact-form { display: grid; gap: 13px; }
.contact-form label { display: block; margin-top: 12px; font-size: 1.16rem; font-weight: 700; }
.contact-form input:not([type="hidden"]), .contact-form textarea {
    display: block;
    width: 100%;
    min-height: 68px;
    padding: 15px 18px;
    border: 1px solid #3b4a55;
    border-radius: 17px;
    outline: none;
    background: var(--panel-deep);
    color: var(--text);
    font: inherit;
    font-size: 1.08rem;
}
.contact-form textarea { min-height: 250px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(128 201 200 / 13%); }
.send-button {
    justify-self: start;
    min-height: 66px;
    margin-top: 23px;
    padding: 14px 29px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #10232a;
    font: inherit;
    font-size: 1.12rem;
    font-weight: 800;
    cursor: pointer;
}
.send-button:hover { background: #9adad8; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 15px 18px; margin: 0 0 25px; border-radius: 14px; line-height: 1.5; }
.notice.success { border: 1px solid #4c9d84; background: #17352f; color: #b9ebd7; }
.notice.error { border: 1px solid #a95d5d; background: #3a2225; color: #ffd0d0; }

/* Geschützter Verwaltungsbereich */
.admin-shell { max-width: 800px; margin-top: 38px; }
.admin-login-card { max-width: 600px; margin: 0 auto 42px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 800; letter-spacing: .12em; text-align: center; font-size: .82rem; }
.admin-login-card h1 { text-align: center; margin: 0 0 16px; font-size: 2.3rem; }
.login-form { margin-top: 30px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-heading .eyebrow { text-align: left; }
.admin-heading h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.logout-link { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.mail-status { margin: 25px 0; padding: 13px 16px; border-radius: 12px; font-size: .95rem; }
.mail-status.configured { background: #18372f; color: #b9ebd7; }
.mail-status.not-configured { background: #3b3020; color: #f2d59b; }
.empty-state { color: var(--muted); text-align: center; padding: 40px 0; }
.admin-messages { display: grid; gap: 18px; }
.message-entry { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-deep); }
.message-entry.is-unread { border-color: #5d9b9b; }
.message-meta, .message-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.message-meta { color: var(--muted); font-size: .88rem; }
.message-status { color: var(--accent); font-weight: 800; }
.message-entry h2 { margin: 10px 0; font-size: 1.3rem; }
.sender-line { overflow-wrap: anywhere; color: var(--muted); font-size: .92rem; }
.sender-line a { color: var(--accent); }
.message-body { white-space: normal; overflow-wrap: anywhere; line-height: 1.65; }
.message-actions { justify-content: flex-start; margin-top: 18px; }
.small-button { min-height: 42px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 10px; background: #1e303b; color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; }
.danger-button { color: #ffc0c0; border-color: #704a4a; }

@media (max-width: 560px) {
    body { font-size: 16px; }
    .site-shell { width: calc(100% - 22px); margin-top: 10px; }
    .hero-card, .content-card { border-radius: 25px; }
    .hero-title { padding: 18px 15px 6px; }
    .hero-content { padding: 10px 16px 22px; }
    .feature-image { border-radius: 17px; margin-bottom: 16px; }
    .employer-banner { border-radius: 17px; margin-bottom: 16px; }
    .photo-strip { gap: 4px; padding: 0; }
    .photo-strip img { border-radius: 4px 4px 1px 1px; }
    .hero-card { margin-bottom: 28px; }
    .main-nav { gap: 10px; margin-bottom: 25px; }
    .nav-link { min-height: 50px; padding: 8px 19px; font-size: 1rem; }
    .content-card { padding: 30px 23px; margin-bottom: 28px; }
    .welcome-card h2 { margin-bottom: 25px; }
    .welcome-card h3 { margin-bottom: 30px; }
    .story-text { line-height: 1.65; }
    .section-intro { font-size: 1.05rem; margin-bottom: 25px; }
    .social-list { gap: 12px; }
    .social-link { min-height: 70px; padding: 13px 17px; gap: 14px; font-size: 1.08rem; border-radius: 17px; }
    .social-icon { width: 32px; font-size: 1.45rem; }
    .social-pending-label { font-size: .72rem; }
    .contact-form label { font-size: 1.08rem; }
    .contact-form input:not([type="hidden"]) { min-height: 60px; }
    .contact-form textarea { min-height: 220px; }
    .send-button { min-height: 60px; font-size: 1.04rem; }
    .admin-heading { align-items: flex-start; }
    .admin-card { padding: 25px 18px; }
    .message-entry { padding: 17px; }
}


/* Freigegebene Gestaltung: einheitliche, zentrierte Menüs oben und unten */
.site-shell { width: min(100% - 24px, 800px); margin: 10px auto 0; }
.main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 720px;
    margin: 10px auto 20px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(16 24 32 / 94%);
    backdrop-filter: blur(12px);
}
.main-nav-top { position: sticky; top: 0; z-index: 100; }
.main-nav-bottom { position: static; margin: 22px auto 12px; }
.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    font-size: clamp(.78rem, 2.5vw, 1.04rem);
    font-weight: 700;
}
.nav-link:hover, .nav-link.active { border-color: var(--accent); color: var(--accent); }

/* Flaschenpost und Viererbanner: gleiche Breite, klarer Abstand, gleicher Kartenbereich */
.hero-content { padding: 12px clamp(14px, 4vw, 34px) 24px; }
.feature-image, .photo-banner {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 17px;
}
.feature-image { aspect-ratio: 2.32 / 1; object-fit: cover; margin: 0; }
.photo-banner { aspect-ratio: 3 / 1; object-fit: cover; margin: 16px 0 0; }

/* Der Arbeitgeberbanner bleibt die originale Bilddatei und wird nicht beschnitten. */
.employer-banner {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    margin: 18px auto 0;
}
.welcome-card { text-align: center; }
.welcome-card h2 { text-align: center; }
.welcome-card h3 {
    margin: 0 auto 18px;
    color: var(--text);
    text-align: center;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.65;
    font-weight: 400;
}
.story-text {
    max-width: 100%;
    margin: 0 0 22px;
    text-align: left;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.65;
}
.welcome-note {
    margin: 26px auto 12px;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.55;
    font-weight: 800;
    text-align: center;
}
.date-line {
    margin: 10px auto 0;
    color: var(--text);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.55;
    font-weight: 400;
    text-align: center;
}

/* FINDE MICH: nur Symbole, ohne seitliche Linien */
.social-card { text-align: center; padding-top: 26px; padding-bottom: 26px; }
.social-card h2 { margin: 0 0 12px; text-align: center; font-size: clamp(1.55rem, 4vw, 2.15rem); }
.social-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.social-link {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-deep);
    color: var(--text);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}
.social-link:hover { transform: translateY(-2px); border-color: var(--accent); }
.social-link svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social-link svg .icon-fill { fill: currentColor; stroke: none; }
.social-link[aria-label="Facebook"] { color: #72a9ff; }
.social-link[aria-label="Instagram"] { color: #f2b1d3; }
.social-link[aria-label="LinkedIn"] { color: #70b7ef; }
.social-link[aria-label="XING"] { color: #8bd5bd; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-footer { padding: 0 0 24px; margin-top: 8px; }
.copyright { margin: 10px 0 0; padding: 0 10px 14px; color: var(--muted); text-align: center; font-size: .92rem; letter-spacing: .01em; }
.message-nav { margin-top: 10px; }
@media (max-width: 560px) {
    .site-shell { width: calc(100% - 18px); margin-top: 8px; }
    .main-nav { gap: 8px; padding: 6px; margin-bottom: 16px; }
    .nav-link { min-height: 46px; padding: 6px 7px; font-size: clamp(.74rem, 3vw, .9rem); }
    .hero-content { padding: 10px 12px 18px; }
    .photo-banner { margin-top: 13px; }
    .content-card { padding: 26px 18px; margin-bottom: 22px; }
    .welcome-card h2 { margin-bottom: 18px; }
    .welcome-card h3 { margin-bottom: 14px; }
    .story-text { line-height: 1.58; }
    .welcome-note { margin-top: 20px; }
    .employer-banner { margin-top: 14px; border-radius: 12px; }
    .social-list { gap: 10px; }
    .social-link { width: 48px; height: 48px; min-height: 48px; border-radius: 12px; }
    .social-link svg { width: 27px; height: 27px; }
    .main-nav-bottom { margin-top: 18px; }
    .copyright { font-size: .82rem; }
}
