/* =========================================
   Farb-Variablen + Theme-Umschalter
========================================= */

@font-face {
    font-family: 'Great Vibes';
    src: url('fonts/GreatVibes-Regular.eot');
    src: url('fonts/GreatVibes-Regular.eot?#iefix') format('embedded-opentype'),
         url('fonts/GreatVibes-Regular.woff2') format('woff2'),
         url('fonts/GreatVibes-Regular.woff') format('woff'),
         url('fonts/GreatVibes-Regular.ttf')  format('truetype'),
         url('fonts/GreatVibes-Regular.svg#Great Vibes') format('svg');
}

:root {
	
	 /* Standardfarbwelt (braun) */
    --bg-main: #a27541;     /* Body-Hintergrund */
    --bg-box: #bb8b53;      /* Boxen (#pg, #container) */
    --hover-row: #a27541;   /* Tabellen-Hover alt */
    --text-main: #ffffff;
}
    /* Standardfarbwelt (braun) */
  /*  --bg-main: #822a42;
    --bg-box:  #741831;
    --hover-row:  #741831;
    --text-main: #ffffff;
}*/

/* Neue Farbwelt: Hintergrund #741831, Hover #822a42 */
body.redtheme {
    --bg-main: #741831;
    --bg-box: #741831;
    --hover-row: #822a42;
    --text-main: #ffffff;
}

/* =========================================
   Basis-Layout & Grundstil
========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    padding: 0;
    margin: 0;
    font-family: system-ui, sans-serif;
    text-align: center;
    color: var(--text-main);
    background-color: var(--bg-main);
}

/* Links / Standard-Links */

a:link {
    color: #eee;
    font-size: 0.9em;
    text-decoration: none;
    text-align: right;
    clear: right;
}

a:visited {
    color: #888888;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
  
}

/* Backlink-Links */

.backlink a:link {
    color: #888888;
    font-size: 11px;
    text-decoration: none;
    text-align: right;
    clear: right;
}

.backlink a:visited {
    color: #888888;
    font-size: 11px;
    text-decoration: none;
}

.backlink a:hover {
    color: #ffffff;
    font-size: 11px;
    border-bottom: 2px solid silver;
}

/* =========================================
   Typografie
========================================= */

strong {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 18px;
}

h1, h3 {
    font-family:  'Great Vibes'
}

h1 {
    color: #fafafa;
    font-size: 2.6em;
    display: inline;

}
h2 {
    color: #fafafa;
    font-size: 1.8em;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}
h3 {
    color: #fafafa;
    font-size: 1.9em;
    margin-top: 0 rem;
    margin-bottom: 0.0rem;
	
}
h4 {
    margin: 1rem 0 0.3rem;
}

.adresse {
    font-size: 12px;
}

.teaser {
    color: #cfcfcf;
    font-size: 10px;
}

/* Tabellen-Textklasse wie bisher genutzt */

.text {
    font-size: 0.9em;
    text-align: left;
}

/* =========================================
   Seitenrahmen
========================================= */

#pg {
    margin: 20px auto;
    background-color: #bb8b53;
    max-width: 1024px;
    width: 100%;
    padding: 0 1rem 1rem;
}

/* Der Haupt-Container ordnet linke Box & Speisekarte.
   Mobile: spalte-untereinander, Desktop: nebeneinander. */

#container {
    background-color: var(--bg-box);
    background-repeat: no-repeat;
    background-position: left bottom;
    margin: 0 auto;
    padding: 1.5rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Wrapper für Header-/Adressbereich links */

#left {
    width: 100%;
}

/* Wrapper für Inhalt rechts (Speisekarte) */

#right {
    width: 100%;
}

/* =========================================
   Box links mit Restaurantnamen, Adresse etc.
========================================= */

#main {
    /*background-image: url(media/menu_bg2.png);*/
	  background-color: #a27541; 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;     /* Bild füllt kompletten DIV */
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    padding: 2rem 1rem 2.5rem;
    border-radius: 4px;
}

/* (Altes #menu bleibt aus Kompatibilität erhalten) */

#menu {
  /*  background-image: url(media/menu_bg.jpg); */
	  background-color: #a27541; 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
    overflow: hidden;
    padding: 2rem 1rem 2.5rem;
    border-radius: 4px;
}

/* =========================================
   Social-Buttons unter #left
========================================= */

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.social-buttons button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 8px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-buttons button img {
    display: block;
    max-height: 50px;
}

.social-buttons button:hover {
    background: var(--hover-row);
}

/* =========================================
   Tabelle / Menü
========================================= */

/* Wrapper um die komplette Speisekarte,
   auf kleinen Displays horizontal scrollbar, wenn nötig. */
.menu-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Tabellenstil */

.printable table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.printable td {
    padding: 0.4rem 0.3rem;
    vertical-align: top;
}

/* Hover-Effekt für Tabellenzeilen:
   via !important auch bei inline onmouseover überschrieben */

.printable tr[onmouseover] {
    transition: background-color 0.2s ease-in-out;
}

.printable tr:hover {
    background-color: #a27541; !important;
}

/* Inhalt, der mit jQuery eingeblendet wird */

#page_effect_copy {
    color: #ffffff;
    font-size: 0.8em;
    line-height: 1.5em;
    padding: 1rem 0 0;
    position: relative;
}

/* (Altes #page_effect bleibt erhalten, falls JS es verwendet) */

#page_effect {
    position: relative;
    padding-top: 20px;
}

/* Facebook-/Social-Bereich (wie gehabt nur leicht vereinheitlicht) */

#facebook,
#fb {
    font-size: 0.8em;
    line-height: 1.5em;
    margin: 0.3rem auto;
}

/* =========================================
   Footer
========================================= */

#footer {
    font-size: 12px;
    clear: both;
    margin: 0 auto;
    padding: 8px;
    text-align: center;
}

#footer_nav {
    font-size: 1.6em;
}

/* Backlink-Bereich unter dem Hauptcontainer */

.backlink {
    text-align: center;
    margin-top: 1rem;
}

/* =========================================
   Responsive Breakpoints
========================================= */

/* Desktop / größere Tablets: zwei Spalten nebeneinander */

@media (min-width: 769px) {
    #container {
        flex-direction: row;
        align-items: flex-start;
    }

    #left {
        flex: 0 0 35%;
        max-width: 380px;
    }

    #right {
        flex: 1 1 0%;
    }

    #main {
        margin-left: 0;
    }
}

/* Sehr kleine Displays: etwas kleinere Schrift,
   damit die Tabelle besser auf die Breite passt. */

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .printable table {
        font-size: 0.85em;
    }

    strong {
        font-size: 15px;
    }
}

/* =========================================
   Theme-Switch-Button oben
========================================= */

#themeSwitch {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    background: #ffffff33;
    backdrop-filter: blur(6px);
    border: 1px solid #ffffff66;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #ffffff;
}
