/* Kundenbereich (kundenbereich.php) */

.portal-area { padding: 190px 0 130px; background: #f7f8f4; }
@media (max-width: 991px) { .portal-area { padding: 140px 0 90px; } }

.portal-muted { color: #6b736d; font-size: 15px; }
.portal-eyebrow { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 20px; background: #eef9d3; color: #2f4300; font-weight: 600; font-size: 14px; }
.portal-eyebrow a { color: inherit; }
.portal-hp { position: absolute; left: -9999px; }

.portal-alert { margin-bottom: 26px; padding: 14px 18px; border-radius: 14px; border: 1px solid; font-size: 16px; }
.portal-alert-success { background: #eef9d3; border-color: #cfe98a; color: #2f4300; }
.portal-alert-error { background: #fdecea; border-color: #f5c2bd; color: #a3241a; }

.portal-card { margin-bottom: 24px; padding: 30px; border-radius: 22px; background: #fff; box-shadow: 0 16px 50px rgba(16, 48, 42, .06); }
@media (max-width: 575px) { .portal-card { padding: 20px; border-radius: 18px; } }
.portal-card-title { margin-bottom: 18px; font-size: 22px; }
.portal-empty { text-align: center; color: #6b736d; }

.portal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border: 0; border-radius: 40px; background: #10302a; color: #fff; font-weight: 600; font-size: 16px; transition: transform .2s ease, background .2s ease; cursor: pointer; }
.portal-btn:hover { background: #18453d; color: #fff; transform: translateY(-1px); }
.portal-btn-outline { background: transparent; color: #10302a; box-shadow: inset 0 0 0 1.5px #10302a; }
.portal-btn-outline:hover { background: #10302a; color: #fff; }
.portal-link-btn { border: 0; background: none; padding: 0; color: #10302a; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Anmeldung */
.portal-login { display: flex; justify-content: center; }
.portal-login-card { width: 100%; max-width: 620px; padding: 50px; border-radius: 28px; background: #fff; box-shadow: 0 24px 70px rgba(16, 48, 42, .08); text-align: center; }
@media (max-width: 575px) { .portal-login-card { padding: 28px 22px; } }
.portal-login-card h1 { font-size: 42px; line-height: 1.12; margin-bottom: 16px; }
@media (max-width: 575px) { .portal-login-card h1 { font-size: 32px; } }
.portal-login-card p { font-size: 17px; line-height: 1.6; }
.portal-login-form { display: flex; gap: 10px; margin-top: 26px; }
.portal-login-form input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border: 1.5px solid #e2e5df; border-radius: 40px; font-size: 16px; background: #fafbf8; }
.portal-login-form input:focus { outline: 0; border-color: #10302a; background: #fff; }
@media (max-width: 575px) { .portal-login-form { flex-direction: column; } }

/* Übersicht */
.portal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.portal-head h1 { font-size: 44px; line-height: 1.1; margin-bottom: 8px; }
@media (max-width: 767px) { .portal-head { flex-direction: column; align-items: flex-start; } .portal-head h1 { font-size: 32px; } }
.portal-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.portal-project-card { display: block; padding: 26px; border-radius: 22px; background: #fff; color: #121212; box-shadow: 0 16px 50px rgba(16, 48, 42, .06); transition: transform .2s ease, box-shadow .2s ease; }
.portal-project-card:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(16, 48, 42, .1); color: #121212; }
.portal-project-card.is-archived { opacity: .6; }
.portal-project-card h3 { margin: 14px 0 16px; font-size: 22px; }
.portal-project-top { display: flex; flex-wrap: wrap; gap: 6px; }
.portal-phase { padding: 4px 12px; border-radius: 20px; background: #10302a; color: #c4ee18; font-size: 13px; font-weight: 600; }
.portal-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; background: #eef1ec; color: #3a433d; font-size: 12.5px; font-weight: 600; vertical-align: middle; }
.portal-badge-warn { background: #fff1d6; color: #8a5a00; }
.portal-badge-ok { background: #eef9d3; color: #2f4300; }

.portal-progress { height: 8px; border-radius: 10px; background: #eef1ec; overflow: hidden; margin-bottom: 8px; }
.portal-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10302a, #5d8a19 60%, #c4ee18); }
.portal-progress-lg { height: 12px; margin: 14px 0 22px; }

/* Projektseite */
.portal-status-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.portal-status-top strong { display: block; font-size: 26px; }
.portal-percent { font-size: 38px; font-weight: 700; letter-spacing: -.02em; color: #10302a; }
.portal-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: #8a918b; }
.portal-steps li { position: relative; padding-top: 22px; text-align: center; line-height: 1.3; }
.portal-steps li span { position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #e2e5df; }
.portal-steps li.is-done { color: #10302a; }
.portal-steps li.is-done span { background: #10302a; }
.portal-steps li.is-current { color: #10302a; font-weight: 700; }
.portal-steps li.is-current span { background: #c4ee18; box-shadow: 0 0 0 4px rgba(196, 238, 24, .3); }
@media (max-width: 767px) { .portal-steps { grid-template-columns: repeat(4, 1fr); row-gap: 14px; } }
.portal-desc { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eef1ec; font-size: 16px; line-height: 1.6; }

.portal-approval { border: 2px solid #f3c969; }
.portal-approval h3 { margin: 12px 0 8px; font-size: 24px; }
.portal-decide textarea, .portal-compose textarea { width: 100%; padding: 14px 16px; border: 1.5px solid #e2e5df; border-radius: 16px; background: #fafbf8; font-size: 16px; resize: vertical; }
.portal-decide textarea:focus, .portal-compose textarea:focus { outline: 0; border-color: #10302a; background: #fff; }
.portal-decide { margin-top: 18px; }
.portal-decide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.portal-file { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #f3f5f0; color: #121212; font-weight: 600; font-size: 15px; word-break: break-all; }
.portal-file:hover { background: #eef9d3; color: #10302a; }
.portal-file .portal-muted { font-weight: 400; font-size: 13px; }

.portal-timeline { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.portal-item { max-width: 88%; }
.portal-item.is-mine { align-self: flex-end; text-align: right; }
.portal-item.is-status { align-self: center; max-width: 100%; text-align: center; }
.portal-item-meta { margin-bottom: 6px; font-size: 13px; color: #8a918b; }
.portal-bubble { display: inline-block; padding: 14px 18px; border-radius: 18px 18px 18px 6px; background: #f3f5f0; text-align: left; font-size: 16px; line-height: 1.55; }
.portal-item.is-mine .portal-bubble { border-radius: 18px 18px 6px 18px; background: #10302a; color: #fff; }
.portal-item.is-mine .portal-file { background: rgba(255, 255, 255, .12); color: #fff; }
.portal-item.is-mine .portal-file .portal-muted { color: rgba(255, 255, 255, .7); }
.portal-item.is-approval .portal-bubble { background: #fffaf0; box-shadow: inset 0 0 0 1.5px #f3dca4; }
.portal-item-title { margin-bottom: 6px; font-weight: 700; }
.portal-item-comment { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e2d5ae; font-style: italic; }
.portal-item-status { display: inline-block; padding: 6px 16px; border-radius: 20px; background: #eef9d3; color: #2f4300; font-weight: 600; font-size: 14px; }

.portal-compose { padding-top: 20px; border-top: 1px solid #eef1ec; }
.portal-compose-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.portal-attach { display: inline-flex; align-items: center; gap: 6px; max-width: 60%; color: #10302a; font-weight: 600; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.portal-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.portal-hint { margin: 10px 0 0; font-size: 13px; color: #8a918b; }

.portal-files { list-style: none; margin: 0; padding: 0; }
.portal-files li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 34px 12px 0; border-top: 1px solid #eef1ec; font-size: 15px; }
.portal-files li:first-child { border-top: 0; padding-top: 0; }
.portal-files li > a:first-child { color: #121212; font-weight: 600; word-break: break-all; }
.portal-files .portal-muted { font-size: 13px; }
.portal-dl { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f3f5f0; color: #10302a; font-size: 14px; }
.portal-files li:first-child .portal-dl { transform: translateY(calc(-50% - 6px)); }
.portal-contact a { color: #10302a; font-weight: 600; }
