/* GewiNet Vorstand & Team – gleiche Designsprache wie das Mitglieder-Grid */
.gpg{--gpg-navy:#242e64;--gpg-blue:#0a4270;--gpg-green:#4bac55;--gpg-text:#626262;--gpg-line:#dfe3ea;--gpg-soft:#f4f6f9;--gpg-cols:3;
  --gpg-grad:linear-gradient(90deg,var(--gpg-blue) 0%,var(--gpg-green) 100%);--gpg-ease:cubic-bezier(.2,.7,.2,1);
  list-style:none;margin:0;padding:0;display:grid;gap:28px;grid-template-columns:repeat(var(--gpg-cols),minmax(0,1fr));color:var(--gpg-text)}
.gpg *,.gpg *::before{box-sizing:border-box;border-radius:0}
@media (max-width:1024px){.gpg{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media (max-width:640px){.gpg{grid-template-columns:1fr}}

.gpg-card{position:relative;display:flex;flex-direction:column;margin:0;padding:0;background:#fff;border:1px solid var(--gpg-line);transition:box-shadow .3s ease}
.gpg-card::before{content:"";position:absolute;left:-1px;right:-1px;top:-1px;height:3px;background:var(--gpg-grad);transform:scaleX(0);transform-origin:0 50%;transition:transform .4s var(--gpg-ease);z-index:2}
.gpg-card:hover,.gpg-card:focus-within{box-shadow:0 10px 30px -12px rgba(36,46,100,.22)}
.gpg-card:hover::before,.gpg-card:focus-within::before{transform:scaleX(1)}

/* Foto: einheitlich hochkant (540x590 wie die Teamfotos), Gesichter oben zentriert */
.gpg-photo{aspect-ratio:540/590;overflow:hidden;background:var(--gpg-soft);border-bottom:1px solid var(--gpg-line)}
.gpg .gpg-photo img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 20%}
.gpg-initial{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--gpg-navy);font-size:48px;font-weight:700}

.gpg-body{flex:1;display:flex;flex-direction:column;padding:22px 24px 22px}
.gpg .gpg-role{margin:0 0 6px;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;line-height:1.5;color:var(--gpg-green)}
.gpg .gpg-name{margin:0 0 8px;padding:0;font-size:19px;line-height:1.25;font-weight:600;color:var(--gpg-navy);overflow-wrap:break-word}
.gpg .gpg-area{margin:0 0 8px;font-size:15px;line-height:1.55;color:var(--gpg-text)}
.gpg .gpg-text{font-size:15px;line-height:1.6;color:var(--gpg-text)}
.gpg .gpg-text p{margin:0 0 .7em}
.gpg .gpg-text p:last-child{margin-bottom:0}

/* Kontakt: bündig unten, Icon + Text */
.gpg .gpg-contact{list-style:none;margin:auto 0 0;padding:14px 0 0;border-top:1px solid var(--gpg-line);display:flex;flex-direction:column;gap:6px}
.gpg .gpg-body > .gpg-role,.gpg .gpg-body > .gpg-name,.gpg .gpg-body > .gpg-area{flex:0 0 auto}
.gpg .gpg-contact + *{margin-top:0}
.gpg .gpg-text{margin-bottom:16px}
.gpg .gpg-contact li{margin:0;padding:0}
.gpg .gpg-contact a{display:inline-flex;align-items:center;gap:9px;font-size:14px;color:var(--gpg-navy);text-decoration:none;overflow-wrap:anywhere;transition:color .2s}
.gpg .gpg-contact svg{flex:0 0 auto;color:var(--gpg-green);transition:color .2s}
.gpg .gpg-contact a:hover{color:var(--gpg-green)}
.gpg .gpg-contact a:focus-visible{outline:2px solid var(--gpg-green);outline-offset:2px}

@media (prefers-reduced-motion:reduce){.gpg *,.gpg *::before{transition:none!important}}

/* Layout "kompakt": Foto links, Text rechts, zwei Spalten – kleinere Fotos, mehr Ruhe */
.gpg--kompakt{--gpg-cols:2;gap:22px}
.gpg--kompakt .gpg-card{flex-direction:row;align-items:stretch}
.gpg--kompakt .gpg-photo{flex:0 0 var(--gpg-photo,170px);width:var(--gpg-photo,170px);aspect-ratio:auto;min-height:190px;border-bottom:0;border-right:1px solid var(--gpg-line)}
.gpg--kompakt .gpg-card::before{display:none}
.gpg--kompakt .gpg-card:hover,.gpg--kompakt .gpg-card:focus-within{box-shadow:none}
.gpg--kompakt .gpg-body{padding:20px 22px 18px;min-width:0}
.gpg--kompakt .gpg-name{font-size:18px}
.gpg--kompakt .gpg-role{font-size:11px}
.gpg--kompakt .gpg-area,.gpg--kompakt .gpg-text{font-size:14px}
.gpg--kompakt .gpg-text{margin-bottom:12px}
.gpg--kompakt .gpg-contact{padding-top:10px;gap:4px}
.gpg--kompakt .gpg-contact a{font-size:13.5px}
@media (max-width:1024px){.gpg--kompakt{grid-template-columns:1fr}}
@media (max-width:480px){.gpg--kompakt .gpg-photo{flex-basis:120px;width:120px;min-height:140px}.gpg--kompakt .gpg-body{padding:14px 16px}}

/* Layout "schach": Kacheln ohne Abstand, Foto und Textfeld gleich groß, Reihen wechseln die Seite (Schachbrett) */
.gpg--schach{gap:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.gpg--schach .gpg-card{flex-direction:row;border:0;aspect-ratio:2/1;transition:none}
.gpg--schach .gpg-card::before{display:none}
.gpg--schach .gpg-card:hover,.gpg--schach .gpg-card:focus-within{box-shadow:none}
.gpg--schach .gpg-card:nth-child(4n+3),.gpg--schach .gpg-card:nth-child(4n+4){flex-direction:row-reverse}
.gpg--schach .gpg-photo{flex:0 0 50%;width:50%;aspect-ratio:auto;border:0}
.gpg--schach .gpg-body{flex:0 0 50%;width:50%;justify-content:center;align-items:center;text-align:center;padding:24px 26px;background:var(--gpg-soft);min-width:0}
.gpg--schach .gpg-name{font-size:18px;margin-bottom:6px}
.gpg--schach .gpg-role{font-size:11px;margin-bottom:8px}
.gpg--schach .gpg-area,.gpg--schach .gpg-text{font-size:14px;margin:0 0 6px}
.gpg--schach .gpg-contact{margin:12px 0 0;padding:12px 0 0;border-top:1px solid #d9dee6;align-items:center;gap:4px;width:100%}
.gpg--schach .gpg-contact a{font-size:13.5px}
@media (max-width:1024px){.gpg--schach{grid-template-columns:1fr}.gpg--schach .gpg-card:nth-child(4n+3),.gpg--schach .gpg-card:nth-child(4n+4){flex-direction:row}.gpg--schach .gpg-card:nth-child(even){flex-direction:row-reverse}}
@media (max-width:560px){.gpg--schach .gpg-card,.gpg--schach .gpg-card:nth-child(even){flex-direction:column;aspect-ratio:auto}.gpg--schach .gpg-photo,.gpg--schach .gpg-body{flex-basis:auto;width:100%}.gpg--schach .gpg-photo{aspect-ratio:1/1}}
