
@import url('https://fonts.googleapis.com/css2?family=Verdana:wght@400;700&display=swap');

/* StudiVZ specific CSS variables */
:root {
    --studivz-red: #cc0033;
    --studivz-dark-red: #b30029;
    --studivz-light-red: #f5e6ea;
    --studivz-gray: #f5f5f5;
    --studivz-border: #cccccc;
}

/* Reset and base styles */
/* ... keep existing code (reset and base styles) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.3;
    background-color: #e0e0e0;
}

/* Page wrapper */
/* ... keep existing code (page wrapper styles) */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0;
}

.container {
    width: 1360px;
    max-width: 1360px;
    background-color: white;
    border: 2px solid #999999;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    min-height: 100vh;
}

/* Header */
/* ... keep existing code (header styles) */
.header {
    background-color: var(--studivz-red);
    color: white;
    padding: 8px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.nav-links a:hover {
    text-decoration: underline;
}

.hochzeits-headline {
  font-size: 24px;
  font-weight: bold;
  color: var(--studivz-red);
  text-align: center;
  margin: 24px 0 16px;
  font-family: Verdana, Arial, sans-serif;
}

@media (max-width: 768px) {
  .hochzeits-headline {
    font-size: 20px;
    margin: 20px 8px;
  }
}


/* Search Bar */
/* ... keep existing code (search bar styles) */
.search-bar {
    background-color: var(--studivz-gray);
    padding: 8px;
    border-bottom: 1px solid var(--studivz-border);
}

.search-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-icon {
    font-size: 13px;
}

.search-input {
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    padding: 4px;
    border: 1px solid var(--studivz-border);
    width: 256px;
}

.search-button {
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    background-color: #e0e0e0;
    padding: 4px 8px;
    border: 1px solid var(--studivz-border);
    cursor: pointer;
}

/* Main layout */
/* ... keep existing code (main layout styles) */
.main-layout {
    display: flex;
}

/* Sidebar */
/* ... keep existing code (sidebar styles) */
.sidebar {
    width: 180px;
    background-color: #fafafa;
    border-right: 1px solid var(--studivz-border);
    min-height: calc(100vh - 120px);
}

.sidebar-content {
    padding: 12px;
}

.nav-section {
    margin-bottom: 16px;
}

.nav-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--studivz-red);
    margin-bottom: 8px;
}

.nav-list {
    list-style: none;
    font-size: 13px;
}

.nav-list li {
    margin: 1px 0;
}

.nav-list a {
    color: black;
    text-decoration: none;
}

.nav-list a:hover {
    text-decoration: underline;
}

.edit-link {
    color: #666;
    font-size: 13px;
}

/* Profile Switch */
/* ... keep existing code (profile switch styles) */
.profile-switch {
    background: white;
    border: 1px solid var(--studivz-border);
    padding: 8px;
    margin-bottom: 16px;
}

.profile-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.profile-option:last-child {
    margin-bottom: 0;
}

.profile-thumb {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.status-dot {
    width: 16px;
    height: 16px;
    background-color: var(--studivz-red);
    border-radius: 50%;
    margin-right: 8px;
}

/* App Tip */
/* ... keep existing code (app tip styles) */
.app-tip {
    background: white;
    border: 1px solid var(--studivz-border);
    padding: 8px;
}

.app-tip-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.app-tip-image {
    width: 100%;
    margin-bottom: 8px;
}

.app-name {
    font-size: 13px;
    margin-bottom: 4px;
}

.app-description {
    font-size: 13px;
    color: #666;
}

/* Content */
/* ... keep existing code (content styles) */
.content {
    flex: 1;
    padding: 16px;
}

.page-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 16px;
}

/* StudiVZ Boxes */
/* ... keep existing code (studivz box styles) */
.studivz-box {
    border: 1px solid var(--studivz-border);
    background: white;
    margin-bottom: 16px;
}

.studivz-box-header {
    background: var(--studivz-light-red);
    border-bottom: 1px solid var(--studivz-border);
    padding: 4px 8px;
    font-size: 15px;
    font-weight: bold;
    color: var(--studivz-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-header-action a {
    font-size: 13px;
    color: var(--studivz-red);
    text-decoration: none;
}

.box-header-action a:hover {
    text-decoration: underline;
}

.studivz-box-content {
    padding: 12px;
    font-size: 13px;
}

.centered {
    text-align: center;
}

/* Friends Grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-image {
    width: 100px;
    height: 100px;
    border: 1px solid var(--studivz-border);
    border-radius: 2px;
    object-fit: cover;
}

.friend-name {
    font-size: 13px;
    font-weight: bold;
    color: black;
}
.upload-description {
  font-size: 13px;
  color: #666;
  font-family: Verdana, Arial, sans-serif;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 24px;
}


.friends-footer {
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 8px;
}

.friends-link {
    font-size: 13px;
    color: var(--studivz-red);
    text-decoration: none;
}

.friends-link:hover {
    text-decoration: underline;
}

/* Profile Information */
/* ... keep existing code (profile information styles) */
.profile-info {
    display: flex;
    gap: 16px;
}

.profile-image {
    width: 128px;
    height: 128px;
    border: 1px solid var(--studivz-border);
    flex-shrink: 0;
}

.profile-details {
    flex: 1;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    vertical-align: top;
    padding: 2px 0;
    font-size: 13px;
}

.label {
    font-weight: bold;
    padding-right: 16px;
}

/* Timeline */
/* ... keep existing code (timeline styles) */
.timeline-entry {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.timeline-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-image {
    width: 200px;
    border: 1px solid var(--studivz-border);
    margin-right: 12px;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
}

.timeline-description {
    font-size: 15px;
    color: #666;
}

.gruschl-button {
  background: linear-gradient(135deg, var(--studivz-red), var(--studivz-dark-red));
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 14px;
  font-family: Verdana, Arial, sans-serif;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.gruschl-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.gruschl-button:hover::after {
  opacity: 1;
  animation: pulse 1s infinite ease-out;
}

.gruschl-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.photo-upload-wrapper {
  text-align: center;
  margin-top: 24px;
}

.photo-button {
  display: inline-block;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  font-size: 13px;
  font-family: Verdana, Arial, sans-serif;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.photo-button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #e67e22, #d35400);
}

.photo-filename {
  font-size: 10px;
  color: #666;
  margin-top: 8px;
}


.gruschl-description {
    font-size: 13px;
    color: #666;
}

/* Groups */
/* ... keep existing code (groups styles) */
.groups-list {
    list-style: none;
    font-size: 13px;
}

.groups-list li {
    margin: 4px 0;
}

.groups-list a {
    color: black;
    text-decoration: none;
}

.groups-list a:hover {
    text-decoration: underline;
}

/* No entries */
/* ... keep existing code (no entries styles) */
.no-entries {
    color: #666;
    font-size: 13px;
}

/* Links */
/* ... keep existing code (links styles) */
a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Typography overrides */
/* ... keep existing code (typography styles) */
h1 {
    font-size: 14px;
    font-weight: bold;
}

h2 {
    font-size: 13px;
    font-weight: bold;
}

h3 {
    font-size: 11px;
    font-weight: bold;
}

h4 {
    font-size: 13px;
    font-weight: bold;
}

/* Modal Dialogs */
/* ... keep existing code (modal styles) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    background: white;
    border: 2px solid var(--studivz-border);
    border-radius: 0;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.3);
    padding: 0;
    max-width: 400px;
    width: 90%;
    font-family: Verdana, Arial, sans-serif;
}

.modal-header {
    background: var(--studivz-light-red);
    border-bottom: 1px solid var(--studivz-border);
    padding: 8px 12px;
    font-size: 11px;
    font-weight: bold;
    color: var(--studivz-red);
}

.modal-content {
    padding: 16px;
    font-size: 11px;
    line-height: 1.4;
}

.modal-buttons {
    padding: 12px 16px;
    text-align: right;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.modal-button {
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    background: var(--studivz-red);
    color: white;
    border: none;
    padding: 6px 12px;
    margin-left: 8px;
    cursor: pointer;
    border: 1px solid var(--studivz-dark-red);
}

.modal-button:hover {
    background: var(--studivz-dark-red);
}

.modal-button.secondary {
    background: #e0e0e0;
    color: black;
    border: 1px solid #ccc;
}

.modal-button.secondary:hover {
    background: #d0d0d0;
}

.modal-input {
    width: 100%;
    padding: 6px;
    border: 1px solid var(--studivz-border);
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    margin-top: 8px;
}

.modal-emoji {
    font-size: 16px;
    margin-right: 8px;
}

/* Hide scrollbar when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Profile Information */
.profile-info {
    display: flex;
    gap: 16px;
}

.profile-image {
    width: 300px;
    height: 435px;
    border: 1px solid var(--studivz-border);
    flex-shrink: 0;
    object-fit: cover;
}

.profile-details {
    flex: 1;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    vertical-align: top;
    padding: 2px 0;
    font-size: 13px;
}

.label {
    font-weight: bold;
    padding-right: 16px;
}


#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
    z-index: 9999;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    border: none;
    box-shadow: none;
  }

  .header-content,
  .search-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 8px;
  }

  .main-layout {
    flex-direction: column;
  }

  .search-input {
  width: 156px;
}

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--studivz-border);
    min-height: 0px;
  }

  .content {
    padding: 12px;
  }


  .profile-info {
    flex-direction: column;
    align-items: center;
  }



  .timeline-entry {
    flex-direction: column;
    align-items: center;
  }

  .timeline-image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
  }

  .gruschl-button {
    width: 100%;
    text-align: center;
  }

  .friends-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.sparkle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: gold;
  border-radius: 80%;
  opacity: 0.8;
  animation: sparkle-fall 3.5s ease-out forwards;
}

@keyframes sparkle-fall {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) scale(0.2);
    opacity: 0;
  }
}

.heart {
  position: fixed;
  top: -20px;
  font-size: 24px;
  color: hotpink;
  animation: fall 3s linear infinite;
  pointer-events: none;
  z-index: 9999;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
/* Lightbox styles */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 32px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  background: none;
  border: none;
}

.back-button-wrapper {
  text-align: center;
  margin: 32px 0 16px;
}

.back-button {
  display: inline-block;
  background: var(--studivz-red);
  color: white;
  padding: 12px 24px;
  font-size: 14px;
  font-family: Verdana, Arial, sans-serif;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.back-button:hover {
  background: var(--studivz-dark-red);
}

@media (max-width: 768px) {
  .back-button {
    font-size: 16px;
    padding: 14px 28px;
    width: calc(100% - 48px);
  }
}
