/* ===============================
   ROOT VARIABLES
=================================*/
:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --blue:#1877f2;
  --blue2:#0b5ed7;
  --border:#e5e7eb;
  --shadow:0 10px 30px rgba(15,23,42,.08);
  --radius:16px;
}
html, body { height:100%; margin:0; }
body{
  background: url("./img/bg.png") no-repeat center center;
  background-size: cover;
}
.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}


.page-content{
  flex:1;
}

/* Footer bleibt unten */
.footer{
  margin-top:auto;
  padding:24px 0;
  color:var(--muted);
  border-top:1px solid var(--border);
  background:#fff;
}

/* ===============================
   GLOBAL RESET
=================================*/
*{
  box-sizing:border-box;
}

html,body{
  height:100%;
  margin:0;
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#ffffff 0%,var(--bg) 100%);
}

/* Content wächst → Footer unten */
main{
  flex:1;
}

/* ===============================
   LAYOUT
=================================*/
.container{
  max-width:1100px;
  margin:0 auto;
  padding:18px;
}

/* ===============================
   TOPBAR
=================================*/
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid var(--border);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  font-weight:800;
  color:var(--blue);
  text-decoration:none;
  font-size:20px;
}

.nav{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.nav a{
  color:var(--text);
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
  transition:.2s ease;
}

.nav a:hover{
  background:rgba(24,119,242,.08);
}

/* ===============================
   BUTTONS
=================================*/
.btn{
  display:inline-block;
  background:var(--blue);
  color:#fff !important;
  padding:10px 14px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  border:none;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(24,119,242,.25);
  transition:.2s ease;
}

.btn:hover{
  background:var(--blue2);
  transform:translateY(-1px);
}

.btn--ghost{
  background:transparent;
  color:var(--blue) !important;
  border:1px solid rgba(24,119,242,.35);
  box-shadow:none;
}

.btn--ghost:hover{
  background:rgba(24,119,242,.08);
}

/* ===============================
   CARDS
=================================*/
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  margin-bottom:18px;
  min-height:340px;
} 

/* ===============================
   GRID SYSTEM
=================================*/
.grid{
  display:grid;
  gap:0px;
}

.grid--2{
  grid-template-columns:1fr 1fr;
}

.pw-wrap{ position:relative; }
.pw-input{ padding-right:92px; }

.pw-toggle{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  border:1px solid rgba(24,119,242,.35);
  background:#fff;
  color:var(--blue);
  border-radius:12px;
  padding:6px 10px;
  font-weight:700;
  cursor:pointer;
}
.pw-toggle:hover{ background:rgba(24,119,242,.08); }

/* Password toggle: icon inside input */
.pw-wrap{
  position: relative;
  display: block;
}

.pw-input{
  padding-right: 48px; /* Platz für Icon */
}

.pw-toggle-icon{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.pw-toggle-icon svg{
  display:block;
}
.pw-toggle-icon:hover{
  color: var(--blue);
}
@media (max-width:900px){
  .grid--2{
    grid-template-columns:1fr;
  }
}

/* ===============================
   FORMS
=================================*/
.label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin:10px 0 6px;
}

.input{
  width:100%;
  padding:8px 14px; 
  border:1px solid var(--border);
  border-radius:14px;
  outline:none;
  transition:.2s ease;
}

.input:focus{
  border-color:rgba(24,119,242,.5);
  box-shadow:0 0 0 4px rgba(24,119,242,.12);
}

/* ===============================
   FOOTER
=================================*/
.footer{
  margin-top:auto;
  padding:10px 0;
  color:var(--muted);
  border-top:1px solid var(--border);
  background:#fff;
}

.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* ===============================
   UTILITY
=================================*/
.muted{
  color:var(--muted);
}

/* Live validation helpers */
.help{
  margin-top:8px;
  font-size:13px;
  color:var(--muted);
}

.help.ok{ color:#16a34a; }      /* grün */
.help.bad{ color:#dc2626; }     /* rot */

.pw-rules{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
  font-size:13px;
}
.pw-rules li{ margin:4px 0; }
.pw-rules li.ok{ color:#16a34a; }
.pw-rules li.bad{ color:#dc2626; }

.help{ margin-top:8px; font-size:13px; color:var(--muted); }
.help.ok{ color:#16a34a; }
.help.bad{ color:#dc2626; }

button.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  filter: grayscale(30%);
}

/* HOME CARD (3 sections) */
.home-card{
  padding:0;
  overflow:hidden;
}

.home-section{
  height:220px;
  padding:18px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:flex-start;
  gap:16px;
}

.home-section:last-child{
  border-bottom:none;
}

/* Avatar */
.avatar-wrap{
  position:relative;
  width:100px;
  height:100px;
  flex:0 0 100px;
}

.avatar-img{
  width:100px;
  height:100px;
  border-radius:18px;
  object-fit:cover;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  background:#fff;
}

/* Pencil icon button */
.avatar-edit{
  position:absolute;
  left:50%;
  bottom:-25px;
  transform:translateX(-50%);
  width:34px;
  height:34px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(15,23,42,.12);
  color:var(--blue);
  text-decoration:none;
}

.avatar-edit:hover{
  background:rgba(24,119,242,.08);
}

/* PROFILE PAGE LAYOUT */
.profile-grid{
  display:grid;
  grid-template-columns: 250px 1fr; /* links 250, rechts flexibel */
  gap:16px;
}

@media (max-width: 900px){
  .profile-grid{ grid-template-columns: 1fr; }
}

.profile-left .avatar-wrap{
  width:200px;
  height:250px;
}

.profile-left .avatar-img{
  width:200px;
  height:250px;
  border-radius:18px;
  object-fit:cover;
}

.profile-savebar{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:12px;
  flex-wrap:wrap;
}

.suggest-item{
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}
.suggest-item:hover{
  background:rgba(24,119,242,.08);
}
.suggest-small{ font-size:12px; color:var(--muted); }

.autocomplete-box{
  position:absolute;
  left:0;
  right:0;
  top:70px;
  z-index:999;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow: var(--shadow);
  max-height:140px;
  overflow:auto;
  padding:6px;
}

.autocomplete-item{
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-size:14px;
}
.autocomplete-item:hover{
  background:rgba(24,119,242,.08);
}
/* ====== MY PHOTOS (8 Slots) ====== */
.photos-grid-8{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
@media (max-width:1100px){
  .photos-grid-8{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:520px){
  .photos-grid-8{ grid-template-columns: 1fr; }
}

.photo-tile{
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow: var(--shadow);
}

.photo-imgwrap{
  position:relative;
  height:200px; 
  background:#f3f6fb;
}

.photo-imgwrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.photo-badge{
  position:absolute;
  left:10px;
  bottom:10px;
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
}

.photo-blur{
  filter: blur(4px);
  transform: scale(1.02);
}

/* Actions (unten kompakt) */
.photo-actions-compact{
  display:flex;
  align-items:center;
  gap:25px;
  padding:10px;
  margin-left: 20px;
}

.photo-file-hidden{ display:none; }

.icon-btn{
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  font-size:14px;
  line-height:1;
}
.icon-btn:hover{ background:rgba(24,119,242,.06); }

.icon-btn-danger{
  color:#b91c1c;
  border-color: rgba(220,38,38,.25);
}
.icon-btn-danger:hover{ background: rgba(220,38,38,.08); }

/* "Als Profilbild" Button rechts */
.mini-btn{
  margin-left:auto;
  padding:8px 10px;
  border-radius:12px;
  font-weight:800;
}

.avatar-wrap{ position:relative; }
.avatar-edit{
  position:absolute;
  right:12px;
  bottom:12px;
}

.photo-badge{ z-index:2; }
.photo-imgwrap img{ z-index:1; }

.photo-actions-bottom{
  padding: 0 10px 12px;
  display:flex;
}
.photo-actions-bottom .mini-btn{
  width:100%;
}

.photos-grid-8{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
@media (max-width:1100px){
  .photos-grid-8{ grid-template-columns: repeat(2, 1fr); }
}

.photo-actions-bottom{
  padding: 0 10px 12px 10px;
  display:flex;
}

.mini-btn{
  width:100%;
  padding:8px 10px;
  border-radius:12px;
  font-weight:700;
}

/* Favoriten Card soll „voll“ wirken, damit Pagination unten bleibt */
.favorites-card{
  display:flex;
  flex-direction:column;
  min-height: calc(100vh - 170px); /* ggf. anpassen (Header/Footer Höhe) */
}

/* 4 Spalten Desktop, 2 Tablet, 1 Mobile */
.favorites-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
}

@media (max-width: 1100px){
  .favorites-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .favorites-grid{ grid-template-columns: 1fr; }
}

/* Pagination unten links fest innerhalb der Card */
.favorites-pagination{
  margin-top:auto;
  padding-top:14px;
}

/* Pager Style */
.pager{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
}

.pager__link{
  display:inline-block;
  padding:8px 10px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  text-decoration:none;
}

.pager__link.is-active{
  font-weight:700;
  border-color:#1d4ed8;
}

.pager__dots{
  padding:0 6px;
}

.nav-badge{
  display:inline-block;
  margin-left:6px;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  background:#fee2e2;   /* hell-rot/pink */
  color:#991b1b;
  border:1px solid #fecaca;
  line-height:1.4;
}

.input-error {
  border: 2px solid #dc2626 !important;
}

/* =========================================
   RESPONSIVE FIXES (TABLET + MOBILE)
   -> ganz am Ende von style.css einfügen
========================================= */

/* Allgemein: bessere Touch-Ziele + kein Horizontalscroll */
html, body { overflow-x:hidden; }
.container{ padding:6px; }

/* Topbar: auf kleinen Screens mehr Luft + Umbruch sauber */
.topbar__inner{
  min-height:56px;
  padding:8px 0;
}
.nav a{
  padding:10px 12px;
}

/* Card: auf Mobile nicht unnötig hoch */
.card{
  min-height:auto;             /* wichtig: deine min-height:340 macht Mobile unnötig groß */
  padding:16px;
}

/* Grid 2 Spalten: ab Tablet runter auf 1 */
@media (max-width: 900px){
  .grid--2{ grid-template-columns:1fr; }
}

/* Inputs: etwas größer für Touch */
.input{
  padding:12px 14px;
  font-size:16px;              /* verhindert iOS Zoom beim Focus */
}

/* Buttons: full width auf Mobile, außer wenn du inline willst */
@media (max-width: 620px){
  .btn{
    width:100%;
    text-align:center;
  }
  .btn--ghost{ width:100%; }
}

/* HOME: 3 Sections -> auf Mobile auto height und vertikal statt "fixe Höhe 240" */
@media (max-width: 900px){
  .home-section{
    height:auto;               /* statt 240px */
    padding:16px;
    align-items:flex-start;
  }
}

@media (max-width: 620px){
  .home-section{
    flex-direction:column;
    gap:12px;
  }

  .avatar-wrap{
    width:92px;
    height:92px;
    flex:0 0 92px;
  }
  .avatar-img{
    width:92px;
    height:92px;
    border-radius:16px;
  }

  /* Edit-Icon nicht unter dem Avatar "raushängen" auf Mobile */
  .avatar-edit{
    right:10px;
    bottom:10px;
    left:auto;
    transform:none;
  }
}

/* PROFILE: linke Spalte Avatar -> auf Mobile volle Breite und flacher */
@media (max-width: 900px){
  .profile-left .avatar-wrap{
    width:100%;
    height:auto;
  }
  .profile-left .avatar-img{
    width:100%;
    height:260px;              /* mobile-friendly */
    border-radius:18px;
  }
}

/* Savebar Buttons: auf Mobile stapeln */
@media (max-width: 620px){
  .profile-savebar{
    flex-direction:column;
    align-items:stretch;
  }
}

/* Autocomplete: top:70 ist fragil -> direkt unter Input platzieren */
.autocomplete-box{
  top: calc(100% + 8px);
}

/* MY PHOTOS: Actions sollen auf Mobile nicht auseinanderlaufen */
@media (max-width: 620px){
  .photo-actions-compact{
    gap:10px;
    margin-left:0;
    justify-content:space-between;
    flex-wrap:wrap;
  }

  .icon-btn{
    padding:10px 12px;
    font-size:15px;
  }

  .photo-imgwrap{
    height:220px;              /* etwas höher auf Handy */
  }
}

/* Favoriten: Card-Minheight auf Mobile entspannen */
@media (max-width: 900px){
  .favorites-card{
    min-height:auto;
  }
}

/* Footer: schöner Umbruch */
.footer__inner{
  align-items:center;
}
@media (max-width: 620px){
  .footer__inner{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* Optional: lange Wörter/Links brechen statt Layout sprengen */
.card, .nav, .footer{
  word-break:break-word;
}


/* ===== Mobile Burger Menu ===== */
.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}

.nav-logout{ display:inline; }
.nav-logout-btn{ width:auto; }

/* Mobile/Tablet */
@media (max-width: 760px){
  .topbar__inner{
    position:relative;
  }

  .nav-toggle{
    margin-right: 15px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  /* Menü als Dropdown */
  .nav{
    display:none;                 /* standard zu */
    position:absolute;
    left:18px;
    right:18px;
    top:58px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    box-shadow: var(--shadow);
    padding:10px;
    gap:8px;
    flex-direction:column;
    z-index:60;
  }

  .nav.is-open{ display:flex; }

  .nav a{
    padding:12px 12px;
    border-radius:12px;
    white-space:normal;
  }

  .nav-logout{ width:100%; }
  .nav-logout-btn{
    width:100%;
    text-align:center;
  }
}
/* ==============================
   HOME – TOP SECTION (Teil 1)
============================== */
.home-top{
  display:grid;
  grid-template-columns: 160px minmax(240px,1fr) minmax(240px,1fr) 220px;
  gap:24px;
  align-items:start;
  margin-top: -25px;
}

.home-avatar{
  width:160px;
  height:200px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
  display:block;
  position:relative;
  text-decoration:none;
  background:#fff;
  box-shadow: var(--shadow);
}
.home-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}
.home-avatar:hover img{ transform:scale(1.06); }

.avatar-hover{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  opacity:0;
  transition: opacity .25s ease;
}
.avatar-hover span{
  color:#fff;
  font-weight:700;
  font-size:14px;
  padding:8px 14px;
  border-radius:30px;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.3);
}
.home-avatar:hover .avatar-hover{ opacity:1; }

.home-info h4{ margin:0 0 10px 0; font-size:19px; }
.home-row{ font-size:14px; margin-bottom:8px; }
.home-link{ text-decoration:none; font-weight:700; margin-left:6px; }
.home-value{ font-weight:700; margin-left:6px; }
.home-strong-gap{ margin-left:6px; }

.home-stat-line{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  margin:8px 0;
}
.home-stat-topgap{ margin-top:30px; }
.home-ico{ display:inline-flex; width:18px; height:18px; align-items:center; justify-content:center; }
.home-emoji{ font-size:18px; line-height:1; margin-right:4px; }

.home-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-end;
  padding-top:10px;
}
.home-actions .btn{
  width:auto;
  border-radius:999px;
  padding:10px 18px;
  font-size:14px;
}

/* Tablet */
@media (max-width: 980px){
  .home-top{
    grid-template-columns: 160px 1fr;
    gap:18px;
  }
  .home-actions{
    grid-column: 1 / -1;
    flex-direction:row;
    justify-content:flex-start;
    align-items:center;
    flex-wrap:wrap;
    padding-top:0;
  }
}

/* Mobile */
@media (max-width: 620px){
  .home-top{ grid-template-columns: 1fr; gap:14px; }
  .home-avatar{ width:100%; height:240px; }
  .avatar-hover{ opacity:1; }
  .home-actions{ align-items:stretch; flex-direction:column; }
  .home-actions .btn{ width:100%; text-align:center; }
}

/* ==============================
   HOME – TITLES
============================== */
.home-title{
  width:100%;
  text-align:center;
  margin:0 0 12px 0;
}
.home-title h3{
  margin:0;
  font-size:20px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  gap:8px;
  line-height:1.2;
}
.home-title-emoji{ font-size:22px; }
.home-center{ text-align:center; margin:0; }

/* ==============================
   HOME – CAROUSELS (Teil 2 & 3)
============================== */
.carousel-arrows{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin:0 0 8px 0;
}
.carousel-arrow{
  padding:6px 10px;
  border-radius:10px;
  min-width:44px;
}

.carousel-wrap{
  width:100%;
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:2px 2px 10px 2px;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  justify-content:flex-start;
  align-items:flex-start;
  margin:0;
    margin-top: -20px;
}
.carousel-wrap::-webkit-scrollbar{ height:10px; }
.carousel-wrap::-webkit-scrollbar-thumb{ background:#d1d5db; border-radius:999px; }
.carousel-wrap::-webkit-scrollbar-track{ background:transparent; }

.carousel-card{
  flex:0 0 160px;
  text-decoration:none;
  color:inherit;
}

.carousel-card-inner{
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 1px 8px rgba(0,0,0,.05);
}

.carousel-img{
  position:relative;
  width:100%;
  overflow:hidden;
}
.carousel-img--150{ height:150px; }
.carousel-img--170{ height:170px; }

.carousel-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}

.bday-hover{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  opacity:0;
  transition: opacity .25s ease;
}
.bday-hover span{
  color:#fff;
  font-weight:700;
  font-size:15px;
  letter-spacing:.5px;
  padding:8px 14px;
  border-radius:30px;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.3);
}
.carousel-card:hover .bday-hover{ opacity:1; }
.carousel-card:hover img{ transform:scale(1.06); }

.carousel-meta{
  padding:10px;
  text-align:center;
  color:black;
}
.carousel-name{
   
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
 
.carousel-sub{
  font-size:13px;
  color:#6b7280;
  margin-top:4px;
}

/* Mobile: Hover Overlay immer sichtbar (Touch) */
@media (max-width: 620px){
  .bday-hover{ opacity:1; }
  .carousel-img--150{ height:170px; }
  .carousel-img--170{ height:190px; }
}

/* =========================
   HOVER NUR AUF DESKTOP (Mouse)
   Touch-Geräte: Overlay aus
========================= */

/* Standard: Overlay AUS */
.avatar-hover,
.bday-hover{
  opacity:0;
}

/* Nur Geräte mit echtem Hover + Maus */
@media (hover: hover) and (pointer: fine){
  .home-avatar:hover .avatar-hover{ opacity:1; }
  .carousel-card:hover .bday-hover{ opacity:1; }
}

/* Touch-Geräte: nie dauerhaft sichtbar */
@media (hover: none) and (pointer: coarse){
  .avatar-hover,
  .bday-hover{
    display:none !important;   /* komplett weg, damit nicht immer sichtbar */
  }
}

/* ===== HOME Carousel Karten: Bild immer sauber zentriert, kein komisches Zuschneiden ===== */

/* Karte auf Mobile etwas breiter, damit nicht "halb" wirkt */
@media (max-width: 620px){
  .carousel-card{
    flex: 0 0 180px;   /* vorher 160px */
  }
}

/* Bildcontainer: gleiche Höhe + rund, sauber */
.carousel-img{
  border-top-left-radius:14px;
  border-top-right-radius:14px;
  overflow:hidden;
  background:#f3f6fb;
}

/* WICHTIG: immer Mitte, egal ob Hoch/Querformat */
.carousel-img img{
  object-fit: cover;
  object-position: center center;   /* <- das fixiert dein Problem */
  display:block;
}

/* Höhen für Teil 2/3: auf Mobile harmonischer */
@media (max-width: 620px){
  .carousel-img--150{ height:180px; }
  .carousel-img--170{ height:200px; }
}

/* ==================================================
   CAROUSEL BILDER (TEIL 2/3) -> wie Avatar Look
================================================== */

/* Karte gleich breit und sauber */
.carousel-card{
  flex: 0 0 160px !important;
}

/* Inner Card */
.carousel-card-inner{
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #fff !important;
}

/* Bild-Wrapper: wie Avatar (fester Rahmen + Clip) */
.carousel-img{
  position: relative !important;
  width: 100% !important;
  height: 170px !important;          /* Standardhöhe wie du willst */
  overflow: hidden !important;
  background: #f3f6fb !important;
}

/* Teil 2 etwas niedriger */
.carousel-img--150{ height: 150px !important; }
.carousel-img--170{ height: 170px !important; }

/* Das Bild selbst: 1:1 Avatar Verhalten */
.carousel-img img{
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: 50% 25% !important; /* leicht nach oben = Gesichter besser sichtbar */
  transform: none;
}

/* Desktop Hover Zoom (nur Maus-Geräte) */
@media (hover: hover) and (pointer: fine){
  .carousel-img img{ transition: transform .35s ease; }
  .carousel-card:hover .carousel-img img{ transform: scale(1.06); }
}

/* Mobile: größere Karten, damit es nicht „halb“ wirkt */
@media (max-width: 620px){
  .carousel-card{ flex-basis: 190px !important; }
  .carousel-img--150{ height: 290px !important; min-width:285px; }
  .carousel-img--170{ height: 300px !important; min-width:285px; }
}


body.light{
  background:#f5f7fb;
  color:#222;
}

body.dark{
  background:#0f172a;
  color:#e5e7eb;
}

/* cards */
body.dark .card{
  background:#1e293b;
  border-color:#334155;
}

/* inputs */
body.dark .input{
  background:#0f172a;
  color:#e5e7eb;
  border-color:#334155;
}

/* links */
body.dark a{
  color:#60a5fa;
}

 
