/* ─── Alpenporno Sexgeschichten — 1:1 WP-Script Theme Integration ─────────── */
/*
   Alle Werte direkt vom Browser gemessen:
   - body: Inter 16px, #333, bg #f4f4f4, line-height 24px
   - h1/widget-title: Oswald 17.6px, #222, bg #f1f1f1, border-left 6px solid #01B1DE
     padding 7.04px 14.08px (=0.44em 0.88em), margin-bottom 11.792px
   - #page: bg #fff, border-radius 10px, box-shadow rgba(0,0,0,0.05) 0 4px 15px
   - buttons: bg #01B1DE, border-radius 0, color #fff, padding 6.4px 12.8px
   - links in content: color #fff (weiß auf blauem Nav), im Content #01B1DE
*/

:root {
    --asg-blue:     #01B1DE;
    --asg-blue-d:   #0199c0;
    --asg-gold:     #f5a623;
    --asg-empty:    #ccc;
    --asg-white:    #ffffff;
    --asg-bg:       #f1f1f1;       /* =.widget-title background */
    --asg-border:   #ddd;          /* =input border */
    --asg-text:     #333;          /* =body color */
    --asg-heading:  #222;          /* =h1 color */
    --asg-muted:    #666;          /* =h6 color */
    --asg-red:      #e74c3c;
    --asg-shadow:   rgba(0,0,0,0.05); /* =#page box-shadow */
}

/* ── Reading Bar — exakt wie .widget-title ────────────────────────────────── */
.asg-reading-bar {
    display:          flex;
    align-items:      center;
    gap:              16px;
    flex-wrap:        wrap;
    /* Identisch mit .widget-title computed values: */
    background:       var(--asg-bg);
    color:            var(--asg-heading);
    padding:          7.04px 14.08px;
    border-left:      6px solid var(--asg-blue);
    margin-bottom:    11.792px;
    font-family:      'Inter', sans-serif;
    font-size:        13px;
    line-height:      24px;
}
.asg-reading-bar strong { color: var(--asg-text); font-weight: 600; }
.asg-rb-sep             { color: var(--asg-border); }

/* ── Badge (Archiv/Kategorie) — wie .widget-title ─────────────────────────── */
.asg-badge {
    display:      inline-flex;
    align-items:  center;
    flex-wrap:    wrap;
    gap:          6px;
    background:   var(--asg-bg);
    color:        var(--asg-heading);
    padding:      7.04px 14.08px;
    border-left:  6px solid var(--asg-blue);
    margin-bottom: 11.792px;
    font-family:  'Inter', sans-serif;
    font-size:    13px;
    line-height:  24px;
}
.asg-badge-item  { color: var(--asg-text); font-weight: 600; }
.asg-badge-sep   { color: var(--asg-muted); }
.asg-badge-score { font-weight: 700; color: var(--asg-blue); }
.asg-badge-stars { display: inline-flex; align-items: center; gap: 1px; }
.asg-badge-stars .asg-star { font-size: 13px; }

/* ── Widget Container — wie #page ────────────────────────────────────────── */
.asg-widget {
    margin:        36px 0 24px;
    padding:       2px;
    background:    linear-gradient(135deg, var(--asg-blue) 0%, var(--asg-blue-d) 100%);
    border-radius: 10px;                         /* =#page border-radius */
    box-shadow:    0 4px 15px var(--asg-shadow); /* =#page box-shadow */
}
.asg-widget-inner {
    background:    var(--asg-white); /* =#page bg */
    border-radius: 8px;
    padding:       24px 32px;
    text-align:    center;
}

/* ── Meta Bar — wie .widget-title ───────────────────────────────────────────  */
.asg-meta-bar {
    display:         flex;
    justify-content: center;
    align-items:     center;
    gap:             12px;
    flex-wrap:       wrap;
    background:      var(--asg-bg);
    color:           var(--asg-heading);
    padding:         7.04px 14.08px;
    border-left:     6px solid var(--asg-blue);
    margin-bottom:   16px;
    font-family:     'Inter', sans-serif;
    font-size:       13px;
    line-height:     24px;
    text-align:      left;
}
.asg-meta-item { font-weight: 600; color: var(--asg-text); }
.asg-meta-sep  { color: var(--asg-border); font-size: 14px; }

/* Favoriten Button */
.asg-fav-btn {
    display:      inline-flex;
    align-items:  center;
    gap:          4px;
    background:   transparent;
    border:       1px solid var(--asg-border);
    border-radius: 0;                /* =buttons border-radius: 0 */
    padding:      3px 10px;
    cursor:       pointer;
    font-size:    13px;
    font-family:  'Inter', sans-serif;
    color:        var(--asg-text);
    transition:   all 0.2s;
    line-height:  24px;
}
.asg-fav-btn:hover     { border-color: var(--asg-red); color: var(--asg-red); }
.asg-fav-btn.asg-faved { border-color: var(--asg-red); background: rgba(231,76,60,0.06); color: var(--asg-red); }
.asg-fav-count         { font-weight: 600; }

/* ── Widget Titel — erbt exakt vom Theme h3 (Oswald, uppercase, #222) ──────  */
.asg-title {
    /* Alle Werte kommen vom Theme-CSS für h1/h2/h3:
       font-family: Oswald; text-transform: uppercase; color: #222
       Wir setzen nur size und margin */
    font-size:   17.6px; /* =h1 computed font-size */
    margin:      0 0 16px 0 !important;
}

/* ── Sterne Anzeige ──────────────────────────────────────────────────────── */
.asg-current { margin-bottom: 16px; }
.asg-stars-display {
    display:         flex;
    justify-content: center;
    gap:             2px;
    margin-bottom:   8px;
}
.asg-star       { font-size: 24px; line-height: 1; }
.asg-star-full  { color: var(--asg-gold); }
.asg-star-empty { color: var(--asg-empty); }
.asg-star-half  { position: relative; color: var(--asg-empty); display: inline-block; }
.asg-star-half::after {
    content: '★'; position: absolute; left: 0; top: 0;
    color: var(--asg-gold); overflow: hidden; width: 50%;
}
.asg-score {
    display:         flex;
    align-items:     baseline;
    justify-content: center;
    gap:             4px;
    font-family:     'Inter', sans-serif;
}
.asg-average { font-size: 24px; font-weight: 700; color: var(--asg-blue); line-height: 1; }
.asg-sep,
.asg-max     { font-size: 15px; color: var(--asg-muted); }
.asg-votes   { font-size: 13px; color: var(--asg-muted); }

/* ── Formular ────────────────────────────────────────────────────────────── */
.asg-form {
    border-top:  1px solid var(--asg-border);
    padding-top: 20px;
    margin-top:  6px;
}
.asg-label {
    font-family: 'Inter', sans-serif;
    font-size:   16px;  /* =body font-size */
    font-weight: 600;
    color:       var(--asg-text);
    margin:      0 0 10px 0;
    line-height: 24px;
}
.asg-stars-input {
    display:         flex;
    justify-content: center;
    gap:             3px;
    margin-bottom:   8px;
}
.asg-star-btn {
    background:  transparent;
    border:      none;
    cursor:      pointer;
    font-size:   32px;
    color:       var(--asg-empty);
    padding:     0 2px;
    transition:  color 0.1s, transform 0.1s;
    line-height: 1;
}
.asg-star-btn:hover,
.asg-star-btn.asg-hovered { color: var(--asg-gold); transform: scale(1.15); }
.asg-star-btn:focus {
    outline:        2px solid var(--asg-blue);
    outline-offset: 2px;
    border-radius:  0; /* =buttons */
}
.asg-hint {
    font-family: 'Inter', sans-serif;
    font-size:   13px; /* =h6 font-size */
    color:       var(--asg-muted); /* =h6 color */
    margin:      4px 0 16px;
    line-height: 24px;
}

/* Submit — exakt wie Theme-Buttons: bg #01B1DE, radius 0, padding 6.4px 12.8px */
.asg-submit {
    display:        inline-block;
    background:     var(--asg-blue);
    color:          #fff;
    border:         1px solid var(--asg-blue);
    border-radius:  0;              /* =btn border-radius: 0px */
    padding:        6.4px 28px;     /* =btn padding, aber breiter */
    font-family:    'Oswald', sans-serif;
    font-size:      16px;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor:         pointer;
    transition:     background 0.2s;
    line-height:    24px;
}
.asg-submit:disabled             { opacity: 0.45; cursor: not-allowed; }
.asg-submit:not(:disabled):hover { background: var(--asg-blue-d); border-color: var(--asg-blue-d); }

/* Meldungen */
.asg-message {
    margin-top:  10px;
    min-height:  20px;
    font-size:   16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    line-height: 24px;
}
.asg-message.asg-success { color: var(--asg-blue); }
.asg-message.asg-error   { color: #c62828; }

.asg-already-voted {
    font-family: 'Inter', sans-serif;
    color:       var(--asg-blue);
    font-size:   16px;
    font-weight: 600;
    margin:      0;
    padding-top: 18px;
    border-top:  1px solid var(--asg-border);
    line-height: 24px;
}

/* ── Share Buttons — wie Theme-Buttons ───────────────────────────────────── */
.asg-share {
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-wrap:       wrap;
    gap:             8px;
    margin-top:      20px;
    padding-top:     18px;
    border-top:      1px solid var(--asg-border);
}
.asg-share-label {
    font-family: 'Inter', sans-serif;
    font-size:   13px;
    color:       var(--asg-muted);
    font-weight: 600;
    margin-right: 4px;
}
.asg-share-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    padding:         6.4px 12.8px;  /* =btn padding */
    border-radius:   0;              /* =btn border-radius: 0 */
    font-family:     'Inter', sans-serif;
    font-size:       13px;
    font-weight:     600;
    color:           #fff;
    text-decoration: none;
    border:          none;
    cursor:          pointer;
    transition:      opacity 0.2s;
    line-height:     24px;
}
.asg-share-btn:hover    { opacity: 0.85; color: #fff; }
.asg-share-copy.copied  { background: #2e7d32 !important; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .asg-widget-inner   { padding: 16px 12px; }
    .asg-star           { font-size: 18px; }
    .asg-star-btn       { font-size: 24px; }
    .asg-average        { font-size: 20px; }
    .asg-meta-sep       { display: none; }
    .asg-meta-bar,
    .asg-reading-bar,
    .asg-badge          { justify-content: flex-start; }
    .asg-share-btn span { display: none; }
    .asg-share-btn      { padding: 6.4px 10px; font-size: 16px; }
}

/* ── Tags ─────────────────────────────────────────────────────────────────── */
.asg-tags {
    display:    flex;
    flex-wrap:  wrap;
    gap:        6px;
    margin:     8px 0 4px;
}

.asg-tags-single {
    margin:     24px 0 0;
    padding:    16px 0;
    border-top: 1px solid var(--asg-border);
}

.asg-tag {
    display:         inline-block;
    padding:         3px 10px;
    background:      var(--asg-bg);
    border:          1px solid var(--asg-border);
    border-left:     3px solid var(--asg-blue);
    color:           var(--asg-blue);
    font-family:     'Inter', sans-serif;
    font-size:       12px;
    font-weight:     600;
    text-decoration: none;
    transition:      background 0.15s, color 0.15s;
}

.asg-tag:hover {
    background: var(--asg-blue);
    color:      #fff;
}

/* ── Archiv Beschreibungstext ─────────────────────────────────────────────── */
.asg-archive-description {
    margin:      0 0 24px;
    padding:     16px 20px;
    background:  var(--asg-bg);
    border-left: 6px solid var(--asg-blue);
    font-family: 'Inter', sans-serif;
    font-size:   15px;
    line-height: 1.7;
    color:       var(--asg-text);
}
.asg-archive-description p:last-child { margin-bottom: 0; }
.asg-archive-description a { color: var(--asg-blue); }

/* ── Kategoriegrid ────────────────────────────────────────────────────────── */
.asg-category-links {
    margin-bottom: 28px;
}
.asg-category-links .widget-title {
    font-size:   14px !important;
    margin-bottom: 10px !important;
}
.asg-category-grid {
    display:   flex;
    flex-wrap: wrap;
    gap:       8px;
}
.asg-category-link {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    padding:         6px 14px;
    background:      var(--asg-bg);
    border:          1px solid var(--asg-border);
    border-left:     4px solid var(--asg-blue);
    color:           var(--asg-text);
    font-family:     'Inter', sans-serif;
    font-size:       13px;
    font-weight:     600;
    text-decoration: none;
    transition:      background 0.15s, color 0.15s;
}
.asg-category-link:hover {
    background: var(--asg-blue);
    color:      #fff;
    border-left-color: var(--asg-blue-d);
}
.asg-cat-count {
    display:       inline-flex;
    align-items:   center;
    justify-content: center;
    background:    var(--asg-blue);
    color:         #fff;
    border-radius: 10px;
    font-size:     11px;
    font-weight:   700;
    min-width:     20px;
    height:        18px;
    padding:       0 5px;
    transition:    background 0.15s;
}
.asg-category-link:hover .asg-cat-count {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .asg-category-link { font-size: 12px; padding: 5px 10px; }
}


/* ── Kopierschutz ─────────────────────────────────────────────────── */
.single-sexgeschichten .entry-content,
.single-sexgeschichten .post-content,
.asg-widget {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ── Bookmark Button ──────────────────────────────────────────────── */
.asg-bm-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #888;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all .2s;
    line-height: 1.4;
}
.asg-bm-btn:hover {
    color: #e67e22;
    background: rgba(230,126,34,.08);
}
.asg-bm-btn.asg-bookmarked {
    color: #e67e22;
    font-weight: 600;
}
.asg-bm-btn .asg-bm-icon { font-size: 15px; }
.asg-bm-btn .asg-bm-label { font-size: 12px; }

@keyframes asg-bm-bounce {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.3); }
}
.asg-bm-bounce .asg-bm-icon { animation: asg-bm-bounce .4s ease; }


/* ── Browser-Bookmark Button ──────────────────────────────────────── */
.asg-browser-bm-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #888;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all .2s;
    line-height: 1.4;
}
.asg-browser-bm-btn:hover { color: #f39c12; background: rgba(243,156,18,.08); }

/* ── Toast Hinweis ────────────────────────────────────────────────── */
.asg-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    white-space: nowrap;
}

/* ── Meine Lesezeichen Seite ──────────────────────────────────────── */
.asg-lesezeichen-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}
.asg-lesezeichen-empty .asg-btn {
    display: inline-block;
    margin-top: 12px;
    background: #01B1DE;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.asg-lz-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}
.asg-lz-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.asg-lz-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #e67e22;
    border-radius: 6px;
    padding: 16px 20px;
    transition: box-shadow .2s;
}
.asg-lz-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.asg-lz-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.asg-lz-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #e67e22;
    text-decoration: none;
    flex: 1;
}
.asg-lz-item-title:hover { color: #d35400; }
.asg-lz-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color .2s;
}
.asg-lz-remove:hover { color: #e74c3c; }
.asg-lz-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
}
.asg-lz-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
    align-items: center;
}
.asg-lz-cat {
    background: #f0f0f0;
    color: #555;
    padding: 2px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 11px;
}
.asg-lz-cat:hover { background: #e67e22; color: #fff; }

/* ── Loop Excerpt ─────────────────────────────────────────────────── */
.asg-loop-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 8px 0 10px;
}
