/* FERPAO – Portfolio. Gestaltung nach dem Entwurf des Kunden, bewusst reduziert. */

@font-face { font-family: "Manrope"; font-weight: 400 800; font-display: swap; src: url("assets/fonts/manrope-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap; src: url("assets/fonts/dmmono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap; src: url("assets/fonts/dmmono-500-latin.woff2") format("woff2"); }

:root {
  --bg: #090909;
  --panel: #111;
  --text: #f1f0ed;
  --muted: #858582;
  --soft: #a2a29e;
  --gold: #f5b800;
  --line: #292929;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Manrope", Arial, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.mono, .eyebrow { font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .13em; }
.eyebrow { color: #b9b9b5; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.outline-text { -webkit-text-stroke: 1.5px var(--text); color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Navigation */
.nav-wrap { position: sticky; top: 0; z-index: 20; background: rgba(9, 9, 9, .86); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { width: 140px; }
.brand img, .footer-logo img { width: 100%; height: auto; }
.nav-links { display: flex; gap: 34px; color: #aaa; font-size: 13px; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 1px; background: #fff; margin: 6px; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Start */
.hero { min-height: min(calc(100vh - 76px), 820px); display: flex; flex-direction: column; justify-content: center; padding: 60px 0; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin-right: 10px; box-shadow: 0 0 12px #f5b80080; }
.hero h1 { font-size: clamp(76px, 15vw, 205px); letter-spacing: -.105em; line-height: .78; font-weight: 800; margin: 40px 0 45px; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; max-width: 700px; margin-left: 5px; }
.hero-copy { font-size: 15px; color: var(--soft); line-height: 1.8; max-width: 400px; margin: 0; }
.round-link { flex-shrink: 0; border: 1px solid #424242; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; transition: .3s; }
.round-link:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); transform: translateY(4px); }

/* Portfolio */
.section { padding: 110px 0 120px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; }
h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1.06; letter-spacing: -.065em; margin: 22px 0 0; }
.section-intro { color: #92928d; font-size: 12px; margin: 0 0 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shot { position: relative; overflow: hidden; background: #151515; aspect-ratio: 650 / 950; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.shot:hover img { transform: scale(1.04); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 65%, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .3s; }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.shot-num { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; opacity: 0; transition: opacity .3s; }
.shot:hover .shot-num, .shot:focus-visible .shot-num { opacity: 1; }
/* Das erste Bild etwas größer – gibt dem Raster einen Einstieg */
.gallery .shot:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* Leistungen */
.services { background: var(--panel); border-block: 1px solid #252525; padding-bottom: 110px; }
.services-banner { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.services-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.services-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9,9,9,.97) 0%, rgba(9,9,9,.85) 35%, rgba(9,9,9,.25) 62%, rgba(9,9,9,0) 80%), linear-gradient(0deg, var(--panel) 0%, rgba(17,17,17,0) 40%); }
.banner-copy { padding: 120px 0 70px; }
.banner-copy h2 { font-size: clamp(48px, 7.5vw, 104px); line-height: .95; letter-spacing: -.07em; }
.banner-copy p { max-width: 360px; font-size: 14px; line-height: 1.9; color: #b4b3ad; margin: 24px 0 0; }

.service-grid { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { position: relative; overflow: hidden; isolation: isolate; min-height: 290px; padding: 30px 28px; border: 1px solid #2a2a28; background: linear-gradient(155deg, #171716 0%, #0c0c0c 100%); display: flex; flex-direction: column; transition: border-color .35s, transform .35s; }
/* Gold-Streifen wie auf der Folierung – fährt beim Darüberfahren schräg durch die Karte */
.service-card::before { content: ""; position: absolute; z-index: -1; width: 46px; height: 220%; top: -60%; left: -30%; background: linear-gradient(180deg, transparent, var(--gold) 30%, #c99400 70%, transparent); transform: rotate(32deg); opacity: 0; transition: left .7s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.service-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(245,184,0,.14), transparent 55%); opacity: 0; transition: opacity .35s; }
.service-card:is(:hover, .is-active) { border-color: rgba(245,184,0,.55); transform: translateY(-4px); }
.service-card:is(:hover, .is-active)::before { left: 115%; opacity: .9; }
.service-card:is(:hover, .is-active)::after { opacity: 1; }
.service-big { position: absolute; right: 14px; top: -8px; font-size: 118px; font-weight: 800; letter-spacing: -.08em; line-height: 1; color: transparent; -webkit-text-stroke: 1px #2c2c2a; transition: -webkit-text-stroke-color .35s; z-index: -1; }
.service-card:is(:hover, .is-active) .service-big { -webkit-text-stroke-color: rgba(245,184,0,.45); }
.service-icon { width: 60px; height: 60px; display: grid; place-items: center; color: var(--gold); background: rgba(245,184,0,.1); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); transition: background .35s, color .35s; }
.service-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card:is(:hover, .is-active) .service-icon { background: var(--gold); color: var(--bg); }
.service-tag { color: #77766f; margin-top: auto; padding-top: 34px; font-size: 9px; }
.service-card h3 { margin: 10px 0 9px; font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.service-card p { margin: 0; color: #8b8a84; font-size: 13px; line-height: 1.7; }

/* Über */
.about { padding: 120px 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 9%; align-items: center; }
.about-shot { max-width: 360px; }
.about-copy p { font-size: 14px; color: #999992; line-height: 2; max-width: 560px; margin: 25px 0 0; }

/* Kontakt */
.contact { position: relative; overflow: hidden; background: var(--panel); border-top: 1px solid #252525; padding: 110px 0 100px; }
.contact-inner { position: relative; z-index: 2; }
.contact h2 { font-size: clamp(46px, 9vw, 112px); line-height: .98; letter-spacing: -.08em; margin: 30px 0 55px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: start; }
.contact-text p { font-size: 14px; color: #96968f; line-height: 1.9; max-width: 400px; margin: 0 0 28px; }
.contact-text .contact-hint { margin: 22px 0 0; font-size: 13px; }
.contact-hint a { color: #d6d5d1; border-bottom: 1px solid #4a4a45; }
.contact-hint a:hover { color: var(--gold); border-color: var(--gold); }

/* Anfrage-Fenster */
.form-dialog { width: min(760px, calc(100% - 40px)); max-height: calc(100dvh - 60px); padding: 0; border: 1px solid #2f2f2c; background: #111; color: var(--text); box-shadow: 0 30px 120px rgba(0, 0, 0, .7); overflow: auto; overscroll-behavior: contain; }
.form-dialog::backdrop { background: rgba(5, 5, 5, .78); backdrop-filter: blur(6px); }
.form-dialog[open] { animation: dialog-in .28s cubic-bezier(.2, .7, .2, 1); }
.form-dialog[open]::backdrop { animation: backdrop-in .28s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes backdrop-in { from { opacity: 0; } }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 30px 34px 22px; background: linear-gradient(#111 85%, rgba(17, 17, 17, 0)); }
.dialog-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.02; letter-spacing: -.055em; margin: 14px 0 12px; }
.dialog-head p { font-size: 13px; color: #8e8d87; line-height: 1.7; margin: 0; max-width: 460px; }
.dialog-close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #3a3a36; border-radius: 50%; background: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: .2s; }
.dialog-close:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.form-dialog .contact-form { padding: 6px 34px 34px; }
body:has(.form-dialog[open]) { overflow: hidden; }
.contact-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; padding: 18px 22px; background: var(--gold); color: #111; font-size: 13px; font-weight: 800; min-width: 250px; border: 0; cursor: pointer; font-family: inherit; transition: .25s; }
.contact-button:hover { background: #ffd044; transform: translateY(-3px); }
.contact-button:disabled { opacity: .6; cursor: progress; transform: none; }

/* Kontaktformular */
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #b9b9b5; }
.field small { text-transform: none; letter-spacing: 0; color: #6f6e69; }
.field input, .field select, .field textarea, .editor { width: 100%; background: #0c0c0c; border: 1px solid #2f2f2c; color: var(--text); font: 15px/1.5 "Manrope", Arial, sans-serif; padding: 13px 14px; border-radius: 0; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus, .editor:focus-within { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 184, 0, .12); }
.field input[aria-invalid="true"], .editor[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #e0604d; }
.editor { padding: 0; }
.editor-toolbar { display: flex; gap: 4px; padding: 7px; border-bottom: 1px solid #2a2a27; }
.editor-toolbar button { min-width: 34px; height: 30px; border: 1px solid transparent; background: transparent; color: #c9c8c2; font: 14px "Manrope", sans-serif; cursor: pointer; }
.editor-toolbar button:hover, .editor-toolbar button.active { border-color: rgba(245, 184, 0, .5); color: var(--gold); }
.editor-area { min-height: 170px; max-height: 420px; overflow-y: auto; padding: 13px 14px; outline: none; line-height: 1.6; }
.editor-area:empty::before { content: attr(data-placeholder); color: #5f5e59; pointer-events: none; }
.editor-area ul, .editor-area ol { margin: 6px 0; padding-left: 22px; }
.editor-area p, .editor-area div { margin: 0; }
.message-fallback { resize: vertical; }
.js .message-fallback { display: none; }
.dropzone { position: relative; display: flex; align-items: center; justify-content: center; min-height: 86px; border: 1px dashed #3a3a36; background: #0c0c0c; color: #8e8d87; font-size: 13px; text-align: center; padding: 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone b { color: var(--gold); font-weight: 700; }
.dropzone:hover, .dropzone.dragover { border-color: var(--gold); background: rgba(245, 184, 0, .05); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #c9c8c2; background: #121211; border: 1px solid #262624; padding: 6px 8px; }
.file-list img { width: 38px; height: 38px; object-fit: cover; flex-shrink: 0; }
.file-list .pdf { width: 38px; height: 38px; display: grid; place-items: center; background: #1d1d1b; color: var(--gold); font: 10px "DM Mono", monospace; flex-shrink: 0; }
.file-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .size { color: #6f6e69; font-size: 12px; }
.file-list button { border: 0; background: none; color: #8e8d87; font-size: 18px; cursor: pointer; padding: 0 4px; }
.file-list button:hover { color: #e0604d; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 12px; line-height: 1.7; color: #77766f; margin: 0; }
.form-privacy a { color: #b9b9b5; text-decoration: underline; text-underline-offset: 2px; }
.contact-form .contact-button { justify-self: start; }
.form-status { margin: 0; font-size: 14px; line-height: 1.6; min-height: 1px; }
.form-status.ok { color: #7fd38a; }
.form-status.error { color: #ef8a7a; }
.contact-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.contact-button:hover svg { transform: translate(2px, -2px); }
.contact-details { margin: 0; display: grid; gap: 22px; }
.contact-details div { border-top: 1px solid #30302d; padding-top: 14px; display: grid; grid-template-columns: 110px 1fr; gap: 15px; }
.contact-details dt { color: var(--gold); padding-top: 3px; }
.contact-details dd { margin: 0; font-size: 14px; line-height: 1.7; color: #d6d5d1; }
.contact-details a:hover { color: var(--gold); }
.contact-glow { position: absolute; width: 550px; height: 550px; border-radius: 50%; background: #f5b8000a; filter: blur(80px); right: -150px; bottom: -400px; }

/* Fußzeile */
.footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo { width: 105px; }
.footer-copy { font-size: 9px; color: #65655f; }
.footer-links { display: flex; gap: 20px; font-size: 11px; color: #8d8d86; }
.footer-links a:hover { color: var(--gold); }

/* Großansicht */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5, 5, 5, .96); display: flex; align-items: center; justify-content: center; padding: 30px 80px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-height: calc(100vh - 100px); max-width: 100%; width: auto; object-fit: contain; box-shadow: 0 20px 80px #000; }
.lightbox figcaption { color: #8d8d86; }
.lightbox button { position: absolute; background: none; border: 1px solid #3a3a3a; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer; transition: .2s; }
.lightbox button:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.lb-close { top: 20px; right: 20px; font-size: 26px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Unterseiten (Impressum, Datenschutz) */
.legal { padding: 80px 0 100px; max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.06em; margin: 20px 0 40px; }
.legal h2 { font-size: 20px; letter-spacing: -.02em; margin: 40px 0 10px; }
.legal p, .legal li { font-size: 14px; line-height: 1.9; color: #b5b4af; }
.legal a { color: var(--gold); }
.placeholder { background: #f5b80022; color: var(--gold); padding: 0 4px; }

@media (max-width: 860px) {
  .container { width: calc(100% - 40px); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery .shot:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 650 / 950; }
  .about { gap: 7%; padding: 90px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-banner { min-height: 480px; }
  .footer { flex-wrap: wrap; padding-block: 25px; }
  .footer-copy { order: 3; width: 100%; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .nav { height: 66px; }
  html { scroll-padding-top: 66px; }
  .brand { width: 118px; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 66px; background: #101010; padding: 22px 22px 28px; flex-direction: column; gap: 20px; border-bottom: 1px solid #303030; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; }
  .hero { min-height: min(calc(100svh - 66px), 720px); }
  .hero h1 { margin: 30px 0 35px; }
  .hero-copy { font-size: 13px; }
  .round-link { width: 44px; height: 44px; }
  .section { padding: 75px 0 85px; }
  .section-head { display: block; margin-bottom: 30px; }
  .section-intro { margin-top: 18px; }
  .gallery { gap: 8px; }
  .shot-num { opacity: 1; left: 10px; bottom: 9px; }
  .shot::after { opacity: 1; }
  .about { grid-template-columns: 1fr; gap: 40px; padding: 75px 0; }
  .about-shot { max-width: 70%; }
  .contact { padding: 75px 0; }
  .services { padding-bottom: 70px; }
  .services-banner { min-height: 520px; }
  .services-banner img { object-position: 30% 50%; }
  .services-banner::after { background: linear-gradient(0deg, var(--panel) 5%, rgba(17,17,17,.75) 45%, rgba(9,9,9,.2) 100%); }
  .banner-copy { padding: 200px 0 40px; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
  .service-card { min-height: 0; padding: 24px 22px; }
  .service-tag { padding-top: 22px; }
  .service-big { font-size: 92px; }
  .contact-button { width: 100%; }
  .contact-form .contact-button { justify-self: stretch; padding: 15px 18px; font-size: 14px; }
  .form-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; }
  .dialog-head { padding: 20px 18px 16px; }
  .dialog-head h2 { font-size: 30px; }
  .dialog-close { width: 40px; height: 40px; }
  .form-dialog .contact-form { padding: 4px 18px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .contact-details div { grid-template-columns: 90px 1fr; }
  .lightbox { padding: 60px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lightbox img { max-height: calc(100vh - 150px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
