/* ============================================================
   MICELIO WEBSERVICES – STYLESHEET
   ------------------------------------------------------------
   Alle Schriftgroessen sind in Pixeln angegeben.
   Auch feste Breiten und Abstaende stehen in Pixeln.
   Prozentwerte bleiben nur dort, wo die Breite flexibel sein muss.
   Responsive Schriftgroessen verwenden clamp(px, vw, px).
   ============================================================ */

/* ============================================================
   01. FARBEN UND GRUNDEINSTELLUNGEN
   ============================================================ */

:root {
    --bg: #f8f9f8;             /* Seitenhintergrund */
    --text: #222c30;           /* Haupttext */
    --muted: #69777b;          /* Dezenter Text */
    --accent: #276a71;         /* Links und Buttonrahmen */
    --accent-hover: #17474d;   /* Link bei Hover */
    --line: #b9c9c9;           /* Feine Linien */
    --focus: #176c83;          /* Tastaturfokus */
    --success: #e9f5ed;        /* Erfolgsmeldung */
    --error: #fff0ee;          /* Fehlermeldung */

    --content-width: 650px;    /* Maximale Breite des Inhalts */
}

/* ============================================================
   02. BASISLAYOUT UND TYPOGRAFIE
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    width: calc(100% - 40px); /* Beweglich bei schmalen Bildschirmen */
    max-width: var(--content-width); /* Höchstens 650px */
    margin: 0 auto;
    flex: 1;
}

h1,
h2 {
    line-height: 1.3;
}

h2 {
    font-size: 19.2px;
    margin: 0 0 12px;
}

p {
    margin: 10px 0 18px;
}

a {
    color: var(--accent);
    text-underline-offset: 4px;
}

a:hover {
    color: var(--accent-hover);
}

.text-action {
    font-weight: 450;
}

/* ============================================================
   03. HEADER, LOGO UND MARKENNAME
   ============================================================ */

.site-header {
    text-align: center;
    padding: clamp(45px, 9vw, 88px) 20px 24px;
}

/* Logo-Link: zentriert das Bild ohne eine feste Bildgroesse. */
.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand:hover {
    color: inherit;
}

/* Optionaler Schriftzug unter dem Logo, falls im Header vorhanden. */
.brand-name {
    display: block;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: -0.035em;
}

/* Logo – Originalgröße aus der Bilddatei verwenden */
.brand-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ============================================================
   04. STARTSEITE
   ============================================================ */

.home-intro {
    text-align: center;
    padding: 28px 0 42px;
}

.home-intro h1 {
    font-size: clamp(17.6px, 3vw, 22.4px);
    margin: 0 0 12px;
    font-weight: 600;
}

.home-project {
    text-align: center;
    padding: 24px 0 46px;
    border-top: 1px solid var(--line);
}

/* ============================================================
   05. INHALTSSEITEN (Z. B. IMPRESSUM UND DATENSCHUTZ)
   ============================================================ */

.content-page {
    padding: 10px 0 60px;
}

.content-page h1 {
    font-size: clamp(24.8px, 4vw, 32px);
    margin: 0 0 12px;
}

.content-page h2 {
    margin-top: 32px;
}

/* ============================================================
   06. KONTAKTFORMULAR
   ============================================================ */

.contact-form {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.contact-form label {
    font-weight: 600;
    margin-top: 16px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    padding: 9px 2px;
    font: inherit;
}

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

.contact-form button {
    align-self: flex-start;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 9px 24px;
    margin-top: 14px;
}

.contact-form button:hover {
    background: var(--accent);
    color: var(--bg);
}

.hint,
.privacy-note {
    color: var(--muted);
    font-size: 14.4px;
    font-weight: 400;
}

.privacy-note {
    margin-top: 18px;
    margin-bottom: 0;
}

/* Unsichtbares Zusatzfeld als einfacher Bot-Schutz */
.honey {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================
   07. HINWEISE UND STATUSMELDUNGEN
   ============================================================ */

.notice {
    padding: 10px 14px;
}

.success {
    background: var(--success);
}

.error {
    background: var(--error);
}

.todo {
    padding: 10px;
    border-left: 2px solid var(--accent);
}

/* ============================================================
   08. FOOTER UND LINK-NAVIGATION
   ============================================================ */

.site-footer {
    text-align: center;
    padding: 20px 16px 36px;
    color: var(--muted);
}

.footer-nav,
.validators {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.footer-nav {
    margin-bottom: 14px;
}

.validators {
    gap: 10px;
}

.validators a {
    color: var(--accent);
    border: none;
    padding: 0;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12.32px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.validators a:hover {
    color: var(--accent-hover);
}

.copyright {
    font-size: 12.8px;
    margin: 15px 0 0;
}

/* ============================================================
   09. TASTATURBEDIENUNG UND BARRIEREFREIHEIT
   ============================================================ */

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 4px;
}

/* Sprunglink bleibt unsichtbar, bis er per Tastatur fokussiert wird */
.skip {
    position: absolute;
    left: -10000px;
    top: 12px;
    background: var(--bg);
    padding: 8px;
}

.skip:focus {
    left: 12px;
    z-index: 10;
}

/* ============================================================
   10. MOBILE ANSICHT
   ============================================================ */

@media (max-width: 480px) {
    .site-header {
        padding-top: 42px;
    }

    .home-intro {
        padding-top: 16px;
    }
}
