:root {
  --blue: #1e3a8a;
  --blue-2: #0ea5e9;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --card: #f1f5f9;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(2, 6, 23, .08);
  --wrap: 1200px;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: var(--blue-2);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 20px;
  transition: background .3s, box-shadow .3s;
  z-index: 1000;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white
}

.brand picture img {
  height: 44px;
  width: auto;
  background: #0b1220;
  padding: 6px;
  border-radius: 12px
}

.brand-name {
  font-weight: 700;
  color: white
}

nav a {
  color: #cbd5e1;
  margin-left: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block
}

nav a:hover {
  background: rgba(148, 163, 184, .15)
}

nav a.active {
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  color: white;
}

.site-header.scrolled {
  background-color: #0b1220;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.hero.bg {
  position: relative;
  min-height: 100vh;
  max-height: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  left: 0;
}

.hero.bg .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(.74)
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 25px;
  align-items: center;
  max-width: none;
  width: 100%;
  padding: 0 40px;
  margin: 0 auto;
}

.hero .card {
  background: rgba(15, 23, 42, .78);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.hero h1,
.hero h2 {
  color: #fff;
  margin: 0 0 12px
}

.hero p {
  color: #e2e8f0
}

@media(max-width:900px) {
  .hero .wrap {
    grid-template-columns: 1fr
  }

  .hero.bg {
    min-height: 52vh;
    max-height: 620px
  }
}

.grid {
  display: grid;
  gap: 24px
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr)
}

@media(max-width:900px) {

  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery.tight {
  gap: 12px;
}

.gallery img {
  border-radius: 12px
}

.section.alt {
  padding-bottom: 64px;
}

.gallery img {
  position: relative;
  z-index: 1;
}

.site-footer {
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-block;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  border: 0;
  cursor: pointer
}

.btn-primary {
  background-color: orange; /*background: linear-gradient(90deg, var(--blue), var(--blue-2))*/
  color: white
}

.btn-outline {
  border: 2px solid #cbd5e1;
  color: #0f172a
}

.section {
  padding: 64px 0
}

.section.alt {
  background: var(--card)
}

.section h2 {
  margin: 0 0 12px
}

.kicker {
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem
}

.feature .icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature div strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.kicker { font-size: .85rem; letter-spacing: .12em }
.lead { font-weight: 600 }
.hero h1 { font-size: 2.25rem }

.lead {
  color: var(--ink-2)
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  
}

.box {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.12);
}

.feature-list {
  display: grid;
  gap: 14px
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px
}

.feature .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  margin-top: .55rem;
  flex: 0 0 auto
}

.site-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 36px 0;
  margin-top: 40px
}

.site-footer h4 {
  color: #fff;
  margin-top: 0
}

.site-footer .links a {
  display: block;
  margin: 6px 0;
  color: #cbd5e1
}

.form {
  display: grid;
  gap: 14px
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

@media(max-width:720px) {
  .form .row {
    grid-template-columns: 1fr
  }
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff
}

label {
  font-weight: 600;
  color: #0f172a
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(148, 163, 184, .15);
  color: #e2e8f0
}

.menu-toggle:focus {
  outline: 2px solid rgba(14, 165, 233, .6);
  outline-offset: 2px
}

@media(max-width:860px) {
  nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #0b1220;
    border-bottom: 1px solid rgba(148, 163, 184, .25);
    display: none;
    flex-direction: column;
    padding: 10px 16px;
    gap: 6px
  }

  nav a {
    margin: 0;
    padding: 12px;
    border-radius: 10px
  }

  .site-header .wrap {
    gap: 10px
  }

  .menu-toggle {
    display: flex
  }

  nav.open {
    display: flex
  }
}

.gallery img {
  border-radius: 12px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, .85);
  color: #fff;
  background: transparent
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, .12);
  text-decoration: none
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start
}

@media(max-width:900px) {
  .foot-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width: 900px) {

  .hero.bg {
    padding-top: calc(84px + env(safe-area-inset-top, 0px));
  }

  .hero .card {
    padding: 10px 15px;
    border-radius: 12px;
  }
  .hero .card h1 {
    font-size: clamp(28px, 6.4vw, 36px);
    line-height: 1.15;
  }
  .hero .card .lead {
    font-size: 16px;
    line-height: 1.4;
  }
  .hero .card .kicker {
    font-size: 12px;
    letter-spacing: .06em;
  }
  .hero .card .btn {
    padding: 5px 10px;
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .hero.bg { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .hero .card { max-width: 560px; }
  .hero .card h1 { font-size: clamp(26px, 7vw, 32px); }
  .hero .card .lead { font-size: 15px; }
}

@media (max-width: 900px) {
  .hero.bg {
    place-items: start center;
    padding-top: calc(112px + env(safe-area-inset-top, 0px));
  }
  .hero .card {
    padding: 10px 16px;
    max-width: 560px;
  }
  .hero .card h1 {
    font-size: clamp(26px, 6vw, 32px);
  }
}
@media (max-width: 400px) {
  .hero.bg {
    place-items: start center;
    padding-top: calc(124px + env(safe-area-inset-top, 0px));
  }
  .hero .card h1 { font-size: clamp(24px, 6.5vw, 30px); }
}

.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background-color: orange; /*background: linear-gradient(90deg, var(--blue), var(--blue-2)); eigentliche farbe*/
  color: #fff;
  box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.15));
  text-decoration: none;
  border: 0;
  transition: transform .15s ease;
}
.fab-btn:hover { text-decoration: none; transform: translateY(-1px); }

:root { --header-h: 72px; }
.hero.bg, body > .hero.bg, main > .hero.bg, .page > .hero.bg { 
  margin-top: calc(-1 * var(--header-h)); 
  padding-top: var(--header-h);
}

.site-header .wrap { grid-template-columns: 1fr auto 1fr; }
nav.split { grid-column: 1 / 4; grid-template-columns: 1fr auto 1fr; white-space: nowrap; }
.nav-left, .nav-right { display: flex; align-items: center; gap: clamp(6px, 1.2vw, 14px); flex-wrap: nowrap; flex: 1 1 auto; min-width: 0; }
nav.split a { padding: 8px clamp(8px, 1.1vw, 12px); font-size: clamp(14px, 0.95vw, 16px); }
.site-header .brand picture img { height: 48px; } 


@media (max-width: 860px) {
  :root { --header-h: 64px; }
  body.home .site-header .brand { display: inline-flex !important; } 
  nav.split { 
    position: fixed; top: var(--header-h); left: 0; right: 0; 
    height: calc(100vh - var(--header-h));
    display: none; grid-template-columns: 1fr; padding: 20px; gap: 16px; 
    background: #0b1220; z-index: 9999; overflow: auto;
  }
  nav.split.open { display: grid; }
  .nav-left, .nav-right { flex-direction: column; align-items: stretch; gap: 14px; }
  nav.split a { font-size: 20px; padding: 14px 12px; }
  body.menu-open { overflow: hidden; }
}

:root { --header-h: 72px; }
html, body { margin: 0; padding: 0; }
* { box-sizing: border-box; }

.site-header { position: sticky; top: 0; z-index: 100; }
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: clamp(10px, 2vw, 20px);
  padding-inline: clamp(12px, 3vw, 36px);
}
.site-header .brand {
  grid-column: 2 / 3;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-header .brand picture img { height: 50px; width: auto; }
.site-header .brand .brand-name { display: none; }

nav.split { grid-column: 1 / 4; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; white-space: nowrap; }
.nav-left, .nav-right { display: flex; align-items: center; gap: clamp(8px, 1.5vw, 18px); flex-wrap: nowrap; min-width: 0; }
.nav-left { justify-self: end; }
.nav-right { justify-self: start; }
nav.split a { color: #fff; padding: 8px clamp(10px, 1.6vw, 14px); border-radius: 10px; font-weight: 600; display: inline-block; text-decoration: none; white-space: nowrap; font-size: clamp(14px, 1.0vw, 16px); }

.site-header.scrolled { background: #0b1220; box-shadow: 0 2px 8px rgba(0,0,0,.12); }

.hero.bg, body > .hero.bg, main > .hero.bg, .page > .hero.bg {
  margin-top: calc(-1.559 * var(--header-h));
  padding-top: var(--header-h);
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero.bg .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center;}

body.home .site-header .brand { display: none !important; }
.hero-logo { position: absolute; left: 50%; transform: translateX(-50%); top: clamp(20vh, 29vh, 36vh); pointer-events: none; z-index: 2; filter: drop-shadow(0 6px 16px rgba(0,0,0,.55)); }
.hero-logo picture img { height: 13em; width: auto; margin-right: 3em;}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .site-header { background: #0b1220; }
  .site-header .wrap { grid-template-columns: auto 1fr auto; }
  .site-header .brand { grid-column: 1 / 2; justify-self: start; display: inline-flex !important; }
  .site-header .brand picture img { height: 40px; }
  .site-header .brand .brand-name { display: inline; color: #fff; font-weight: 700; }
  .menu-toggle { grid-column: 3 / 4; justify-self: end; display: inline-flex; align-items:center; height: 40px; }

  body.home .hero-logo { display: absolute; height: auto; width: 35em; left: 58%;}

  nav.split {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    background: #0b1220;
    display: none;
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 14px;
    z-index: 1000;
    overflow: auto;
  }
  nav.split.open { display: grid; }
  .nav-left, .nav-right { flex-direction: column; align-items: stretch; gap: 14px; }
  nav.split a { font-size: 20px; text-align: center; padding: 14px 12px; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 500px){
  body.home .hero-logo { display: absolute; height: auto; width: 35em; left: 71%;}
}

@media (min-width: 501px) and (max-width: 650px){
  body.home .hero-logo { display: absolute; height: auto; width: 35em; left: 65%;}
}

@media (min-width: 861px) {
  header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  header nav.split { display: contents; }
  header .nav-left { grid-column: 1; justify-self: end; display: inline-flex; gap: clamp(10px, 1.6vw, 18px); flex-wrap: nowrap; }
  header .nav-right { grid-column: 3; justify-self: start; display: inline-flex; gap: clamp(10px, 1.6vw, 18px); flex-wrap: nowrap; }
  header nav.split a { white-space: nowrap; }
}

@media (max-width: 860px) {
  body.home header .wrap .brand { display: inline-flex !important; }
  header nav.split {
    position: fixed;
    top: var(--header-h);
    left: 8px; right: 8px;
    max-height: calc(100vh - var(--header-h) - 16px);
    height: auto;
    overflow: auto;
    background: rgba(11, 18, 32, 0.92);
    border-radius: 12px;
    padding: 14px;
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    z-index: 1000;
  }
  header nav.split.open { display: grid; }
}

@media (min-width: 861px) {
  header .wrap { align-items: center; } 
  header .brand,
  header .nav-left,
  header .nav-right { align-self: center; }

  header .brand picture img {
    display: block;
    height: 48px;
    vertical-align: middle;
  }

  header nav.split a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 10px 14px;
    white-space: nowrap;
  }
}

@media (max-width: 860px) {
  header .nav-left,
  header .nav-right { display: contents; }

  header nav.split { grid-template-columns: 1fr; }

  header nav.split a {
    display: block;
    width: 100%;
  }

  body.home header .brand { display: inline-flex !important; }
}

:root { --header-item-h: 48px; } 

header .brand{
  display: flex;
  align-items: center;
  height: var(--header-item-h);
  margin: 0;
  padding: 0;
}

header .brand picture img{
  height: calc(var(--header-item-h) - 6px);
  display: block;
}

header nav.split a{
  display: inline-flex;
  align-items: center;
  height: var(--header-item-h);
  line-height: 1;
  padding: 0 14px; 
  white-space: nowrap;
}

header.site-header.scrolled nav.split a{
  height: var(--header-item-h);
  padding-top: 0;
  padding-bottom: 0;
}

@media (min-width: 861px) {
  body:not(.home) header.site-header .nav-left,
  body:not(.home) header.site-header .nav-right {
    margin-top: -5em !important; 
  }
  body:not(.home) header.site-header.scrolled .nav-left,
  body:not(.home) header.site-header.scrolled .nav-right {
    margin-top: -5em !important;
  }
}

@media (max-width: 860px) {
  body:not(.home) header.site-header .nav-left,
  body:not(.home) header.site-header .nav-right {
    margin-top: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 560px) {
  .card{
    margin-top: 8.1em;
  }
  header nav.split.open{
    margin-top: 3em;
  }
}

@media (min-width: 561px) and (max-width: 860px) {
  .card{
    margin-top: 15.1em;
  }
  header nav.split.open{
    margin-top: 3em;
  }
}

.projects { padding: clamp(32px, 6vw, 56px) 0; }
.projects-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.projects-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 18px 0 22px;
}
.projects-filter button {
  appearance: none; border: 0; cursor: pointer;
  padding: 10px 16px; border-radius: 999px;
  background: #eef1f6; color: #0b1220; font-weight: 600;
}
.projects-filter button[aria-selected="true"] {
  background: linear-gradient(90deg,#1982ff,#14a3ff); color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
}
@media (max-width: 1200px) { .projects-grid { grid-template-columns: repeat(4,1fr); padding-top: -5em;} }
@media (max-width: 900px)  { .projects-grid { grid-template-columns: repeat(3,1fr); padding-top: -7em;} }
@media (max-width: 680px)  { .projects-grid { grid-template-columns: repeat(2,1fr); padding-top: -10em;} }
@media (max-width: 440px)  { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: flex; flex-direction: column; min-height: 100%;
}
.project-card .thumb {
  aspect-ratio: 16/10; width: 100%; object-fit: cover; display: block;
}
.project-card .meta { padding: 14px 14px 8px; font-size: 12px; color: #5b6b7a; font-weight: 700; text-transform: uppercase; }
.project-card .title { padding: 0 14px; font-weight: 800; font-size: 16px; color: #0b1220; }
.project-card .excerpt { padding: 6px 14px 12px; color: #334155; font-size: 14px; line-height: 1.4; }
.project-card .more {
  margin: auto 14px 14px; display: inline-block; font-weight: 700;
  color: #1982ff; text-decoration: none;
}
.project-card .more:hover { text-decoration: underline; }

/* Rail */
.proj-rail-host { position: relative; }
.proj-rail-host .rail {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-behavior: smooth;
  padding: 6px 40px; /* Platz für Pfeile */
}
.proj-card {
  flex: 0 0 280px;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: flex; flex-direction: column;
}
.proj-card .thumb { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.proj-card .meta { padding: 10px 12px 0; font-size: 12px; color:#5b6b7a; font-weight:700; text-transform:uppercase; }
.proj-card .title { padding: 4px 12px; font-weight:800; color:#0b1220; }
.proj-card .excerpt { padding: 0 12px 10px; color:#334155; }
.proj-card .more { margin: auto 12px 12px; color:#1982ff; font-weight:700; text-decoration:none; }
.proj-card .expand { margin: 0 12px 14px; align-self:flex-start; }

.rail-prev, .rail-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(11,18,32,.85); color: #fff; cursor: pointer;
}
.rail-prev { left: 6px; }
.rail-next { right: 6px; }

/* Filter */
.projects-filter { display:flex; flex-wrap:wrap; gap:10px; margin: 18px 0 22px; }
.proj-chip { padding: 10px 16px; border-radius:999px; border:0; background:#eef1f6; font-weight:600; cursor:pointer; }
.proj-chip.active { color:#fff; background: linear-gradient(90deg,#1982ff,#14a3ff); }

/* Modal */
#proj-modal { position:fixed; inset:0; display:none; }
#proj-modal.open { display:block; }
#proj-modal .pm-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.5); }
#proj-modal .pm-dialog { position:relative; max-width:940px; margin:6vh auto; background:#fff; border-radius:12px; padding:20px 20px 28px; }
#proj-modal .pm-close { position:absolute; top:10px; right:10px; font-size:26px; background:none; border:0; cursor:pointer; }
#proj-modal .pm-body { max-height:70vh; overflow:auto; }
#proj-modal .pm-body h3 { margin:0 0 8px; }
#proj-modal .pm-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:14px; }
#proj-modal .pm-gallery img { width:100%; height:160px; object-fit:cover; border-radius:6px; }
body.modal-open { overflow:hidden; }

/* Container */
#projects-rail { position: relative; }
#projects-rail .page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
@media (max-width: 1199px) { #projects-rail .page-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 767px)  { #projects-rail .page-grid { grid-template-columns: 1fr; } }

/* Karten */
.proj-card { background:#fff; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,.06); overflow:hidden; display:flex; flex-direction:column; }
.proj-card .thumb { width:100%; aspect-ratio: 16/10; object-fit:cover; display:block; }
.proj-card .meta { padding:12px 14px 0; font-size:12px; color:#5b6b7a; font-weight:700; text-transform:uppercase; }
.proj-card .title { padding:4px 14px; font-weight:800; color:#0b1220; font-size:18px; }
.proj-card .excerpt { padding:0 14px 10px; color:#334155; line-height:1.45; }
.proj-card .actions { display:flex; gap:10px; align-items:center; padding:0 14px 14px; }
.proj-card .more { color: orange; text-decoration:none; font-weight:700; } /*#1982ff*/
.proj-card .more:hover { text-decoration:underline; }
.proj-card .expand { margin-left:auto; }

/* Pager */
#projects-rail .pager { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:14px; }
#projects-rail .pg { width:36px; height:36px; border:0; border-radius:50%; background:#0b1220; color:#fff; cursor:pointer; }
#projects-rail .pg:disabled { opacity:.4; cursor:default; }
#projects-rail .pg-counter { min-width:64px; text-align:center; color:#334155; }

/* Filter-Chips (optional, falls noch nicht drin) */
.projects-filter { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 22px; }
.proj-chip { padding:10px 16px; border-radius:999px; border:0; background:#eef1f6; font-weight:600; cursor:pointer; }
.proj-chip.active { color:#fff; background: orange; }

/* Modal */
#proj-modal { position:fixed; inset:0; display:none; }
#proj-modal.open { display:block; }
#proj-modal .pm-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.5); }
#proj-modal .pm-dialog { position:relative; max-width:940px; margin:6vh auto; background:#fff; border-radius:12px; padding:20px 20px 28px; }
#proj-modal .pm-close { position:absolute; top:10px; right:10px; font-size:26px; background:none; border:0; cursor:pointer; }
#proj-modal .pm-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:14px; }
#proj-modal .pm-gallery img { width:100%; height:160px; object-fit:cover; border-radius:6px; }
body.modal-open { overflow:hidden; }

:root { --header-h: 72px; } /* an deine Header-Höhe anpassen */

/* Dialog unterhalb des Headers positionieren */
#proj-modal .pm-dialog {
  margin: calc(var(--header-h) + 24px) auto 6vh; /* Header-Höhe + Abstand */
}

/* Sicherstellen, dass der Header über dem Backdrop bleibt */
.site-header { position: sticky; z-index: 1000; }
#proj-modal { z-index: 2000; }
#proj-modal .pm-backdrop { z-index: 2000; }
#proj-modal .pm-dialog   { z-index: 2001; }

/* Modal Layout */
#proj-modal { position: fixed; inset: 0; display: none; z-index: 2000; }
#proj-modal.open { display: block; }
#proj-modal .pm-backdrop { position: absolute; inset:0; background: rgba(0,0,0,.5); }
#proj-modal .pm-dialog { position: relative; max-width: 980px; margin: calc(var(--header-h,72px) + 24px) auto 6vh;
  background: #fff; border-radius: 12px; overflow: hidden; }
#proj-modal .pm-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
  border-radius: 50%; border: 0; background: #0b1220; color: #fff; font-size: 20px; cursor: pointer; }
#proj-modal .pm-body { max-height: 72vh; overflow: auto; }
#proj-modal .pm-content { padding: 16px 20px 24px; }
#proj-modal .pm-cat { font-size: 12px; text-transform: uppercase; color: #5b6b7a; font-weight: 700; letter-spacing: .04em; }
#proj-modal .pm-title { margin: 4px 0 8px; font-size: 26px; line-height: 1.25; }
#proj-modal .pm-long { margin: 0 0 12px; color: #334155; }
#proj-modal .pm-section { margin: 18px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: #111827; }
#proj-modal .pm-client { margin: 0 0 12px; color: #1f2937; }

#proj-modal .pm-facts { display: grid; grid-template-columns: 1fr 2fr; gap: 8px 16px; }
#proj-modal .pm-facts dt { font-weight: 700; color: #374151; }
#proj-modal .pm-facts dd { margin: 0; color: #1f2937; }

/* Carousel */
.pm-carousel { position: relative; background: #f3f4f6; }
.pm-track { display: flex; transition: transform .35s ease; }
.pm-slide { flex: 0 0 100%; }
.pm-slide img { display: block; width: 100%; height: 340px; object-fit: cover; }
.pm-prev, .pm-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; cursor: pointer;
  z-index: 10;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-prev { left: 10px; }
.pm-next { right: 10px; }
.pm-prev:disabled, .pm-next:disabled { opacity: .4; cursor: default; }

.pm-dots { display: flex; gap: 6px; justify-content: center; padding: 10px 0; }
.pm-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #c7cdd8; cursor: pointer; }
.pm-dot.active { background: #1982ff; }

/* Karten: Excerpt in geschlossener Karte kürzen */
.proj-card .excerpt,
.project-card .excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 4;  /* Desktop: 4 Zeilen */
  line-clamp: 4;          /* Standard (für Linter) */
  line-height: 1.45;
}

/* Mobil etwas kürzer (z. B. 3 Zeilen) */
@media (max-width: 767px) {
  .proj-card .excerpt,
  .project-card .excerpt {
    -webkit-line-clamp: 3; /* Mobile: 3 Zeilen */
    line-clamp: 3;
  }
}

/* Im Modal NICHT kürzen */
#proj-modal .pm-long {
  display: block;
  -webkit-line-clamp: initial;
  line-clamp: initial;
  overflow: visible;
}


/* Modal: keine horizontale Scrollbar, nur vertikal */
#proj-modal .pm-body {
  overflow-y: auto;
  overflow-x: hidden;
}

/* Carousel-Viewport: clippen, kein nativer Horizontal-Scroll */
.pm-carousel {
  position: relative;
  overflow: visible;
}

/* Track: 1:1 Seitenwechsel, keine Lücken */
.pm-track {
  display: flex;
  gap: 0;              /* keine Zwischenräume */
  margin: 0;           /* Sicher: keine externen Abstände */
  padding: 0;
  will-change: transform;
  touch-action: pan-y; /* Swipe zulassen ohne horizontales Scrollen */
}

/* Jede Slide exakt 100% Breite, ohne Margin */
.pm-slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;           /* <figure> hat sonst Standard-Margins! */
}

/* Bild skaliert die Slide exakt aus */
.pm-slide img {
  display: block;
  width: 100%;
  height: auto;        /* oder feste Höhe nutzen, s.u. */
  object-fit: cover;
}

/* Modal: Stacking fix für Close-Button */
#proj-modal .pm-dialog { position: relative; }           /* eigener Stack */
#proj-modal .pm-close  {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;                                          /* über Carousel */
  pointer-events: auto;
}

/* Carousel unter das X legen (falls irgendwo z-index gesetzt war) */
#proj-modal .pm-carousel,
#proj-modal .pm-track,
#proj-modal .pm-slide,
#proj-modal .pm-slide img {
  position: relative;
  z-index: 1;
}

/* Optional: Klickfläche & Sichtbarkeit des X verbessern */
#proj-modal .pm-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11,18,32,.9);
  color: #fff;
  border: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

@media (max-width: 767px){
  .is-android .brand-name{
    color: white;
  }

  .cardtop{
    margin-top: -10em;
    margin-bottom: -14em;
  }
}

.card_link{
  padding: 12px 18px;
  border: 0.5px solid;
  border-radius: 8px;
  border-color: orange;
  background-color: orange;
  color: white;
}

#btn-action {
 background-color: orange;
}

.projects{
  background: #f1f5f9;
}

