@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --brand-blue: #1a3e72;
    --brand-pink: #dc267f;
    --brand-yellow: #facc15;
    --brand-bg: #fdfaf6;
}

html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--brand-bg);
    color: #1c1917;
    scroll-behavior: smooth;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: auto;
    height: 300px;
}

.tab-active {
    border-bottom: 4px solid var(--brand-pink);
    color: var(--brand-pink);
    font-weight: 800;
}

.splash-effect {
    position: absolute;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.logo-frame {
    border: 2px dashed #d6d3d1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    font-size: 0.75rem;
    color: #78716c;
    text-align: center;
    padding: 1rem;
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    border-style: solid;
}

.date-card:not(.booked-out):hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

/* Gemeinsames Badge-Styling */
.date-card::after {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Fotoshootings - Blau */
.shooting-card {
    border-color: #e5e7eb;
}

.shooting-card:not(.booked-out):hover {
    border-color: var(--brand-blue);
}

.shooting-card.active {
    border-color: var(--brand-blue);
    background-color: #f0f7ff;
    transform: scale(1.03);
}

.shooting-card::after {
    content: 'FOTOSHOOTING';
    background: var(--brand-blue);
    color: #ffffff;
}

/* Workshops - Lila */
.workshop-card {
    border-color: #e5e7eb;
}

.workshop-card:not(.booked-out):hover {
    border-color: #a855f7;
}

.workshop-card.active {
    border-color: #a855f7;
    background-color: #f3e8ff;
    transform: scale(1.03);
}

.workshop-card::after {
    content: 'WORKSHOP';
    background: #a855f7;
    color: #ffffff;
}

/* Events / Sondershootings - Gelb */
.event-card {
    border-color: #e5e7eb;
}

.event-card:not(.booked-out):hover {
    border-color: #eab308;
}

.event-card.active {
    border-color: var(--brand-pink);
    background-color: #fff1f8;
    transform: scale(1.03);
}

.event-card::after {
    content: 'EVENT / SPECIAL';
    background: var(--brand-yellow);
    color: #1a3e72;
}

.date-card.booked-out {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f4 !important;
    filter: grayscale(1);
    border-style: dashed !important;
    border-color: #d1d5db !important;
}

.date-card.booked-out::after {
    background: #a8a29e !important;
    color: #ffffff !important;
}

.admin-scroll::-webkit-scrollbar {
    width: 6px;
}

.admin-scroll::-webkit-scrollbar-thumb {
    background: #e7e5e4;
    border-radius: 10px;
}

/* News Content Styling */
.preserve-html {
    line-height: 1.8;
    color: #44403c;
}

.preserve-html img {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.preserve-html a {
    color: #dc267f;
    text-decoration: underline;
    font-weight: 700;
    transition: opacity 0.2s;
}

.preserve-html a:hover {
    opacity: 0.75;
}

.preserve-html iframe,
.preserve-html video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
    margin: 1.5rem 0;
}

.preserve-html p {
    margin-bottom: 1rem;
}

.preserve-html br+br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

.preserve-html h1,
.preserve-html h2,
.preserve-html h3,
.preserve-html h4,
.preserve-html h5,
.preserve-html h6 {
    font-weight: 900;
    color: #1a3e72;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.preserve-html h1 {
    font-size: 1.75rem;
}

.preserve-html h2 {
    font-size: 1.4rem;
}

.preserve-html h3 {
    font-size: 1.2rem;
}

.preserve-html h4 {
    font-size: 1.05rem;
}

.preserve-html ul,
.preserve-html ol {
    margin: 0.75rem 0 1rem 1.5rem;
    padding-left: 0.5rem;
}

.preserve-html ul {
    list-style-type: disc;
}

.preserve-html ol {
    list-style-type: decimal;
}

.preserve-html li {
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
}

.preserve-html b,
.preserve-html strong {
    font-weight: 800;
    color: #1c1917;
}

.preserve-html i,
.preserve-html em {
    font-style: italic;
}

.preserve-html u {
    text-decoration: underline;
}

.preserve-html s,
.preserve-html del {
    text-decoration: line-through;
    opacity: 0.6;
}

.preserve-html blockquote {
    border-left: 4px solid #dc267f;
    padding: 0.75rem 1.25rem;
    margin: 1rem 0;
    background: #fdf2f8;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #57534e;
}

.preserve-html hr {
    border: none;
    border-top: 2px solid #e7e5e4;
    margin: 1.5rem 0;
}

.preserve-html pre,
.preserve-html code {
    background: #f5f5f4;
    border-radius: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-family: monospace;
    font-size: 0.875rem;
}

.preserve-html pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

@keyframes bounce-horizontal {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(6px);
    }
}

.animate-bounce-horizontal {
    animation: bounce-horizontal 1.5s infinite;
}

@keyframes bounce-horizontal-left {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(-6px);
    }
}

.animate-bounce-horizontal-left {
    animation: bounce-horizontal-left 1.5s infinite;
}