/* Schriftarten einbinden */
@font-face {
  font-family: 'Chaney';
  src: url('font/Chaney/CHANEY-Regular.woff2') format('woff2'),
       url('font/Chaney/CHANEY-Regular.woff') format('woff'),
       url('font/Chaney/CHANEY-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Silka';
  src: url('font/Silka/Silka-Regular.woff2') format('woff2'),
       url('font/Silka/Silka-Regular.woff') format('woff'),
       url('font/Silka/Silka-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

/* Body */
body {
  font-family: 'Silka', Arial, sans-serif;
  background: linear-gradient(135deg, #B9D8A5 0%, #ffffff 100%);
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Container */
.container {
  width: 90%;
  max-width: 600px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}

/* Header */
.header {
  background-color: #000;
  padding: 20px;  /* Header-Padding: 20px wie gewünscht */
  text-align: center;
}
.header .logo {
  width: 100px;
  margin: 0 auto;
  cursor: pointer;
}

/* Main Content */
.main {
  padding: 20px;
  text-align: center;
}
.title {
  font-family: 'Chaney', serif;
  font-size: 2em;  /* 2em für Screen 2 */
  color: #000;
  margin-bottom: 10px;
}
.upload-instructions {
  margin-bottom: 20px;
  font-size: 1em;
  color: #333;
}

/* Intro-Text auf Startseite – Absätze */
.intro-text {
  font-size: 1em;
  color: #333;
  margin: 20px 0;
  line-height: 1.6;
  text-align: center;
}

/* Mode-Auswahl */
.mode-selection {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}
.mode-card {
  flex: 1;
  margin: 0 10px;
  padding: 30px 20px;
  background-color: #B9D8A5;
  color: #000;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.mode-card:hover {
  background-color: #A3C48B;
  transform: translateY(-5px);
}

/* Back Button */
.back-btn {
  display: inline-block;
  background-color: #B9D8A5;
  color: #000;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
  position: absolute;
  top: 10px;
  left: 10px;
  transition: background-color 0.3s, transform 0.2s;
}
.back-btn:hover {
  background-color: #A3C48B;
  transform: translateY(-2px);
}

/* Formulare (Screen 2a) */
.vcard-form {
  text-align: left;
  margin-top: 40px;  /* Platz für den Back-Button */
}
.vcard-form fieldset {
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
}
.vcard-form legend {
  font-family: 'Chaney', serif;
  font-weight: bold;
  padding: 0 5px;
  margin-bottom: 10px;
}
.vcard-form input[type="text"],
.vcard-form input[type="email"],
.vcard-form input[type="tel"],
.vcard-form input[type="url"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Uploadfelder (Screen 2b) */
.upload-input {
  margin-bottom: 20px;
  text-align: left;
}
.upload-input label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}
.upload-input input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Download-Link für CSV-Vorlage */
.download-template a {
  text-decoration: underline;
  color: #0a9396;
  font-size: 0.9em;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: #B9D8A5;
  color: #000;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
  width: 100%;
}
.btn:hover {
  background-color: #A3C48B;
  transform: scale(1.02);
}
.download-btn {
  width: auto;
  padding: 10px 20px;
  margin: 20px auto 0;
  display: inline-block;
}

/* Progress Section (Screen 3) */
.progress-section {
  margin-top: 20px;
  text-align: center;
}
.progress-bar-container {
  width: 100%;
  background-color: #ddd;
  border-radius: 5px;
  overflow: hidden;
  margin: 20px 0;
  position: relative;
}
.progress-bar {
  width: 0%;
  height: 20px;
  background-color: #B9D8A5;
  transition: width 0.1s linear;
  position: relative;
}
.progress-percent {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9em;
  line-height: 20px;
  color: #000;
}
.progress-text {
  font-size: 1em;
  margin-top: 10px;
}

/* Checkmark Animation */
.checkmark {
  width: 60px;
  height: 60px;
  stroke: #B9D8A5;
  stroke-width: 4;
  stroke-miterlimit: 10;
  fill: none;
  overflow: visible;
  animation: checkmark-pop 1s ease-out forwards;
}
.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: dash 1s ease-in-out forwards;
}
.checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: dash-check 1s ease-in-out forwards 0.5s;
}
@keyframes dash {
  to { stroke-dashoffset: 0; }
}
@keyframes dash-check {
  to { stroke-dashoffset: 0; }
}
@keyframes checkmark-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Footer */
.footer {
  background-color: #f0f0f0;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  font-size: 0.9em;
  color: #333;
}
.footer-right a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 0.9em;
}
.footer-right .website-icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

/* Animationen */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
  .title { font-size: 1.8em; }
  .intro-text { font-size: 0.9em; }
  .mode-card { padding: 20px 10px; }
  .btn { font-size: 1em; padding: 10px; }
}
