/* Zauberwald Design System */ :root { /* Grundpalette — warm, einladend, Waldstimmung */ --bg-cream: #fff8f0; --bg-forest: #e8f5e4; --text-dark: #3d3225; --text-warm: #5c4a3a; --text-light: #8b7d6b; --accent-green: #6db87d; --accent-gold: #e8b84b; --accent-pink: #e88bae; --accent-purple: #9b7dc4; --accent-blue: #7db8d4; /* Fingerfarben — weiche Pastelltoene */ --finger-l-pinky: #e8b4c8; --finger-l-ring: #c4a8d4; --finger-l-mid: #a8c4e0; --finger-l-index: #a8d8b8; --finger-r-index: #d4d8a8; --finger-r-mid: #e0c4a8; --finger-r-ring: #d4a8a8; --finger-r-pinky: #c8b4e8; --finger-thumb: #d4cfc8; } /* Base styles */ body { font-family: "Nunito", sans-serif; background: var(--bg-cream); color: var(--text-dark); font-size: 16px; margin: 0; padding: 0; } h1, h2, h3 { font-family: "Quicksand", sans-serif; } /* Screen management */ .screen { display: none; opacity: 0; transition: opacity 0.3s ease; } .screen--active { display: flex; flex-direction: column; align-items: center; opacity: 1; min-height: 100vh; } /* Welcome screen */ .welcome { display: flex; flex-direction: column; align-items: center; padding: 2rem; max-width: 600px; margin: 0 auto; } .welcome h1 { font-family: "Quicksand", sans-serif; font-size: 2rem; color: var(--text-dark); } .welcome__subtitle, .welcome__layout-label { font-size: 1.1rem; color: var(--text-warm); margin-bottom: 0.5rem; } .welcome__companions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; width: 100%; } .companion-card { background: white; border: 3px solid transparent; border-radius: 16px; padding: 1.5rem; cursor: pointer; transition: border-color 0.2s; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; } .companion-card:hover { border-color: var(--accent-gold); } .companion-card--selected { border-color: var(--accent-green); background: var(--bg-forest); } .companion-card__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem; } .companion-card__emoji { font-size: 3rem; } .companion-card__name { font-family: "Quicksand", sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--text-dark); } .welcome__layout-toggle { display: flex; gap: 0.5rem; margin-top: 0.5rem; } .layout-btn { padding: 0.5rem 1.5rem; border-radius: 8px; border: 2px solid var(--text-light); background: white; cursor: pointer; font-family: "Nunito", sans-serif; font-size: 1rem; } .layout-btn--active { background: var(--accent-green); color: white; border-color: var(--accent-green); } .welcome__start-btn { margin-top: 1.5rem; padding: 1rem 3rem; border-radius: 12px; background: var(--accent-green); color: white; border: none; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 1.3rem; cursor: pointer; opacity: 1; transition: opacity 0.2s; } .welcome__start-btn:disabled { opacity: 0.4; cursor: not-allowed; } /* Forest screen */ .forest { display: flex; flex-direction: column; align-items: center; padding: 2rem; min-height: 100vh; background: var(--bg-forest); } .forest__title { font-family: "Quicksand", sans-serif; font-size: 2rem; color: var(--text-dark); margin-bottom: 1.5rem; } .forest__level-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 500px; width: 100%; margin-bottom: 2rem; } .level-card { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1rem; border-radius: 12px; border: 2px solid transparent; font-family: "Nunito", sans-serif; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; background: white; } .level-card:hover:not(:disabled) { transform: scale(1.05); } .level-card--current { border-color: var(--accent-gold); background: #fff8e0; box-shadow: 0 2px 8px rgba(232, 184, 75, 0.3); } .level-card--completed { border-color: var(--accent-green); background: #e8f5e4; } .level-card--locked { opacity: 0.5; cursor: not-allowed; background: #f0f0f0; } .level-card__number { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); } .level-card__keys { font-family: "Quicksand", sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--accent-purple); } .level-card__status { font-size: 1.2rem; } .forest__continue-btn { padding: 1rem 3rem; border-radius: 12px; background: var(--accent-green); color: white; border: none; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 1.3rem; cursor: pointer; transition: transform 0.2s ease; } .forest__continue-btn:hover { transform: scale(1.05); } .forest__continue-btn--done { background: var(--accent-gold); cursor: default; } .forest__continue-btn--done:hover { transform: none; } /* Lesson screen */ .lesson { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; padding: 2rem; min-height: 100vh; background: var(--bg-cream); position: relative; } .lesson__back-btn { position: absolute; top: 1rem; left: 1rem; font-family: "Quicksand", sans-serif; font-size: 1rem; font-weight: 600; color: var(--text-warm); background: var(--bg-forest); border: 2px solid var(--accent-green); border-radius: 12px; padding: 0.5rem 1rem; cursor: pointer; transition: background 0.2s ease, transform 0.1s ease; } .lesson__back-btn:hover { background: var(--accent-green); color: white; transform: scale(1.05); } .lesson__letter-area { display: flex; align-items: center; justify-content: center; width: 200px; height: 200px; } .falling-letter { font-family: "Quicksand", sans-serif; font-size: 5rem; font-weight: 700; color: var(--accent-green); animation: letter-float 2s ease-in-out infinite; } @keyframes letter-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } .falling-letter--dissolve { animation: letter-dissolve 0.3s ease-out forwards; } @keyframes letter-dissolve { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } } /* Companion area (forest greeting + lesson avatar) */ .companion-area { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--bg-cream); border-radius: 1rem; margin-bottom: 1rem; } .companion-area__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; } .companion-area__text { font-family: "Nunito", sans-serif; font-size: 1rem; color: var(--text-warm); line-height: 1.4; } /* Forest Scene */ .forest__scene { position: relative; width: 100%; max-width: 800px; margin: 0 auto 1.5rem; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); } .forest__bg { display: block; width: 100%; height: auto; } .forest__grid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); padding: 1rem; gap: 0.5rem; } .forest__element { display: flex; align-items: center; justify-content: center; } .forest__element img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)); } .forest__element--new { animation: forest-element-appear 1.2s ease-out forwards; } @keyframes forest-element-appear { 0% { opacity: 0; transform: scale(0.3); } 60% { opacity: 1; transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } } /* Keyboard */ .keyboard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 1rem; background: rgba(255, 255, 255, 0.6); border-radius: 12px; user-select: none; } .keyboard__row { display: flex; gap: 4px; } .keyboard__key { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 1rem; color: var(--text-dark); background: #e0e0e0; transition: transform 0.1s ease, background-color 0.2s ease, box-shadow 0.2s ease; cursor: default; } .keyboard__key--space { width: 280px; } .keyboard__key--inactive { background: #e0e0e0; color: var(--text-light); opacity: 0.5; } .keyboard__key--active { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } /* Pulse animation for the target key (KYBD-03) */ .keyboard__key--highlight { animation: key-pulse 1.2s ease-in-out infinite; box-shadow: 0 0 12px rgba(232, 184, 75, 0.6); } @keyframes key-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } } /* Press animation (KYBD-03) */ .keyboard__key--pressed { transform: scale(0.9) !important; animation: none; }