/* ============================================================
   MZ Server Hub — Page-Komponenten
   (Kontakt, Feedback, Legal, Blog, Admin)
   ============================================================ */

/* ---------- Form-Elemente (gemeinsam) ---------- */
input[type='text'],
input[type='password'],
textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    resize: vertical;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
textarea { min-height: 110px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    background: var(--grad-lilac);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:hover {
    filter: brightness(1.09);
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-1px);
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn--block { width: 100%; margin-top: 14px; }

.form-msg { font-size: 13.5px; margin-top: 10px; min-height: 18px; }
.form-msg.is-ok { color: var(--ok); }
.form-msg.is-err { color: var(--bad); }

.page-pad { padding: 56px 0 72px; }

/* ---------- Kontakt ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.contact-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm), 0 8px 26px var(--accent-glow); }
.contact-card .service-icon { width: 40px; height: 40px; }
.contact-card h3 { font-size: 15px; margin: 0 0 4px; }
.contact-card p { margin: 0; font-size: 14.5px; color: var(--muted); word-break: break-word; }
.contact-card a { color: var(--ink); }
.contact-card a:hover { color: var(--accent); }
.contact-note {
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ---------- Feedback ---------- */
.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    padding: 24px 26px;
}
.panel h3 { font-size: 17px; margin-bottom: 16px; }

.stars { display: flex; gap: 6px; margin-bottom: 6px; }
.star-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--line);
    transition: transform 0.12s ease, color 0.12s ease;
    line-height: 0;
}
.star-btn:hover { transform: scale(1.15); }
.star-btn.is-on { color: var(--accent); }
.rating-hint { font-size: 12.5px; color: var(--muted); font-style: italic; min-height: 18px; margin: 0 0 14px; }

.avg-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--bg-soft);
    margin-bottom: 18px;
}
.avg-value { font-family: var(--font-mono); font-size: 30px; font-weight: 600; color: var(--accent); line-height: 1; }
.avg-stars { color: var(--accent); display: flex; gap: 2px; }
.avg-count { font-size: 12.5px; color: var(--muted); }

.fb-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fb-item:last-child { border-bottom: none; padding-bottom: 0; }
.fb-item .fb-stars { color: var(--accent); display: flex; gap: 2px; margin-bottom: 4px; }
.fb-item p { margin: 0; font-size: 14px; color: var(--ink); }
.fb-item time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.empty-hint { color: var(--muted); font-size: 14px; text-align: center; padding: 26px 0; }

/* ---------- Legal (Impressum / Datenschutz) ---------- */
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin-bottom: 8px; }
.prose .prose-sub { color: var(--muted); margin-bottom: 36px; }
.prose section { margin-bottom: 30px; }
.prose h2 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.prose h2::before {
    content: '';
    width: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}
.prose h3 { font-size: 15.5px; font-weight: 600; margin: 18px 0 8px; }
.prose p { margin: 0 0 12px; color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.prose ul { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .addr { white-space: pre-line; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 28px;
}
.back-link:hover { color: var(--accent); }

/* ---------- Blog ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.blog-card time { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.blog-card h3 { font-size: 16.5px; margin: 8px 0 6px; }
.blog-card p { font-size: 13.5px; color: var(--muted); margin: 0; flex: 1; }
.blog-card .card-link {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent);
}

.article-body { max-width: 44rem; }
.article-body .meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.article-body h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 24px; }
.article-body p { margin: 0 0 14px; }
.article-body h2 { font-size: 20px; margin: 28px 0 10px; }
.article-body h3 { font-size: 16.5px; margin: 22px 0 8px; }
.article-body ul, .article-body ol { margin: 0 0 14px; padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
    margin: 18px 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--accent);
    color: var(--muted);
    font-style: italic;
}
.article-body code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--accent-soft);
    padding: 2px 6px;
    border-radius: 5px;
}
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }

/* ---------- Admin ---------- */
.admin-card { max-width: 640px; margin: 0 auto; }
.admin-card .panel { padding: 28px 30px; }
.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.result-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 14px;
}
.result-box.is-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.result-box.is-err { background: var(--bad-soft); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }
.result-box pre {
    font-family: var(--font-mono);
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 8px 0 0;
    max-height: 260px;
    overflow: auto;
}
label.field { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 14px; }
label.field span { display: block; margin-bottom: 6px; color: var(--muted); }

/* ---------- Responsive (Komponenten) ---------- */
@media (max-width: 760px) {
    .feedback-grid { grid-template-columns: 1fr; }
    .page-pad { padding: 40px 0 56px; }
}
