/* Bereinigt: Cleaned version of Herbert Fritsche website */
/* Same visual appearance, modern CSS */

/* Home icon */
.home-icon {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #000066;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    transition: background 0.15s;
}
.home-icon:hover { background: #CE0000; color: #fff; text-decoration: none; }

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

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #000066;
    background: #f0f0f0;
}

a { color: #000066; text-decoration: none; }
a:hover { color: #CE0000; text-decoration: underline; }

.site-wrapper {
    max-width: 990px;
    margin: 30px auto 0;
    background: #fff;
    border: 1px solid #bababa;
}

/* Header */
header {
    height: 150px;
    padding: 0;
    position: relative;
}
header .logo { display: block; padding: 20px 15px; }
header .logo img { width: 261px; height: 94px; }

/* Navigation */
.layout { display: flex; }

nav.sidebar {
    width: 230px;
    flex-shrink: 0;
    padding: 10px 0 30px 15px;
}
nav.sidebar ul { list-style: none; padding-left: 16px; }
nav.sidebar li {
    border-bottom: 1px solid #B7B7B7;
}
nav.sidebar a {
    display: block;
    padding: 4px 0 4px 22px;
    font-size: 12px;
    font-weight: bold;
    line-height: 20px;
    color: #000066;
}
nav.sidebar a:hover, nav.sidebar a.active {
    color: #D20000;
    text-decoration: none;
}

/* Content */
main {
    flex: 1;
    min-width: 0;
    padding: 0 10px 30px 0;
}
.content-box {
    border: 1px solid #E6E9EE;
    padding: 32px;
    text-align: justify;
}
.content-box h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0.5em;
}
.content-box h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0.5em;
}
.content-box p { margin-bottom: 10px; }

.content-box .float-right-img {
    float: right;
    width: 256px;
    margin-left: 20px;
    margin-bottom: 10px;
}
.content-box .float-right-img img {
    width: 100%;
    height: auto;
}

.content-box .full-width-img {
    width: 100%;
    margin: 15px 0;
}
.content-box .full-width-img img {
    width: 100%;
    height: auto;
}

.content-box hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

/* Footer */
footer {
    max-width: 990px;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    color: #bababa;
    font-size: 13px;
}
footer a { color: #bababa; }
footer a:hover { color: #CE0000; }

/* Clearfix */
.clearfix::after { content: ''; display: table; clear: both; }

/* Book list for Gesamtausgabe */
.book-list { margin: 20px 0; }
.book-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.book-item img {
    width: 120px;
    height: auto;
    flex-shrink: 0;
}
.book-item .book-info h3 {
    font-size: 15px;
    margin-bottom: 0.3em;
}
.book-item .book-info p {
    font-size: 13px;
    margin-bottom: 5px;
}

/* Tooltip */
.info-tooltip {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
}
.info-tooltip .info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #000066;
    color: #fff;
    font-size: 16px;
    font-style: italic;
    font-family: Georgia, serif;
    cursor: pointer;
    border: none;
}
.info-tooltip .info-btn:hover { background: #CE0000; }
.info-tooltip .tooltip-text {
    display: none;
    position: absolute;
    top: 36px;
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.info-tooltip:hover .tooltip-text { display: block; }

/* Sub-navigation */
nav.sidebar .sub-nav { padding-left: 10px; list-style: none; }
nav.sidebar .sub-nav li { border-bottom-color: #ddd; }
nav.sidebar .sub-nav a { font-weight: normal; font-size: 11px; padding-left: 28px; }
