/* =========================
   Grundlegendes Layout
========================= */
body {
    margin: 0 auto;
    width: 100%;
    padding: 0;
    max-width: 30rem;
    color: #eee;
    position: relative;
}

p {
    line-height: 1.5;
    margin: 0;
}

h2, h3 {
    margin: 0;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

a {
    text-decoration: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

hr {
  padding: -60px;
  border: none;
  border-top: 1.5px dotted var(--buttonbackground);
  color: var(--buttonbackground);
  text-align: center;
  width: 100%;
  margin: -8px;
}
hr.hr-tel:after {
  content: "TEL.:";
  display: inline-block;
  position: relative;
  top: -0.2em;
  font-size: 1.2em;
  padding: 0 0em;
}
hr.hr-mail:after {
  content: "MAIL:";
  display: inline-block;
  position: relative;
  top: -0.2em;
  font-size: 1.2em;
  padding: 0 0em;
}
hr.hr-www:after {
  content: "WWW:";
  display: inline-block;
  position: relative;
  top: -0.2em;
  font-size: 1.2em;
  padding: 0 0em;
}

/* =========================
   Modal
========================= */
#modal {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 1;
    width: 100%;
    bottom: 0;
    transition: top 0.2s ease-out, opacity 0.1s ease-out;
    transform: translateZ(0);
}

#close {
    align-self: end;
    padding: 1rem;
    cursor: pointer;
    line-height: 0;
}

#keyView, #copyView, #qrView {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1rem;
    text-align: center;
}

#keyView p, #copyView p, #qrView p {
    margin: 2rem;
}

#copyURL, #dlKey {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
}

#copyURL span, #dlKey span {
    margin-left: 0.5rem;
}

#qrView h3 {
    margin: 2rem 2rem 0;
}

#qrView p {
    margin: 0.5rem 2rem 0;
}

#qr {
    margin: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 0.5rem;
}

/* =========================
   Header
========================= */
header {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

.headerImgC {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    overflow: hidden;
}

#cover {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 20rem;
    object-position: top center;
    object-fit: cover;
}

#logo {
    max-height: 6rem;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
}

#topActions {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
}

#topActions > div {
    display: flex;
}

#topActions a {
    padding: 1rem;
    cursor: pointer;
    line-height: 0;
}

/* =========================
   Main Content
========================= */
main {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#profilePhoto {
    width: 10rem;
    height: 10rem;
    border-radius: 0.5rem;
    box-sizing: content-box;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-top: -6rem;
}

#info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    line-height: 1.25;
    word-break: break-word;
}

.name {
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0;
}

.pronouns {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: normal;
    margin: 0 0 0.5rem;
}

.bizname {
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.8;
}

.bizaddr {
    font-size: 0.8rem;
    opacity: 0.6;
}

.sub, .textC {
    font-size: 1rem;
    white-space: pre-line;
    line-height: 1.5;
}

.sub {
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
    opacity: 0.8;
}

.textC {
    margin: 1rem;
}

/* =========================
   Call to Action
========================= */
#cta {
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    line-height: 0;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

#cta .icon {
    margin-right: 0.5rem;
}

#cta p {
    margin: 0;
}

/* =========================
   Actions
========================= */
.actions {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.actionsC {
    width: 33.33%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.actionBtn {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.actionBtn a {
    border-radius: 0.5rem;
    padding: 1rem;
    line-height: 0;
}

.actionBtn p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.secBtn {
    padding: 1rem;
}

/* =========================
   Featured Sections
========================= */
.featured {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 2rem 0 0;
    width: 100%;
}

.section {
    font-weight: bold;
    text-align: center;
    font-size: 1.3rem;
    padding: 1rem 0;
}

.media {
    overflow: hidden;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.media img {
    display: block;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
}

.embedded {
    position: relative;
    padding-top: 100%;
}

.embedded iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.music, .video {
    width: 100%;
}

.mediaC {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

video {
    width: 100%;
}

.controls {
    padding: 1rem;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.pCtrl, .docDl {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.docDl {
    display: flex;
}

.seekBar {
    width: 100%;
    height: 0.5rem;
    margin: 1.5rem 0 0.5rem;
    border-radius: 0.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.playPause, .dlBtn {
    margin: 1rem 0 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    line-height: 0;
    cursor: pointer;
}

.pause {
    display: none;
}

.title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
}

.prodInfo .sub {
    margin: -1rem 0 0;
}

.price {
    margin: 1rem 0 0;
    font-size: 1rem;
    font-weight: bold;
}

.label {
    display: inline-block;
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
    border-radius: 0.5rem;
    letter-spacing: 1px;
    padding: 1rem 1.5rem;
}

.label p {
    margin: 0;
}

/* =========================
   Footer
========================= */
footer {
    padding: 4rem 1rem 2rem;
    font-size: 0.9rem;
    text-align: center;
}

footer a {
    text-decoration: underline;
    color: inherit;
}

/* =========================
   Inputs / Slider
========================= */
#body {
    font-family: sans-serif;
}

input[type='range']::-moz-range-track {
    background: none;
}

input[type='range']::-moz-range-thumb {
    -moz-appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    border: none;
    z-index: 3;
    cursor: pointer;
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    border: none;
    z-index: 3;
    cursor: pointer;
}

/* =========================
   Sonstiges
========================= */
.closeColor {
    filter: invert(1);
}

.topAction {}

/* =========================
   Tabellen Styles
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

td, tr {
    border: none !important;
    outline: none;
}

#phonetr td:first-child,
#emailtr td:first-child,
#websitetr td:first-child {
    width: 56px;
    min-width: 56px;
    text-align: center;
}

#phonetr td:last-child,
#emailtr td:last-child,
#websitetr td:last-child {
    width: auto;
}

td {
    padding: 8px 0;
    vertical-align: middle;
}

.card,
table,
td {
    background: inherit;
}

/* ===== vCard Tabellen normalisieren ===== */
#phonetr td,
#emailtr td,
#websitetr td,
#legaltr td {
    font-size: 14px !important;
    font-weight: normal !important;
    line-height: 1.4;
    padding: 6px 8px;
    vertical-align: middle;
}

/* Linktext normalisieren */
#phonetr a,
#emailtr a,
#websitetr a,
#legaltr a {
    font-size: 14px !important;
    font-weight: normal !important;
    text-decoration: none;
}

/* Icon-Zelle fixieren */
#phonetr td:first-child,
#emailtr td:first-child,
#websitetr td:first-child,
#legaltr td:first-child {
    width: 44px;
    text-align: center;
}

/* Tabellenlayout stabilisieren */
.actions table {
    border-collapse: collapse;
    width: 100%;
}

.actions tr {
    height: 42px;
}



/* ===== 3D Kästen für Einträge ===== */


.location-section{
    
    border-radius:16px;
    padding:18px;
    margin:20px 0;
    min-height: 60px;
    min-width: 20rem;

    background-color:var(--accent-color);

    /* 3D nach innen Effekt */
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.15),
        inset 0 -2px 3px rgba(255,255,255,0.7);

    position:relative;
    overflow:hidden;
}

.location{
background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'>\
<path fill='%23ffffff' fill-opacity='0.075' d='M576 48c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4L413.5 77.5 234.1 17.6c-8.1-2.7-16.8-2.1-24.4 1.7l-128 64C70.8 88.8 64 99.9 64 112l0 352c0 11.1 5.7 21.4 15.2 27.2s21.2 6.4 31.1 1.4l116.1-58.1 173.3 57.8c-4.3-6.4-8.5-13.1-12.6-19.9-11-18.3-21.9-39.3-30-61.8l-101.2-33.7 0-284.5 128 42.7 0 99.3c31-35.8 77-58.4 128-58.4 22.6 0 44.2 4.4 64 12.5L576 48zM512 224c-66.3 0-120 52.8-120 117.9 0 68.9 64.1 150.4 98.6 189.3 11.6 13 31.3 13 42.9 0 34.5-38.9 98.6-120.4 98.6-189.3 0-65.1-53.7-117.9-120-117.9zM472 344a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z'/>\
</svg>");
background-repeat:repeat;
background-size:60px;
background-position:0px 20px;
}

.contact-section{
    
    border-radius:16px;
    padding:18px;
    margin:20px 0;

    background-color:var(--accent-color);

    /* 3D nach innen Effekt */
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.15),
        inset 0 -2px 3px rgba(255,255,255,0.7);

    position:relative;
    overflow:hidden;
}

.tel{
background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M11.5 22a.952.952 0 0 1-1.052.945c-4.358-.544-7.851-4.338-8.379-8.39a.938.938 0 0 1 .936-1.046c.399-.009.847-.009 1.202-.009.388 0 .738.237.882.597l.478 1.196a.95.95 0 0 1-.21 1.025l-.107.107a.951.951 0 0 0-.181 1.091c.495.825 1.59 1.92 2.425 2.396a.927.927 0 0 0 1.066-.177c.05-.02.086-.056.122-.092a.95.95 0 0 1 1.025-.21l1.196.478c.36.144.597.494.597.882V22Z' stroke='%23ffffff' stroke-opacity='0.075' stroke-width='1.2' fill='none'/>\
</svg>");
background-repeat:repeat;
background-size:80px;
}

.mail{
background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<rect x='2' y='6' width='20' height='12' rx='2' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2' fill='none'/>\
<path d='M2 6l10 7 10-7' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2' fill='none'/>\
</svg>");
background-repeat:repeat;
background-size:60px;
}

.web{
background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<circle cx='12' cy='12' r='10' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2' fill='none'/>\
<ellipse cx='12' cy='12' rx='4' ry='10' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2' fill='none'/>\
<path d='M2 12h20' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2' fill='none'/>\
</svg>");
background-repeat:repeat;
background-size:60px;
}

.section.legal {
    

    border-radius:16px;
    padding:18px;
    margin:20px 0;

    background-color:var(--accent-color);

    /* 3D nach innen Effekt */
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.15),
        inset 0 -2px 3px rgba(255,255,255,0.7);

    position:relative;
    overflow:hidden;
}


/* leere Tabellen ausblenden*/
/*
table:not(:has(tbody tr)) {
    display:none;
}
*/

.contact-section:not(:has(table tbody tr)),
.section.legal:not(:has(table tbody tr)) {
    display:none;
}
/*
.location-section:not(:has(table tbody tr)){
    display:none;
}
*/
/* extreme Version, erstmal deaktiviert lassen...

.location-section:not(:has(tr)),
.contact-section:not(:has(tr)),
.section.legal:not(:has(tr)){
    display:none;
}
*/



.entry{
display:flex;
align-items:center;
gap:12px;

padding:10px 0;
border-bottom:1px solid rgba(0,0,0,0.08);
}

.entry:last-child{
border-bottom:none;
}

.value{
font-size:14px;
color:#2c3e50;
}
