/* ═══════════════════════════════════════════════════════════
   alb-service.net – Gemeinsames Design-System
   Wird von allen Portal-Seiten eingebunden:
   <link rel="stylesheet" href="/shared/design.css">
   Seitenspezifisches CSS bleibt inline in der jeweiligen Seite.
   ═══════════════════════════════════════════════════════════ */

/* ── Lokale Webfonts (DSGVO-konform, kein Google-Request) ── */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/shared/fonts/montserrat-v31-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/shared/fonts/montserrat-v31-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/shared/fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/shared/fonts/source-sans-3-v19-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/shared/fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
}

/* ── Farbpalette & Grundwerte ── */
:root {
    --primary:          #2563eb;
    --primary-dark:     #1e3a8a;
    --primary-light:    #3b82f6;
    --primary-hover:    #1d4ed8;
    --accent:           #f97316;
    --accent-hover:     #ea6c0a;
    --bg:               #f1f5f9;
    --card-bg:          #ffffff;
    --text:             #1e293b;
    --text-muted:       #64748b;
    --border:           #e2e8f0;
    --border-blue:      #bfdbfe;
    --bg-blue:          #eff6ff;
    --fernwartung:      #059669;
    --fernwartung-dark: #047857;
    --success:          #10b981;
    --success-bg:       #d1fae5;
    --error:            #ef4444;
    --error-bg:         #fee2e2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-family: 'Montserrat', 'Source Sans 3', sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

/* ── Top Bar ── */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    text-align: center;
    padding: 0.4rem 1rem;
    letter-spacing: 0.02em;
}
.topbar a { color: rgba(255,255,255,0.9); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ── Site Header ── */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1.4rem 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}
.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 60%, var(--accent) 100%);
}
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.logo-img {
    height: 52px;
    width: auto;
}
.header-portal-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.header-portal-label::before,
.header-portal-label::after {
    content: '';
    display: block;
    width: 28px; height: 1px;
    background: var(--border);
}
.header-admin-link {
    position: absolute;
    top: 50%; right: 1.25rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
}
.header-admin-link:hover {
    color: var(--primary);
    background: var(--bg-blue);
}
.header-admin-link svg { width: 20px; height: 20px; }

.header-back-link {
    position: absolute;
    top: 50%; left: 1.25rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.header-back-link:hover {
    color: var(--primary);
    background: var(--bg-blue);
}
.header-back-link svg { width: 15px; height: 15px; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #3b82f6 100%);
    color: #fff;
    padding: 3rem 2rem 3.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2.5rem;
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}
.hero-kicker .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
.hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
    font-size: 1rem;
    opacity: 0.82;
    max-width: 420px;
    line-height: 1.6;
}
.hero-status {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    min-width: 210px;
    backdrop-filter: blur(4px);
}
.hero-status-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1rem;
}
.status-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 0.65rem;
    font-weight: 500;
}
.status-item:last-child { margin-bottom: 0; }
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.green  { background: #34d399; box-shadow: 0 0 6px #34d39966; }
.status-dot.blue   { background: #60a5fa; box-shadow: 0 0 6px #60a5fa66; }
.status-dot.orange { background: var(--accent); box-shadow: 0 0 6px #f9731666; }

/* ── Inhalt ── */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    flex: 1;
    width: 100%;
}

.intro {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border: 1.5px solid var(--border);
    border-left: 4px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.intro p { color: var(--text-muted); font-size: 0.95rem; }
.intro strong { color: var(--text); }

.section-header {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-header svg { color: var(--accent); }

/* ── Link-Karten ── */
.links-section {
    margin-bottom: 2rem;
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.link-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
}
.link-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(30,64,175,0.1);
    transform: translateY(-1px);
}
.link-card svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}
.link-card-content {
    flex: 1;
    min-width: 0;
}
.link-card-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.link-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.link-card-arrow {
    color: var(--text-muted);
    transition: transform 0.2s ease;
}
.link-card:hover .link-card-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

/* ── Footer ── */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.65);
    text-align: center;
    padding: 1.75rem 1.5rem;
    font-size: 0.87rem;
    line-height: 1.8;
}
footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer strong { color: #fff; }
.footer-accent {
    display: inline-block;
    width: 32px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0 auto 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .site-header { padding: 1rem 1rem 0.9rem; }
    .logo-img { height: 42px; }
    .hero { padding: 2rem 1.25rem 2.5rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-status { min-width: unset; }
    .container { padding: 1.5rem 1rem 3rem; }
    .links-grid { grid-template-columns: 1fr; }
}
