/* Global Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #80808040;
    min-width: 200px;
    cursor: url('/home/images/color-dark-spring-green-cursor.png'), auto;
    overflow: hidden;
}
/* ------------------------------ */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.popup {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s ease;
}
.popup-header {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}
#popup-share, #popup-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}
#popup-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}
#copy-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    z-index: 1000;
    font-size: 14px;
}
#phl-l[disabled] {
    opacity: 0.5;
    pointer-events: none;
}
/* ------------------------------ */
.public-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.pubhead-left {
    display: flex;
    gap: 10px;
    align-items: center;
}
.pubhead-left button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #888;
    background: white;
    font-size: 0;
    cursor: pointer;
}
.pubhead-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin-left: 10px;
}
.phr-info {
    background-color: white;
    border: 1px solid #888;
    border-radius: 15px;
    padding: 5px 15px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; 
    box-sizing: border-box;
}
.info-left,
.info-right {
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: bold;
    color: rgb(0, 100, 0);
}
/* ------------------------------ */
.public-page {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    padding-bottom: 20vh;
    height: 100%;
    overflow: hidden;
}
/* ------------------------------ */
.public-content {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}
.pubcon-planlist {
    flex: 1;
    display: grid;
    overflow-y: auto;
    height: 100%;
}
.pubcon-planlist ul {
    display: grid;
    grid-auto-rows: minmax(50px, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
    margin: 0;
    height: 100%;
}
.pubcon-planlist li {
    background-color: rgba(0, 117, 15, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 117, 15, 0.68);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; 
    margin: 5px;
    border-radius: 27px; 
    font-size: 50px; 
    box-sizing: border-box; 
}
/* ------- */
.pubcon-exclist {
    width: 100%;
    max-height: calc(100vh - 50px - 20vh); /* Platz für Header + Botnav/Footer */
    overflow-y: auto;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.pubcon-exclist ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* zwei Spalten */
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 600px;
}

.pubcon-exclist li {
    background-color: rgba(0, 117, 15, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 117, 15, 0.68);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s;
    padding: 25%;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(8.9px);
}
/* ------------------------------ */
.pubcon-setdescr {
    width: 100%;
    max-width: 600px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 20px;
    height: 35vh;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
}
.pubcon-setlist {
    width: 100%;
    max-height: calc(100vh - 50px - 20vh); /* header + botnav+footer */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}
.pubcon-setlist ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pubcon-setlist li {
    background-color: rgba(0, 117, 15, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 117, 15, 0.68);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}
#set-description {
    margin-bottom: 1em;
    padding: 10px;
    border: 1px solid rgba(0, 117, 15, 0.68);
    border-radius: 8px;
}

#set-description .exercise-media {
  margin-top: 10px;
  max-width: 300px;
  height: 200px;
  overflow: hidden;
}

#set-description .exercise-media img,
#set-description .exercise-media svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* ------------------------------ */
.public-botnav {
    position: fixed;
    bottom: 10vh;
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    border-radius: 45px;
    background-color: rgba(12, 0, 117, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(12, 0, 117, 0.68);
}
.pubbot-content {
    padding: 10%;
}
/* ------------------------------ */
.public-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pubfoo-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-items: center;
    width: 100%;
    height: 100%;
    padding: 0 10px;
    gap: 0;
}
.pubfoo-items button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #000;
}
.pubfoo-items button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pubfoo-items a {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    width: min(20vw, 10vh);
    max-width: 69px;
    height: auto;
    background-color: white;
    border: 1px solid #888;
    border-radius: 50%;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}
.pubfoo-items a:hover {
    background-color: #e0e0e0;
}
/* ------------------------------ */
@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* ------------------------------ */