/* ========================================
   Chipped Dice Tavern - Professional Website
   ======================================== */

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Friendly Color Palette */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --accent-primary: #3a5f24;
    --accent-secondary: #2f4135;
    --accent-gold: #4a7f34;
    --text-primary: #2d2d2d;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-subtle: rgba(0, 0, 0, 0.1);
    --glow-primary: rgba(58, 95, 36, 0.3);
    --glow-secondary: rgba(47, 65, 53, 0.25);
}

/* === Animated Background Particles === */
@keyframes particleFloat1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translate(100px, -100px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(200px, -50px) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translate(100px, 50px) rotate(270deg);
        opacity: 0.55;
    }
}

@keyframes particleFloat2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.35;
    }
    33% {
        transform: translate(-150px, -120px) rotate(120deg) scale(1.3);
        opacity: 0.5;
    }
    66% {
        transform: translate(-80px, 80px) rotate(240deg) scale(0.9);
        opacity: 0.4;
    }
}

@keyframes particleFloat3 {
    0%, 100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.38;
    }
    50% {
        transform: translate(-100px, -150px) rotate(180deg);
        opacity: 0.5;
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Container */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(58, 95, 36, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(47, 65, 53, 0.1) 0%, transparent 55%),
        radial-gradient(circle at 40% 80%, rgba(58, 95, 36, 0.08) 0%, transparent 45%);
    z-index: 0;
    pointer-events: none;
    animation: gradientShift 20s ease-in-out infinite;
}

.bg-particle {
    position: fixed;
    width: 80px;
    height: 80px;
    z-index: 0;
    pointer-events: none;
}

.bg-particle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Attack/Würfel Grün */
.bg-particle.atk img {
    filter: drop-shadow(0 0 20px rgba(58, 95, 36, 0.6))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Defense/Würfel Blau */
.bg-particle.def img {
    filter: drop-shadow(0 0 15px rgba(100, 149, 237, 0.5))
            drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

/* Health/Würfel Grün */
.bg-particle.health img {
    filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.5))
            drop-shadow(0 5px 10px rgba(0, 0, 0, 0.25));
}

/* Intelligence/Würfel Lila */
.bg-particle.int img {
    filter: drop-shadow(0 0 25px rgba(147, 51, 234, 0.7))
            drop-shadow(0 0 40px rgba(168, 85, 247, 0.4));
}

/* Special/Würfel Gold */
.bg-particle.special img {
    filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.6))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Speed/Würfel Gelb */
.bg-particle.speed img {
    filter: drop-shadow(0 0 30px rgba(255, 140, 0, 0.8))
            drop-shadow(0 0 50px rgba(255, 215, 0, 0.5));
}

/* Kleinere Partikel */
.bg-particle.small {
    width: 60px;
    height: 60px;
}

.bg-particle:nth-child(1) {
    top: 15%;
    right: 8%;
    animation: particleFloat2 35s ease-in-out infinite;
}

.bg-particle:nth-child(2) {
    bottom: 20%;
    left: 12%;
    animation: particleFloat3 45s ease-in-out infinite;
}

.bg-particle:nth-child(3) {
    top: 55%;
    right: 25%;
    animation: particleFloat1 50s ease-in-out infinite reverse;
}

.bg-particle:nth-child(4) {
    top: 35%;
    left: 20%;
    animation: particleFloat2 42s ease-in-out infinite 5s;
}

.bg-particle:nth-child(5) {
    bottom: 40%;
    right: 15%;
    animation: particleFloat3 38s ease-in-out infinite 10s;
}

.bg-particle:nth-child(6) {
    top: 70%;
    left: 30%;
    animation: particleFloat1 55s ease-in-out infinite 8s;
}

.bg-particle:nth-child(7) {
    top: 25%;
    right: 40%;
    animation: particleFloat2 48s ease-in-out infinite 12s;
}

.bg-particle:nth-child(8) {
    bottom: 10%;
    left: 45%;
    animation: particleFloat3 52s ease-in-out infinite 6s;
}

.bg-particle:nth-child(9) {
    top: 80%;
    right: 35%;
    animation: particleFloat1 44s ease-in-out infinite 15s;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

/* === Professional Header === */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-primary) 25%,
        var(--accent-gold) 50%,
        var(--accent-primary) 75%,
        transparent 100%
    );
    opacity: 0.8;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 165, 0, 0.2) 50%,
        transparent
    );
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    flex-shrink: 0;
    position: relative;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.logo::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(
        circle,
        rgba(58, 95, 36, 0.25),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.logo:hover::before {
    opacity: 0.6;
}

.logo:hover {
    transform: translateY(-3px);
}

.logo img {
    height: 180px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(58, 95, 36, 0.3));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover img {
    filter: drop-shadow(0 6px 20px rgba(58, 95, 36, 0.4));
    transform: scale(1.05);
}

/* === Mobile Menu Toggle === */
.menu-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    cursor: pointer;
}

.menu-toggle input {
    display: none;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Burger Animation */
.menu-toggle input:checked ~ .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle input:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle input:checked ~ .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === Modern Navigation === */
nav {
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
}

nav li {
    display: inline-block;
}

nav a {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        var(--accent-gold)
    );
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--text-primary);
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--text-primary);
}

nav a.active::after {
    width: 100%;
    background: var(--accent-primary);
}

/* === Hero Section === */
.hero {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.8) 0%,
        var(--bg-primary) 100%
    );
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(58, 95, 36, 0.15), transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(47, 65, 53, 0.12), transparent 55%);
    opacity: 1;
    pointer-events: none;
    animation: gradientShift 15s ease-in-out infinite alternate;
}

.hero h1 {
    position: relative;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(
        120deg,
        var(--accent-gold) 0%,
        var(--accent-primary) 50%,
        var(--accent-gold) 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.4));
}

/* === Content Section === */
.content {
    padding: 5rem 0;
}

.intro-text,
.what-we-do {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease-out;
}

.intro-text:hover,
.what-we-do:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 107, 53, 0.2);
    transform: translateY(-4px);
}

.intro-text p,
.what-we-do p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

h2 {
    position: relative;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    color: var(--text-primary);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        var(--accent-gold)
    );
    border-radius: 2px;
}

ul {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

ul li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    transition: all 0.2s ease;
}

ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1.4rem;
    line-height: 1;
}

ul li:hover {
    color: var(--text-primary);
}

ul li:hover::before {
    color: var(--accent-gold);
}

/* === Image Placeholders === */
.image-placeholder {
    margin: 2.5rem 0;
    text-align: center;
    background: rgba(248, 249, 250, 0.8);
    padding: 2rem;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.9);
}

.image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: none;
}

.image-placeholder .caption {
    color: var(--text-muted);
    font-style: italic;
    font-size: 1rem;
    margin-top: 1rem;
}

/* === Footer === */
footer {
    margin-top: 6rem;
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

footer a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-gold);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .intro-text,
    .what-we-do {
        padding: 2.5rem;
    }
}

@media (max-width: 968px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.2rem 0;
        justify-items: center;
    }

    .logo img {
        height: 80px;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }

    nav a {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem 0;
    }

    .logo img {
        height: 100px;
    }

    /* Show Burger Menu */
    .menu-toggle {
        display: block;
    }

    /* Hide navigation by default on mobile */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    /* Show navigation when checkbox is checked */
    .menu-toggle input:checked ~ nav {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0;
        align-items: stretch;
    }

    nav li {
        display: block;
        width: 100%;
    }

    nav a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 8px;
        background: rgba(58, 95, 36, 0.05);
        margin-bottom: 0.5rem;
    }

    nav a:hover,
    nav a.active {
        background: rgba(58, 95, 36, 0.15);
        transform: translateX(5px);
    }

    nav a::after {
        display: none;
    }

    .hero {
        padding: 4rem 0;
    }

    .content {
        padding: 3rem 0;
    }

    .intro-text,
    .what-we-do {
        padding: 2rem;
    }

    /* Smaller particles on mobile */
    .bg-particle {
        width: 50px;
        height: 50px;
    }

    .bg-particle.small {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .header-content {
        gap: 1.5rem;
    }

    .logo img {
        height: 80px;
    }

    nav {
        width: 100%;
        right: -100%;
    }

    nav a {
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
    }

    .intro-text,
    .what-we-do {
        padding: 1.5rem;
    }

    .intro-text p,
    .what-we-do p {
        font-size: 1rem;
    }

    ul li {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Hide some particles on small screens */
    .bg-particle:nth-child(n+7) {
        display: none;
    }
}
