/*
Theme Name: Sloppy
Theme URI: https://github.com/sloppy-theme
Author: handgemacht
Description: Ein Tagebuchblog. Nicht aufgeräumt für Besuch.
Version: 1.0
License: GNU General Public License v2 or later
Tags: blog, two-columns, right-sidebar, custom-colors
Text Domain: sloppy
*/

/* -----------------------------------------------
   IMPORT
----------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&display=swap');

/* -----------------------------------------------
   RESET & BASE
----------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --off-white:   #f5f1eb;
    --paper:       #ede8e0;
    --slate:       #4a4541;
    --slate-light: #6b6560;
    --postit:      #e8d84a;
    --postit-old:  #d4c33a;
    --shadow:      #d9d2c8;
    --line:        #ddd6cc;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--off-white);
    color: var(--slate);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--slate);
    text-decoration: underline;
    text-decoration-color: var(--postit);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

a:hover {
    text-decoration-color: var(--slate);
    color: var(--slate);
}

/* -----------------------------------------------
   LAYOUT WRAPPER
----------------------------------------------- */
#page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

#content-area {
    display: flex;
    gap: 3.5rem;
    align-items: flex-start;
    margin-top: 2.5rem;
}

#main-content {
    flex: 1 1 0;
    min-width: 0;
}

/* -----------------------------------------------
   HEADER
----------------------------------------------- */
#masthead {
    padding: 2.8rem 0 1.5rem;
    border-bottom: 1px solid var(--line);
    margin-left: -0.6rem; /* leicht nach links, nicht ganz ausgerichtet */
}

.site-branding {
    display: inline-block;
}

.site-title {
    font-family: 'Caveat', cursive;
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    color: var(--slate);
    text-decoration: none;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

.site-title a:hover {
    color: inherit;
}

/* Der Punkt nach "Sloppy" — in Postit-Gelb */
.site-title::after {
    content: '.';
    color: var(--postit-old);
}

.site-description {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.72rem;
    font-weight: 300;
    font-style: italic;
    color: var(--slate-light);
    margin-top: 0.3rem;
}

/* Navigation */
#site-navigation {
    margin-top: 0.8rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.main-navigation a {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--slate-light);
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: var(--slate);
}

/* -----------------------------------------------
   POSTS
----------------------------------------------- */
.post {
    margin-bottom: 4rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--line);
}

.post:last-of-type {
    border-bottom: none;
}

/* Entry Header */
.entry-header {
    margin-bottom: 1.4rem;
}

.entry-title {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}

.entry-title a {
    text-decoration: none;
    color: var(--slate);
}

.entry-title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--postit);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

/* Datum und Meta */
.entry-meta {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.68rem;
    font-weight: 400;
    font-style: italic;
    color: var(--slate-light);
    margin-top: 1.2rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--line);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: baseline;
}

.entry-meta a {
    color: var(--slate-light);
    text-decoration: none;
}

.entry-meta a:hover {
    color: var(--slate);
}

/* Read more — eigene Zeile */
.more-link-wrap {
    display: block;
    margin-top: 0.4rem;
}

/* Entry Content */
.entry-content {
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.6;
}

.entry-content p {
    margin-bottom: 1.4em;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

/* Bilder im Content — floaten leicht raus */
.entry-content img {
    margin: 1.2rem 0;
    box-shadow: 3px 4px 0px var(--shadow);
}

.entry-content .alignleft {
    float: left;
    margin: 0.5rem 1.8rem 1rem -1.2rem; /* ragt leicht links raus */
}

.entry-content .alignright {
    float: right;
    margin: 0.5rem -1.2rem 1rem 1.8rem;
}

.entry-content .aligncenter {
    margin: 1.2rem auto;
}

/* Blockquote */
.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 0.8rem 1.2rem 0.8rem 1.4rem;
    border-left: 3px solid var(--postit-old);
    background: var(--paper);
    font-style: italic;
    color: var(--slate-light);
}

/* Read more link */
.more-link {
    display: inline-block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.68rem;
    font-weight: 400;
    font-style: italic;
    text-decoration: none;
    color: var(--slate-light);
    border-bottom: 1px solid var(--postit-old);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.more-link:hover {
    color: var(--slate);
    border-color: var(--slate);
}

/* Single post zurück-link */
.post-navigation {
    margin-top: 2.5rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.68rem;
    font-weight: 300;
    font-style: italic;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* -----------------------------------------------
   SIDEBAR — Die Wand neben dem Bett
----------------------------------------------- */
#secondary {
    flex: 0 0 220px;
    width: 220px;
    padding-top: 0.4rem;
    /* Kein Rahmen, kein Box-Styling — einfach Dinge, die dort kleben */
}

.widget {
    margin-bottom: 2.4rem;
}

/* Rotate-Effekt: jedes zweite Widget leicht anders */
.widget:nth-child(odd) {
    transform: rotate(-0.6deg);
}

.widget:nth-child(even) {
    transform: rotate(0.8deg);
}

.widget-title,
.archive-title {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--slate);
    margin-bottom: 0.7rem;
    /* Wie beschriftetes Klebeband */
    background: var(--postit);
    display: inline-block;
    padding: 1px 6px 2px;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.72rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px dotted var(--line);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { text-decoration: none; color: var(--slate-light); font-size: 0.72rem; }
.widget ul li a:hover { color: var(--slate); }

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    text-decoration: none;
    color: var(--slate-light);
    font-size: 0.72rem;
}

.widget ul li a:hover {
    color: var(--slate);
}

/* Textwidget */
.widget.widget_text .textwidget {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--slate-light);
}

/* Suchfeld */
.widget.widget_search .search-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--slate-light);
    padding: 4px 2px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--slate);
    outline: none;
}

.widget.widget_search .search-field:focus {
    border-bottom-color: var(--slate);
}

.widget.widget_search .search-submit {
    display: none; /* Enter reicht */
}

/* Recent posts in der Sidebar */
.widget_recent_entries ul li a {
    font-size: 0.8rem;
    line-height: 1.4;
    display: block;
}

.widget_recent_entries .post-date {
    display: block;
    font-size: 0.65rem;
    color: var(--slate-light);
    opacity: 0.7;
    margin-top: 1px;
}

/* -----------------------------------------------
   COMMENTS
----------------------------------------------- */
#comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment-list {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.comments-title {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--slate);
    margin-bottom: 1.5rem;
}

.comment-body {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dotted var(--line);
}

.comment-meta {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.68rem;
    font-weight: 300;
    font-style: italic;
    color: var(--slate-light);
    margin-bottom: 0.5rem;
}

.comment-content p {
    font-size: 0.92rem;
    line-height: 1.75;
}

/* Kommentarformular */
.comment-form label {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.68rem;
    font-weight: 300;
    font-style: italic;
    color: var(--slate-light);
    display: block;
    margin-bottom: 0.3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--paper);
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0.4rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--slate);
    outline: none;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-bottom-color: var(--slate);
    background: #f0ebe3;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .submit {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: var(--postit);
    color: var(--slate);
    border: none;
    padding: 0.4rem 1.4rem 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .submit:hover {
    background: var(--postit-old);
}

/* -----------------------------------------------
   FOOTER
----------------------------------------------- */
#colophon {
    margin-top: 4rem;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--line);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.65rem;
    font-weight: 400;
    font-style: italic;
    color: var(--slate-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#colophon a {
    color: var(--slate-light);
    text-decoration: none;
}

#colophon a:hover {
    color: var(--slate);
}

/* -----------------------------------------------
   PAGINATION
----------------------------------------------- */
.nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.68rem;
    font-weight: 300;
    font-style: italic;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate-light);
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
}

.nav-links a:hover {
    color: var(--slate);
    border-color: var(--slate);
}

/* -----------------------------------------------
   UTILITY / CLEARFIX
----------------------------------------------- */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* -----------------------------------------------
   RESPONSIVE
----------------------------------------------- */
@media (max-width: 760px) {
    #content-area {
        flex-direction: column;
    }

    #secondary {
        width: 100%;
        flex: none;
        border-top: 1px solid var(--line);
        padding-top: 2rem;
        margin-top: 1rem;
    }

    /* Widgets nicht rotieren auf Mobile, zu unruhig */
    .widget:nth-child(odd),
    .widget:nth-child(even) {
        transform: none;
    }

    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        margin: 1rem 0;
    }

    .site-title {
        font-size: 2rem;
    }
}

/* -----------------------------------------------
   POLAROID WIDGET
----------------------------------------------- */
.sloppy-polaroid {
    display: inline-block;
    background: #fff;
    padding: 8px 8px 28px;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.12);
    margin-bottom: 0.5rem;
    max-width: 100%;
    transition: transform 0.2s;
}

.sloppy-polaroid:hover {
    transform: rotate(0deg) !important;
}

.sloppy-polaroid a {
    text-decoration: none;
    display: block;
}

.sloppy-polaroid-img {
    overflow: hidden;
    background: var(--paper);
    line-height: 0;
}

.sloppy-polaroid-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) contrast(1.02);
}

.sloppy-polaroid-caption {
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--slate-light);
    text-align: center;
    margin-top: 6px;
    line-height: 1.2;
}

/* -----------------------------------------------
   ARCHIV
----------------------------------------------- */
.archive-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.2rem;
}

.archive-title {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.15;
    color: var(--slate);
}

.archive-description {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--slate-light);
    margin-top: 0.5rem;
}

/* -----------------------------------------------
   ERGÄNZUNGEN VON MIR
----------------------------------------------- */
	
.post-thumbnail,
.comment-notes,
.logged-in-as {
	margin-bottom: 1.5em !important;
}

.main-navigation ul {
  gap: 1rem;
}

.single .post {
    margin-bottom: 0;
    padding-bottom: 0;
}

.post {
    margin-bottom: 2rem;
	  padding-bottom: 3rem;
}

h3, h4, h5, h6 {
	margin: 1em 0;
}

.entry-content ul, .entry-content ol {
	margin: 1em 0 1em 16px;
}

.entry-content  li {
	margin-bottom: 0.5em
}

.children {
	list-style-type: none;
}

.comment-form textarea {
  min-height: 260px;
}

#masthead {
  margin-left: -0.1rem;
}

.site-title {
  margin-left: -0.1rem;
}

.wp-caption-text {
  font-size: 0.68rem;
  font-style: italic; 
  color: var(--slate-light);
  margin-top: .5em;
  text-align: center;
}

.main-navigation ul {
  margin-top: 1.5em;
  font-size: 0.68rem;
  font-style: italic;
}