:root {
  --primary-color: #ffd700;
  --primary-hover: #ffcc00;
  --primary-gradient: linear-gradient(135deg, #ffd700, #ffaa00);
  --primary-glow: 0 0 15px rgba(255, 215, 0, 0.5);
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --card-bg: rgba(20, 20, 20, 0.95);
  --card-hover: rgba(30, 30, 30, 0.98);
  --light-text: #f5f5f5;
  --muted-text: #a0a0a0;
  --border-color: rgba(255, 255, 255, 0.05);
  --danger: #ff4136;
  --success: #2ecc40;
  --info: #39cccc;
  --warning: #ff851b;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0a0a0a;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23222222' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--light-text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.logo a {
  font-size: 28px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.logo a:hover {
  text-shadow: var(--primary-glow);
  text-decoration: none;
}

main {
  flex: 1;
  padding: 20px 0;
}

footer {
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--muted-text);
  font-size: 14px;
  margin-top: 40px;
}

h1,
h2,
h3 {
  margin-bottom: 20px;
  color: var(--light-text);
  font-weight: 700;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 36px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

p {
  margin-bottom: 15px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--darker-bg);
  border: 2px solid transparent;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--darker-bg);
  border: 2px solid var(--primary-hover);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--light-text);
}

.btn-secondary:active {
  transform: translateY(1px);
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--light-text);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--light-text);
  font-size: 16px;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Alerts */
.alert {
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.alert-danger {
  background-color: rgba(255, 65, 54, 0.1);
  border-left: 4px solid var(--danger);
  color: #ff8a82;
}

.alert-success {
  background-color: rgba(46, 204, 64, 0.1);
  border-left: 4px solid var(--success);
  color: #6ddb7c;
}

.alert-info {
  background-color: rgba(57, 204, 204, 0.1);
  border-left: 4px solid var(--info);
  color: #7ddada;
}

.alert-warning {
  background-color: rgba(255, 133, 27, 0.1);
  border-left: 4px solid var(--warning);
  color: #ffad5e;
}

/* Cards - Glaseffekt entfernt */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.card-content {
  padding: 20px;
}

.card-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* Home Page */
.hero {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 0;
  border-radius: 16px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 20px;
  color: var(--muted-text);
}

.note-form {
  max-width: 1200px; /* Nur die note-form bleibt breit */
  margin: 0 auto 60px;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

/* Feature Container Styles */
.feature-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  width: 100%;
}

.feature-block {
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  background-color: var(--card-bg);
  max-width: 400px; /* Begrenzte Breite für feature-block */
  margin: 0 auto;
}

.feature-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  color: var(--primary-color);
}

.feature-icon svg {
  width: 45px;
  height: 45px;
}

.feature-block h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.feature-block p {
  color: var(--light-text);
  font-size: 16px;
  line-height: 1.6;
}

/* Security Features - zentriert */
.security-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--border-color);
}

.security-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-text);
}

.security-feature svg {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
}

/* CTA Section */
.cta-section {
  padding: 60px 30px;
  text-align: center;
  border-radius: 16px;
  margin: 60px 0;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  max-width: 800px; /* Begrenzte Breite für CTA */
  margin-left: auto;
  margin-right: auto;
}

.cta-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.cta-section p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--muted-text);
}

.cta-button {
  padding: 15px 30px;
  font-size: 18px;
}

.info-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.info-sections section {
  background-color: var(--card-bg);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  max-width: 380px; /* Erhöhte Breite für info-sections */
  margin: 0 auto;
}

.info-sections h2 {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.info-sections h2 svg {
  width: 32px;
  height: 32px;
}

/* Note Created Page */
.note-created {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.note-url {
  display: flex;
  margin: 24px 0;
}

.note-url input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  font-family: monospace;
  font-size: 14px;
}

.note-url button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 0 20px;
}

.warning {
  background-color: rgba(255, 215, 0, 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 16px;
  margin: 24px 0;
  color: var(--light-text);
  border-radius: 0 12px 12px 0;
}

.warning strong {
  color: var(--primary-color);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

/* Note View Page */
.note-view,
.note-expired,
.note-confirm {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.note-content {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 12px;
  margin: 24px 0;
  text-align: left;
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.6;
  border: 1px solid var(--border-color);
}

/* Note Confirm Page */
.note-info {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  text-align: left;
  border: 1px solid var(--border-color);
}

.note-info p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-info p:last-child {
  margin-bottom: 0;
}

.note-info svg {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
}

/* Admin Pages */
.admin-login {
  max-width: 400px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.admin-dashboard {
  width: 100%;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.stat-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  max-width: 300px; /* Begrenzte Breite für stat-card */
  margin: 0 auto;
}

.stat-value {
  font-size: 48px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin: 16px 0;
}

.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
}

.chart {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  max-width: 600px; /* Begrenzte Breite für chart */
  margin: 0 auto;
}

/* Error Page */
.error-page {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

/* AJAX Form Styles */
#note-created {
  text-align: center;
}

#create-new-note-btn {
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

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

  .note-url {
    flex-direction: column;
  }

  .note-url input {
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .note-url button {
    border-radius: 12px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .feature-container,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 40px 20px;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .security-features {
    flex-direction: column;
    align-items: center;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.mb-6 {
  margin-bottom: 24px;
}

/* Chart Styles */
canvas {
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 10px;
}

/* Password Protection Styles */
.password-protection {
  margin-top: 20px;
  padding: 20px;
  background-color: rgba(255, 215, 0, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.password-protection h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.password-protection h3 svg {
  width: 20px;
  height: 20px;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.password-input {
  display: flex;
  gap: 10px;
}

.password-input input {
  flex: 1;
}

/* Neue Styles für die erweiterten Funktionen */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.form-instructions {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.instruction-step {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.instruction-step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 18px;
}

.instruction-step h3 svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.instruction-step p {
  margin-left: 34px;
  font-size: 14px;
  color: var(--muted-text);
}

.advanced-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
  transition: var(--transition);
}

.advanced-toggle svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.advanced-toggle.active svg {
  transform: rotate(180deg);
}

.advanced-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.advanced-options.show {
  max-height: 500px;
}

/* Bild-Upload Styles */
.image-upload-container {
  margin-top: 20px;
}

.image-upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 12px 20px;
  color: var(--muted-text);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}

.image-upload-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
}

.image-upload-btn svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

.image-upload-input {
  display: none;
}

.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.image-preview {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.remove-image:hover {
  background: rgba(255, 65, 54, 0.8);
}

.remove-image svg {
  width: 14px;
  height: 14px;
  color: white;
}

/* Entfernen des Glass-Effekts */
.glass {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

/* Benachrichtigungssystem */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  width: auto;
  animation: slideDown 0.3s ease-out forwards;
}

.notification svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.notification-error {
  border-left: 4px solid var(--danger);
}

.notification-error svg {
  color: var(--danger);
}

.notification-success {
  border-left: 4px solid var(--success);
}

.notification-success svg {
  color: var(--success);
}

.notification-info {
  border-left: 4px solid var(--info);
}

.notification-info svg {
  color: var(--info);
}

.notification.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

@keyframes slideDown {
  0% {
    transform: translate(-50%, -20px);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Upload-Indikator */
.upload-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
  animation: pulse 1.5s infinite;
}

.upload-indicator svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  animation: spin 2s linear infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Styles für Bilder in Nachrichten */
.note-images {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.note-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.note-image:hover {
  transform: scale(1.02);
}

.note-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Lightbox für Bilder */
.lightbox-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.lightbox-close:hover {
  background-color: rgba(255, 65, 54, 0.8);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  color: white;
}

@media (max-width: 768px) {
  .note-images {
    grid-template-columns: 1fr;
  }

  .lightbox-content img {
    max-height: 80vh;
  }
}
