/* ADMIN HILFE BERN CSS v3.1 - OPTIMIERT */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --taupe: #B5A594;
    --taupe-light: #C2B4AB;
    --taupe-dark: #8B7A69;
    --cream: #F8F6F4;
    --white: #FFFFFF;
    --text: #1A1A1A;
    --text-light: #4A4A4A;
    --text-darker: #2A2A2A;
}

/* BASIS */
html { 
    scroll-behavior: smooth;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

body {
    font-family: 'Roboto', -apple-system, sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden; /* Verhindert weißen Rand rechts */
    min-width: 320px; /* Minimum für kleinste mobile Geräte */
}

/* TYPOGRAFIE */
h1 {
    font-size: 3rem;
    font-weight: 100;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text);
}

h2 {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.3;
    margin: 3rem 0 1rem 0;
    color: var(--taupe-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--taupe);
    border-radius: 2px;
}

/* Alternative H2-Akzente mit Logofarbe */
h2.light-accent::after {
    background: var(--taupe-light);
}

h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 2rem 0 1rem 0;
    color: var(--taupe-dark);
}

p { 
    margin-bottom: 1.5rem; 
}

a {
    color: var(--taupe);
    text-decoration: underline;
    text-decoration-color: rgba(139, 125, 107, 0.4);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--taupe-dark);
    text-decoration-color: var(--taupe-dark);
}

/* LAYOUT - MODERNISIERT FÜR 2025 */
.container {
    max-width: 1200px; /* Erhöht von 900px für moderne Bildschirme */
    width: 100%; /* Flexibel anpassbar */
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem); /* Responsive padding */
    box-sizing: border-box; /* Includes padding in width */
}

.section {
    padding: 4rem 0;
}

.section-cream {
    background: linear-gradient(180deg,
        var(--white) 0%,
        rgba(194, 180, 171, 0.4) 5%,
        rgba(194, 180, 171, 0.4) 95%,
        var(--white) 100%
    );
}

/* Box-shadow Technik entfernt */

.section-white {
    background: var(--white);
}

/* HEADER - VERSTECKT BEI INTEGRATION */
.header {
    display: none; /* Versteckt - Integration in Navigation */
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;  /* Gap wieder für Logo + Text */
    text-decoration: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    /* Kein Filter nötig - transparentes Logo passt perfekt */
}

.logo-text {
    text-align: left;
    background: transparent;
}

.logo-title {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
    background: transparent;
    margin: 0;
    padding: 0;
    letter-spacing: 0.3px;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    background: transparent;
    margin: 0;
    padding: 0;
    letter-spacing: 0.2px;
}

/* NAV - INTEGRIERTE LOGO-NAVIGATION */
.nav {
    background: var(--taupe-dark);
    padding: 1.2rem 0;  /* Etwas mehr Padding für Logo */
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* DESKTOP NAVIGATION - DREI BEREICHE */
.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

/* LOGO BEREICH LINKS */
.nav-logo {
    flex-shrink: 0;  /* Logo nie komprimieren */
    background: transparent;  /* Explizit transparent */
}

.nav-logo * {
    background: transparent !important;  /* Alle Kindelemente transparent */
    box-shadow: none !important;  /* Keine Schatten */
    border: none !important;  /* Keine Rahmen */
}

/* NAVIGATION BEREICH MITTIG */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

/* SPRACHEN BEREICH RECHTS */
.nav-right {
    flex-shrink: 0;  /* Sprachen nie komprimieren */
}

/* MOBILE TOP BAR - HAMBURGER LINKS, BRAND MITTIG, LOGO RECHTS */
.mobile-top-bar {
    display: none; /* Hidden on desktop */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.8rem 0; /* Kein padding - hamburger wird separat positioniert */
}

/* HAMBURGER BUTTON */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Etwas mehr Abstand zwischen den Linien */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px; /* Mehr Padding für größere Klickfläche */
    z-index: 1001;
    margin-left: 0; /* Kein margin - nav-container hat bereits korrekten Padding */
}

.hamburger span {
    width: 28px; /* Etwas breiter */
    height: 3.5px; /* Etwas dicker */
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* NAV BRAND - PAPIERKRAM - IN MOBILE TOP BAR */
.nav-brand {
    display: none; /* Hidden on desktop */
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* MOBILE LOGO - RECHTS IN TOP BAR */
.mobile-logo {
    display: none; /* Hidden on desktop */
}

.mobile-logo img {
    object-fit: contain;
}

/* MOBILE RIGHT - SPRACHEN + LOGO */
.mobile-right {
    display: none; /* Hidden on desktop */
    align-items: center;
    gap: 0.8rem; /* Etwas mehr Abstand zum Logo */
    margin-right: 0; /* Kein margin - nav-container hat bereits korrekten Padding */
}

/* MOBILE SPRACHAUSWAHL - KOMPAKT */
.mobile-language-switcher {
    display: flex;
    gap: 0.3rem;
}

.mobile-language-switcher .lang-btn {
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mobile-language-switcher .lang-btn:hover,
.mobile-language-switcher .lang-btn.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    background: var(--taupe-light);
    color: var(--white);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-btn:hover, .lang-btn.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* PREVENT BODY SCROLL WHEN MENU IS OPEN */
body.nav-open {
    overflow: hidden;
}

/* HERO - DYNAMISCHE HÖHE */
.hero {
    background: transparent;
    padding: 2rem 2rem 3rem 2rem;
    text-align: center;
    min-height: auto;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--text-light);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--taupe-dark);
    color: var(--white);
    border: 2px solid var(--taupe-dark);
}

.btn-primary:hover {
    background: #5A4D3B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 77, 59, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--taupe-dark);
    border: 2px solid var(--taupe-dark);
}

.btn-secondary:hover {
    background: var(--taupe-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Neue Button-Variante mit Logofarbe */
.btn-light {
    background: var(--taupe-light);
    color: var(--white);
    border: 2px solid var(--taupe-light);
}

.btn-light:hover {
    background: var(--taupe);
    border-color: var(--taupe);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 125, 107, 0.3);
}

/* LISTEN */
ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

ul li {
    margin-bottom: 2rem;
}

ul li strong {
    display: block;
    color: var(--taupe-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* TESTIMONIALS */
.testimonials {
    max-width: 700px;
    margin: 2rem auto;
}

.testimonial {
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 3px solid var(--taupe-light);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.testimonial cite {
    font-style: normal;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* KONTAKT-ABSCHLUSS */
.contact-final {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #E0E0E0;
    margin-top: 3rem;
}

.contact-final h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-final h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-final p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    font-size: 1rem;
}

.contact-details a {
    color: var(--taupe);
    font-weight: 500;
}

/* FOOTER */
.footer {
    background: var(--taupe-dark);
    color: var(--white);
    padding: 1.5rem 2rem; /* Reduziert von 3rem */
    font-size: 0.85rem; /* Reduziert von 0.9rem */
    line-height: 1.4; /* Reduziert von 1.8 */
    position: relative;
}

/* FOOTER ÜBERGANG NACH OBEN */
.footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(107, 93, 74, 0.5) 50%,
        var(--taupe-dark) 100%
    );
    z-index: -1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; /* Reduziert von 3rem */
    margin-bottom: 1rem; /* Reduziert von 2rem */
}

.footer h4 {
    margin-bottom: 0.75rem; /* Reduziert von 1rem */
    font-size: 1rem; /* Reduziert von 1.1rem */
    font-weight: 400;
}

.footer a {
    color: var(--white);
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem; /* Reduziert von 2rem */
    text-align: center;
    opacity: 0.7;
}

/* ========================================
   FAQ-SEITE SPEZIFISCH
   ======================================== */

.faq-search {
    margin: 2rem 0;
}

.faq-search input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    background: var(--white);
    font-family: inherit;
}

.faq-search input:focus {
    border-color: var(--taupe);
    outline: none;
}

.faq-category {
    margin: 3rem 0;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--white);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--taupe-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.faq-question:hover {
    background: var(--taupe-light);
    color: var(--white);
}

.faq-question::after {
    content: '+';
    float: right;
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    background: var(--white);
    border-top: 1px solid #E0E0E0;
    display: none;
}

.faq-answer[aria-hidden="false"] {
    display: block;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.no-results {
    display: none;
    text-align: center;
    padding: 2rem;
    background: rgba(248, 246, 244, 0.4);
    border-radius: 8px;
    margin: 2rem 0;
    font-style: italic;
}

.cta-section {
    background: rgba(248, 246, 244, 0.3);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    margin-top: 0;
}

.cta-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ========================================
   KONTAKT-SEITE SPEZIFISCH
   ======================================== */

.contact-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin: 3rem 0;
    align-items: start; /* Verhindert unschöne Streckung bei unterschiedlichen Inhälten */
}

.contact-detail {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E0E0E0;
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.emergency-section {
    background: #fff3cd;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin: 3rem 0;
    text-align: center;
}

.emergency-section h2 {
    margin-top: 0;
    color: #856404;
}

.maps-container {
    margin: 3rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.maps-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.service-areas {
    margin: 3rem 0;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.area-card {
    background: rgba(248, 246, 244, 0.4);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--taupe);
}

.area-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--taupe-dark);
}

/* Alternative Area-Card mit Logofarbe */
.area-card.light {
    background: rgba(194, 180, 171, 0.15);
    border-left: 4px solid var(--taupe-light);
}

/* ========================================
   NEWS/AKTUELLES SPEZIFISCH
   ======================================== */

.news-date {
    background: var(--taupe);
    color: var(--white);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* ========================================
   HIGHLIGHT & TIP BOXES
   ======================================== */

.highlight-box {
    background: rgba(248, 246, 244, 0.4);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--taupe);
    margin: 1rem 0;
}

.highlight-box p {
    margin-bottom: 0;
}

/* Alternative Highlight-Box mit Logofarbe */
.highlight-box-light {
    background: rgba(194, 180, 171, 0.15);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--taupe-light);
    margin: 1rem 0;
}

.highlight-box-light p {
    margin-bottom: 0;
}

.tip-box {
    background: #e8f4f8;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--taupe);
    margin: 1.5rem 0;
}

/* ========================================
   CTA BUTTONS - VERSCHIEDENE VARIANTEN
   ======================================== */

.btn-cta {
    background: var(--taupe-dark);
    color: var(--white);
    padding: 1rem 2.5rem; /* Vereinheitlicht mit .btn */
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem; /* Vereinheitlicht mit .btn */
    transition: all 0.2s ease;
    border: 2px solid var(--taupe-dark);
    display: inline-block; /* Konsistenz mit .btn */
}

.btn-cta:hover {
    background: #5A4D3B;
    transform: translateY(-2px);
    color: var(--white);
}

/* Kontakt-Seite spezielle CTA Varianten */
.emergency-section .btn-cta {
    background: #dc3545;
    border: 2px solid #dc3545;
}

.emergency-section .btn-cta:hover {
    background: #c82333;
    border-color: #c82333;
}

/* Alternative Emergency Button Variante (direkt auf btn-cta) */
.btn-emergency {
    background: #dc3545 !important;
    color: white !important;
    border: 2px solid #dc3545 !important;
}

.btn-emergency:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
    color: white !important;
}

/* ========================================
   ÜBER MICH / PROFIL SEITEN SPEZIFISCH
   ======================================== */

/* PROFIL-LAYOUT MIT FOTO */
.profile-section {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.profile-content {
    flex: 1;
}

.profile-photo {
    flex-shrink: 0;
    text-align: center;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--taupe-dark);
    margin-bottom: 0.5rem;
}

.profile-role {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* QUALIFIKATIONEN */
.qualifications {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.qualifications h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--taupe-dark);
    font-size: 1.2rem;
}

.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.qualification-item {
    padding: 0.8rem;
    background: rgba(248, 246, 244, 0.4);
    border-radius: 4px;
    font-weight: 400;
    text-align: center;
    border-left: 3px solid var(--taupe);
}

/* KONTAKT-AKTIONEN */
.contact-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* VALUES GRID - KOMPAKTER */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--taupe);
    transition: transform 0.2s ease;
}

.value-card:hover {
    transform: translateY(-2px);
}

.value-card h3 {
    color: var(--taupe-dark);
    margin-bottom: 1rem;
    margin-top: 0;
    font-size: 1.2rem;
}

.value-card p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* HIGHLIGHT BANNER */
.highlight-banner {
    background: linear-gradient(135deg, #8B7D6B 0%, #6B5D4A 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
    font-size: 1.2rem;
    font-weight: 400;
}

/* PRICING - PREISBOXEN */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-box {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.pricing-box.featured {
    border-color: var(--taupe);
}

.pricing-box h3 {
    color: var(--taupe-dark);
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 1rem;
}

/* LEGAL PAGES - DATENSCHUTZ/IMPRESSUM */
.legal-date {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.business-info {
    background: rgba(248, 246, 244, 0.4);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* TABELLEN */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

table th {
    background: rgba(248, 246, 244, 0.4);
    font-weight: 500;
    color: var(--taupe-dark);
}

/* ========================================
   FORM-ELEMENTE (für zukünftige Formulare)
   ======================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--taupe-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--taupe);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   RESPONSIVE DESIGN - MODERNISIERT
   ======================================== */

/* Tablet/Small Desktop Breakpoint für optimale Nutzung der neuen Breite */
@media (max-width: 1280px) {
    .container, .nav-container, .nav-menu {
        max-width: 95%; /* Dynamisch auf kleineren Bildschirmen */
    }
}

/* iPad & Tablet Breakpoint - VOLLSTÄNDIG ÜBERARBEITET */
@media (max-width: 1024px) and (min-width: 769px) {
    /* NAVIGATION: Wechsel zu Mobile Hamburger Layout */
    .mobile-top-bar {
        display: flex !important; /* Mobile Navigation aktivieren */
    }
    
    .nav-container {
        max-width: 100%;
        padding: 0 1.5rem;
        overflow: visible;
    }
    
    .nav-brand {
        display: block !important; /* Brand mittig sichtbar */
    }
    
    .mobile-right {
        display: flex !important; /* Sprachen + Logo rechts sichtbar */
    }
    
    .mobile-logo {
        display: block !important; /* Mini-Logo rechts sichtbar */
    }
    
    .mobile-language-switcher {
        display: flex !important; /* Sprachen zwingend sichtbar */
        gap: 0.3rem;
    }
    
    .mobile-language-switcher .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        border: 1px solid rgba(255,255,255,0.3);
        background: transparent;
        color: var(--white);
        text-decoration: none;
        border-radius: 3px;
        transition: all 0.2s ease;
        cursor: pointer;
    }
    
    .mobile-language-switcher .lang-btn:hover,
    .mobile-language-switcher .lang-btn.active {
        background: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.5);
    }
    
    /* Desktop Navigation verstecken */
    .nav-logo {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--taupe-dark);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 80px 20px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-center {
        width: 100%;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-right {
        width: 100%;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .language-switcher {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .lang-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* FOOTER: Vollständig optimiert für iPad */
    .footer {
        padding: 2.5rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr; /* Exakt 2 Spalten */
        gap: 3rem;
        max-width: 100%;
    }
    
    .footer-section {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .footer-section:nth-child(3) {
        grid-column: span 2; /* Dritte Sektion über beide Spalten */
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        color: var(--cream);
        font-weight: 400;
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }
    
    .footer-section a {
        color: var(--white);
        opacity: 0.9;
        text-decoration: underline;
        text-decoration-color: rgba(255,255,255,0.4);
    }
    
    .footer-section a:hover {
        opacity: 1;
        text-decoration-color: var(--white);
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
    
    /* LAYOUT ANPASSUNGEN */
    .container {
        max-width: 90%; /* Weniger breit für bessere Lesbarkeit */
        padding: 0 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    }
    
    /* KONTAKTSEITE */
    .contact-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* GRIDS OPTIMIERT */
    .areas-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    /* BUTTONS */
    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    body { 
        font-size: 16px; 
    }
    
    h1 { 
        font-size: 2.2rem; 
    }
    
    h2 { 
        font-size: 1.6rem; 
    }
    
    .hero { 
        padding: 1.5rem 1.5rem 2.5rem 1.5rem; 
    }
    
    .section { 
        padding: 3rem 0; 
    }
    
    .container { 
        padding: 0 1.5rem; 
    }
    
    .logo { 
        flex-direction: column;
        text-align: center;
    }
    
    .logo-text { 
        text-align: center; 
    }
    
    .btn { 
        width: 100%; 
        max-width: 350px; 
    }
    
    .contact-details { 
        flex-direction: column; 
        gap: 1rem; 
    }
    
    /* MOBILE NAVIGATION - VERBESSERTE STRUKTUR */
    .mobile-top-bar {
        display: flex !important; /* Mobile Top Bar sichtbar machen */
    }
    
    .nav-container {
        padding: 0 1.5rem; /* GLEICHER Padding wie Content-Container für perfektes Alignment */
    }
    
    .nav-brand {
        display: block !important; /* ZWINGEND sichtbar auf mobil */
    }
    
    .mobile-right {
        display: flex !important; /* Sprachen + Logo rechts sichtbar auf mobil */
    }
    
    .mobile-logo {
        display: block !important; /* Logo rechts sichtbar auf mobil */
    }
    
    /* Logo auf Desktop mobil verstecken - nav-brand wird verwendet */
    .nav-logo {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--taupe-dark);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 80px 20px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-center {
        width: 100%;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-right {
        width: 100%;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .language-switcher {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .lang-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* FAQ Responsive */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Kontakt Responsive */
    .contact-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    /* PROFIL RESPONSIVE */
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-photo {
        order: -1;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .qualifications-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* TABELLEN RESPONSIVE */
    table {
        font-size: 0.8rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
    }
}

/* ========================================
   KUNDENPORTAL - INTEGRIERTE STYLES
   Version: 2.0 - Unified with Main Website
   Added: 25.11.2025
   ======================================== */

/* ========================================
   PORTAL LAYOUT
   ======================================== */

.portal-page {
    min-height: calc(100vh - 200px);
    background: var(--cream);
}

.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========================================
   LOGIN PAGE
   ======================================== */

.login-wrapper {
    min-height: calc(100vh - 450px); /* Reduziert von 300px - mehr Platz für Footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--cream);
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(181, 165, 148, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: auto;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--taupe-dark);
    margin-bottom: 0.5rem;
}

.login-header .subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 300;
}

/* ========================================
   PORTAL FORM ELEMENTS
   ======================================== */

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--taupe-dark);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--taupe);
    box-shadow: 0 0 0 3px rgba(139, 122, 105, 0.15);
}

.form-input::placeholder {
    color: #999;
}

/* ========================================
   PORTAL BUTTONS
   ======================================== */

.btn-portal {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--taupe-dark);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-portal:hover {
    background: #5A4D3B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 77, 59, 0.25);
}

.btn-portal:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========================================
   PORTAL ALERTS
   ======================================== */

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #991B1B;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1E40AF;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */

.dashboard-header {
    background: var(--white);
    border-bottom: 1px solid #E0E0E0;
    padding: 1rem 0;
    margin-bottom: 0;
}

.dashboard-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--taupe), var(--taupe-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
}

.user-details {
    text-align: left;
}

.user-name {
    font-weight: 500;
    color: var(--taupe-dark);
    font-size: 0.95rem;
}

.user-email {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========================================
   WELCOME SECTION
   ======================================== */

.welcome-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.welcome-section h2 {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--taupe-dark);
    margin-bottom: 1rem;
}

.welcome-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.welcome-section p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   STATS GRID / STATUS CARDS
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--taupe-dark);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 0.9rem;
    color: var(--text-light);
}

.stat-value.success { color: #065F46; }
.stat-value.error { color: #991B1B; }

/* ========================================
   DEMO SECTION
   ======================================== */

.demo-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E0E0E0;
}

.demo-section h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--taupe-dark);
    font-weight: 400;
    font-size: 0.95rem;
}

.demo-credentials {
    background: var(--cream);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.8;
}

.demo-credentials strong {
    color: var(--taupe-dark);
}

/* ========================================
   SYSTEM STATUS
   ======================================== */

.system-status {
    margin-top: 1.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: center;
}

.status-ok {
    background: rgba(16, 185, 129, 0.15);
    color: #065F46;
}

.status-error {
    background: rgba(239, 68, 68, 0.15);
    color: #991B1B;
}

/* ========================================
   NOTICE BOX
   ======================================== */

.notice-box {
    background: linear-gradient(135deg, rgba(139, 122, 105, 0.08), rgba(181, 165, 148, 0.08));
    border: 1px solid rgba(139, 122, 105, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.notice-box h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--taupe-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.notice-box p {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1rem;
}

/* ========================================
   VERSION INFO
   ======================================== */

.version-info {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* ========================================
   PORTAL RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
    }
    
    .portal-container {
        padding: 1rem;
    }
    
    .dashboard-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .user-info {
        flex-direction: column;
    }
    
    .user-details {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-section {
        padding: 1.5rem;
    }
    
    .welcome-section h2 {
        font-size: 1.4rem;
    }
}

/* ========================================
   PORTAL TOUCH OPTIMIZATION
   ======================================== */

@media (pointer: coarse) {
    .btn-portal,
    .form-input {
        min-height: 48px;
    }
}

/* ========================================
   DASHBOARD SPECIFIC STYLES
   Version: 3.0 - Complete Dashboard
   Added: 25.11.2025
   ======================================== */

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* ========================================
   UPLOAD CARD
   ======================================== */

.upload-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.upload-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--taupe-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   DROP ZONE
   ======================================== */

.drop-zone {
    border: 2px dashed var(--taupe-light);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--cream);
    margin-bottom: 1.5rem;
}

.drop-zone:hover {
    border-color: var(--taupe);
    background: rgba(181, 165, 148, 0.1);
}

.drop-zone.drag-over {
    border-color: var(--taupe-dark);
    background: rgba(181, 165, 148, 0.2);
    transform: scale(1.01);
}

.drop-zone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.drop-zone-text {
    font-size: 1rem;
    color: var(--taupe-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.drop-zone-hint {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========================================
   FILE PREVIEW
   ======================================== */

.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.file-preview-icon {
    font-size: 2rem;
}

.file-preview-info {
    flex: 1;
    min-width: 0;
}

.file-preview-name {
    font-weight: 500;
    color: var(--taupe-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-size {
    font-size: 0.85rem;
    color: var(--text-light);
}

.file-preview-remove {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    transition: color 0.2s;
}

.file-preview-remove:hover {
    color: #991B1B;
}

/* ========================================
   UPLOAD OPTIONS
   ======================================== */

.upload-options {
    margin-top: 1rem;
}

.upload-options select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
}

.upload-options select:focus {
    outline: none;
    border-color: var(--taupe);
    box-shadow: 0 0 0 3px rgba(139, 122, 105, 0.15);
}

/* ========================================
   UPLOAD PROGRESS
   ======================================== */

.upload-progress-container {
    margin-top: 1rem;
}

.upload-progress-bar-bg {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: var(--taupe);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.upload-progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

/* ========================================
   OCR STYLES
   ======================================== */

.ocr-progress {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.ocr-progress-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ocr-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #BFDBFE;
    border-top-color: #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ocr-progress-info {
    flex: 1;
}

.ocr-progress-title {
    font-weight: 500;
    color: #1E40AF;
    margin-bottom: 0.25rem;
}

.ocr-progress-status {
    font-size: 0.85rem;
    color: #3B82F6;
}

.ocr-progress-bar-bg {
    height: 6px;
    background: #DBEAFE;
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.ocr-progress-bar {
    height: 100%;
    background: #3B82F6;
    border-radius: 3px;
    transition: width 0.2s ease;
}

.ocr-result {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.ocr-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ocr-result-success {
    font-weight: 500;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ocr-word-count {
    font-size: 0.85rem;
    color: #15803D;
}

.ocr-text-preview {
    background: var(--white);
    border: 1px solid #BBF7D0;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.85rem;
    color: var(--text);
    max-height: 100px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.ocr-suggested {
    background: #FEF9C3;
    border: 1px solid #FDE047;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #854D0E;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   DOCUMENT LIST
   ======================================== */

.document-list {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.document-list h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--taupe-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.document-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ========================================
   DOCUMENT ITEM
   ======================================== */

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.document-item:hover {
    background: rgba(181, 165, 148, 0.15);
}

.document-item:last-child {
    margin-bottom: 0;
}

.document-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-title {
    font-weight: 500;
    color: var(--taupe-dark);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.document-category {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: rgba(181, 165, 148, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--taupe-dark);
}

.ocr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #1E40AF;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.document-actions button {
    padding: 0.5rem 0.75rem;
    background: var(--white);
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.document-actions button:hover {
    background: var(--taupe-light);
    border-color: var(--taupe-light);
    color: var(--white);
}

/* ========================================
   REGISTER NAME GRID
   ======================================== */

.register-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ========================================
   DASHBOARD RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1024px) and (min-width: 769px) {
    .dashboard-grid {
        gap: 1.5rem;
    }
    
    .upload-card,
    .document-list {
        padding: 1.5rem;
    }
    
    .drop-zone {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   DASHBOARD RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .upload-card,
    .document-list {
        padding: 1.25rem;
    }
    
    .drop-zone {
        padding: 1.5rem 1rem;
    }
    
    .drop-zone-icon {
        font-size: 2.5rem;
    }
    
    .drop-zone-text {
        font-size: 0.95rem;
    }
    
    .document-item {
        flex-wrap: wrap;
    }
    
    .document-info {
        flex: 1 1 calc(100% - 3.5rem);
    }
    
    .document-title {
        white-space: normal;
        word-break: break-word;
    }
    
    .document-actions {
        width: 100%;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #E5E7EB;
    }
    
    .document-actions button {
        flex: 1;
    }
    
    .register-name-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   DASHBOARD RESPONSIVE - SMALL MOBILE
   ======================================== */

@media (max-width: 480px) {
    .upload-card,
    .document-list {
        padding: 1rem;
    }
    
    .drop-zone {
        padding: 1.25rem 0.75rem;
    }
    
    .drop-zone-icon {
        font-size: 2rem;
    }
}

/* ========================================
   DASHBOARD TOUCH OPTIMIZATION
   ======================================== */

@media (pointer: coarse) {
    .drop-zone {
        min-height: 120px;
    }
    
    .document-actions button {
        min-width: 44px;
        min-height: 44px;
    }
}


/* ========================================
   ADMIN DASHBOARD STYLES
   Version 1.0 - Brand-Consistent Admin UI
   ======================================== */

/* Admin Page Layout */
.admin-wrapper {
    min-height: calc(100vh - 80px);
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    padding: 2rem 0 4rem;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Admin Cards */
.admin-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 122, 105, 0.12);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(181, 165, 148, 0.2);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--cream);
    margin-bottom: 1.5rem;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.admin-title {
    color: var(--text);
    font-size: 1.75rem;
    font-weight: 300;
    margin: 0;
}

.admin-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 300;
}

.admin-user-info {
    text-align: right;
    color: var(--text-light);
}

.admin-user-email {
    font-weight: 400;
    color: var(--text);
}

/* Admin Section Titles - ohne h2::after Unterstrich */
.admin-section-title {
    color: var(--taupe-dark);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-section-title::after {
    display: none;
}

/* ========================================
   ADMIN STATUS BADGES
   ======================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 400;
}

.status-live {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-loading {
    background: rgba(181, 165, 148, 0.2);
    color: var(--taupe-dark);
}

.status-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* ========================================
   ADMIN STATS GRID
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--cream) 0%, rgba(181, 165, 148, 0.15) 100%);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 122, 105, 0.15);
    border-color: var(--taupe);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--taupe-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.stat-sublabel {
    color: var(--taupe);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ========================================
   ADMIN BUTTONS
   ======================================== */

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: 'Roboto', -apple-system, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-btn-primary {
    background: var(--taupe);
    color: var(--white);
}

.admin-btn-primary:hover {
    background: var(--taupe-dark);
    transform: translateY(-2px);
    color: var(--white);
}

.admin-btn-secondary {
    background: var(--cream);
    color: var(--taupe-dark);
    border: 1px solid var(--taupe-light);
}

.admin-btn-secondary:hover {
    background: var(--taupe-light);
    color: var(--white);
}

.admin-btn-success {
    background: #28a745;
    color: white;
}

.admin-btn-success:hover {
    background: #218838;
}

.admin-btn-outline {
    background: var(--white);
    color: var(--taupe-dark);
    border: 2px solid var(--taupe);
}

.admin-btn-outline:hover {
    background: var(--taupe);
    color: var(--white);
}

.admin-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

/* ========================================
   ADMIN DATA TABLE
   ======================================== */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--cream);
}

.admin-table th {
    background: var(--cream);
    font-weight: 400;
    color: var(--taupe-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: rgba(181, 165, 148, 0.08);
}

/* User Status Badge */
.user-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 400;
}

.user-status.active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.user-status.inactive {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-admin {
    background: var(--taupe-dark);
    color: white;
}

.role-user {
    background: var(--cream);
    color: var(--taupe-dark);
}

/* ========================================
   ADMIN ALERTS
   ======================================== */

.admin-alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-alert-info {
    background: rgba(181, 165, 148, 0.15);
    color: var(--taupe-dark);
    border-left: 4px solid var(--taupe);
}

.admin-alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.admin-alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* ========================================
   ADMIN TABS
   ======================================== */

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--cream);
    margin-bottom: 1.5rem;
}

.admin-tab {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-light);
    font-family: 'Roboto', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    color: var(--taupe-dark);
}

.admin-tab.active {
    color: var(--taupe-dark);
    border-bottom-color: var(--taupe);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* ========================================
   ADMIN SYSTEM INFO
   ======================================== */

.system-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--cream);
    border-radius: 6px;
}

.info-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 400;
    color: var(--taupe-dark);
}

/* ========================================
   ADMIN UTILITIES
   ======================================== */

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--cream);
    border-top: 3px solid var(--taupe);
    border-radius: 50%;
    animation: admin-spin 1s linear infinite;
}

@keyframes admin-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ========================================
   ADMIN RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-header-left {
        flex-direction: column;
    }
    
    .admin-user-info {
        text-align: center;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
    
    .admin-tabs {
        overflow-x: auto;
    }
    
    .admin-btn-group {
        justify-content: center;
    }
    
    .admin-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}


/* ========================================
   PORTAL DASHBOARD - Kundenbereich
   Version 10.0 - Human Centered Design
   ======================================== */

/* WILLKOMMENSTEXT */
.welcome-message {
    background: linear-gradient(135deg, #f8f6f3 0%, #f0ebe4 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--taupe);
}

.welcome-message p {
    margin: 0;
    color: var(--taupe-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* STATS-GRID - Portal (3 Karten) */
.portal-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-card .stat-value a {
    color: var(--taupe-dark);
    text-decoration: none;
    font-weight: 600;
}

.contact-card .stat-value a:hover {
    color: var(--taupe);
    text-decoration: underline;
}

/* SEARCH STYLES */
.documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.documents-header h3 {
    margin: 0;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    max-width: 500px;
    justify-content: flex-end;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 2.25rem;
    border: 2px solid var(--cream);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--cream);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--taupe);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 121, 94, 0.1);
}

.search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    border-radius: 50%;
}

.search-clear:hover {
    background: rgba(0,0,0,0.1);
}

.search-category-filter {
    padding: 0.6rem 0.75rem;
    border: 2px solid var(--cream);
    border-radius: 8px;
    background: var(--cream);
    font-size: 0.85rem;
    min-width: 140px;
    cursor: pointer;
}

.search-category-filter:focus {
    border-color: var(--taupe);
    outline: none;
}

.search-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #e8f4fd;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.search-status-text {
    color: #0066cc;
}

.search-reset-btn {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.search-reset-btn:hover {
    color: #004499;
}

/* Search Result Highlights */
.document-match-context {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    padding: 0.5rem;
    background: #fffde7;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

.document-match-context mark {
    background: #ffeb3b;
    padding: 0 2px;
    border-radius: 2px;
}

.document-match-field {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
}

/* Loading State */
.search-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.search-loading::before {
    content: '🔍';
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* DROP ZONE & FILE PREVIEW */
.drop-zone-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.drop-zone-text {
    margin: 0;
    color: var(--taupe-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.drop-zone-hint {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: 6px;
}

.file-preview-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.file-preview-info {
    flex: 1;
    min-width: 0;
}

.file-preview-name {
    font-weight: 500;
    color: var(--taupe-dark);
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-size {
    font-size: 0.85rem;
    color: var(--text-light);
}

.file-preview-remove {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
}

/* OCR PROGRESS & RESULT */
.ocr-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f7ff;
    border-radius: 6px;
    border: 1px solid #cce5ff;
}

.ocr-progress-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ocr-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #cce5ff;
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.ocr-progress-info {
    flex: 1;
    min-width: 150px;
}

.ocr-progress-title {
    font-weight: 500;
    color: #0066cc;
    font-size: 0.9rem;
}

.ocr-progress-status {
    font-size: 0.8rem;
    color: #666;
}

.ocr-progress-bar-bg {
    margin-top: 0.75rem;
    background: #cce5ff;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.ocr-progress-bar {
    background: #0066cc;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.ocr-result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0fff0;
    border-radius: 6px;
    border: 1px solid #c3e6c3;
}

.ocr-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ocr-result-success {
    font-weight: 500;
    color: #228b22;
    font-size: 0.9rem;
}

.ocr-word-count {
    font-size: 0.8rem;
    color: #666;
}

.ocr-suggested {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #e8f5e9;
    border-radius: 4px;
    font-size: 0.85rem;
}

.ocr-keyword-matches {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff3cd;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* SWISS CATEGORY SELECT - MOBILE FIX */
.category-select-swiss {
    /* KRITISCH: Native iOS Select-Darstellung aktivieren */
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
    background: var(--cream);
    border: 2px solid var(--cream);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    font-size: 16px; /* Verhindert iOS Zoom */
    border-left: 4px solid #DC143C; /* Swiss Red accent */
    width: 100%;
    box-sizing: border-box;
}

.category-select-swiss:focus {
    border-color: var(--taupe);
    box-shadow: 0 0 0 3px rgba(139, 121, 94, 0.1);
    outline: none;
}

.category-select-swiss optgroup {
    font-weight: 600;
    color: var(--taupe-dark);
    font-style: normal;
    padding: 0.75rem 0;
    margin: 0.25rem 0;
    background: #f8f9fa;
    border-top: 1px solid #DC143C;
}

.category-select-swiss option {
    padding: 0.6rem 1rem;
    color: var(--text-color);
    font-size: 0.85rem;
    background: white;
}

.category-preview {
    margin-top: 0.5rem;
    padding: 0.6rem;
    background: var(--cream);
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 4px solid #DC143C;
}

/* UPLOAD OPTIONS & PROGRESS */
.upload-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E0E0E0;
}

.upload-progress-container {
    margin-top: 1rem;
}

.upload-progress-bar-bg {
    background: var(--cream);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.upload-progress-bar {
    background: var(--taupe);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.upload-progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* DOCUMENT LIST */
.document-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-title {
    font-weight: 500;
    color: var(--taupe-dark);
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.25rem;
}

.document-category {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: white;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ocr-badge {
    color: #0066cc;
    margin-left: 0.25rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-portal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   PORTAL DASHBOARD - RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .portal-page .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .documents-header h3 {
        margin-bottom: 0.5rem;
    }
    
    .search-container {
        max-width: 100%;
        justify-content: stretch;
    }
    
    .search-input-wrapper {
        min-width: 100%;
    }
    
    .search-category-filter {
        width: 100%;
        min-width: 100%;
    }
    
    .drop-zone-icon {
        font-size: 2rem;
    }
    
    .drop-zone-text {
        font-size: 0.85rem;
    }
    
    .drop-zone-hint {
        font-size: 0.75rem;
    }
    
    .file-preview {
        flex-wrap: wrap;
    }
    
    .file-preview-icon {
        font-size: 1.5rem;
    }
    
    .document-item {
        flex-wrap: wrap;
    }
    
    .document-info {
        flex: 1 1 calc(100% - 50px);
    }
    
    .document-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        border-top: 1px solid #f0f0f0;
    }
    
    .document-title {
        white-space: normal;
        word-break: break-word;
        font-size: 0.9rem;
    }
    
    .document-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .ocr-progress-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ocr-text-preview {
        font-size: 0.8rem;
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .document-actions {
        justify-content: space-between;
    }
    
    .document-actions .btn-sm {
        flex: 1;
        text-align: center;
        max-width: 48%;
    }
}


/* ==========================================
   CONTACT CARDS - ENHANCED DESIGN v2.0
   02.12.2025
   ========================================== */

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card-enhanced {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card-enhanced:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Header: Type Badge + Actions */
.contact-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #eee;
}

.contact-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.contact-type-badge span {
    opacity: 0.9;
}

/* Type-specific colors */
.contact-type-company { background: #e3f2fd; color: #1565c0; }
.contact-type-person { background: #f3e5f5; color: #7b1fa2; }
.contact-type-authority { background: #fff3e0; color: #e65100; }
.contact-type-insurance { background: #e8f5e9; color: #2e7d32; }
.contact-type-bank { background: #fce4ec; color: #c2185b; }
.contact-type-other { background: #f5f5f5; color: #616161; }

.contact-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.btn-icon:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* Body: Name + Quick Info */
.contact-card-body {
    padding: 1rem;
}

.contact-name-section {
    margin-bottom: 0.75rem;
}

.favorite-indicator {
    margin-right: 0.25rem;
}

.contact-display-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.contact-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.2rem;
}

/* Quick Info Row */
.contact-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.quick-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: all 0.15s ease;
    max-width: 100%;
}

.quick-info-item:hover {
    background: #e9ecef;
    color: #333;
}

.quick-info-phone:hover { background: #e3f2fd; color: #1565c0; }
.quick-info-email:hover { background: #fff3e0; color: #e65100; }
.quick-info-web:hover { background: #e8f5e9; color: #2e7d32; }

.qi-icon {
    flex-shrink: 0;
}

.qi-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Address */
.contact-address {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #666;
    padding: 0.5rem 0;
    border-top: 1px dashed #eee;
}

.address-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.address-text {
    line-height: 1.4;
}

/* Footer: Meta Info */
.contact-card-footer {
    padding: 0.6rem 1rem;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #888;
}

.meta-documents {
    color: #1565c0;
}

.meta-iban {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Empty state */
.contact-card-footer:empty {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .contact-card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .contact-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .contact-quick-info {
        flex-direction: column;
    }
    
    .quick-info-item {
        width: 100%;
    }
}

