:root {
    --header-bg: #1976d2;
    --header-color: #fff;
}

/* Grundlayout */
html {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    color: #222;
    font-size: 19px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-size: 1.13em;
}

/* Sticky Header Menü */
.sticky-header {
    position: sticky;
    top: 0;
    background: var(--header-bg);
    color: var(--header-color);
    padding: 1rem;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Menüleiste */
.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    max-width: 100vw;
    box-sizing: border-box;
}

.menu a,
.menu a:visited {
    color: var(--header-color, #fff);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: inline-block;
    transition: background 0.2s;
    border-radius: 0.5em;
    white-space: nowrap;
}
.menu a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--header-color, #fff);
}

/* Hamburger-Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    margin-right: 0.7em;
}

@media (max-width: 600px) {
    .menu {
        display: none;
        flex-direction: column;
        background: var(--header-bg);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 200;
        gap: 0;
    }
    .menu.open {
        display: flex;
    }
    .menu a {
        padding: 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .menu-toggle {
        display: block;
    }
}

/* Listenstil */
ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2em 0;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
li {
    background: #fff;
    margin-bottom: 1.2em;
    border-radius: 1em;
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.08);
    padding: 1.5em 1.7em 1.5em 1.7em;
    transition: box-shadow 0.2s;
    position: relative;
    font-size: 1.15em;
    word-break: break-word;
}

/* Für Listeneinträge mit Bearbeiten/Löschen-Symbolen */
li {
    position: relative;
}

/* Bearbeiten/Löschen-Symbole (aus list.php) */
.entry-actions {
    position: absolute;
    top: 1.1em;
    right: 1.2em;
    display: flex;
    gap: 0.5em;
    z-index: 2;
}
.entry-actions a {
    background: none;
    border: none;
    padding: 0.15em;
    cursor: pointer;
    border-radius: 0.4em;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
}
.entry-actions a:hover {
    background: rgba(25, 118, 210, 0.08);
}
.entry-actions a.delete:hover {
    background: rgba(183, 28, 28, 0.08);
}

/* Überschrift */
h1 {
    text-align: center;
    margin-top: 1.2em;
    margin-bottom: 0.8em;
    font-size: 2rem;
    color: #1976d2;
    letter-spacing: 0.02em;
}

/* Zurück-Button */
button {
    display: block;
    margin: 0.5em auto 1em auto;
    padding: 0.9em 2.3em;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 2em;
    font-size: 1.2em;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.07);
    transition: background 0.2s;
}
button:hover, button:focus {
    background: #125ea2;
    outline: none;
}

/* Location-Zeile */
li .location,
li > a.location-link {
    font-size: 1.18em;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.3em;
    font-family: inherit;
    color: #1976d2;
}
li > a.location-link {
    text-decoration: underline;
}
li > a.location-link:hover,
li > a.location-link:focus {
    color: #125ea2;
}

/* Allgemeine Link-Stile */
li a {
    color: #1976d2;
    text-decoration: none;
    word-break: break-all;
}
li a:hover, li a:focus {
    text-decoration: underline;
}

/* Trennlinie */
hr {
    border: none;
    border-top: 1.5px solid #e0e0e0;
    margin: 1.5em 0;
}
/* Trennlinie innerhalb der Listeneinträge im blauen Farbton */
li hr {
    border: none;
    border-top: 2px solid #1976d2;
    margin: 1.2em 0;
}

/* Kleine Akzente für Zusatzinfos */
li small, li .info {
    color: #666;
    font-size: 0.97em;
    display: block;
    margin-top: 0.2em;
}

/* Telefon-Links */
li a[href^="tel:"] {
    color: #388e3c;
    font-weight: 500;
}
li a[href^="tel:"]:hover {
    text-decoration: underline;
    color: #1b5e20;
}

/* Bewertungssterne */
.avg-rating svg {
    margin-right: 0.05em;
    vertical-align: middle;
}
.avg-rating {
    margin-bottom: 0.3em;
    text-align: left;
}
.star {
    font-size: 1.4em;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-block;
}
.star.selected {
    color: #FFD700;
}

/* --- Edit-Formular und Buttons --- */
.edit-form {
    max-width: 600px;
    margin: 2em auto;
    background: #fff;
    padding: 2em 2em 1.5em 2em;
    border-radius: 1em;
    box-shadow: 0 2px 10px #1976d228;
}
.edit-form label {
    display: block;
    margin-top: 1em;
    font-weight: 500;
}
.edit-form input,
.edit-form textarea {
    width: 100%;
    padding: 0.6em;
    margin-top: 0.2em;
    border-radius: 0.5em;
    border: 1px solid #b3c7e6;
    font-size: 1em;
    box-sizing: border-box;
}
.edit-form select {
    width: 100%;
    padding: 0.6em;
    margin-top: 0.2em;
    border-radius: 0.5em;
    border: 1px solid #b3c7e6;
    font-size: 1em;
    background: #f7f7f7;
    color: #222;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.edit-form select:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 2px #1976d222;
}
.edit-form label[for="destination"], .edit-form label[for="category"] {
    margin-top: 1em;
    font-weight: 500;
}
.edit-form .form-actions {
    margin-top: 1.5em;
    display: flex;
    gap: 1em;
    align-items: center;
}
.edit-form button,
.edit-form .btn-cancel {
    padding: 0.6em 1.5em;
    border-radius: 1.5em;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
    border: 1.5px solid #1976d2;
    line-height: 1.2;
    min-width: 140px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    height: auto;
}
.edit-form button[type="submit"] {
    background: #1976d2;
    color: #fff;
}
.edit-form button[type="submit"]:hover, .edit-form button[type="submit"]:focus {
    background: #125ea2;
    border-color: #125ea2;
}
.edit-form .btn-cancel {
    background: #e3eaf6;
    color: #1976d2;
    border-color: #1976d2;
}
.edit-form .btn-cancel:hover, .edit-form .btn-cancel:focus {
    background: #1976d2;
    color: #fff;
    border-color: #125ea2;
    outline: none;
}
.edit-form .info {
    color: #388e3c;
    text-align: center;
    margin-top: 1em;
}

/* Tabellen für Öffnungszeiten und Eintrittspreise */
.multi-table { border-collapse: collapse; width: 100%; margin-bottom: 1.5em;}
.multi-table th, .multi-table td { border: 1px solid #e0e0e0; padding: 0.5em; }
.multi-table th { background: #f6f8fa; }
.multi-table input { font-size: 1em; border-radius: 0.4em; border: 1px solid #b3c7e6; box-sizing: border-box; }
.multi-table td { vertical-align: middle; }
.multi-table input[name^="oh_day_start"], .multi-table input[name^="oh_day_end"] { width: 7em; min-width: 5em; max-width: 10em; }
.multi-table input[name^="oh_time_from"], .multi-table input[name^="oh_time_to"], .multi-table input[name^="oh_time_from2"], .multi-table input[name^="oh_time_to2"] { width: 5em; min-width: 4em; max-width: 7em; text-align: center; }
.multi-table input[name^="fee_category"] { width: 10em; min-width: 6em; max-width: 16em; }
.multi-table input[name^="fee_price"] { width: 6em; min-width: 4em; max-width: 10em; text-align: right; }
.add-row-btn { margin: 0.5em 0; padding: 0.4em 1.2em; border-radius: 1em; border:1px solid #1976d2; background: #e3eaf6; color: #1976d2; cursor: pointer;}
.add-row-btn:hover { background: #1976d2; color: #fff;}
.remove-row-x {
    color: #b71c1c;
    font-weight: bold;
    font-size: 1.25em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 0.4em;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
    user-select: none;
    transition: color 0.15s, background 0.15s;
}
.remove-row-x:hover {
    color: #fff;
    background: #b71c1c;
    border-radius: 50%;
}
.oh-row { display: flex; flex-direction: column; gap: 0; }
.oh-row .oh-row-line { display: flex; gap: 0.7em; margin-bottom: 0.15em; }
.oh-row .oh-row-line:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
    .oh-row .oh-row-line { flex-direction: column; gap: 0.1em; }
}

/* Responsive Design */
@media (max-width: 700px) {
    h1 {
        font-size: 1.7rem;
        margin-top: 1em;
    }
    ul {
        padding: 0 0.3em;
    }
    li {
        padding: 1.2em 0.8em;
        font-size: 1.08em;
    }
    button {
        width: 95vw;
        max-width: 420px;
        font-size: 1.15em;
        padding: 0.8em 0;
    }
    .edit-form {
        padding: 1.2em 0.7em 1em 0.7em;
    }
}

@media (max-width: 600px) {
    main {
        padding: 1rem;
        margin: 1rem;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: #fff;
    padding: 2em 1.5em 1.5em 1.5em;
    border-radius: 1em;
    box-shadow: 0 4px 30px rgba(25, 118, 210, 0.16);
    min-width: 260px;
    text-align: center;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 0.7em;
    right: 1.1em;
    font-size: 1.4em;
    color: #888;
    cursor: pointer;
}
.modal h2 {
    margin-top: 0;
}
.modal .star {
    font-size: 2em;
}
.modal button[type="submit"] {
    margin-top: 1em;
    padding: 0.5em 2em;
    border-radius: 2em;
    background: #1976d2;
    color: #fff;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
}
.modal button[type="submit"]:hover {
    background: #125ea2;
}

.oh-list-block, .fee-list-block {
    margin: 0.7em 0 0.7em 0;
}
.oh-list, .fee-list {
    margin: 0.4em 0 0.4em 1em;
    padding: 0;
    list-style: disc inside;
}
.oh-list li, .fee-list li {
    margin-bottom: 0.2em;
    font-size: 0.98em;
}
.oh-list-block b, .fee-list-block b {
    color: #1976d2;
}
/* Öffnungszeiten/Eintrittspreise in Listenansicht */
.oh-fee-table {
    margin: 0.7em 0 0.7em 0;
    border-collapse: collapse;
    width: 100%;
}
.oh-fee-table td, .oh-fee-table th {
    font-size: 75%;
    padding: 0.2em 0.7em 0.2em 0.2em;
    border: none;
    vertical-align: top;
}
.oh-fee-table th {
    color: #1976d2;
    font-weight: 600;
    padding-top: 0.3em;
    padding-bottom: 0.3em;
}
.oh-fee-table tr:not(:last-child) td {
    padding-bottom: 0.1em;
}
