.parent {
  display: grid;

  /* statt fester px: flexible Spalten */
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1fr);
  /* oder kürzer: grid-template-columns: repeat(4, minmax(0, 1fr)); */

  grid-template-rows: auto auto;
  gap: 5px;

  max-width: 1020px;
  width: 100%;          /* WICHTIG: darf schrumpfen */
  margin: 0 auto;
  box-sizing: border-box;
	position: relative;
  margin-top: -120px;
}

/* WICHTIG: Items dürfen wirklich schrumpfen */
.parent > div {
  min-width: 0;
}


.div1 {
    grid-area: 2 / 1 / 3 / 4;
    background: #14151C;   /* ROT */
	font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 0.1em;
    background: linear-gradient(180deg, #d4524d 0%, #8F221D 40%, #3d0f0d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
	text-align:center;
}

.div2 {
     grid-area: 1 / 4 / 4 / 5;
    background: #14151C;    /* GRÜN */
	height:400px
}

.div3 {
    grid-area: 3 / 1 / 4 / 2;
    background: #14151C;     /* BLAU */
	height:250px;
}

.div4 {
   grid-area: 3 / 2 / 4 / 3;
    background: #14151C;   /* GELB */
	height:250px;
}

.div5 {
     grid-area: 3 / 3 / 4 / 4;
    background: #14151C;   /* PINK */
	height:250px;
}

.index-avatar {
     width: 100%;
    height: auto;
    display: block;

    /* bündig */
    margin: 0;
    border:5px solid #8F221D;
}

.box-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding: 10px 0;
    padding-left: 20%;
    position: relative;
    margin-top:-10px;
    background: linear-gradient(180deg, #d4524d 0%, #8F221D 40%, #3d0f0d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.box-title::before {
    content: '//';
    margin-right: 10px;
    background: linear-gradient(180deg, #d4524d 0%, #8F221D 40%, #3d0f0d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
}

.box-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #8F221D, transparent);
}

/* ===== SCROLLBARER CONTENT ===== */
.box-content {
    font-size: 12px;
    color: #a3a3a3;
    line-height: 1.6;
    max-height: 190px;
    overflow-y: auto;
    padding-right: 10px;
	padding-left:5px;
	text-align:justify;
}

/* Custom Scrollbar für Box Content */
.box-content::-webkit-scrollbar {
    width: 4px;
}

.box-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}

.box-content::-webkit-scrollbar-thumb {
    background: #dc2626;
}

/* ===== NEWS ITEMS ===== */
.news-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #8F221D;
    margin-bottom: 3px;
}

.news-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    color: #e5e5e5;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.news-text {
    font-size: 11px;
    color: #c0c0c0;
    line-height: 1.5;
}

/*Teamanzeige*/

/* Team Member */
.team-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.team-member:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.team-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
   border-radius: 50%;
  border: 2px solid #8F221D;
    flex-shrink: 0;
}

.team-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    color: #e5e5e5;
    letter-spacing: 0.05em;
}

.team-role {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 11px;
    color: #8F221D;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 768px) {

  .parent{
    margin-top: -27px;     /* weniger Overlap auf Handy */
    gap: 6px;
  }

  /* Welcome-Text */
  .div1{
    font-size: clamp(12px, 4.5vw, 10px);
    line-height: 1.1;
    padding: 8px 10px;
  }

  /* Statt festen Höhen: flexibel */
  .div2{ height: auto; padding: 0; }
  .div3, .div4, .div5{ height: auto; padding: 8px; min-height: 140px; }

  /* Avatar darf NICHT 250px breit bleiben */
 .index-avatar{
    max-height: 140px;
	 border: 2px solid red;
  }

  .box-title{
    font-size: clamp(12px, 3.4vw, 14px);
    margin-bottom: 6px;
    padding-bottom: 4px;
  }

  .box-content{
    font-size: clamp(11px, 3.2vw, 13px);
    line-height: 1.35;
  }

  /* lange Wörter/Links dürfen umbrechen */
  .parent a, .box-content{
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
