/* 
 * Kaisergarten Restaurant - Typography CSS
 * Enthält alle Typografie-Stile für die Webseite
 */

/* Hauptschriften importieren - Optimiert mit font-display: swap für bessere Performance */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap&font-display=swap');

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: var(--font-size-3xl);
    position: relative;
}

h2.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-sm);
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--border-radius-xs);
    transition: width var(--transition-speed) var(--transition-smooth);
}

h2.section-title:hover::after {
    width: 80px;
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-md);
}

p {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-relaxed);
}

.chinese-accent {
    font-family: 'Noto Serif SC', serif;
    font-weight: var(--font-weight-medium);
}

/* Text-Utility-Klassen */
.text-primary { color: var(--primary-color); }
.text-primary-dark { color: var(--primary-dark); }
.text-primary-light { color: var(--primary-light); }
.text-secondary { color: var(--secondary-color); }
.text-secondary-dark { color: var(--secondary-dark); }
.text-secondary-light { color: var(--secondary-light); }
.text-accent { color: var(--accent-color); }
.text-dark { color: var(--dark-color); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

.subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

/* Spezielle Dekorationstexte */
.chinese-decoration {
    font-family: 'Noto Serif SC', serif;
    font-size: 8rem;
    position: absolute;
    opacity: 0.05;
    color: var(--primary-color);
    z-index: 0;
    user-select: none;
    line-height: 1;
    transition: opacity var(--transition-speed) var(--transition-smooth);
}

.chinese-decoration:hover {
    opacity: 0.08;
}

/* Link-Stile mit verbessertem Fokus-Zustand für Barrierefreiheit */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-smooth), 
                transform var(--transition-speed) var(--transition-bounce),
                box-shadow var(--transition-speed) var(--transition-smooth);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
}

a:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

a:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Unterstrichen-Effekt für Links im Fließtext */
.content a:not(.btn):not(.no-underline) {
    position: relative;
}

.content a:not(.btn):not(.no-underline)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform var(--transition-speed) var(--transition-smooth);
}

.content a:not(.btn):not(.no-underline):hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Listenelemente */
ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Hervorhebungen */
strong, b {
    font-weight: var(--font-weight-semibold);
}

em, i {
    font-style: italic;
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-md);
    margin: var(--spacing-md) 0;
    font-style: italic;
    color: var(--text-muted);
}

blockquote cite {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    font-style: normal;
}

/* Code und Vorformatierter Text */
code, pre {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: var(--font-size-sm);
    background-color: var(--neutral-200);
    border-radius: var(--border-radius-sm);
}

code {
    padding: 0.2em 0.4em;
}

pre {
    padding: var(--spacing-sm);
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
}

/* Responsives Verhalten */
@media (max-width: 1200px) {
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
}

@media (max-width: 768px) {
    h1 { font-size: var(--font-size-2xl); }
    h2 { font-size: var(--font-size-xl); }
    h3 { font-size: var(--font-size-lg); }
    body { font-size: var(--font-size-base); }
    .lead { font-size: var(--font-size-md); }
}

@media (max-width: 480px) {
    h1 { font-size: calc(var(--font-size-2xl) * 0.9); }
    h2 { font-size: calc(var(--font-size-xl) * 0.9); }
    body { font-size: calc(var(--font-size-base) * 0.95); }
}

/* Cookie Settings Modal Styles */
.cookie-details {
    margin-top: 0.5rem;
    padding-left: 1rem;
    font-size: 0.85rem;
    border-left: 2px solid rgba(0,0,0,0.1);
}

.cookie-info {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-secondary, #666);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary, #007bff);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.btn-text:hover,
.btn-text:focus {
    color: var(--primary-dark, #0056b3);
    text-decoration: none;
}
