:root{
  --header-h: 72px; /* gemeinsame Höhe für Logo und Navbar */
  --color-text: #3b484c; /* globale Textfarbe */
  --color-accent: #ef583a; /* Akzent (Rot) */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fcf9ed; /* Beige Hintergrund */
    color: #3b484c; /* Globale Textfarbe */
    padding-top: var(--header-h); /* Platz für fixierten Header */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between; /* Verteilt Elemente auf die gesamte Breite */
    background: #fca72e; /* Orange */
    color: #fffde7; /* Helles Gelb/Beige für Text */
    padding: 0 1rem; /* horizontaler Abstand */
    z-index: 1000;
    text-align: left; /* Navigation nicht mehr zentriert erzwingen */
}
/* Logo-Bereich */
#logo-link{
    display: inline-flex;
    align-items: center;
    height: 100%;
}
#site-logo {
    position: static;
    height: 100%; /* Logo so hoch wie der Header */
    width: auto;
    cursor: pointer;
    transition: transform 180ms ease;
}

/* Navigation (mittig platziert) */
nav {
    height: 100%;
    display: flex;
    justify-content: center;
    flex-grow: 1; /* Nimmt verfügbaren Platz ein */
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2em;
    align-items: center;
    height: 100%;
}
nav a {
    color: #fcf9ed; /* Helles Gelb/Beige */
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.5rem;
}

/* Benutzerbereich am rechten Rand */
.user-section {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto; /* Drückt den Bereich nach rechts */
}

/* Login-Button für nicht eingeloggte Benutzer */
.logged-out-only {
    display: flex;
    align-items: center;
    height: 100%;
}

.logged-out-only a {
    background: linear-gradient(135deg, #fca72e 0%, #ef583a 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: 0 2px 8px rgba(252, 167, 46, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.logged-out-only a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 167, 46, 0.4);
}

/* Verstecke/zeige Elemente basierend auf Login-Status */
.logged-out-only {
    display: flex;
}

.logged-in-only {
    display: none;
}

.logged-in .logged-out-only {
    display: none;
}

.logged-in .logged-in-only {
    display: flex;
}

/* User-Menu und Avatar (rechts ausgerichtet) */
.user-menu {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    margin-left: auto; /* Drückt den Bereich nach rechts */
}

/* Profilbild im Kreis - vertikal zentriert */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    cursor: pointer;
    margin-right: 10px; /* Abstand vom rechten Rand */
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar:hover {
    transform: scale(1.05);
}

/* User-Dropdown (versteckt bis hover/click) */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 1001;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-menu:hover .user-dropdown,
.user-menu.active .user-dropdown {
    display: block;
}

.user-dropdown .user-email {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.user-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #3b484c;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.user-dropdown-item:hover {
    background-color: #f5f5f5;
    color: #ef583a;
}

main {
    flex: 1; /* Nimmt verfügbaren Platz ein, drückt Footer nach unten */
    margin-bottom: 2rem; /* Abstand zum Footer */
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

footer {
  background-color: #3b484c;
  color: #fff;
  padding: 3rem 0;
  margin-top: 2rem;
  width: 100%;
  position: relative; /* Wichtig: nicht mehr fixed, aber klar positioniert */
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo p {
  margin: 0;
  color: rgba(255,255,255,0.7);
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-links-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-section h4 {
  color: #fca72e;
  margin-bottom: 0.5rem;
}

.footer-links-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-links-section a:hover {
  color: #fca72e;
}

/* Homepage spezifische Styles */
#hero {
    background: linear-gradient(135deg, #fca72e 0%, #ef583a 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    margin: -2rem auto 3rem;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 20px rgba(239, 88, 58, 0.2);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Features Grid */
.features-section {
    padding: 4rem 0;
    background: white;
    border-radius: 20px;
    margin: 2rem 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #3b484c;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.feature-card {
    background: #fcf9ed;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(252, 167, 46, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(239, 88, 58, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: #3b484c;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(252, 167, 46, 0.1) 0%, rgba(239, 88, 58, 0.1) 100%);
    border-radius: 20px;
    margin: 2rem 0;
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.info-content h2 {
    text-align: center;
    color: #3b484c;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Technische Hinweise */
.tech-notes {
    background: #fcf9ed;
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(252, 167, 46, 0.2);
}

.tech-notes summary {
    font-weight: 600;
    color: #3b484c;
    cursor: pointer;
    padding: 1rem 0;
}

.tech-notes p {
    margin-top: 1rem;
    line-height: 1.6;
}

/* Call to Action Section */
#cta-section {
    background: linear-gradient(135deg, rgba(252, 167, 46, 0.15) 0%, rgba(239, 88, 58, 0.15) 100%);
    text-align: center;
    padding: 6rem 2rem;
    margin-top: 4rem;
    border-radius: 20px;
}

#cta-section h2 {
    color: #3b484c;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#cta-section p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Kleine Responsive-Anpassung */
@media (max-width: 420px) {
    .card-stack { width: 340px; height: 500px; }          /* zuvor 300 x 440 */
    .swipe-card { width: 340px; height: 460px; top: 30px; }/* zuvor 300 x 400 */
}

/* Overlay-Panel für Shelter-Section */
.shelter-overlay .overlay-panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 520px);
  background: #fffdf6; /* helles Beige für Kontrast */
  color: #3b484c;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  padding: 1.2rem 1.2rem 1rem;
}
.shelter-overlay .overlay-panel h2{
  margin: -1.2rem -1.2rem .8rem; /* Banner auf volle Panelbreite ziehen */
  padding: .9rem 1rem;
  background: linear-gradient(90deg, #fca72e 0%, #ef583a 100%); /* Websitefarben: Orange → Rot */
  color: #fffde7; /* helles Beige für Kontrast */
  text-align: center; /* mittig */
  font-size: 1.3rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06);
  user-select: none; /* Text nicht markierbar */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
}

/* Kleiner Responsive-Tweak für das Overlay */
@media (max-width: 420px){
  .shelter-overlay .overlay-panel{ top: 50%; }
}

.shelter-overlay{
  position: fixed;
  inset: 0;
  z-index: 2000; /* über Header/Karten */
  touch-action: none; /* Gesten zuverlässig erfassen */
}

/* Neue Styles für die Overlay-Backdrop-Ebene */
.shelter-overlay .overlay-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(2px);
}
.shelter-overlay .overlay-panel{ z-index: 1; }

/* Wenn Overlay offen: Scroll sperren ohne Scrollbar-Layout-Shift */
body.blurred{
    overflow-x: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}


html { overflow-y: scroll; scrollbar-gutter: stable both-edges; }

/* Overlay für Tierheim-Kontakt und Tier-Informationen */
.shelter-overlay[hidden],
.animal-overlay[hidden]{ display: none; }

.shelter-overlay,
.animal-overlay{
  position: fixed;
  inset: 0;
  z-index: 2000; /* über Header/Karten */
  touch-action: none; /* Gesten zuverlässig erfassen */
}

/* Backdrop-Ebene für beide Overlays */
.shelter-overlay .overlay-backdrop,
.animal-overlay .overlay-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(2px);
}

/* Panel für beide Overlays */
.shelter-overlay .overlay-panel,
.animal-overlay .overlay-panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 520px);
  background: #fffdf6; /* helles Beige für Kontrast */
  color: #3b484c;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  padding: 1.2rem 1.2rem 1rem;
  z-index: 1;
}

/* Banner-Header für beide Overlays */
.shelter-overlay .overlay-panel h2,
.animal-overlay .overlay-panel h2{
  margin: -1.2rem -1.2rem .8rem; /* Banner auf volle Panelbreite ziehen */
  padding: .9rem 1rem;
  background: linear-gradient(90deg, #fca72e 0%, #ef583a 100%); /* Websitefarben: Orange → Rot */
  color: #fffde7; /* helles Beige für Kontrast */
  text-align: center; /* mittig */
  font-size: 1.3rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06);
  user-select: none; /* Text nicht markierbar */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
}

/* Content-Bereich */
.shelter-overlay .overlay-content,
.animal-overlay .overlay-content{
  line-height: 1.5;
}

/* Kontakt-Liste für Tierheim */
.shelter-overlay .overlay-contact-list{
  list-style: none; padding: 0; margin: .5rem 0 0 0;
}
.shelter-overlay .overlay-contact-list li{ margin: .3rem 0; }
.shelter-overlay .overlay-contact-list a{ color: #ef583a; text-decoration: none; }
.shelter-overlay .overlay-contact-list a:hover{ text-decoration: underline; }

/* Tier-Details Layout */
.animal-details {
  display: grid;
  gap: 1rem;
}
.animal-basic-info,
.animal-health-info,
.animal-care-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}
.animal-basic-info p,
.animal-health-info p,
.animal-care-info p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}
.animal-description {
  margin-top: 0.5rem;
}
.animal-desc-text {
  font-style: italic;
  margin-top: 0.5rem;
  padding: 0.8rem;
  background: rgba(252, 167, 46, 0.08);
  border-radius: 6px;
  border-left: 3px solid #fca72e;
}

/* Hints für beide Overlays */
.shelter-overlay .overlay-hint,
.animal-overlay .overlay-hint{
  margin-top: .8rem;
  font-size: .9rem;
  color: rgba(59,72,76,0.7);
  text-align: center;
}

/* Profilseite Styles */
#user-profile {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.profile-header {
  text-align: center;
  margin-bottom: 3rem;
}

.profile-header h2 {
  color: #3b484c;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Profilbild Upload */
.profile-image-section {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.image-upload-container {
  text-align: center;
}

.profile-image-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid #fca72e;
  position: relative;
  background: #fcf9ed;
}

.profile-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
  font-size: 0.9rem;
}

.image-placeholder span {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.remove-image-btn {
  background: #ef583a;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.remove-image-btn:hover {
  background: #d94528;
}

/* Formular Styles */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(252, 167, 46, 0.1);
  border: 1px solid rgba(252, 167, 46, 0.2);
}

.form-section h3 {
  color: #3b484c;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #fca72e;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: #3b484c;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fcf9ed;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #fca72e;
  box-shadow: 0 0 0 3px rgba(252, 167, 46, 0.1);
}

.form-group input:required:valid {
  border-color: #46a849;
}

.form-group small {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.3rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Button Styles */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cta-btn.primary {
  background: linear-gradient(135deg, #fca72e 0%, #ef583a 100%);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 4px 12px rgba(252, 167, 46, 0.3);
}

.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 167, 46, 0.4);
}

.cta-btn.secondary {
  background: transparent;
  color: #3b484c;
  border: 2px solid #e0e0e0;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}

.cta-btn.secondary:hover {
  border-color: #fca72e;
  color: #fca72e;
  transform: translateY(-1px);
}

/* Status Message */
.save-status {
  text-align: center;
  padding: 1rem;
  background: rgba(252, 167, 46, 0.05);
  border-radius: 8px;
  border-left: 4px solid #fca72e;
}

.save-status .muted {
  margin: 0;
  line-height: 1.5;
}

/* Homepage Styles */
#hero {
  background: linear-gradient(135deg, #fca72e 0%, #ef583a 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(239, 88, 58, 0.2);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-tagline {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Container für einheitliche Breite */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Einführungstext */
#home-content {
  margin-bottom: 3rem;
}

.intro-text {
  text-align: center;
  margin-bottom: 3rem;
}

/* Features Grid */
.features-section {
  margin-bottom: 4rem;
}

.features-section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #3b484c;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid rgba(252, 167, 46, 0.2);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(239, 88, 58, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #3b484c;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: #666;
  line-height: 1.5;
}

/* Info Section */
.info-section {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.info-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.info-content h2 {
  color: #3b484c;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Technische Hinweise */
.tech-notes {
  background: #fcf9ed;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 3rem;
}

.tech-notes details {
  margin-bottom: 1rem;
}

.tech-notes summary {
  font-weight: 600;
  color: #3b484c;
  cursor: pointer;
}

/* CTA Section */
#cta-section {
  background-color: #fcf9ed;
  text-align: center;
  padding: 4rem 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(252, 167, 46, 0.2);
}

#cta-section h2 {
  color: #3b484c;
  font-size: 2rem;
  margin-bottom: 1rem;
}

#cta-section p {
  color: #666;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Button Styles */
.cta-btn.primary {
  background: linear-gradient(135deg, #fca72e 0%, #ef583a 100%);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 4px 12px rgba(252, 167, 46, 0.3);
  text-decoration: none;
  display: inline-block;
}

.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 167, 46, 0.4);
}

.cta-btn.secondary {
  background: white;
  color: #3b484c;
  border: 2px solid #e0e0e0;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
  display: inline-block;
}

.cta-btn.secondary:hover {
  border-color: #fca72e;
  color: #fca72e;
  transform: translateY(-1px);
}

/* Footer neu gestalten */
footer {
  background-color: #3b484c;
  color: #fff;
  padding: 3rem 0;
  margin-top: 2rem;
  width: 100%;
  position: relative; /* Wichtig: nicht mehr fixed, aber klar positioniert */
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo p {
  margin: 0;
  color: rgba(255,255,255,0.7);
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-links-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-section h4 {
  color: #fca72e;
  margin-bottom: 0.5rem;
}

.footer-links-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-links-section a:hover {
  color: #fca72e;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  #hero {
    padding: 3rem 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-links-section {
    align-items: center;
  }
}
/* =========================
   Cookie Consent Styles
   ========================= */
#cookie-banner {
  display: none; /* wird per JS sichtbar */
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: #fff;
  color: #111;
  border: 1px solid #e6e6e6;
  padding: 16px;
  z-index: 9999;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  max-width: 980px;
  margin: 0 auto;
  font-size: 0.95rem;
}
#cookie-banner .col { display:inline-block; vertical-align:top; }
#cookie-banner .col.left { width: 68%; padding-right: 12px; }
#cookie-banner .col.right { width: 30%; text-align:right; }
#cookie-banner .btn { display:inline-block; margin:6px 0; padding:8px 12px; border-radius:6px; border:none; cursor:pointer; font-weight:600; }
#cookie-accept { background:#0073e6; color:white; }
#cookie-save { background:#f0f0f0; color:#222; border:1px solid #ccc; }
#cookie-banner small { color:#666; display:block; margin-top:8px; }
@media (max-width:600px){
  #cookie-banner .col.left, #cookie-banner .col.right { display:block; width:100%; text-align:left; }
  #cookie-banner { left: 8px; right: 8px; bottom: 12px; padding:12px; }
}

/* Feed Styles */
#feed {
    width: 100%;
    height: calc(100vh - var(--header-h));
    position: relative;
    overflow: hidden;
}

/* Card-Stack für den Swipe-Feed */
.card-stack {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 580px;
    margin: 0;
}

.swipe-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
    touch-action: none;
    transition: transform 200ms ease-out, opacity 200ms ease-out;
    transform-origin: center center;
}

/* Card-Info für Name, Alter und Distanz */
.card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    color: #fffde7;
    text-align: center;
}

.card-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-distance {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #fca72e;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Vote-Overlay mit Blur-Effekten */
.vote-overlay {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 120ms ease-out;
}

/* Grün für Like (links swipen) */
.vote-overlay.like {
    background: linear-gradient(90deg,
        rgba(46, 204, 113, 0.4) 0%,
        rgba(46, 204, 113, 0.1) 40%,
        transparent 60%
    );
    backdrop-filter: blur(4px);
}

/* Rot für Nope (rechts swipen) */
.vote-overlay.nope {
    background: linear-gradient(-90deg,
        rgba(231, 76, 60, 0.4) 0%,
        rgba(231, 76, 60, 0.1) 40%,
        transparent 60%
    );
    backdrop-filter: blur(4px);
}

.vote-overlay .vote-text {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Profilbild im Header */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff0000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    cursor: pointer;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 45px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    display: none;
    z-index: 100;
    padding: 8px 0;
}

.user-menu.open .user-dropdown {
    display: block;
}

.user-dropdown-item {
    padding: 10px 15px;
    color: #3b484c;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.user-dropdown-item:hover {
    background: rgba(255, 0, 0, 0.05);
}

.user-dropdown-item.logout {
    border-top: 1px solid #eee;
    margin-top: 5px;
    color: #ff0000;
}

.user-dropdown .user-email {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
