/* Importierte Schriftarten */
@import "https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap";
@import "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;1,400&display=swap";

/* Globale Variablen */
:root {
  --light-brown: rgba(51, 22, 22, 0);
  --dark-brown: rgba(141, 152, 145, 0.45);
  --hover-brown: rgba(220, 105, 105, 0.61);
  --olive-green: rgba(140, 164, 123, 0.9);
  --batch-green: #c8e6c9;
  --dark-red: rgba(150, 17, 64, 0.89);
  --hover-red: #790d16;
  --hover-green: #a7df89;
  --pale-green: #e8f5e9;
  --transparent-beige: rgba(33, 33, 22, 0.55);
  --light-beige: #efebe9;
  --subtle-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  --creamy-ivory: #ffffff;
  --shadow-dark: 0 4px 8px rgba(0, 0, 0, 0.2);
  --muted-leather: #a98c8d;
  --soft-gold: #ffd54f;
  --rich-velvet: #6a1b9a;
  --harmonious-blue: #748fd9;
  --harmonious-purple: #ba68c8;
  --harmonious-green: #64a868;
  --harmonious-yellow: rgba(0, 74, 170, 0.84);
}

/* Universelle Stile */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

/* Animationen */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes sparkles {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
    }
}

/* HTML- und Body-Stile */
html {
    line-height: 1.5;
    font-family: 'Source Sans Pro', sans-serif;
    height: 100%;
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--light-beige);
    transition: filter 0.3s ease;
}

body.blur-active {
    filter: blur(5px);
}

/* Analyse-Stile */
.analysis_container {
  max-width: 800px;
  min-width: 400px;
  max-height: 800px;
  margin: 4rem auto 20px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.61);
  border-radius: 20px;
  box-shadow: var(--subtle-shadow);
  transition: transform 0.3s ease;
  text-align: justify;
}

.methods {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  font-size: 25px;
}

.method {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  padding: 15px;
  border-radius: 10px;
  background: rgba(255, 237, 237, 0.89);
  box-shadow: var(--subtle-shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  color: rgb(19, 18, 18);
}

.method:hover {
  box-shadow: var(--hover-shadow);
  transform: scale(1.03);
}

.method-title {
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #000000;
}

.method-description {
  border: 1px solid #eee;
  padding: 10px;
  flex-grow: 1;
  background-color: #fff;
}

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

.datanal {
  color: rgba(255, 255, 255, 0.61) !important;
  background-color: #1f2023;
  margin-top: 1rem;
  padding: 20px;
  border-radius: 13px;
}

/* Komponenten-Stile */
/* Lade-Overlay */
#loadingOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
  z-index: 10;
  font-size: 1.5rem;
}

#progress-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, rgba(18, 194, 233, 0.98), #c471ed, #f64f59);
  margin-bottom: 20px;
}

.progress-text-container {
  font-family: "Uncial Antiqua", cursive;
  font-size: 3rem;
  text-align: center;
  color: #333;
  line-height: 1.5;
}

#hiddenInput {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#hiddenInput.visible {
  opacity: 1;
  pointer-events: auto;
  position: initial;
}

/* Form Group */
.form-group {
    display: flex;
    margin-top: 80px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 2rem;
    gap: 20px;
    position: relative;
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--dark-brown);
}

/* Grid Custom */
.grid-custom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, calc(100px * var(--scale-factor)));
    gap: calc(20px * var(--scale-factor));
    justify-content: center;
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

.grid-custom::before,
.horizontal-line,
.vertical-line {
    content: '';
    position: absolute;
    background-color: var(--dark-brown);
    z-index: 1;
}

.grid-custom::before {
    top: calc(100% + calc(20px * var(--scale-factor)));
    left: 0;
    width: 100%;
    height: 2px;
}

.horizontal-line {
    width: 100%;
    height: 2px;
}

.vertical-line {
    width: 2px;
    height: 100%;
}

/* Sparkle Animation */
.sparkle {
    position: absolute;
    width: 3px;
    height: 10px;
    border-radius: 50px;
    transition: all 4000ms ease-out;
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.27);
    border-width: 0.3px;
    background: #FFD700;
    transform: scale(1);
}
