/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   BASE / BODY
========================= */
body {
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  background-color: #c4c4c4;
  color: #1f2937;
  padding-top: 160px; /* fixed header offset */
  transition: background 0.3s, color 0.3s;
}

@media (max-width: 768px) {
  body {
    padding-top: 120px;
  }
}

/* =========================
   LOGO
========================= */
.tik-logo a {
  color: #ff0000 !important;
  font-size: 5em;
  font-family: Arial;
  font-weight: bolder;
  font-style: italic;
  text-decoration: none;
}

/* =========================
   TEXT + IMAGE LAYOUT
========================= */
.text-image-wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}

.text-image-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.text-image-block .text,
.text-image-block .image {
  flex: 1 1 50%;
}

.text-image-block .image {
  display: flex;
  justify-content: center;
}

.text-image-block .image img {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* Image size helpers */
.image img.img-small {
  max-width: 50px;
}

.image img.img-medium {
  max-width: 500px;
}

.image img.img-large {
  max-width: 700px;
}

.image img.img-max-height {
  max-height: 450px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .text-image-block {
    flex-direction: column;
    align-items: center;
  }

  .text-image-block .image img {
    max-width: 90%;
  }
}

/* =========================
   CONTENT WRAPPER
========================= */
.content-wrapper {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.content-container {
  max-width: 70vw;
  width: 100%;
  padding: 40px;
  border-radius: 16px;
  background: #cccccc;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

@media (max-width: 600px) {
  .content-container {
    padding: 24px;
  }
}

/* =========================
   TYPOGRAPHY
========================= */
.content-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.content-meta {
  font-size: 0.9rem;
  margin-bottom: 24px;
  color: #6b7280;
}

.content-article h2 {
  font-size: 1.4rem;
  margin: 24px 0 12px;
}

.content-article p {
  margin-bottom: 16px;
}

.content-article ul {
  margin: 16px 0;
  padding-left: 20px;
}

.content-article a {
  text-decoration: none;
  font-weight: 500;
  color: #6366f1;
  transition: color 0.2s;
}

/* =========================
   IMAGES
========================= */
.content-image {
  margin: 24px 0;
  text-align: center;
}

.content-image img {
  max-width: 100%;
  border-radius: 12px;
}

.content-image figcaption {
  font-size: 0.85rem;
  margin-top: 8px;
  color: #6b7280;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

/* =========================
   DARK MODE
========================= */
body.dark-mode {
  background-color: #4a4a4b;
  color: #f1f5f9;
}

body.dark-mode .content-container {
  background: rgba(71, 71, 71, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

body.dark-mode .content-meta,
body.dark-mode .content-image figcaption {
  color: #94a3b8;
}

body.dark-mode .content-article a {
  color: #818cf8;
}

/* =========================
   HEADER
========================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body.dark-mode .site-header {
  background: #1e293b;
  color: #f1f5f9;
}

/* Theme Switch */
.theme-switch {
  position: relative;
  width: 50px;
  height: 28px;
}

.theme-switch input {
  display: none;
}

.theme-switch .slider {
  position: absolute;
  inset: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
}

.theme-switch .slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.4s;
}

.theme-switch input:checked + .slider {
  background-color: #6365f1b0;
}

.theme-switch input:checked + .slider::before {
  transform: translateX(22px);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  height: 100vh;
  max-height: 900px;
  background-color: #c4c4c4; /* Light Mode */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/files/assets/images/atom.png") center / cover no-repeat;
  opacity: 0.3; /* Light Mode */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #1f2937; /* Light Mode Textfarbe */
  padding: 20px;
}

/* Dark Mode */
body.dark-mode .hero {
  background-color: #4a4a4b; /* dunkler Hintergrund im Dark Mode */
}

body.dark-mode .hero::before {
  opacity: 0.15; /* Bild wird dunkler/leichter sichtbar im Dark Mode */
}

body.dark-mode .hero-content {
  color: #f1f5f9; /* helle Schrift im Dark Mode */
}



/* =========================
   FOOTER
========================= */
.site-footer {
  width: 100%;
  background-color: #111827;
  color: #e5e7eb;
  padding: 50px 20px 20px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap; /* wichtig, damit Mobile nicht bricht */
}

.footer-left,
.footer-right {
  flex: 1 1 300px; /* flexible Breite, Minimum 300px */
}

.footer-left h4,
.footer-right h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-left p,
.footer-right ul {
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-right ul {
  list-style: none;
  padding: 0;
}

.footer-right li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer-left,
  .footer-right {
    text-align: center;
  }
}

/* DARK MODE */
body.dark-mode .site-footer {
  background-color: #020617;
  color: #cbd5f5;
}

body.dark-mode .site-footer a {
  color: #94a3b8;
}

body.dark-mode .site-footer a:hover {
  color: #ffffff;
}

/* =========================
   SITE WRAPPER + STICKY FOOTER
========================= */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* nimmt immer die volle Höhe */
}

.site-content {
  flex: 1; /* wächst, füllt den Platz zwischen Header und Footer */
}

/* =========================
   HEADER MOBILE: HIDE THEME SWITCH
========================= */
@media (max-width: 480px) {
  .header-right .theme-switch {
    display: none;
  }
}

/* =========================
   CUSTOM FILE UPLOAD
========================= */
.custom-file-upload {
  display: inline-block;
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid #cbd5f5;
  border-radius: 8px;
  background-color: #f9fafb;
  color: #1f2937;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, box-shadow 0.2s;
}

.custom-file-upload:hover {
  background-color: #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.custom-file-upload input {
  display: none; /* versteckt das originale Input */
}

/* File name Anzeige */
#file-name {
  font-size: 0.95rem;
  color: #334155;
}

/* Dark Mode */
body.dark-mode .custom-file-upload {
  background-color: #1e293b;
  color: #f1f5f9;
  border: 1px solid #4b5563;
}

body.dark-mode .custom-file-upload:hover {
  background-color: #334155;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

body.dark-mode #file-name {
  color: #cbd5f5;
}

/* Progressbar-Container */
.progress {
    height: 25px;          /* gewünschte Höhe */
    border-radius: 0;       /* keine Abrundung */
    overflow: hidden;       /* verhindert, dass Border die Breite „verkleinert“ */
}

/* Progressbar selbst */
.progress-bar {
    height: 100%;           /* volle Höhe */
    line-height: 25px;      /* Text vertikal zentrieren */
    box-sizing: border-box; /* padding/border nicht in Prozentbreite einberechnen */
    border-radius: 0;       /* keine Abrundung */
    transition: none;       /* keine Animation, Balken exakt füllen */
}
