/* PP Angebote – Login und Kundenportal */
@font-face { font-family: "Inter"; src: url("../fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root { --ink: #0a0a0a; --mut: #6b6b6b; --mut-2: #8e8e8e; --line: #e6e6e6; --ok: #2e7d5b; --ease: cubic-bezier(0.2, 0.75, 0.2, 1); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: 15px; font-weight: 600; padding-bottom: 14px; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--mut); }
.eyebrow { display: block; font-size: 13.5px; color: var(--mut-2); }
.wordmark { font-size: 15px; font-weight: 700; letter-spacing: 0.24em; }
.link { text-decoration: underline; text-underline-offset: 4px; font-size: 14.5px; }
.link:hover { color: var(--mut); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.25s ease, transform 0.25s var(--ease); }
.btn:hover { background: #2e2e2e; transform: translateY(-1px); }
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.field { display: grid; gap: 8px; font-size: 13.5px; color: var(--mut); }
.field input { width: 100%; padding: 15px 16px; border: 1px solid #d5d5d5; border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08); }
.hp { position: absolute; left: -9999px; }
.error { padding: 12px 16px; border-radius: 10px; background: #fdf0ee; color: #a5281b; font-size: 14.5px; }

/* Login */
.portal--login { min-height: 100vh; min-height: 100dvh; display: grid; overflow: hidden; }
.bg { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, #838583 0%, #a9a79d 28%, #dcc3a0 56%, #e0a468 78%, #9a5134 100%); overflow: hidden; }
.bg span { position: absolute; border-radius: 50%; filter: blur(70px); }
.bg span:nth-child(1) { width: 70vmax; height: 55vmax; left: -20vmax; top: -22vmax; background: #7e8584; animation: a 26s ease-in-out infinite alternate; }
.bg span:nth-child(2) { width: 80vmax; height: 46vmax; right: -20vmax; top: 30%; background: #efc690; animation: b 30s ease-in-out infinite alternate; }
.bg span:nth-child(3) { width: 110vmax; height: 40vmax; left: -5vmax; bottom: -24vmax; background: #a9552f; animation: a 36s ease-in-out infinite alternate-reverse; }
@keyframes a { to { transform: translate3d(14vmax, 8vmax, 0) scale(1.15); } }
@keyframes b { to { transform: translate3d(-16vmax, -6vmax, 0) scale(0.92); } }
.login { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 44px clamp(20px, 4vw, 48px) 64px; max-width: 1360px; width: 100%; margin: 0 auto; }
.login__card { align-self: center; width: min(460px, 100%); margin: auto 0; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-radius: 16px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 30px 70px -34px rgba(10, 10, 10, 0.35); display: grid; gap: 18px; animation: in 0.8s var(--ease) both; }
.login__card h1 { font-size: 30px; }
.login__card form { display: grid; gap: 18px; justify-items: start; }
.login__card .field { width: 100%; }
@keyframes in { from { opacity: 0; transform: translateY(18px); } }

/* Portal */
.welcome { display: grid; gap: 24px; animation: in 0.7s var(--ease) both; animation-delay: 80ms; }
.welcome:has(.welcome__video):has(.welcome__text) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: clamp(24px, 4vw, 48px); }
.welcome__video { border-radius: 14px; overflow: hidden; background: #0a0a0a; box-shadow: 0 30px 60px -36px rgba(10, 10, 10, 0.5); }
.welcome__video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.welcome__text { display: grid; gap: 12px; font-size: 17px; }
.welcome__head { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; padding: 0; }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 1080px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 40px); }
.page { max-width: 1080px; margin: 0 auto; padding: 24px clamp(20px, 4vw, 40px) 96px; display: grid; gap: clamp(40px, 5vw, 64px); }
.page__head { display: grid; gap: 10px; animation: in 0.7s var(--ease) both; }
.offers { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.offer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 24px; gap: clamp(14px, 3vw, 40px); align-items: center; padding: 22px clamp(16px, 2vw, 26px); border-top: 1px solid var(--line); transition: background 0.25s ease; animation: in 0.6s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
.offer-row:first-child { border-top: 0; }
.offer-row:hover { background: #fafafa; }
.offer-row__main { display: grid; gap: 4px; min-width: 0; }
.offer-row strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.offer-row__sum { font-variant-numeric: tabular-nums; text-align: right; font-size: 16.5px; white-space: nowrap; }
.offer-row__sum small { display: block; font-size: 12.5px; color: var(--mut-2); }
.offer-row__go { transition: transform 0.25s var(--ease); }
.offer-row:hover .offer-row__go { transform: translateX(4px); }
.state { padding: 5px 12px; border-radius: 999px; border: 1px solid #dcdcdc; font-size: 12.5px; color: var(--mut); white-space: nowrap; }
.state--sent { background: var(--ink); border-color: var(--ink); color: #fff; }
.state--accepted { background: #f1f8f4; border-color: #b9dccb; color: #1f5c42; }
.state--expired, .state--declined { color: var(--mut-2); }
.empty { padding: 32px; border: 1px dashed #d5d5d5; border-radius: 12px; color: var(--mut); text-align: center; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.links a { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.25s ease, transform 0.25s var(--ease); }
.links a:hover { border-color: var(--ink); transform: translateY(-2px); }
.links small { color: var(--mut-2); font-size: 13px; }
.contact { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14.5px; }
.contact .eyebrow { flex-basis: 100%; }

@media (max-width: 760px) {
	.welcome:has(.welcome__video):has(.welcome__text) { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.offer-row { grid-template-columns: minmax(0, 1fr) auto; }
	.offer-row__sum { text-align: left; grid-column: 1; }
	.offer-row__go { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
