Erfasst den vollständigen Projektstand mit drei Hauptbereichen:
1. Laravel 11 Application-Skelett
- Standard-Setup (app/, bootstrap/, config/, database/, public/, resources/, routes/, storage/, tests/)
- Composer + npm Konfiguration
- Devcontainer für Laravel Sail (PHP/MySQL/Redis)
- GitHub Actions Workflows (lint + tests)
- Tailwind/Vite Build-Pipeline
2. docs/ – Wissensbasis "Marke macht." (Methodik-Verfassung)
Stand nach Pflegerunde 2026-05-28:
- 00_Methodik-Verfassung: Dok. 000 (v2.0.2) bis Dok. 013 (NEU) + Anhänge
- 10_Quellen-Original: Wala, Sharp, Simon (read-only Quellen)
- 20_Markenwissen: 25 abgeleitete MW-Dokumente (Wala_MW-WAL, Sharp_MW-HBG, Simon_MW-SIM)
- 30_Synthese: Markenwissen_I_Synthese_Gesamt + Scorecard-Regeln
- 40_Implementierung: 011b-Erweiterung
- _Steuerung: 00_START_HIER, Serienübersicht, CHANGELOG.md
Letzte methodische Eingriffe:
- Methodik-Update v2.0 (Ownership Autorenschaft/Anwendung, Geltungsbereich Kernthese,
Score-Ebenen DNA-Reifegrad, Preislogik Governance-Scope)
- Dok. 013 NEU: Akquise- & Conversion-Logik (Auffahrten statt Funnel)
- Rebranding brandwork.io → Brand Rules (brand-rules.com)
- Schichtverletzungen behoben, Ordner-Symmetrie hergestellt, Verweise konsolidiert
3. _markemacht.de/ – Web-Frontend Design-Sandbox
- Statische HTML-Entwürfe (Startseite, Methode, Manifest, Denken, Blog)
- Design-System (warm_intellectualism, based_web_design)
- Assets (CSS, JS, Favicon)
Konfiguration:
- .gitignore um .DS_Store und Thumbs.db erweitert
- Lokale Git-Identity gesetzt: Kevin Adametz <kevin.adametz@me.com>
- .env wird ignoriert (nur .env.example versioniert)
Konfliktregel: Bei Spannung zwischen Code und Methodik gilt die Methodik (Dok. 000).
Co-authored-by: Cursor <cursoragent@cursor.com>
94 lines
2.9 KiB
JavaScript
94 lines
2.9 KiB
JavaScript
// ============================================
|
||
// MARKE MACHT. – JavaScript
|
||
// ============================================
|
||
|
||
// --- Navigation Scroll Effect ---
|
||
const nav = document.getElementById('nav');
|
||
|
||
const handleNavScroll = () => {
|
||
if (window.scrollY > 50) {
|
||
nav.classList.add('scrolled');
|
||
} else {
|
||
nav.classList.remove('scrolled');
|
||
}
|
||
};
|
||
|
||
window.addEventListener('scroll', handleNavScroll);
|
||
window.addEventListener('load', handleNavScroll);
|
||
|
||
// --- Mobile Menu Toggle ---
|
||
const navToggle = document.getElementById('navToggle');
|
||
const navMobile = document.getElementById('navMobile');
|
||
|
||
if (navToggle && navMobile) {
|
||
navToggle.addEventListener('click', () => {
|
||
navMobile.classList.toggle('active');
|
||
document.body.style.overflow = navMobile.classList.contains('active') ? 'hidden' : '';
|
||
});
|
||
|
||
// Close mobile menu on link click
|
||
const mobileLinks = navMobile.querySelectorAll('a');
|
||
mobileLinks.forEach(link => {
|
||
link.addEventListener('click', () => {
|
||
navMobile.classList.remove('active');
|
||
document.body.style.overflow = '';
|
||
});
|
||
});
|
||
}
|
||
|
||
// --- Smooth Scroll for Anchor Links ---
|
||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||
anchor.addEventListener('click', function(e) {
|
||
const href = this.getAttribute('href');
|
||
if (href === '#') return;
|
||
|
||
e.preventDefault();
|
||
const target = document.querySelector(href);
|
||
if (target) {
|
||
const navHeight = nav.offsetHeight;
|
||
const targetPosition = target.getBoundingClientRect().top + window.scrollY - navHeight - 20;
|
||
|
||
window.scrollTo({
|
||
top: targetPosition,
|
||
behavior: 'smooth'
|
||
});
|
||
}
|
||
});
|
||
});
|
||
|
||
// --- Intersection Observer for Animations ---
|
||
const observerOptions = {
|
||
threshold: 0.1,
|
||
rootMargin: '0px 0px -50px 0px'
|
||
};
|
||
|
||
const observer = new IntersectionObserver((entries) => {
|
||
entries.forEach(entry => {
|
||
if (entry.isIntersecting) {
|
||
entry.target.classList.add('visible');
|
||
observer.unobserve(entry.target);
|
||
}
|
||
});
|
||
}, observerOptions);
|
||
|
||
// Observe elements with animation classes
|
||
document.querySelectorAll('.symptom-card, .quote-block, .intro-block, .cta-block').forEach(el => {
|
||
observer.observe(el);
|
||
});
|
||
|
||
// --- Active Navigation Link ---
|
||
const setActiveNavLink = () => {
|
||
const currentPage = window.location.pathname.split('/').pop() || 'index.html';
|
||
const navLinks = document.querySelectorAll('.nav-link, .nav-mobile-link');
|
||
|
||
navLinks.forEach(link => {
|
||
const href = link.getAttribute('href');
|
||
if (href === currentPage || (currentPage === '' && href === 'index.html')) {
|
||
link.classList.add('active');
|
||
} else {
|
||
link.classList.remove('active');
|
||
}
|
||
});
|
||
};
|
||
|
||
window.addEventListener('load', setActiveNavLink);
|