/* ============================================
   EXPOSITUM - Edles Design für Faksimile
   Version 2.0 - Luxus-Edition
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Cinzel:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.8;
    color: #2c2416;
    background-color: #e8dcc0;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.28 0 0 0 0.15 0'/%3E%3C/filter%3E%3Cfilter id='fibers'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.15 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23f0e4c8'/%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23fibers)'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at top, #f5efe0 0%, #e8dcc0 50%, #d4c39a 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ============================================
   LADEBILDSCHIRM
   ============================================ */

.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, #1a1410 0%, #0a0a0a 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-ornament {
    width: 180px;
    height: 180px;
    animation: ornamentPulse 2s ease-in-out infinite;
}

@keyframes ornamentPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.8; }
}

.preloader-text {
    margin-top: 40px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 8px;
    color: #c9a961;
    text-transform: uppercase;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.preloader-line {
    margin-top: 20px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a961, transparent);
    animation: loadLine 2.5s ease-out forwards;
}

@keyframes loadLine {
    to { width: 250px; }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1410 50%, #2c2416 100%);
    padding: 50px 20px 25px;
    position: relative;
    border-bottom: 3px double #c9a961;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a961, transparent);
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.logo-container img {
    max-width: 420px;
    width: 85%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(201, 169, 97, 0.4));
    transition: all 0.5s ease;
    animation: logoEntrance 1.5s ease-out;
}

.logo-container img:hover {
    filter: drop-shadow(0 0 50px rgba(232, 200, 120, 0.6));
    transform: scale(1.02);
}

@keyframes logoEntrance {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

nav {
    text-align: center;
    padding: 15px 0 10px;
    position: relative;
    z-index: 2;
}

nav ul {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    position: relative;
}

nav ul li:not(:last-child)::after {
    content: '✦';
    color: #c9a961;
    font-size: 10px;
    padding: 0 15px;
    opacity: 0.6;
}

nav ul li a {
    color: #c9a961;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 10px 5px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #e8c878;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: #e8c878;
    text-shadow: 0 0 15px rgba(232, 200, 120, 0.6);
}

nav ul li a:hover::before { width: 80%; }

nav ul li a.active { color: #e8c878; }
nav ul li a.active::before { width: 80%; }

/* ============================================
   MUSIK-PLAYER
   ============================================ */

.music-player {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    background: linear-gradient(180deg, #2c2416 0%, #1a1410 100%);
    border: 1px solid #c9a961;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.music-player:hover {
    box-shadow: 0 4px 30px rgba(201, 169, 97, 0.5);
    transform: scale(1.05);
}

.music-player svg {
    width: 24px;
    height: 24px;
    fill: #c9a961;
    transition: all 0.3s ease;
}

.music-player.playing svg {
    fill: #e8c878;
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.music-player .tooltip {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: #1a1410;
    color: #c9a961;
    padding: 8px 15px;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid #c9a961;
}

.music-player:hover .tooltip { opacity: 1; }

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 30px;
    position: relative;
    z-index: 2;
}

.ornament {
    text-align: center;
    margin: 40px 0;
    color: #c9a961;
    font-size: 24px;
    letter-spacing: 10px;
}

.ornament::before,
.ornament::after {
    content: '';
    display: inline-block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a961, transparent);
    vertical-align: middle;
    margin: 0 20px;
}

/* ============================================
   TYPOGRAFIE
   ============================================ */

h1 {
    font-family: 'Cinzel', serif;
    font-size: 44px;
    font-weight: 500;
    color: #2c2416;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out;
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 500;
    color: #2c2416;
    text-align: center;
    margin: 50px 0 30px;
    letter-spacing: 3px;
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    color: #3d2e1a;
    margin: 30px 0 15px;
    font-style: italic;
}

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

p {
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    color: #8b6f3e;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1px;
    animation: fadeInUp 1.2s ease-out;
}

.lead-text {
    font-size: 22px;
    line-height: 1.9;
    color: #3d2e1a;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-style: italic;
}

.drop-cap::first-letter {
    font-family: 'Cinzel', serif;
    font-size: 72px;
    font-weight: 600;
    float: left;
    line-height: 60px;
    padding: 8px 12px 0 0;
    color: #8b6f3e;
    text-shadow: 2px 2px 4px rgba(139, 111, 62, 0.2);
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */

.content-box {
    background: rgba(255, 252, 242, 0.75);
    border: 1px solid rgba(201, 169, 97, 0.3);
    padding: 50px 60px;
    margin: 40px 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.content-box:hover {
    box-shadow: 0 8px 30px rgba(139, 111, 62, 0.15);
    border-color: rgba(201, 169, 97, 0.5);
}

.content-box::before,
.content-box::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #c9a961;
    transition: all 0.4s ease;
}

.content-box::before {
    top: -8px;
    left: -8px;
    border-right: none;
    border-bottom: none;
}

.content-box::after {
    bottom: -8px;
    right: -8px;
    border-left: none;
    border-top: none;
}

.content-box:hover::before,
.content-box:hover::after {
    width: 50px;
    height: 50px;
    border-color: #e8c878;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.work-card {
    background: rgba(255, 252, 242, 0.85);
    border: 1px solid rgba(201, 169, 97, 0.4);
    padding: 35px 30px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 200, 120, 0.2), transparent);
    transition: left 0.8s ease;
}

.work-card:hover::before { left: 100%; }

.work-card:hover {
    transform: translateY(-8px);
    border-color: #c9a961;
    box-shadow: 0 15px 40px rgba(139, 111, 62, 0.2), 0 0 30px rgba(201, 169, 97, 0.15);
    background: linear-gradient(135deg, rgba(255, 252, 242, 0.95) 0%, rgba(245, 232, 200, 0.95) 100%);
}

.work-card h3 {
    text-align: center;
    color: #3d2e1a;
    margin-top: 0;
    font-size: 22px;
    transition: color 0.3s ease;
}

.work-card:hover h3 { color: #8b6f3e; }

.work-card .symbol {
    font-size: 36px;
    color: #c9a961;
    margin-bottom: 15px;
    display: block;
    transition: all 0.4s ease;
}

.work-card:hover .symbol {
    color: #e8c878;
    transform: scale(1.15) rotate(5deg);
    text-shadow: 0 0 20px rgba(232, 200, 120, 0.6);
}

.work-card p {
    text-align: center;
    font-size: 16px;
    color: #5d4a2e;
    line-height: 1.7;
}

/* ============================================
   KONTAKTFORMULAR
   ============================================ */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    padding: 40px;
    background: rgba(44, 36, 22, 0.95);
    color: #f5efe0;
    position: relative;
}

.contact-info::before,
.contact-info::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #c9a961;
}

.contact-info::before {
    top: -8px; left: -8px;
    border-right: none; border-bottom: none;
}

.contact-info::after {
    bottom: -8px; right: -8px;
    border-left: none; border-top: none;
}

.contact-info h3 {
    color: #c9a961;
    font-family: 'Cinzel', serif;
    font-size: 22px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: normal;
}

.contact-info p {
    color: #e8dcc0;
    text-align: left;
    margin-bottom: 15px;
    font-size: 17px;
}

.contact-info strong {
    color: #c9a961;
    display: inline-block;
    min-width: 100px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-info a {
    color: #e8c878;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.contact-info a:hover { border-bottom-color: #e8c878; }

form {
    background: rgba(255, 252, 242, 0.85);
    border: 1px solid rgba(201, 169, 97, 0.4);
    padding: 40px;
    position: relative;
}

form::before,
form::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #c9a961;
}

form::before {
    top: -8px; left: -8px;
    border-right: none; border-bottom: none;
}

form::after {
    bottom: -8px; right: -8px;
    border-left: none; border-top: none;
}

.form-group { margin-bottom: 25px; }

label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: #5d4a2e;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(201, 169, 97, 0.4);
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: #2c2416;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #c9a961;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.btn {
    display: inline-block;
    padding: 14px 50px;
    background: linear-gradient(180deg, #2c2416 0%, #1a1410 100%);
    color: #c9a961;
    border: 1px solid #c9a961;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 200, 120, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before { left: 100%; }

.btn:hover {
    background: linear-gradient(180deg, #c9a961 0%, #b8985a 100%);
    color: #1a1410;
    box-shadow: 0 4px 25px rgba(201, 169, 97, 0.5);
    transform: translateY(-2px);
}

.form-privacy {
    font-size: 14px;
    color: #8b6f3e;
    font-style: italic;
    margin-top: 15px;
}

.form-privacy input[type="checkbox"] { margin-right: 8px; }

/* ============================================
   LOGIN-BEREICH
   ============================================ */

.login-wrapper {
    max-width: 450px;
    margin: 60px auto;
}

.login-wrapper form {
    padding: 50px 40px;
}

.login-info-box {
    background: rgba(44, 36, 22, 0.08);
    border-left: 3px solid #c9a961;
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    color: #5d4a2e;
    font-size: 16px;
}

/* ============================================
   IMPRESSUM & DATENSCHUTZ
   ============================================ */

.legal-content {
    background: rgba(255, 252, 242, 0.85);
    padding: 50px 70px;
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.legal-content h2 {
    text-align: left;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: left;
}

.legal-content strong { color: #3d2e1a; }

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(180deg, #1a1410 0%, #0a0a0a 100%);
    color: #c9a961;
    padding: 50px 30px 30px;
    margin-top: 80px;
    border-top: 3px double #c9a961;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a961, transparent);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #e8c878;
}

.footer-section p,
.footer-section a {
    color: #a89066;
    font-size: 16px;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-section a:hover { color: #e8c878; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    padding-top: 20px;
    font-size: 14px;
    color: #8b6f3e;
    font-style: italic;
}

/* ============================================
   SUCCESS/ERROR MESSAGES
   ============================================ */

.message {
    padding: 20px 30px;
    margin: 20px 0;
    text-align: center;
    font-size: 18px;
    border: 1px solid;
}

.message.success {
    background: rgba(100, 130, 80, 0.15);
    color: #4a6020;
    border-color: #6d8a3a;
}

.message.error {
    background: rgba(160, 60, 60, 0.15);
    color: #7a2020;
    border-color: #a04040;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 28px; letter-spacing: 2px; }
    h2 { font-size: 24px; }

    nav ul { flex-direction: column; gap: 5px; }
    nav ul li:not(:last-child)::after { display: none; }

    main { padding: 40px 20px; }

    .content-box,
    .legal-content { padding: 30px 25px; }

    .contact-wrapper { grid-template-columns: 1fr; gap: 30px; }

    .logo-container img { max-width: 280px; }

    .music-player {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .music-player svg {
        width: 20px;
        height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
