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

:root {
    --amber: #D4A574;
    --amber-light: #E8C9A0;
    --copper: #B87333;
    --copper-dark: #8B5A2B;
    --copper-light: #CD853F;
    --black: #1A1A1A;
    --charcoal: #2D2D2D;
    --charcoal-light: #3D3D3D;
    --cream: #F5F0E8;
    --cream-dark: #E8E0D4;
    --white: #FFFFFF;
    --gold: #C9A227;
    --green: #4A5D23;
    --red: #8B2635;
    --gold2: #B59B67;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.7;
    font-size: 21px;
    overflow-wrap: break-word; /* Forces long unbroken words to wrap */
    word-wrap: break-word;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--amber);
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--copper-dark);
}

h4 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    color: var(--charcoal);
}

p {
    margin-bottom: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    color: #001B2E;
}

p.white {
    margin-bottom: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    color: #f6f7f8;
}

li p b, li p strong, p b, p strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: inline-block;
}

/* Überschriften */
h1, h2, h3 { font-weight: 700; }
h4, h5, h6 { font-weight: 600; }

a {
    color: var(--copper);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

a:hover {
    border-bottom-color: var(--copper);
}

/* Header */
.site-header {
    background: var(--black);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--amber);
    text-decoration: none;
    border: none;
}

.logo span { color: var(--white); }

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--amber-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.main-nav a:hover {
    color: var(--amber);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--black);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--amber-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb a {
    color: var(--amber);
    border: none;
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: var(--copper);
}

/* Quick Facts */
.quick-facts {
    background: var(--black);
    border-bottom: 3px solid var(--amber-light);
    border-top: 2px solid var(--amber-light);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-top: -1rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    overflow-x: hidden;
}

.fact-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--amber);
}

.fact-text {
    color: var(--amber-light);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--black) 0%, var(--charcoal) 100%);
    padding: 3rem 1.5rem; /* Reduced horizontal padding for mobile safety */
    padding-bottom:1rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23D4A574' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--amber-light);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tag {
    background: var(--amber);
    color: var(--black);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.article-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--amber-light);
    font-style: italic;
}

/* Main Content */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.main-content > h2:first-child {
    margin-top: 0.5rem;
}

/* Table of Contents */
.toc {
    background: var(--white);
    border-left: 4px solid var(--amber);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.toc h3 {
    margin-top: 0;
    color: var(--black);
}

.toc ul {
    list-style: none;
    columns: 2;
    column-gap: 2rem;
}

.toc li {
    margin-bottom: 0.75rem;
    break-inside: avoid;
}

.toc a {
    color: var(--copper-dark);
    font-size: 1.1rem;
}

.toc a:hover {
    color: var(--copper);
}

/* Quick Answer Box */
.quick-answer {
    background: linear-gradient(135deg, var(--copper-dark) 0%, var(--copper) 100%);
    color: var(--white);
    padding: 2rem 1.5rem; /* Reduced h-padding */
    border-radius: 12px;
    margin: 2rem 0;
    position: relative;
}

.quick-answer::before {
    content: '⚡ Schnelle Antwort';
    position: absolute;
    top: -12px;
    left: 1.5rem;
    background: var(--gold);
    color: var(--black);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.quick-answer p {
    margin: 0;
    font-size: 1.1rem;
}

.quick-answer strong {
    color: var(--amber-light);
}

/* Comparison Table */
.table-responsive {
    width: 100%;
    margin: 2rem 0; /* Margin moved to wrapper */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 600px; /* Forces scrolling instead of layout stretching */
    border-collapse: collapse;
    margin: 0;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-table th {
    background: var(--charcoal);
    color: var(--amber);
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.comparison-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--cream-dark);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: var(--cream);
}

.comparison-table .whisky-col {
    border-left: 4px solid var(--copper);
}

.comparison-table .whiskey-col {
    border-left: 4px solid var(--gold);
}

/* Link Boxes */
.link-box {
    background: #2D2D2D;
    border-left: 4px solid var(--amber);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.link-box a {
    color: var(--soviet-red);
    font-weight: 600;
    text-decoration: none;
}

.link-box a:hover {
    text-decoration: underline;
}

/* Info Boxes */
.info-box {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem; /* Reduced for mobile */
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid var(--amber);
}

.info-box h4 {
    margin-top: 0;
    color: var(--copper-dark);
}

.info-box ul, .info-box ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-box li {
    margin-bottom: 0.75rem;
}

/* Highlight Box */
.highlight-box {
    background: var(--black);
    color: var(--white);
    padding: 1.5rem; /* Reduced for mobile */
    border-radius: 12px;
    margin: 1.5rem 0;
    position: relative;
}

.highlight-box h4 {
    color: var(--amber);
    margin-top: 0;
}

/* Etymology Section */
.etymology-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.etymology-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--copper), var(--amber), var(--gold));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--amber);
    border: 3px solid var(--cream);
}

.timeline-year {
    font-weight: bold;
    color: var(--copper-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Country Cards */
.country-grid {
    display: grid;
    /* Safely forces grid to never break 100% width on tiny screens */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.country-card {
    background: var(--gold2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    border-radius: 0 0 8px 8px; 
    border-top: 8px solid var(--amber);
}

.country-card:hover {
    transform: translateY(-5px);
}

.country-card.whisky { border-top-color: var(--charcoal); }
.country-card.whiskey { border-top-color: var(--charcoal); }

.country-flag {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.country-card h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.country-card .spelling {
    display: inline-block;
    background: var(--cream);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.country-card.whisky .spelling { color: var(--copper-dark); }
.country-card.whiskey .spelling { color: var(--gold); }

/* FAQ Section */
.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--black);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--cream);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--copper);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 500px;
}

/* CTA Boxes */
.cta-box {
    background: linear-gradient(135deg, var(--copper-dark) 0%, var(--copper) 100%);
    color: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    color: var(--white);
    margin-top: 0;
}

.cta-box p {
    color: var(--amber-light);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--amber);
    color: var(--black);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--amber-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--amber);
    color: var(--amber);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--amber);
    color: var(--black);
}

/* Container styling to put image and text side-by-side */
.author-box {
    display: flex;
    align-items: center; /* Aligns items to the center vertically */
    gap: 20px; /* Adds space between the image and the text */
    padding: 20px;
    background-color: #f5f5f5; /* Optional: adds a light background */
    border-radius: 10px; /* Optional: rounds the corners of the whole box */
}

/* Make the image perfectly round */
.author-avatar img {
    width: 100px; /* Adjust the size of the image */
    height: 100px; /* Keep height same as width for a perfect circle */
    border-radius: 50%; /* This makes it round */
    object-fit: cover; /* Prevents the image from stretching/squishing */
    border: 3px solid #ddd; /* Optional: adds a border around the image */
}

/* Optional: Clean up text spacing */
.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.author-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.author-bio {
    margin: 0;
    line-height: 1.5;
}

/* Make it stack on smaller mobile screens */
@media (max-width: 500px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Related Articles */
.related-articles {
    background: var(--cream-dark);
    padding: 2rem;
    margin-top: 0;
    font-size: 0.9rem;
}

.related-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card h4 {
    margin-top: 0;
    color: var(--copper-dark);
}

.related-card p {
    font-size: 1.1rem;
    color: var(--charcoal-light);
    margin-bottom: 1rem;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Footer Custom */
.footer-custom {
    background-color: var(--black);
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 20px;
}

.footer-heading {
    color: var(--amber);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.1rem;
    display: block;
    text-align: center;
}

.footer-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

.footer-links {
    list-style: none;
    font-size: 0.95rem;
    padding: 0;
    margin: 0 auto;
    text-align: center;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    border: none;
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px auto;
    width: 80%;
}

.footer-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 767px) {
    .footer-social-row {
        justify-content: center;
        margin-bottom: 10px;
    }
    .footer-custom .col-md-4 {
        margin-bottom: 40px;
    }
}

.footer-social-row a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    border: none;
}

.footer-social-row a:hover {
    color: var(--amber);
}

.social-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-right: 5px;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0;
    display: inline-block;
}

.age-warning {
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid var(--copper);
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem 0 0 0;
    font-size: 0.875rem;
}

/* Style for the buttons */
.share-button {
    background: linear-gradient(to bottom, #8B5A2B, #212529);
    color: white !important;
    font-size: 11px;
    border: 1px solid #f6f6f3a5;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-decoration: none !important;
}

.share-button:hover {
    background: linear-gradient(to bottom, #212529, #8B5A2B);
    border-color: #C9A227;
}

.bg-bs {
    background-color: #B59B67 !important;
}

.caption {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: #292a2b;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
}

.navbar-nav .nav-link {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .toc ul { columns: 1; }
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    .comparison-table { font-size: 0.875rem; }
    .comparison-table th,
    .comparison-table td { padding: 0.75rem; }
    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Print Styles */
@media print {
    .site-header, .breadcrumb, .cta-box, .related-articles, .footer-custom { display: none; }
    .article-header { background: white; color: black; }
    .article-header h1 { color: black; }
}