.rsce-portfolio__headline {
  margin: 0 0 1.25rem;
}

.rsce-portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  margin-inline: clamp(0.75rem, 4vw, 2rem);
}

.rsce-portfolio__filterSelect {
  display: none;
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  font: inherit;
  color: inherit;
  border-radius: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

.rsce-portfolio__filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 85%;
  border-radius: 999px;
  /* border: 1px solid #e01a7f;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(240, 240, 245, 0.95)
  ); */
  box-shadow: 0 2px 8px rgba(224, 26, 127, 0.1);
  /* color: #e01a7f; */
  font: inherit;
  /* font-weight: 600; */
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: all 160ms ease;
  border: 0.5px solid #fff;
  background: none;
  color: #fff;
  font-weight: 200;
}

.rsce-portfolio__filter:hover {
  background: linear-gradient(
    180deg,
    rgba(224, 26, 127, 0.08),
    rgba(224, 26, 127, 0.05)
  );
  box-shadow: 0 4px 12px rgba(224, 26, 127, 0.2);
  border-color: #fd0c87;
}

.rsce-portfolio__filter:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(224, 26, 127, 0.15);
}

.rsce-portfolio__filter:focus-visible {
  outline: 2px solid #e01a7f;
  outline-offset: 2px;
}

.rsce-portfolio__filter.is-active {
  /* font-weight: 700; */
  /* background: linear-gradient(180deg, #e01a7f 0%, #fd0c87 100%); */
  /* color: white; */
  border-color: #a01075;
  box-shadow: 0 4px 12px rgba(224, 26, 127, 0.35);
  font-weight: 200;
  background: linear-gradient(180deg, #e3d6dc 0%, #fbe9f2 100%);
  color: #a01075;
}

@media (max-width: 767px) {
  .rsce-portfolio__filters {
    flex-direction: column;
    align-items: stretch;
  }

  .rsce-portfolio__filter {
    display: none;
  }

  .rsce-portfolio__filterSelect {
    display: block;
  }
}

@media (max-width: 767px) {
  /* Samsung Internet: native Select-Dialog bleibt teils im Vordergrund.
	   Deshalb auf Mobile die Button-Filter nutzen und das Select verstecken. */
  [data-rsce-portfolio][data-rsce-portfolio-samsung] .rsce-portfolio__filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  [data-rsce-portfolio][data-rsce-portfolio-samsung] .rsce-portfolio__filter {
    display: inline-flex;
  }

  [data-rsce-portfolio][data-rsce-portfolio-samsung]
    .rsce-portfolio__filterSelect {
    display: none;
  }
}

.rsce-portfolio__grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 1.5rem;
  margin-inline: clamp(0.75rem, 4vw, 2rem);
  max-width: 100%;
  box-sizing: border-box;

  h3.rsce-portfolio__title {
    color: #8a4680;
    text-align: left;
    font-size: 1.75rem;
  }
}

.rsce-portfolio__item {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  height: 100%;
  min-height: 0;
  gap: 0;
  background-color: #1a1a1a;
  min-width: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ── LEFT: Content ─────────────────────────────────────── */
.rsce-portfolio__content {
  grid-column: 1;
  grid-row: 1;
  padding: 2.5rem 2rem;
  padding: 2.5rem 0rem 2.5rem 2rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background-color: #1a1a1a;
  color: #fff;
}

/* Category label with pink dot */
.rsce-portfolio__kernsatz {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* color: #e01a7f; */
  margin-bottom: 1rem;
}

.rsce-portfolio__kernsatz-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #e01a7f;
  flex-shrink: 0;
}

/* Project title */
.rsce-portfolio__deviceHeadline {
  font-size: clamp(1.6rem, 2vw, 2rem);
  /* font-weight: 800; */
  line-height: 1.1;
  color: #fff;
  margin: 0 0 1.2rem 0;
}

/* Description */
.rsce-portfolio__description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

.rsce-portfolio__description > :first-child {
  margin-top: 0;
}
.rsce-portfolio__description > :last-child {
  margin-bottom: 0;
}

/* Tags as pills */
.rsce-portfolio__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.rsce-portfolio__tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* Text link with arrow */
.rsce-portfolio__link,
.rsce-portfolio__link:link,
.rsce-portfolio__link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.95rem;
}

.rsce-portfolio__link:hover {
  gap: 0.8rem;
}

.rsce-portfolio__link-arrow {
  font-size: 1.1em;
}

/* ── RIGHT: Devices ────────────────────────────────────── */
.rsce-portfolio__devices {
  grid-column: 2;
  grid-row: 1;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 2.5rem; */
  min-height: 0;
}

/* Mockup wrap: laptop as base, phone overlapping bottom-right */
.rsce-portfolio__mockup-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Laptop device – normal flow, fills width, landscape aspect ratio */
.rsce-portfolio__device--laptop {
  position: relative;
  /* width: 85%; */
  aspect-ratio: 16 / 10;
  background: #1c1c1e;
  border-radius: 0.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-left: 2rem;
  margin-top: 2rem;
  margin-right: 2%;
}

.rsce-portfolio__device--laptop .rsce-portfolio__screen {
  position: absolute;
  inset: 0.4rem;
  border-radius: 0.4rem;
  overflow: hidden;
  background: #000;
}

/* Camera dot for laptop */
.rsce-portfolio__device--laptop::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  z-index: 2;
}

/* Phone device – overlaps laptop, bottom-right */
.rsce-portfolio__device--phone {
  position: absolute;
  bottom: 5%;
  left: 0%;
  bottom: 2%;
  width: 20%;
  aspect-ratio: 9 / 19;
  background: #1c1c1e;
  border-radius: 1.2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.rsce-portfolio__device--phone .rsce-portfolio__screen {
  position: absolute;
  inset: 0.3rem 0.15rem 0.15rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
}

/* Notch for phone */
.rsce-portfolio__device--phone::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 0.3rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0 0 0.4rem 0.4rem;
  z-index: 2;
}

/* Screen images */
.rsce-portfolio__screen img,
.rsce-portfolio__screen picture,
.rsce-portfolio__screen figure,
.rsce-portfolio__screen .image_container {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.rsce-portfolio__screen img {
  object-fit: cover;
  object-position: top;
}

/* Hidden items (filtered out) */
.rsce-portfolio__item[hidden] {
  display: none;
}

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 767px) {
  .rsce-portfolio__grid {
    grid-template-columns: 1fr;
    margin-inline: 0.75rem;
    gap: 1rem;
    grid-auto-rows: auto;
  }

  .rsce-portfolio__item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    border-radius: 0.75rem;
  }

  .rsce-portfolio__content {
    grid-column: 1;
    grid-row: 2;
    padding: 1.75rem 1.5rem;
  }

  .rsce-portfolio__devices {
    grid-column: 1;
    grid-row: 1;
    min-height: 260px;
  }

  .rsce-portfolio__deviceHeadline {
    font-size: 1.6rem;
  }
}

.portfolio {
  background-color: #111;
}

.rsce-portfolio {
  padding-block: 2rem;
}

/* poppins-300 - latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../../files/css/fonts/poppins-v20-latin-300.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../../files/css/fonts/poppins-v20-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../files/css/fonts/poppins-v20-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../files/css/fonts/poppins-v20-latin-300.woff') format('woff'), /* Modern Browsers */
       url('../../files/css/fonts/poppins-v20-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../files/css/fonts/poppins-v20-latin-300.svg#Poppins') format('svg'); /* Legacy iOS */
}

/* poppins-regular - latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../files/css/fonts/poppins-v20-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../../files/css/fonts/poppins-v20-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../files/css/fonts/poppins-v20-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../files/css/fonts/poppins-v20-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../../files/css/fonts/poppins-v20-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../files/css/fonts/poppins-v20-latin-regular.svg#Poppins') format('svg'); /* Legacy iOS */
}

@charset "UTF-8";

:root {
  --nav-breakpoint: 99999px;
  --color-grey-light: #bababa;
  --nav-mobile-active-color: #fd0c87;
  --nav-mobile-color: #fff;
}
body {
  color: #fff;
  background-color: #000;
}

a {
  color: var(--nav-mobile-active-color);
}

.navigation-main a {
  color: #fff;
}

#header {
  position: absolute;
}

.logo {
  z-index: 5;
  display: block;
  position: relative;
  left: 2rem;
  top: 2rem;
}

body.nav-is-mobile .nav-wrapper {
  position: absolute;
  right: 2rem;
  top: 2rem;
}

.nav-burger .icon-line::after {
  bottom: -0.525rem;
}

.nav-burger .icon-line::before {
  top: -0.525rem;
}

.nav-burger .icon-line,
.nav-burger .icon-line::after,
.nav-burger .icon-line::before {
  height: 0.15rem;
  z-index: 20;
}

body.nav-is-mobile .nav-wrapper {
  z-index: 15;
}

.nav-burger .icon-line,
.nav-burger .icon-line::after,
.nav-burger .icon-line::before {
  background: #fff;
}
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
  background-color: unset !important;
}

.hero {
  height: 75vh;
  min-height: 75vh;
  overflow: hidden;
  .rte {
    position: absolute;
    z-index: 12;
    top: 30%;
    left: 50%;
    transform: translate(-30%, -50%);
  }
  p {
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
    padding-bottom: 1.75rem;
    letter-spacing: 0.25rem;
    background: linear-gradient(
      to right,
      transparent 25%,
      rgb(255, 255, 255) 25%,
      rgb(255, 255, 255) 75%,
      transparent 75%
    );
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: bottom;
  }
}

p {
  margin-bottom: 2rem;
}

/* Reset */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

/* ol, ul {
		list-style: none;
	} */
ul,
ol {
  margin: 0;
  padding-left: 1.2em;
}
p:has(+ ul),
p:has(+ ol) {
  margin-bottom: 0;
}

li {
  line-height: 1.5;
}
blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  -webkit-text-size-adjust: none;
}

/* Box Model */

*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Containers */

body,
input,
select,
textarea {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

p {
  margin: 0 0 2rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  text-decoration: none;
}
h1 {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}
h2 {
  font-size: clamp(1.375rem, 2vw, 2rem);
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.1rem;
}

h5 {
  font-size: 0.9rem;
}

h6 {
  font-size: 0.7rem;
}

.banner > article p::after {
  content: "";
  position: absolute;
  margin: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.65);
}
.banner > article p {
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0;
  padding-bottom: 1.5rem;
  letter-spacing: 0.25rem;
  text-align: center;
}

.banner.full {
  height: 75vh;
  max-height: 550px;
  overflow: hidden;
  position: relative;
  background-color: #00003f;

  article {
    position: relative;
    height: 100%;
  }

  .banner-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;

    picture,
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  .inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    header {
      top: 40%;
      position: absolute;
      left: 50%;
      transform: translate(-50%, -30%);
      h2 {
        position: absolute;
        color: #fff;
        font-size: 2rem;
        margin-top: 0.5rem;
        text-align: center;
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
      }
    }
  }
}

.content.content-text {
  margin-inline: 2rem;
  padding-block: 4rem;
}

.align-center {
  text-align: center;
}

/* Subhead-Versal */
.subhead-versal {
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

#footer {
  padding: 4rem 0 2rem 0;
  background: #000;
  text-align: center;
  color: #fff;
  ul {
    list-style: none;
  }
  .copyright {
    margin-top: 1rem;
  }
  a {
    color: #fff;
    text-decoration: underline;

    &:hover {
      text-decoration: none;
    }
  }
  .icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
}

.rte,
h1 {
  max-width: 1024px;
  margin-inline: auto;
}

