:root {
    --primary: #0B8A41;
    --primary-dark: #076332;
    --primary-light: #1FA75A;
    --primary-soft: #EAF8F0;
    --accent: #35B96C;
    --bg: #F4FAF6;
    --card: #FFFFFF;
    --text: #1F2937;
    --muted: #6B7280;
    --border: #D8E7DD;
    --row: #F7FCF8;
    --danger-bg: #FFF1F2;
    --danger-text: #9F1239;
    --shadow: 0 18px 45px rgba(11, 138, 65, 0.10);
    --shadow-strong: 0 24px 70px rgba(7, 99, 50, 0.18);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(11, 138, 65, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(53, 185, 108, 0.13), transparent 28rem),
        linear-gradient(180deg, #FAFDFB 0%, var(--bg) 100%);
}

.portal-header {

    background: #ffffff;

    color: #0B8A41;

    padding: 25px 40px;

    border-bottom: 1px solid #D8E7DD;

    box-shadow:
        0 4px 18px rgba(11,138,65,0.08);
}

.portal-header-inner,
.portal-page,
.portal-footer {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.portal-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logout-link {
    flex: 0 0 auto;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease;
}

.logout-link:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

		
				  
						
			  
 

			
				
				
					
					 
				   
							
 

		 
		
				   
						
					
					 
						   
							  
 

.brand {
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand img {
   height: auto;
    width: auto;
    max-width: none;
    max-height: none;
	object-fit: unset;
    background: transparent;
}

.eyebrow,
.label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eyebrow {

    color: #0B8A41;

    font-weight: 800;
}

.brand h1 {

    margin: 4px 0;

    font-size: clamp(30px,4vw,46px);

    letter-spacing: -0.04em;

    color: #0B8A41;
}

.brand p {

    color: #4B6354;
}

.portal-page {
    padding: 34px 0 54px;
}

.card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(216, 231, 221, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.welcome-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    margin-top: -62px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-strong);
}

.welcome-card h2 {
    margin: 4px 0;
    font-size: 25px;
    color: var(--primary-dark);
}

.welcome-card p {
    margin: 0;
    color: var(--muted);
}

.status-area {
    display: flex;
    justify-content: flex-end;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    min-width: 110px;
}

.badge-success {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border: 1px solid #B9E4CB;
}

.badge-primary {
    color: #fff;
    background: var(--primary);
}

.badge-soft {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary-soft);
    font-size: 26px;
}

.stat-card strong {
    display: block;
    color: var(--primary-dark);
    font-size: 34px;
    line-height: 1;
}

.stat-card span:last-child {
    color: var(--muted);
    font-weight: 700;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 24px;
    margin-bottom: 22px;
}

.toolbar h2 {
    margin: 4px 0 0;
    color: var(--primary-dark);
    font-size: 26px;
}

.toolbar input {
    width: min(420px, 100%);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 14px 18px;
    font: inherit;
    outline: none;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.03);
}

.toolbar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 138, 65, 0.12);
}

.orders-list {
    display: grid;
    gap: 18px;
}

.order-card {
    overflow: hidden;
    border-left: 7px solid var(--primary);
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

.order-summary,
.sample-summary {
	padding: 24px 30% 24px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 34px;
    cursor: pointer;
}

.order-summary {    
    background: linear-gradient(90deg, #fff, var(--primary-soft));
}

.sample-summary {
    background: #F7FCF8;
    border-radius: 16px;
}

.summary-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 auto;
    min-width: 0;
}

.summary-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 24px;
}

.summary-icon.small {
    width: 40px;
    height: 40px;
    font-size: 21px;
}

.summary-main h3,
.summary-main h4 {
    margin: 0;
    color: var(--primary-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-main > div {
    min-width: 0;
}

.summary-main p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.summary-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}

summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--border);
    font-size: 24px;
    font-weight: 400;
}

details[open] > summary::after {
    content: "−";
}

.order-content {
    padding: 24px 26px 28px;
    border-top: 1px solid var(--border);
}

.sample-card {
    margin: 14px 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 138, 65, 0.06);
}

.sample-content {
    padding: 18px;
    border-top: 1px solid var(--border);
}

.content-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.content-head.with-margin {
    margin-top: 26px;
}

.content-head h4,
.content-head h5 {
    margin: 0;
    color: var(--primary-dark);
}

.content-head span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #E0EFE6;
    border-radius: 16px;
    background: #fff;
}

table {
    width: 100%;
    min-width: 780px;
    border-spacing: 0;
    table-layout: fixed;
    border-collapse: collapse;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--primary);
    color: #fff;    
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
    white-space: nowrap;
	padding: 8px;
    border: 1px solid #ccc;
}

tbody td {
     padding: 8px;
    border: 1px solid #ccc;
    border-bottom: 1px solid #EDF3EA;
    font-size: 14px;
    vertical-align: top;
}

tbody tr:nth-child(even) {
    background: var(--row);
}

tbody tr:hover {
    background: var(--primary-soft);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.empty-box {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.error {
    padding: 20px 24px;
    color: var(--danger-text);
    background: var(--danger-bg);
    border-color: #FECDD3;
    font-weight: 800;
}

.portal-footer {
    padding: 0 0 30px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .portal-header-inner,
    .portal-page,
    .portal-footer {
        width: min(100% - 28px, 1440px);
    }

	.portal-header-inner,
    .brand,
    .welcome-card,
    .toolbar,
    .order-summary,
    .sample-summary {
        align-items: flex-start;
        flex-direction: column;
    }

								
	 .logout-link {
        align-self: flex-end;
    }
				
				 
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card {
        margin-top: -50px;
    }

    .portal-header {
        padding: 24px 14px 38px;
    }

    .brand img {
        height: 62px;
    }

    .order-content {
        padding: 18px;
    }

    .summary-main {
        align-items: flex-start;
    }
}
.status-label {
    font-size: 13px;
    font-weight: 700;
}

.status-in-bearbeitung {
    color: #B8860B;
}

.status-abgeschlossen {
    color: ##b81f0b
}

.download-button {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: #0B8A41;
    color: #fff;

    cursor: pointer;

    font-size: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all .2s ease;

    box-shadow: 0 4px 12px rgba(11,138,65,.25);
}

.download-button:hover {
    transform: scale(1.08);

    background: #0ea54d;

    box-shadow: 0 8px 18px rgba(11,138,65,.35);
}
		.pdf-button {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    transition: all .2s ease;
}
.pdf-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border-radius: 50%;

    cursor: pointer;

    transition: all .2s ease;
}

.pdf-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border-radius: 50%;

    cursor: pointer;

    transition: all .2s ease;
}

.pdf-icon {
    width: 34px;
    height: 34px;

    fill: #d32f2f;

    transition: .2s ease;
}

.pdf-download:hover .pdf-icon {
    fill: #0B8A41;
}

#backToTop {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: var(--primary);
    color: #fff;
    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 8px 22px rgba(11, 138, 65, 0.28);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, background .2s ease, visibility .25s ease;

    z-index: 50;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
					 
}

#backToTop:hover {
    background: var(--primary-dark);
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 54px;
}

.login-card {
    width: min(420px, 100%);
    padding: 32px 30px 34px;
    box-shadow: var(--shadow-strong);
}

.login-head h2 {
    margin: 4px 0 22px;
    color: var(--primary-dark);
    font-size: 26px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field span {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.login-field input {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 16px;
    font: inherit;
    outline: none;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.03);
}

.login-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 138, 65, 0.12);
}

.login-button {
    margin-top: 6px;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    font: inherit;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.login-button:hover {
    background: var(--primary-dark);
}

.login-button:active {
    transform: scale(0.98);
}

.login-error {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--danger-text);
    background: var(--danger-bg);
    border: 1px solid #FECDD3;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .login-page {
        padding-top: 30px;
    }

    #backToTop {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

.captcha-row {
	display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
	}

.captcha-image {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.captcha-refresh {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
	border: 1px solid var(--border);
    border-radius: 50%;
	background: #fff;
	color: var(--primary);
    font-size: 18px;
	cursor: pointer;
    transition: all .2s ease;
}

.captcha-refresh:hover {
    background: var(--primary-soft);
    transform: rotate(60deg);
}																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																											  