/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/EBGaramond-Regular.woff2') format('woff2');
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.7;
    color: #2c2c2c;
    background-color: #f8f7f4;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    background-color: rgba(248, 247, 244, 0.85);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Header & Navigation */
header {
    text-align: center;
    margin-bottom: 5px;
    padding-bottom: 20px;
    position: relative;
}

.logo-container {
    margin: 0 auto 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.logo {
    height: 100%;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #d4d4d4;
    border-bottom: 1px solid #d4d4d4;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.4rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* Main Content */
.title-logo {
    width: 80%;
    max-width: 600px;
    margin: 30px auto 15px;
    display: block;
}

.subtitle {
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.2rem;
    text-align: center;
}

/* Sections */
.verlag-section, .programm-section, .kontakt-section, .author-info, .book-description {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: justify;
}

.quote-section {
    background-color: #f5f5f5;
    padding: 40px;
    border-left: 6px solid #8a8a8a;
    margin-bottom: 50px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: justify;
}

/* Typography */
h2 {
    font-size: 1.9rem;
    margin-bottom: 25px;
    font-weight: normal;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #8a8a8a;
}

p {
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.quote-section p:first-of-type:first-letter {
    font-size: 2.5rem;
    float: left;
    line-height: 1;
    margin-right: 8px;
    color: #555;
}

.quote-author {
    font-weight: bold;
    margin-top: 25px;
    text-align: right;
    font-style: italic;
    color: #555;
    text-align: right;
}

.highlight {
    font-style: italic;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Images */
.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8a8a8a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-right: 25px;
    float: left;
}

.book-image {
    width: 120px;
    height: auto;
    object-fit: cover;
    border: 3px solid #8a8a8a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    float: left;
    margin: 0 20px 15px 0;
}

.text-content {
    overflow: hidden;
}

/* Buttons */
.btn-amazon {
    padding: 12px 30px;
    background-color: #ff9900;
    color: #111;
    border: 3px solid #222;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.btn-amazon:hover {
    background-color: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.amazon-button-container {
    text-align: center;
    margin: 30px 0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

/* Hover Pop-up Styles */
.hover-popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #8a8a8a;
    text-underline-offset: 2px;
}

.popup-content {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f5f5f5;
    border: 1px solid #8a8a8a;
    color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    width: 700px;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10000;
    overflow-y: auto;
}


.popup-image {    
    width: 90%;
    height: auto;
    margin: 10px auto 0 auto;
    display: block;
    opacity: 0.9;
}

.hover-popup:hover .popup-content {
    visibility: visible;
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .popup-content {
        width: 500px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hover-popup {
        text-decoration: none;
        cursor: default;
    }
    
    .hover-popup .popup-content {
        display: none !important;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .title-logo {
        width: 95%;
    }
    
    header {
        margin-bottom: 5px;
        padding-bottom: 5px;
    }
    
    .quote-section {
        padding: 25px;
    }
    
    .subtitle {
        margin-bottom: 10px;
        font-size: 1rem;
    }
    
    .logo {
        height: 80%;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .author-image, .book-image {
        margin: 0 15px 15px 0;
    }
    
    .author-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    /* Improved mobile navigation */
    .main-nav {
        margin: 20px 0;
        padding: 15px 0;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 1.2rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .title-logo {
        width: 100%;
    }
    
    .main-nav {
        margin: 10px 0;
    }
    
    header {
        margin-bottom: 5px;
        padding-bottom: 5px;
    }
    
    .subtitle {
        margin-bottom: 10px;
        font-size: 1rem;
    }
    
    .logo {
        height: 80%;
    }
    
    .quote-section {
        padding: 20px;
    }
    
    body {
        padding: 10px;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .author-image, .book-image {
        float: none;
        margin: 0 auto 15px;
        display: block;
    }
    
    .author-info {
        flex-direction: column;
        align-items: center;
    }
    
    /* Further improved mobile navigation */
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-nav a {
        display: block;
        text-align: center;
    }
    
    /* Improved mobile typography */
    h2 {
        font-size: 1.6rem;
    }
    
    .verlag-section, .programm-section, .kontakt-section, .author-info, .book-description {
        padding: 20px;
    }
}