:root {
  --bg-dark: #313131;
  --bg-light: #5a5a5a;
  --section-bg: #4a4a4a;
  --accent-blue: #0284c7;
  --accent-purple: #a855f7;
  --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  --text-color: #ffffff;
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--bg-light), var(--bg-dark));
  font-family: Arial, sans-serif;
  color: var(--text-color);
}

.container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-titel {
  text-align: center;
  margin: 10px 0 30px;
}

.header-titel h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header-titel h2 {
  font-size: clamp(18px, 3vw, 22px);
  margin: 0;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.skyline-bg-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('header/header.png') no-repeat center bottom / contain;
  padding-bottom: 60px;
  margin-bottom: 20px;
}

.menu-container {
  position: relative;
  width: min(450px, 90vw);
  aspect-ratio: 1 / 1;
  margin-bottom: 40px;
}

svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pie-slice {
  cursor: pointer;
  transition: transform 0.35s var(--ease-smooth), filter 0.35s ease;
  transform-origin: 250px 250px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

.pie-slice:hover {
  filter: drop-shadow(0 15px 22px rgba(0, 0, 0, 0.55));
  transform: var(--hover-transform) scale(1.03);
}

.slice-text {
  fill: var(--text-color);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.6px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.center-circle {
  fill: #ffffff;
  stroke: #222222;
  stroke-width: 3;
}

.center-text {
  fill: #333333;
  font-size: 18px;
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: central;
}

.menu-intro-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(0.87);
  background: #ffffff url('header/logo.png') no-repeat center 43% / 85%;
  border-radius: 50%;
  border: 4px solid #222222;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-width 0.6s ease, box-shadow 0.4s ease;
}

.menu-intro-overlay.minimized,
.menu-intro-overlay.hidden {
  transform: translate(-50%, -50%) scale(0.22);
  border-width: 13px;
  box-shadow: none;
  pointer-events: auto;
}

.intro-text-placeholder {
  display: none;
}

.divider {
  width: 100%;
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  margin: 20px 0 40px;
}

.search-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 25px;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  color: var(--text-color);
  background-color: rgba(0, 0, 0, 0.35);
  border: 2px solid #555555;
  border-radius: 25px;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  border-color: var(--accent-blue);
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

.content-section {
  background-color: var(--section-bg);
  border-radius: 4px;
  padding: 30px 25px;
  width: 100%;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
  margin-bottom: 25px;
}

.section-title {
  font-size: 22px;
  text-align: center;
  margin: 0 0 30px;
  color: #f3f4f6;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-blue);
  margin: 8px auto 0;
  border-radius: 2px;
}


.grid-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.app-button {
  background-color: #ffffff;
  width: 100%;
  height: 95px;
  border-radius: 14px;
  box-shadow: var(--card-shadow), inset 0 -3px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s ease, border-color 0.25s ease;
}

.app-button img {
  max-width: 80%;
  max-height: 75%;
  object-fit: contain;
  transition: transform 0.25s var(--ease-smooth);
}

.emoji-icon {
  font-size: 36px;
}

.app-item:hover .app-button {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 255, 255, 0.25);
  border-color: var(--accent-blue);
}

.app-item:hover .app-button img {
  transform: scale(1.08);
}

.app-label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-color);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 4px 14px;
  border-radius: 12px;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.app-item:hover .app-label {
  background-color: var(--accent-blue);
  transform: translateY(-2px);
}

.logo-flex {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  color: #333333;
}

.logo-flex span {
  writing-mode: vertical-rl;
  font-size: 9px;
  background: var(--accent-blue);
  color: var(--text-color);
  padding: 2px;
  border-radius: 2px;
}

.accordion-section {
  width: 100%;
}

.accordion-item {
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid #555555;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.accordion-header {
  background: linear-gradient(to bottom, #454545, #3a3a3a);
  padding: 14px 20px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.25s, color 0.25s;
  color: var(--text-color);
}

.accordion-header:hover {
  background: linear-gradient(to bottom, #505050, #404040);
}

.accordion-icon {
  font-size: 22px;
  font-weight: bold;
  color: #d97706;
}

.accordion-content {
  background-color: var(--section-bg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.accordion-inner {
  padding: 30px 25px 40px;
}

.accordion-text {
  margin-top: 0;
}

.accordion-item.active .accordion-header {
  background: linear-gradient(to bottom, #e2e8f0, #cbd5e1);
  color: #1e293b;
  border-bottom: 1px solid #94a3b8;
}

@media (max-width: 600px) {
  body {
    padding: 20px 12px;
  }

  .grid-apps {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .content-section,
  .accordion-inner {
    padding: 20px 15px;
  }
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    border-left: 4px solid #0284c7;
    font-size: 15px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.file-list li a:hover {
    background-color: rgba(2, 132, 199, 0.35);
    transform: translateX(5px);
}



/*  Lässt den weißen Button zweimal kräftig in deiner Akzentfarbe (--accent-blue) aufleuchten und leicht pulsieren: */
@keyframes tile-flash {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--card-shadow);
    border-color: transparent;
  }
  25%, 75% {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(2, 132, 199, 0.95), 0 0 10px #ffffff;
    border-color: var(--accent-blue);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
  }
}

.app-item.highlight-flash .app-button {
  animation: tile-flash 1.4s ease-in-out;
}