/* ===== RASE KUNSTHANDEL STYLESHEET ===== */

/* ===== FARBEN (Variablen) ===== */
:root {
    --primary-color: #992925;
    --accent-light: #e4d5b8;
    --accent-grey: #afafaf;
    --accent-medium: #b4ac98;
    --accent-dark: #a29580;
    --bg-cream: #f5f2ec;
    --text-dark: #333333;
    --text-light: #505050;
    --text-white: #f5f5f5;
}

/* ===== GRUNDGERÜST ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Trebuchet MS, Arial, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.4;
    background-color: var(--bg-cream);
}

/* ===== PAGE SYSTEM ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===== HEADER ===== */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

header p {
    font-size: 1rem;
    font-style: italic;
    color: var(--accent-light);
}

/* ===== NAVIGATION ===== */
nav {
    background-color: var(--bg-cream);

    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    border-right: 2px solid #d7cebc;
}

nav li:last-child {
    border-right: none;
}

nav a {
    display: block;
    padding: 0.5rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--bg-cream);
}

nav a:hover {
    background-color: var(--primary-color);
    color: white;
    border-bottom: 2px solid var(--primary-color);
}

/* ===== INDEX-SPEZIFISCHE STYLES ===== */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2rem;
}

.sidebar {
    background-color: var(--accent-light);
    padding: 1.5rem;
    border-radius: 4px;
    height: fit-content;
}
nav.sidebar li {
    border-right: none;
}
.sidebar ul {
    list-style: none;
    text-align: left;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    background-color: transparent;
    border-left: none;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: var(--primary-color);
    color: white;
    border-left-color: 2px var(--primary-color);
}

.main-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 4px;
}

.featured-image {
    width: 100%;
    height: 300px;
    background-color: #e8e5de;
    border-left: 2px solid #992925;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
    overflow: hidden;
}
.featured-image-height {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: left;
    color: #666;
    margin: 2rem 0;
    overflow: hidden;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background-color: var(--bg-cream);
    padding: 2rem;
    border-radius: 0 4px 4px 0;
    border-left: 2px solid var(--primary-color);
}

.service-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1rem;
    font-size: 15px;
}

.cta-inline {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.cta-inline:hover {
    text-decoration: underline;
}

.highlight-box {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: var(--accent-light);
    margin-top: 0;
}

.highlight-box p {
    color: #f5f2ec;
    margin-bottom: 1rem;
}

.highlight-box a {
    color: var(--accent-light);
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-box {
    background-color: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 0 4px 4px 0;
    border-left: 2px solid var(--primary-color);
}

.info-box h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.1rem;
}

/* ===== CONTENT SECTIONS ===== */
section {
    width: 100%;
    padding: 2.5rem 0;
}

section.light {
    background-color: #ffffff;
}

section.accent {
    background-color: var(--bg-cream);
}

section.primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== TYPOGRAFIE ===== */
h1 {
    font-size: 1.5rem;
    color: var(--text-white);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

section.accent h1,
section.light h1 {
    color: var(--primary-color);
}

h2 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    padding-left: 0.75rem;
    background-image: url(data:image/gif;base64,R0lGODlhBQAFAIAAAJkpJgAAACH5BAAAAAAALAAAAAAFAAUAAAIIlI+py+0PYysAOw==);
    background-repeat: repeat-y;
    background-position: left;
}

section.primary h2 {
  color: var(--accent-light);
  background-image: none;
  padding: 0;
}

h3 {
    font-size: 1.1rem;
    font-weight: normal;
    text-decoration: underline;
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem 0;
    padding: 0.5rem 0 0 0;
}

section.primary h3 {
    color: var(--accent-light);
}

h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-dark);
    margin: 1rem 0 0.5rem 0;
    padding: 0.5rem 0 0 0;
}

section.primary h4 {
    color: var(--accent-light);
}

p {
    margin-bottom: 1rem;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

section.primary p {
    color: var(--text-white);
}

/* ===== LINKS ===== */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

section.primary a {
    color: var(--accent-light);
}

section.primary a:hover {
    color: #fff;
}

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 1rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
 
}

.cta-button:hover {
    background-color: #732220;
    text-decoration: none;
}

section.primary .cta-button {
    background-color: var(--accent-light);
    color: var(--primary-color);
}

section.primary .cta-button:hover {
    background-color: #b4ab8f;
}

/* ===== IMAGE PLACEHOLDER ===== */
.image-placeholder {
    width: 100%;
    height: 280px;
    background-color: #e8e5de;
    border: 2px dashed #999;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* ===== FEATURE BOXES ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0 0 0;
}

.feature-box {
    background-color: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 2px solid var(--primary-color);
}

.feature-box h4 {
    color: var(--primary-color);
    margin-top: 0;
    text-decoration: none;
}

/* ===== GLOSSAR BOX ===== */
.glossar-box {
    background: linear-gradient(135deg, var(--bg-cream) 0%, #e8e5de 100%);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.glossar-box h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    text-decoration: none;
    font-weight: bold;
}

.glossar-box p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.glossar-box strong {
    color: var(--primary-color);
}

/* ===== GLOSSAR EINTRÄGE ===== */
.glossar-entry {
    background-color: var(--bg-cream);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    border-left: 2px solid var(--accent-dark);
    transition: all 0.3s ease;
}

.glossar-entry:hover {
    border-left-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.glossar-entry h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin: 0 0 0.75rem 0;
    text-decoration: none;
    font-weight: bold;
}

.glossar-entry p {
    margin-bottom: 0.75rem;
}

.glossar-entry p:last-child {
    margin-bottom: 0;
}

/* ===== FORMS ===== */
form div {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 13px;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #85755b;
    border-radius: 4px;
    font-size: 11px;
    font-weight: normal;
    color: var(--text-dark);
    background-color: var(--accent-medium);
    font-family: Trebuchet MS, Arial, Verdana, sans-serif;
}

textarea {
    resize: vertical;
    font-family: inherit;
}

/* ===== FOOTER ===== */
footer {
    background-color: #333;
    color: var(--accent-grey);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    line-height: 1.8;
    width: 100%;
}
footer p {
    color: var(--accent-grey);
}
footer a {
    color: var(--accent-grey);
    text-decoration: underline;
}

footer a:hover {
    text-decoration: unset;
    color: #fff;
}

.contact-info {
    margin: 1rem 0;
}

/* ===== UTILITIES ===== */
.clearer {
    height: 0;
    font-size: 0;
    line-height: 0;
    margin: 0;
    padding: 0;
    clear: both;
}

/* ===== RESTAURIERUNG - ERWEITERTE INHALTE ===== */

/* Off-Canvas Anker-Navigation */
.sticky-anchor-nav {
    position: fixed;
    top: 120px;
    right: -320px;
    width: 300px;
    z-index: 200;
    background-color: var(--bg-cream);
    border: 2px solid #d7cebc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 1rem;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
}

.sticky-anchor-nav.open {
    right: 0;
}

/* Toggle Button */
.anchor-nav-toggle {
    position: fixed;
    top: 120px;
    right: 0;
    z-index: 201;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px 0 0 4px;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    letter-spacing: .05rem;
}

.anchor-nav-toggle:hover {
    background-color: #732220;
    padding-right: 0.75rem;
}

.anchor-nav-toggle.hidden {
    right: 300px;
}

.sticky-anchor-nav h4 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.sticky-anchor-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sticky-anchor-nav li {
    margin: 0;
}

.sticky-anchor-nav a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    background-color: white;
    border-left: 3px solid transparent;
}

.sticky-anchor-nav a:hover {
    background-color: var(--primary-color);
    color: white;
    border-left-color: #732220;
    text-decoration: none;
    transform: translateX(3px);
}

/* Quick Navigation Box */
.quick-nav {
    background-color: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 3rem;
    border-left: 2px solid var(--primary-color);
}

.quick-nav h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-decoration: none;
}

.quick-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.quick-nav li {
    margin: 0;
}

.quick-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    padding: 0.3rem 0;
    font-size: 13px;
}

.quick-nav a:hover {
    color: #732220;
    padding-left: 0.5rem;
    text-decoration: none;
}

/* Content Sections */
.content-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
    scroll-margin-top: 100px;
}

.content-section:first-of-type {
    border-top: none;
}

/* Content Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.content-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    list-style-type: disc;
}

.content-text li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.content-text strong {
    color: var(--text-dark);
    font-weight: bold;
}

/* Content Images */
.content-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* ===== HEADER IMAGE ===== */
.header-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== CONTENT IMAGES ===== */
.content-image-container {
    width: 100%;
    max-width: 400px;
    height: auto;
    overflow: hidden;
    border-radius: 4px;
    background-color: #e8e5de;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* ===== KONTAKT-SPEZIFISCHE STYLES ===== */
.contact-box {
    background-color: var(--bg-cream);
    padding: 1.5rem;
    border-left: 2px solid var(--primary-color);
    margin-bottom: 2rem;
    border-radius: 0 4px 4px 0;
}

.info-box-note {
    background-color: #f9f7f3;
    padding: 1.5rem;
    border-radius: 0 4px 4px 0;
    margin: 1.5rem 0 2rem 0;
    border-left: 2px solid var(--accent-dark);
}

.info-box-note p {
    margin-bottom: 1rem;
}

.info-box-note p:last-child {
    margin-bottom: 0;
}

.anfahrt-header {
    margin-top: 3rem;
}

/* ===== GLOSSAR-SPEZIFISCHE STYLES ===== */
.glossar-back-button {
    margin-bottom: 2rem;
}

.glossar-nav {
    background-color: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 0 4px 4px 0;
    margin: 2rem 0 3rem 0;
    border-left: 2px solid var(--primary-color);
}

.glossar-nav h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-decoration: none;
}

.glossar-nav p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.glossar-nav p:last-child {
    margin-bottom: 0;
}

.glossar-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.glossar-nav a:hover {
    color: #732220;
    text-decoration: underline;
}

.glossar-category-header {
    margin-top: 3rem;
    border-top: 3px solid var(--primary-color);
    padding-top: 2rem;
}

.glossar-category-header:first-of-type {
    margin-top: 2rem;
}
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 1.5rem 0;
    }

    /* Index-Spezifische Mobile Styles */
    .content-with-sidebar {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .sidebar {
        display: none;
    }

    .featured-image {
        height: 200px;
    }

    .featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .info-boxes {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        height: 200px;
        font-size: 0.9rem;
    }

    .features {
        gap: 1.5rem;
    }

    .cta-button {
        display: block;
        margin-right: 0;
        margin-bottom: 0.75rem;
        width: 100%;
        text-align: center;
    }

    /* Glossar Box */
    .glossar-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .glossar-entry {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    /* Restaurierung - Mobile Anpassungen */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .quick-nav ul {
        grid-template-columns: 1fr;
    }

    .content-section {
        margin-top: 2rem;
        padding-top: 2rem;
        scroll-margin-top: 80px;
    }

    /* Off-Canvas Navigation auf mobilen Geräten */
    .sticky-anchor-nav {
        top: 80px;
        right: -280px;
        width: 260px;
    }

    .anchor-nav-toggle {
        top: 80px;
        font-size: 0.75rem;
        padding: 0.6rem 0.4rem;
    }

    .anchor-nav-toggle.hidden {
        right: 260px;
    }

    .sticky-anchor-nav a {
        font-size: 0.8rem;
        padding: 0.45rem 0.6rem;
    }
}