/* ==========================================================
   Global Theme (Blue-based) – rgb(35,56,119)
   - Blue theme based on rgb(35,56,119)
   - White card backgrounds
   - Logo + label stacked (vertical)
   - Label as plain text (no badge/pill)
   - Brand logo in a fixed-height container (consistent height)
   ========================================================== */

:root{
  --brandBlue: rgb(35,56,119);
  --brandBlue-55: rgba(35,56,119,.55);
  --brandBlue-18: rgba(35,56,119,.18);
  --brandBlue-10: rgba(35,56,119,.10);
  --brandBlue-06: rgba(35,56,119,.06);

  --bg: #0b1220;
  --textOnDark: rgba(255,255,255,.92);
  --mutedOnDark: rgba(255,255,255,.72);

  --cardBg: #ffffff;
  --cardText: #111827;
  --cardMuted: #374151;
  --cardBorder: rgba(17,24,39,.08);

  --container: 1100px;
  --radius: 20px;
  --gap: clamp(12px, 2vw, 20px);

  --shadow: 0 14px 40px rgba(0,0,0,.18);

  --h1: clamp(28px, 3.2vw, 46px);
  --h2: clamp(20px, 2.4vw, 30px);
  --p: clamp(14px, 1.5vw, 16px);

  --focusRing: 0 0 0 4px rgba(35,56,119,.28);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--textOnDark);
  line-height: 1.5;
  background:
    radial-gradient(1000px 650px at 30% -10%, var(--brandBlue-55), transparent 58%),
    radial-gradient(900px 600px at 85% 5%, rgba(255,255,255,.10), transparent 55%),
    var(--bg);
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{ width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* Hero */
.hero{
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: clip;
}

.hero__bg{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.70)),
    url("./assets/images/ddf.jpg") center/cover no-repeat;
  transform: scale(1.02);
}

.hero__content{
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 70px) 0;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.hero__logo{
  width: min(360px, 72vw);
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.35));
}

.hero__text h1{ margin: 0; font-size: var(--h1); letter-spacing: .2px; }
.hero__text p{ margin: 6px 0 0; font-size: var(--p); color: var(--mutedOnDark); }

.hero__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.hero__wave{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  fill: var(--bg);
}

/* Main */
.main{ padding: clamp(28px, 4vw, 60px) 0; }
.section__head{ margin-bottom: 14px; }
.section__head h2{ margin: 0; font-size: var(--h2); }

/* Grid */

.grid{
  display: grid;
  gap: var(--gap);

  /* automatische Spalten: so viele wie reinpassen */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  /* sorgt dafür, dass die Reihen schön „auffüllen“ */
  align-items: stretch;
}

.section--full{
  width: 100%;
  padding-inline: 1rem; /* etwas Rand, damit es nicht klebt */
}


/* Cards */
.card{
  background: var(--cardBg);
  color: var(--cardText);
  border-radius: var(--radius);
  border: 1px solid var(--cardBorder);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Card header: blue accent from top */
.card__top{
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  background: linear-gradient(to bottom, var(--brandBlue-18), rgba(255,255,255,0) 75%);
  border-top: 6px solid var(--brandBlue);
}

/* Brand logo fixed-height container */
.brandbox{
  width: 100%;
  height: auto;/*156px; /* change this to control logo height */
  padding: 8px 12px;
 
  
  display: flex;
  align-items: center;
  justify-content: flex-start; /* or center */
  overflow: hidden;
}

.brandbox__img{
  height: 100%;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Label as plain text */
.line-title{
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--brandBlue);
}

.card__media{ padding: 0 16px 8px; }



.avatar{
  width: 100%;
  aspect-ratio: 4 / 3;      /* <— mehr Höhe */
  object-fit: cover;
  object-position: 50% 5%;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.10);
  background: #f3f4f6;
}



.card__body{ padding: 12px 16px 0; display: grid; gap: 8px; }
.card__name{ margin: 0; font-size: 16px; letter-spacing: .2px; }

.meta{ margin: 0; font-size: 14px; color: var(--cardMuted); line-height: 1.55; }
.meta strong{ color: var(--cardText); font-weight: 700; }
.meta a{ color: var(--cardText); text-decoration: none; }
.meta a:hover{ text-decoration: underline; }

.card__actions{ padding: 14px 16px 16px; margin-top: auto; display: grid; gap: 10px; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(35,56,119,.25);
  background: var(--brandBlue-06);
  color: var(--brandBlue);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}

.btn:hover{ background: var(--brandBlue-10); text-decoration: none; }
.btn:active{ transform: translateY(1px); }
.btn:focus-visible{ outline: none; box-shadow: var(--focusRing); border-color: rgba(35,56,119,.45); }

.btn--primary{ background: var(--brandBlue); color: #fff; border-color: rgba(35,56,119,.55); }
.btn--primary:hover{ filter: brightness(1.05); }

.btn--ghost{ background: transparent; }
.btn--small{ width: auto; padding: 8px 12px; border-radius: 12px; }

/* Footer */
.footer{
  margin-top: 4rem;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);
}

.footer__inner{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--mutedOnDark);
}

.footer a{ color: var(--textOnDark); }

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
}
