/* portal.css */

/* Grundlayout */
/* Statt body */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background: #f5f7fa;
    color: #222;
}


/* In deiner CSS-Datei für LOGO */
.portal-logo {
    height: 130px;       /* Fixe Höhe, Breite passt sich automatisch an */
    width: auto;        /* Verhindert Verzerrungen */
    max-width: 100%;    /* Sorgt dafür, dass es auf Handys nicht übersteht */
    display: block;     /* Verbessert das Alignment */
}

/* Optional: Den Text daneben vertikal zentrieren */
.kp-logo {
    display: flex;
    align-items: center;
    gap: 15px;          /* Abstand zwischen Logo und Text */
}


.kp-inner {
    display: flex;
    flex-direction: row;      /* Stellt sicher, dass es eine Zeile ist */
    justify-content: flex-start; /* Schiebt alles nach LINKS */
    align-items: center;      /* Behält die vertikale Zentrierung (Logo und Text auf einer Höhe) */
    gap: 2rem;
    padding: 1rem 0;
    width: 100%;              /* Nutzt die volle Breite */
}

/* Optional: Verhindert, dass der Text bei kleinen Bildschirmen zu nah ans Logo rückt */
.kp-logo {
    flex-shrink: 0;        /* Logo behält seine Größe und wird nicht gequetscht */
}


/* Karten-Grid */
.kp-actions {
    padding: 1.5rem 0;
}

.kp-actions .kp-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Karten-Styling */
.kp-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.kp-card h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.kp-card .kp-list {
    margin-left: 1.25rem;
}

/* Responsive: Auf Mobilgeräten stapeln */
@media (max-width: 768px) {
    .kp-actions .kp-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* Der Header (vorher inline im HTML) */
.kp-header {
    background: #1f3a5f;
    color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.kp-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
}

.kp-logo-text {
    font-weight: 600;
    letter-spacing: 0.03em;
}


.kp-main {
    padding: 2rem 0 3rem;
}

.kp-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Layout-Helfer */
.kp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* Statt main */
.portal-content {
    max-width: 960px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Die Karten und Buttons (können so bleiben) */
.kp-hero {
    background: #ffffff;
    padding: 2rem 0 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.kp-heading-main {
    font-size: 2rem;
    margin: 0 0 0.75rem;
}

.kp-intro {
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

/* Sektionen */
.kp-section {
    padding: 1.5rem 0;
}

.kp-section-alt {
    background-color: #e5e7eb;
}

.kp-heading-section {
    font-size: 1.4rem;
    margin: 0 0 0.75rem;
}

.kp-text {
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

/* Listen */
.kp-list {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.kp-list li {
    margin-bottom: 0.25rem;
}

/* Buttons & Links */
.kp-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.kp-button-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.kp-button-primary:hover {
    background-color: #1d4ed8;
}

.kp-button-secondary {
    background-color: #ffffff;
    color: #111827;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.kp-button-secondary:hover {
    background-color: #f3f4f6;
}

.kp-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.kp-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .kp-main {
        padding-top: 1.5rem;
    }

    .kp-heading-main {
        font-size: 1.6rem;
    }
}
/* Portal-Footer (ersetzt alten einfachen Footer) */
.portal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 4rem;
    padding: 2rem 0 1rem;
    color: #6c757d;
}

.portal-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.portal-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.portal-footer-col {
    text-align: center;
}

.portal-footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    position: relative;
}

.portal-footer-heading::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2px;
    background-color: #2563eb;
}

.portal-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-footer-list li {
    margin-bottom: 0.5rem;
}

.portal-footer-list a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.15s ease;
}

.portal-footer-list a:hover {
    color: #2563eb;
}

.portal-locations {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.portal-location-group {
    flex: 1;
}

.portal-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.portal-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    color: #6c757d;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.portal-social-link:hover {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.portal-footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .portal-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portal-locations {
        flex-direction: column;
        gap: 0;
    }
}
.portal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.invoice-row:hover {
    background-color: #f1f4f8;
}

.btn-small {
    padding: 4px 8px;
    background: #1f3a5f;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.8rem;
}

