/* HAIBYTE.DE – Startseite · Schritt 3. Abgenommene Stilreferenz als Maßstab. */
:root {
  color-scheme:dark;
  --page:#071119;
  --text:#f4e8da;
  --footer-h:89px
}
* {
  box-sizing:border-box
}
html {
  background:var(--page)
}
body {
  margin:0;
  color:var(--text);
  font-family:Arial,"Segoe UI",sans-serif
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button:focus-visible,a:focus-visible {
  outline:3px solid #fff1ae;
  outline-offset:5px
}
.sr-only {
  position:absolute!important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.page-shell {
  min-height:100dvh;
  display:grid;
  grid-template-rows:minmax(0,1fr) var(--footer-h);
  background:#071119;
  overflow:hidden
}

.showcase {
  position:relative;
  isolation:isolate;
  background:#07121a;
  min-height:0;
  overflow:hidden;
  padding-top:14px
}
.backdrop {
  position:absolute;
  inset:-2.5% 0 -2% 0;
  background-image:linear-gradient(180deg,rgba(4,9,14,.04) 0,transparent 10%,rgba(1,6,10,.06) 36%,rgba(1,6,10,.14) 100%),url("assets/hero/hero-haibyte.webp");
  background-position:center 18%;
  background-size:100% 104%,cover;
  filter:saturate(1.1);
  pointer-events:none
}
.business-grid {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  width:min(1480px,calc(100% - 9.8vw));
  height:calc(100% - 96px);
  margin:96px auto 0;
  max-height:702px
}
.business-card {
  position:relative;
  isolation:isolate;
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:114px minmax(222px,1fr) 142px 75px;
  align-items:stretch;
  padding:0 20px 21px;
  background:#07121b;
  clip-path:polygon(6% 0,94% 0,100% 6%,100% 96%,95% 100%,5% 100%,0 96%,0 7%);
  border:0;
  filter:drop-shadow(0 3px 7px rgba(0,0,0,.45));
  --inner:rgba(211,106,33,.16)
}
.business-card:before {
  filter:drop-shadow(0 0 3px rgba(253,173,79,.24));
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:linear-gradient(140deg,#ffcf8d 0%,#975c2c 9%,#e4a562 29%,#6b411f 55%,#eeac5f 79%,#cd8a4e 94%,#ad672f);
  clip-path:inherit
}
.business-card:after {
  content:"";
  position:absolute;
  inset:3px;
  z-index:-1;
  clip-path:polygon(6% 0,94% 0,100% 6%,100% 96%,95% 100%,5% 100%,0 96%,0 7%);
  background:linear-gradient(120deg,rgba(4,8,13,.72),rgba(2,9,16,.84)),radial-gradient(ellipse 60% 70% at 3% 85%,rgba(185,62,13,.35),transparent 80%),url("assets/hero/metal-wall.webp") center/cover,linear-gradient(115deg,#251c18,#081723 62%,#0b141b);
  box-shadow:inset 0 0 32px #000
}
.foerdeblau-card {
  --inner:rgba(39,106,138,.2)
}
.foerdeblau-card:after {
  background:linear-gradient(115deg,rgba(4,34,57,.82),rgba(4,12,20,.90)),radial-gradient(ellipse 55% 76% at 22% 65%,rgba(10,100,157,.56),transparent 84%),url("assets/hero/metal-wall.webp") center/cover,linear-gradient(135deg,#0c314c,#07121d 73%,#08121b)
}
.card-stretched-link {
  position:absolute;
  inset:0;
  z-index:4;
  outline-offset:-8px
}
.card-stretched-link:focus-visible {
  outline-offset:-9px
}
.card-heading {
  z-index:2;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  pointer-events:none;
  padding-top:10px
}
 .card-heading h2 {
  margin:0;
  font-family:Impact,"Arial Black","Inter Display",sans-serif;
  font-size:clamp(46px,4.05vw,66px);
  font-weight:800;
  font-style:italic;
  letter-spacing:-.017em;
  line-height:1;
  text-transform:uppercase;
  color:#f2e6d8;
  transform:skew(-3deg) scaleX(.89);
  white-space:nowrap;
  text-shadow:0 2px 0 #1a1a1a,0 5px 11px #000
}
.haibyte-heading h2 {
  transform:none;
  width:min(82%,520px)
}
.haibyte-heading h2 img {
  width:min(100%,465px);
  max-height:102px;
  display:block;
  object-fit:contain;
  filter:drop-shadow(0 4px 4px #000);
  transform:translateY(2px)
}
.heading-flare {
  width:68%;
  height:10px;
  margin-top:6px;
  background:radial-gradient(ellipse at center,#f3ac54 5%,#90501f 42%,transparent 70%);
  filter:blur(1px)
}
.gallery {
  z-index:7;
  position:relative;
  top:4px;
  min-width:0;
  min-height:0;
  overflow:hidden;
  padding-top:14px;
  pointer-events:none
}
.gallery-scene {
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none
}
.center-stage {
  position:absolute;
  z-index:3;
  top:4%;
  bottom:8%;
  left:32%;
  width:36%;
  overflow:hidden;
  background:#0d1115;
  border:1px solid #392718;
  box-shadow:0 2px 20px #0009,0 0 23px var(--inner)
}
.haibyte-scene .center-stage {
  background-image:radial-gradient(ellipse at 50% 0,rgba(255,166,73,.22),transparent 55%),url("assets/hero/metal-wall.webp");
  background-size:cover;
  background-position:center
}
.center-stage .image-main {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  transition:opacity .19s ease,transform .19s ease
}
.haibyte-scene .image-main {
  position:relative;
  z-index:2;
  object-fit:cover
}
.stage-lamp {
  position:absolute;
  z-index:3;
  top:-5%;
  left:5%;
  width:90%;
  height:30%;
  object-fit:contain;
  pointer-events:none;
  filter:drop-shadow(0 7px 22px #fba53c6c)
}
.haibyte-scene .image-main {
  object-position:center 20%;
}
.stage-background {
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 50% 20%,rgba(221,117,31,.5),transparent 53%)
}
.neighbor {
  position:absolute;
  z-index:1;
  top:11%;
  width:34%;
  height:72%;
  overflow:hidden;
  clip-path:polygon(8% 0,90% 0,100% 11%,100% 90%,90% 100%,0 100%,0 12%);
  background:#07111a;
  border:0;
  opacity:.55;
  filter:brightness(.52)
}
.neighbor:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,#07111b8a,transparent 35%,#06101ba1)
}
.neighbor img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:opacity .2s
}
.neighbor-left {
  left:3%;
  transform:perspective(500px) rotateY(13deg)
}
.neighbor-right {
  right:3%;
  transform:perspective(500px) rotateY(-13deg)
}
.gallery-arrow {
  position:absolute;
  z-index:8;
  pointer-events:auto;
  top:52%;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:43px;
  height:43px;
  padding:0;
  border-radius:50%;
  border:1.5px solid #f0b85e;
  background:radial-gradient(circle at 40% 35%,#18191a,#060809 80%);
  color:#fff1d7;
  cursor:pointer;
  box-shadow:0 0 9px #f69c365c;
  transition:filter .15s,scale .15s
}
.gallery-arrow:hover {
  filter:brightness(1.3);
  scale:1.05
}
.arrow-prev {
  left:2.2%
}
.arrow-next {
  right:2.2%
}
.gallery-dots {
  position:absolute;
  z-index:8;
  bottom:1%;
  left:35%;
  width:30%;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px
}
.dot {
  display:block;
  pointer-events:auto;
  width:12px;
  height:12px;
  padding:0;
  border-radius:50%;
  background:#6d6661;
  border:1px solid #34312f;
  cursor:pointer
}
.dot.current {
  background:radial-gradient(circle at 35% 24%,#ffebaf,#eda83c 67%,#b96820);
  box-shadow:0 0 8px #efae44
}
.foerde-scene {
  background:radial-gradient(ellipse 72% 95% at 48% 64%,rgba(14,76,109,.27),transparent 96%)
}
.business-text {
  position:relative;
  z-index:2;
  align-self:start;
  margin:5px 12px 0 30px;
  padding:0 0 0 22px;
  border-left:2px solid #e69939;
  color:#f7e9da;
  font-size:clamp(16px,1.08vw,19px);
  max-width:450px;
  font-weight:400;
  font-style:italic;
  line-height:1.22;
  text-shadow:0 2px 7px #000
}
.foerdeblau-card .business-text {
  border-left-color:#e9ac50
}
.gold-button {
  position:relative;
  z-index:7;
  align-self:center;
  justify-self:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  width:min(88%,460px);
  min-height:64px;
  white-space:nowrap;
  padding:3px 25px;
  color:#0b0b0b;
  background:radial-gradient(ellipse at 50% 92%,#ffebaf7d,transparent 70%),linear-gradient(100deg,#a35d2e 0%,#edb16e 28%,#ffcd83 54%,#ca7e38 100%);
  clip-path:polygon(7% 0,95% 0,100% 50%,95% 100%,6% 100%,0 50%);
  filter:drop-shadow(0 0 6px #ef8a3280);
  font-weight:850;
  font-style:italic;
  font-size:clamp(21px,1.75vw,31px);
  letter-spacing:-.03em;
  text-shadow:0 1px 0 #ffdfa8;
  transition:filter .18s,transform .18s
}
.gold-button:hover {
  filter:brightness(1.13) drop-shadow(0 0 12px #f5ae65a8);
  transform:translateY(-2px)
}
.site-footer {
  position:relative;
  z-index:12;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  padding:0 clamp(35px,5.8vw,100px);
  background:linear-gradient(110deg,#08151e,#07121b 55%,#07121a);
  border-top:1px solid #7a6860
}
.footer-wordmark {
  font-size:16px;
  color:#97a3b1;
  letter-spacing:.35em;
  white-space:nowrap
}
.footer-wordmark strong {
  color:#eee2d9
}
.footer-split {
  width:2px;
  height:33px;
  background:linear-gradient(#a36231,#e4b67c,#935320);
  flex-shrink:0
}
.footer-navigation {
  display:flex;
  gap:clamp(32px,5vw,85px);
  justify-content:center;
  flex:1
}
.footer-navigation a {
  font-size:17px;
  color:#f1e8df
}
.footer-navigation a:hover,.footer-social a:hover {
  color:#f2b16a
}
.footer-social {
  display:flex;
  gap:40px;
  align-items:center
}
.footer-social a {
  display:grid;
  place-items:center;
  color:#e9e6e1
}
@media(min-width:1800px) and (min-height:950px) {
  .business-grid {
    max-height:calc(100% - 118px)
  }
  .business-card {
    grid-template-rows:14% 47% 23% 16%
  }
  .business-text {
    font-size:clamp(17px,1.03vw,20px)
  }
}
@media(max-width:1300px) and (min-width:901px) {
  :root {
    --footer-h:80px
  }
  .business-grid {
    width:calc(100% - 5vw);
    gap:12px;
    margin-top:66px;
    height:calc(100% - 78px)
  }
  .business-card {
    grid-template-rows:81px minmax(170px,1fr) 136px 72px;
    padding-inline:13px
  }
  .card-heading h2 {
    font-size:clamp(38px,3.8vw,51px)
  }
  .business-text {
    margin:0 8px 0 19px;
    padding-left:14px;
    font-size:clamp(15px,1.33vw,18px)
  }
  .gold-button {
    min-height:56px;
    font-size:clamp(19px,1.9vw,24px)
  }
  .footer-navigation {
    gap:25px
  }
  .footer-wordmark {
    letter-spacing:.17em;
    font-size:13px
  }
}
@media(max-height:805px) and (min-width:901px) {
  :root {
    --footer-h:76px
  }
  .business-grid {
    margin-top:86px;
    height:calc(100% - 94px)
  }
  .business-card {
    grid-template-rows:75px minmax(175px,1fr) 124px 68px;
    padding-bottom:12px
  }
  .card-heading h2 {
    font-size:clamp(36px,3.4vw,49px)
  }
  .business-text {
    font-size:clamp(15px,1.09vw,18px);
    line-height:1.22
  }
  .gold-button {
    min-height:54px
  }
  .footer-navigation a {
    font-size:15px
  }
}
@media(max-width:900px) {
  :root {
    --footer-h:auto
  }
  .page-shell {
    min-height:100dvh;
    grid-template-rows:minmax(0,auto) auto;
    overflow:visible
  }
  .showcase {
    overflow:hidden
  }
  .backdrop {
    background-size:auto 100%;
    background-position:50% 0;
    opacity:.85
  }
  .business-grid {
    width:min(720px,calc(100% - 44px));
    height:auto;
    max-height:none;
    grid-template-columns:1fr;
    gap:26px;
    margin:58px auto 44px;
    padding-bottom:25px
  }
  .business-card {
    min-height:660px;
    grid-template-rows:98px 335px 130px 80px;
    padding-bottom:18px
  }
  .card-heading h2 {
    font-size:clamp(40px,6.6vw,62px)
  }
  .site-footer {
    min-height:115px;
    flex-wrap:wrap;
    justify-content:center;
    padding:24px;
    gap:20px 40px
  }
  .footer-navigation {
    order:4;
    flex-basis:100%;
    gap:40px
  }
  .footer-split {
    display:none
  }
}
@media(max-width:520px) {
  .business-grid {
    width:calc(100% - 22px);
    margin:36px auto 25px;
    gap:18px
  }
  .business-card {
    min-height:580px;
    grid-template-rows:72px 270px minmax(138px,auto) 72px;
    padding:0 12px 17px
  }
  .card-heading h2 {
    font-size:clamp(31px,8vw,43px)
  }
  .gallery-arrow {
    width:37px;
    height:37px
  }
  .business-text {
    font-size:clamp(14px,3.6vw,17px);
    line-height:1.35;
    margin-top:10px;
    margin-left:10px;
    margin-right:6px;
    padding-left:12px
  }
  .gold-button {
    min-height:53px;
    font-size:clamp(18px,5vw,23px);
    gap:12px
  }
  .footer-wordmark {
    font-size:13px;
    letter-spacing:.2em
  }
  .footer-navigation {
    gap:22px
  }
  .footer-navigation a {
    font-size:14px
  }
  .footer-social {
    gap:26px
  }
  .gallery-dots {
    bottom:0
  }
  .business-card {
    clip-path:polygon(5% 0,95% 0,100% 4%,100% 96%,95% 100%,5% 100%,0 96%,0 4%)
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition:none!important;
    animation:none!important
  }
}


/* Shared slider animation is controlled by script.js: all three images reach
   opacity zero before their sources change; no competing CSS transitions. */
.gallery .image-main,.gallery .image-neighbor-left,.gallery .image-neighbor-right{opacity:1;transition:none}

/* A single valid catalog image needs no slider controls. */
[data-single="true"] .gallery-arrow,[data-single="true"] .gallery-dots,[data-single="true"] .neighbor{display:none}
/* 135B4: one coherent maritime display stage. Original products remain separate. */
.foerde-heading h2 {
  transform:none; display:flex; align-items:center; justify-content:center;
  width:auto; aspect-ratio:3.15; height:calc(100% - 6px); max-height:103px; max-width:85%;
  padding:4px 10px; background:linear-gradient(175deg,#fffdf7,#e8edf0);
  clip-path:polygon(4% 0,96% 0,100% 15%,100% 85%,96% 100%,4% 100%,0 85%,0 15%);
  text-shadow:none;
}
.foerde-heading h2 img {width:100%;height:100%;object-fit:contain;filter:none;display:block}
.foerde-scene {background:none;isolation:isolate}
.foerde-scene::before {
  content:""; position:absolute; inset:3% 2% 8%; z-index:0;
  background:linear-gradient(90deg,#071723a6 0%,transparent 15%,transparent 85%,#071723a6 100%),url("assets/foerde-original/hafen-kulisse.webp") center 60%/cover no-repeat;
  clip-path:polygon(3% 0,97% 0,100% 7%,100% 93%,97% 100%,3% 100%,0 93%,0 7%);
  box-shadow:inset 0 0 30px #07131b;
}
.foerde-scene::after {content:"";position:absolute;z-index:0;inset:3% 2% 8%;background:radial-gradient(ellipse at 50% 46%,transparent 43%,#06121e66 100%);pointer-events:none}
.foerde-scene .center-stage, .foerde-scene .neighbor {
  background:none; border:0; box-shadow:none; clip-path:none; overflow:visible; filter:none;
  transform:none; mask-image:none;-webkit-mask-image:none;
}
.foerde-scene .center-stage {left:29%;width:42%;top:8%;bottom:12%}
.foerde-scene .center-stage .image-main {object-fit:contain;object-position:center bottom;filter:drop-shadow(0 8px 5px #050a11c0) drop-shadow(0 0 9px #b9d9ed66)}
.foerde-scene .neighbor {top:25%;height:57%;width:30%;opacity:1;filter:brightness(.76) saturate(.87)}
.foerde-scene .neighbor img {object-fit:contain;object-position:center bottom;filter:drop-shadow(0 6px 5px #02090eaa) drop-shadow(0 0 6px #a9c9e25c)}
.foerde-scene .neighbor::after {display:none}
.foerde-scene .neighbor-left {left:6%}.foerde-scene .neighbor-right {right:6%}
/* With two genuine images the same adjacent view is visible on both sides;
   opposite framing provides depth without pretending there are three designs. */
.haibyte-card[data-slide-count="2"] .neighbor-left img {object-position:18% center}
.haibyte-card[data-slide-count="2"] .neighbor-right img {object-position:82% center}
.haibyte-card .neighbor {opacity:.65;filter:brightness(.66)}
/* Keep both card rows aligned; the supplied logo is not allowed to shrink the stage. */
.business-text {max-width:initial;margin-right:24px}
@media(min-width:901px) and (max-height:805px){.business-card{grid-template-rows:91px minmax(175px,1fr) 117px 68px}.foerde-heading h2{height:calc(100% - 4px);max-height:89px;padding:3px 10px}}
@media(max-width:520px){.foerde-heading h2{width:auto;max-width:90%;height:calc(100% - 3px);padding:3px 8px}.foerde-scene .center-stage{left:28%;width:44%;top:10%;bottom:12%}.foerde-scene .neighbor{width:31%;top:27%;height:53%}.business-text{margin-right:6px}}


.haibyte-scene img[data-view="detail"] {transform:scale(1.40);transform-origin:50% 42%;object-position:center 30%}
@media(min-width:1301px){.business-grid{width:min(1480px,77.5vw);height:calc(100% - 132px)}}
@media(min-width:1800px) and (min-height:950px){.business-grid{max-height:702px}}
@media(min-width:1301px) and (max-height:949px){.business-card{grid-template-rows:110px minmax(222px,1fr) 116px 75px}}
@media(min-width:1800px) and (min-height:950px){.business-card{grid-template-rows:14% 51% 19% 16%}}
