/* ImmPrima – Basis-Stylesheet. Schriften lokal gehostet, keine externen Ressourcen. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/mulish-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/mulish-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/mulish-latin-700-normal.woff2") format("woff2"); }

:root {
  --gold: #B39870;
  --gold-soft: #B8956A;
  --sand: #EFEAE2;
  --blue: #4887BE;
  --blue-dark: #2B5A88;
  --ink: #2A2420;
  --text: #4A4038;
  --muted: #6B5F55;
  --line: #E6DCCF;
  --white: #FFFFFF;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 10px 16px; z-index: 10; }

/* Typo */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: inherit; margin: 0; line-height: 1.05; }
h1 em, h2 em, h3 em { font-weight: 400; }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; }
.badge { display: inline-block; background: var(--blue); color: var(--white); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; padding: 6px 12px; font-weight: 700; }
.rule { width: 56px; height: 3px; background: var(--white); border: 0; margin: 0; }
.rule--gold { background: var(--gold-soft); height: 2px; }
.btn { display: inline-block; background: var(--blue); color: var(--white); text-decoration: none; padding: 17px 30px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.btn:hover { background: var(--blue-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--blue-dark); }
.btn--light:hover { background: var(--sand); color: var(--blue-dark); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 20px; padding-bottom: 20px; }
.brand { text-decoration: none; display: flex; flex-direction: column; gap: 3px; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: .08em; color: var(--gold); line-height: 1; }
.brand__sub { font-size: 10px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--blue-dark); }
.nav a.nav__cta { color: var(--white); background: var(--blue); padding: 13px 22px; font-weight: 700; }
.nav a.nav__cta:hover { background: var(--blue-dark); }

/* Hero */
.hero { background: var(--gold); color: var(--white); position: relative; overflow: hidden; }
.hero__mark { position: absolute; right: -40px; top: -120px; font-family: var(--serif); font-size: 920px; line-height: 1; color: rgba(255,255,255,.07); pointer-events: none; user-select: none; }
.hero .wrap { position: relative; padding-top: 112px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 30px; }
.hero h1 { font-size: clamp(42px, 7vw, 96px); line-height: 1.02; }
.hero p { margin: 0; max-width: 640px; font-size: 19px; line-height: 1.6; }

.showcase { background: linear-gradient(to bottom, var(--gold) 0, var(--gold) 50%, var(--white) 50%); padding-bottom: 96px; }
.showcase img { width: 100%; height: 560px; object-fit: cover; object-position: center 60%; }
.showcase figcaption { background: var(--blue); color: var(--white); padding: 16px 24px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-align: center; font-weight: 600; }
.showcase figure { margin: 0; }

/* Unternehmen */
.about .wrap { display: flex; flex-wrap: wrap; gap: 64px; padding-top: 24px; padding-bottom: 120px; }
.about__head { flex: 1 1 360px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.about__head h2 { font-size: clamp(40px, 5vw, 56px); }
.about__text { flex: 1.4 1 480px; color: var(--text); }
.about__text p { margin: 0 0 20px; }

/* Tätigkeitsfelder */
.fields { background: var(--sand); }
.fields .wrap { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 56px; }
.fields h2 { text-align: center; font-size: clamp(36px, 4.5vw, 48px); }
.fields__grid { display: flex; flex-wrap: wrap; gap: 24px; }
.field { flex: 1 1 300px; background: var(--white); border-top: 4px solid var(--blue); padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; }
.field__no { font-family: var(--serif); font-size: 64px; line-height: .9; color: var(--gold-soft); }
.field h3 { font-size: 28px; }
.field p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text); }

/* Projekte */
.projects .wrap { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 48px; }
.projects h2 { text-align: center; font-size: clamp(40px, 5vw, 56px); }
.projects__grid { display: flex; flex-wrap: wrap; gap: 32px; }
.project { flex: 1 1 420px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.project__img { display: block; overflow: hidden; }
.project img { width: 100%; height: 340px; object-fit: cover; }
.project__bar { background: var(--gold-soft); padding: 22px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-weight: 700; }
.project__name { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; }
.project__go { font-size: 13px; }
.project:hover .project__bar { background: var(--gold); }
.project:hover { color: var(--ink); }

/* Marke */
.brandband { background: var(--blue); color: var(--white); }
.brandband .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.brandband__logo { flex: 0 1 300px; display: flex; justify-content: center; }
.brandband__logo img { width: 240px; }
.brandband__text { flex: 1 1 460px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.brandband h2 { font-size: clamp(36px, 4.5vw, 52px); }
.brandband p { margin: 0; }

/* Kontakt */
.contact { background: var(--gold); color: var(--white); }
.contact .wrap { padding-top: 112px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 48px 72px; }
.contact__head { flex: 1 1 340px; display: flex; flex-direction: column; gap: 24px; }
.contact__head h2 { font-size: clamp(40px, 5vw, 56px); }
.contact__head p { margin: 0; font-size: 18px; max-width: 420px; }
.contact__info { flex: 1.1 1 400px; display: flex; flex-direction: column; justify-content: center; }
.contact__address { font-style: normal; font-size: 16px; line-height: 1.7; padding-bottom: 28px; }
.contact__company { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.contact__line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.55); color: var(--white); text-decoration: none; }
.contact__line:last-child { border-bottom: 1px solid rgba(255,255,255,.55); }
.contact__label { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; }
.contact__value { font-family: var(--serif); font-size: 30px; line-height: 1.2; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 400ms var(--ease-out); }
.contact__line:hover, .contact__line:focus-visible { color: var(--white); }
.contact__line:hover .contact__value, .contact__line:focus-visible .contact__value { background-size: 100% 1px; }

/* Footer */
.site-footer { background: var(--ink); color: #E9E1D6; font-size: 13px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer__name { font-family: var(--serif); font-size: 24px; letter-spacing: .08em; color: #D2B48C; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: #E9E1D6; }
.site-footer a:hover { color: var(--white); }

/* Rechtliche Seiten */
.page-head { background: var(--gold); color: var(--white); }
.page-head .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { font-size: clamp(44px, 7vw, 72px); }
.legal .wrap { padding-top: 80px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 64px; }
.legal__toc { flex: 0 1 280px; align-self: flex-start; position: sticky; top: 32px; }
.toc__title { display: block; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding-bottom: 14px; }
.toc { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 7px 0 7px 20px; text-decoration: none; color: var(--muted); font-size: 14px; line-height: 1.4; transition: color 200ms ease; }
.toc a::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--gold); transform: scaleY(0); transition: transform 300ms var(--ease-out); }
.toc__no { font-family: var(--serif); font-size: 17px; color: var(--gold); min-width: 20px; font-variant-numeric: lining-nums; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active::before { transform: scaleY(1); }
.legal__body { flex: 999 1 560px; min-width: 0; color: var(--text); font-size: 16px; line-height: 1.75; }
.legal__body section { margin-bottom: 48px; }
.legal__body h2 { font-size: 32px; color: var(--ink); margin-bottom: 14px; }
.legal__body h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--ink); margin: 22px 0 6px; line-height: 1.4; }
.legal__body p { margin: 0 0 12px; }
.legal__body ul { margin: 0 0 12px; padding-left: 20px; }
.legal__body li { margin-bottom: 4px; }
.legal__body address { font-style: normal; margin-bottom: 12px; }
.legal__body .notice { border: 2px solid var(--blue); background: #EEF4FA; padding: 32px; color: var(--ink); }
.legal__body .notice .badge { margin-bottom: 14px; }
.legal__body .stand { color: var(--muted); font-size: 14px; }

/* Mobil */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand__name { font-size: 28px; }
  .nav { gap: 6px 18px; font-size: 12px; letter-spacing: .12em; }
  .nav a.nav__cta { padding: 11px 16px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; gap: 22px; }
  .hero p { font-size: 17px; }
  .hero__mark { font-size: 520px; right: -60px; top: -40px; }
  .showcase { padding-bottom: 56px; }
  .showcase img { height: 240px; }
  .showcase figcaption { font-size: 11px; letter-spacing: .16em; padding: 12px; }
  .about .wrap { gap: 28px; padding-bottom: 64px; }
  .fields .wrap, .projects .wrap { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .field { padding: 28px 24px; }
  .project { flex-basis: 100%; }
  .project img { height: 220px; }
  .contact__value { font-size: 22px; }
  .contact__line { padding: 16px 0; }
  .project__bar { padding: 16px 20px; }
  .brandband .wrap { padding-top: 64px; padding-bottom: 64px; gap: 28px; justify-content: center; text-align: center; }
  .brandband__text { align-items: center; }
  .brandband__logo img { width: 160px; }
  .contact .wrap { padding-top: 64px; padding-bottom: 64px; }
        .page-head .wrap { padding-top: 56px; padding-bottom: 56px; }
  .legal__toc { position: static; flex-basis: 100%; }
  .legal .wrap { padding-top: 48px; padding-bottom: 72px; gap: 40px; }
  .legal__body h2 { font-size: 28px; }
  .legal__body .notice { padding: 24px 20px; }
}

/* Lange Wörter (Gesetzesnamen, Überschriften) dürfen umbrechen */
.legal__body, .page-head h1 { overflow-wrap: break-word; hyphens: auto; }

/* ---------- Bewegung ---------- */

/* Tastendruck-Feedback */
.btn, .nav a.nav__cta { transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.btn:active, .nav a.nav__cta:active { transform: scale(0.97); }

/* Projektkarten: ruhiger Bild-Zoom und Pfeil */
.project img { transition: transform 900ms var(--ease-out); }
.project .arrow { display: inline-block; transition: transform 300ms var(--ease-out); }
.project__bar { transition: background-color 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .project:hover img { transform: scale(1.04); }
  .project:hover .arrow { transform: translateX(5px); }
}

/* Nur mit JavaScript: ohne JS bleibt alles sofort sichtbar */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Erster Bildschirm: gestaffelt einblenden */
.js .intro .wrap > *, .js .intro h1 .line { opacity: 0; animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(150ms + var(--i, 0) * 90ms); }
.js .hero.intro h1 { opacity: 1; animation: none; }
.js .intro h1 .line { display: inline-block; }
.js .intro .rule.draw { opacity: 1; transform: scaleX(0); animation: draw 900ms var(--ease-out) forwards; animation-delay: calc(150ms + var(--i, 0) * 90ms); }
.js .hero__mark { opacity: 0; animation: fade 2400ms var(--ease-soft) 300ms forwards; }
.js .showcase__figure { opacity: 0; animation: rise 1400ms var(--ease-soft) 650ms forwards; }

/* Beim Scrollen */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease-soft), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal] .rule.draw { transform: scaleX(0); transform-origin: left; transition: transform 1000ms var(--ease-out) 300ms; }
.js [data-reveal].is-in .rule.draw { transform: scaleX(1); }

/* Weniger Bewegung: nur sanftes Einblenden */
@media (prefers-reduced-motion: reduce) {
  .js .intro .wrap > *, .js .intro h1 .line, .js .hero__mark, 
  .js .intro .rule.draw { animation: none; transform: none; }
  .js .showcase__figure { animation: fade 300ms ease forwards; transform: none; }
  .toc a::before { transition: none; }
  .js [data-reveal], .js [data-reveal] .rule.draw { transform: none; transition: opacity 300ms ease; }
  .project img, .project .arrow { transition: none; }
  .project:hover img, .project:hover .arrow { transform: none; }
}


/* Kennzeichnung KI-bearbeiteter Bilder */
.showcase__frame, .project__img { position: relative; }
.ai-note { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 3px 8px; font-size: 10px; letter-spacing: .08em; line-height: 1.4; color: var(--white); background: rgba(42,36,32,.55); pointer-events: none; }
