body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f1f3f6;
    color: #333;
}
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.login-page {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    text-align: center;
}

.login-banner {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 35px auto;
}

.login-box {
    width: 360px;
    max-width: calc(100% - 30px);
    margin: 0 auto;
    padding: 25px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    background: #ffffff;
    box-sizing: border-box;
}

.login-box h2 {
    margin-top: 0;
    margin-bottom: 25px;
}

.login-box label {
    display: block;
    text-align: left;
    margin-bottom: 6px;
}

.login-box input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 18px;
    box-sizing: border-box;
}

.login-box button {
    padding: 10px 25px;
    cursor: pointer;
}

.login-error {
    color: #b00000;
}

.template-website {
    text-align: center;
    margin: -5px 0 30px 0;
    font-size: 16px;
}

.template-category {
    margin-bottom: 40px;
}

.template-category h2 {
    margin-bottom: 20px;
}

.template-list {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.template-card {
    display: block;
    padding: 20px;
    border: 1px solid #000000;
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
}

.template-card:hover {
    background: #f5f5f5;
}

.template-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.template-card p {
    margin: 0;
}

.template-preview {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

 .page-list {
    width: 100%;
    box-sizing: border-box;
}


/* ==================================================
   SEITENZEILE – KOMPAKT
   ================================================== */

.page-row {
    display: grid;

    grid-template-columns:
        18px
        minmax(220px, 1fr)
        80px
        300px /*Links/Rechtsfür Alt und Title*/
        300px;

    column-gap: 5px;

    align-items: center;

    width: 100%;
    min-height: 32px;

    margin: 0 0 1px 0;
    padding: 0;

    box-sizing: border-box;

    border-bottom: 1px solid #000000;
    border-radius: 3px;

    transition:
        background .15s,
        opacity .15s;
}


/* Drag & Drop */

.page-row.drag-over {
    background: #f2f2f2;
}

.page-row.dragging {
    opacity: .45;
}


/* ==================================================
   CHECKBOX
   ================================================== */

.page-row > input[type="checkbox"] {
    margin: 0;
    justify-self: center;
}


/* ==================================================
   SEITENNAME
   ================================================== */

.page-name {
    display: flex;
    align-items: center;

    min-width: 0;
    width: 100%;

    gap: 3px;

    box-sizing: border-box;
}

.page-link {
    display: block;

    color: inherit;
    text-decoration: none;

    cursor: grab;

    font-weight: 600;
    font-size: 11px;

    white-space: nowrap;
    overflow: visible;
}

.page-link:hover {
    text-decoration: underline;
}

.drag-handle {
    flex: 0 0 auto;

    color: #999;

    cursor: grab;

    font-size: 12px;

    user-select: none;
}


/* Einrückung */

.page-row.level-2 .page-name {
    padding-left: 32px;
color: #1CCC1C;
}

.page-row.level-3 .page-name {
    padding-left: 62px; /*schiebt den Seitenlink nach rechts*/
    color:#B30F0F;
}


/* ==================================================
   SICHTBARKEIT + PFEILE
   ================================================== */

.page-controls {
    display: flex;

    align-items: center;
    justify-content: flex-start;

    width: 80px;
    min-width: 80px;
    max-width: 80px;

    height: 30px;

    gap: 2px;

    box-sizing: border-box;
transform: translateX(-100px);
}


/* Sichtbarkeit */

.visibility-button {
    flex: 10 20 25px; /*verschiebt den Unsichtbaakeitepfeil nach rechts/links*/
    margin-left: 50px;
    width: 21px;
    height: 21px;

    border: none;
    background: transparent;
    cursor: pointer;

    font-size: 13px;

    padding: 0;
}

.visibility-button.visible {
    color: #555;
background: url('../icon/arrow/visible.png') center center / contain no-repeat;
}

.visibility-button.hidden {
    color: #aaa;
    opacity: .6;
background: url('../icon/arrow/visible-disabled.png') center center / contain no-repeat;

}

.visibility-button:hover {
    color: #000;
}


/* ==================================================
   PFEILBLOCK
   ================================================== */

.arrow-wheel {
    position: relative;
	margin-left: 180px; /*schiebt das Pfeilrad nach rechts*/
    margin-top: -15px;  /*schiebt das Pfeilrad nach o*/

    flex: 0 0 55px;

    width: 55px;
    height: 30px;

    border: 1px solid #d2d2d2;
    border-radius: 4px;

    background: #fafafa;

    box-shadow:
        0 1px 2px rgba(0,0,0,.08);

    box-sizing: border-box;
}

.arrow-center {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #777;
}

.arrow-button {
    position: absolute;

    width: 17px;
    height: 13px;

    border: none;
    background: transparent;

    color: #d2b48c;

    font-size: 12px;
    line-height: 12px;

    padding: 0;

    cursor: pointer;

    font-weight: 600;
}

.arrow-button:hover {
    color: #a98960;
}

.arrow-button.disabled {
    color: #d8d8d8;
    cursor: default;

}

.arrow-up {
    left: 18px;
    top: 0;
background: url('../icon/arrow/up.png') center center / contain no-repeat;
}

.arrow-down {
    left: 18px;
    bottom: 0;
background: url('../icon/arrow/down.png') center center / contain no-repeat;
}

.arrow-left {
    left: 0;
    top: 8px;
background: url('../icon/arrow/left.png') center center / contain no-repeat;
}

.arrow-right {
    right: 0;
    top: 8px;
background: url('../icon/arrow/right.png') center center / contain no-repeat;
}


/* ==================================================
   ALT
   ================================================== */

.page-row > .seo-field:nth-child(4) {
    width: 170px;
    min-width: 145px; /*vergrößert den Innenblock*/
    max-width: 250px;
    margin-left: 140px; /*schiebt den Innenblock nach rechts/links*/
    justify-self: start;
}


/* ==================================================
   TITLE
   ================================================== */

.page-row > .seo-field:nth-child(5) {
    width: 170px;
    min-width: 145px;
    max-width: 250px;
    margin-left: 140px;
    justify-self: start;
}


/* ==================================================
   ALT + TITLE
   ================================================== */

.seo-field {
    display: flex;

    align-items: center;

    gap: 2px;

    min-width: 0;

    box-sizing: border-box;
}

.seo-field label {
    flex: 0 0 24px;

    width: 24px;

    margin: 0;
    padding: 0;

    font-size: 8px;
    line-height: 1;

    font-weight: 700;

    color: #777;

    box-sizing: border-box;
}

.seo-field input {
    width: 100%;
    min-width: 0;

    height: 20px;

    margin: 0;

    padding: 1px 4px;

    box-sizing: border-box;
    font-weight: 700;

    border: 1px solid #ccc;
    border-radius: 3px;

    font-size: 9px !important; 
}


/* ==================================================
   UNTERE AKTIONEN
   ================================================== */

.page-actions {
    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr;

    align-items: center;

    margin-top: 12px;
}

.page-actions .new-page {
    justify-self: start;
}

.page-actions .logout-button {
    justify-self: center;
}

.page-actions .delete-button {
    justify-self: end;
}

.delete-button {
    background: #222;
    color: white;

    border: none;

    padding: 6px 10px;

    border-radius: 4px;

    cursor: pointer;
}

.delete-button:hover {
    background: #000;
}

.logout-button {
    background: #555;
    color: white;

    text-decoration: none;

    padding: 6px 10px;

    border-radius: 4px;
}

.logout-button:hover {
    background: #333;
}

.current-website {
    margin: -2px 0 12px 0;

    text-align: center;

    font-size: 12px;
}

.current-website strong {
    font-weight: bold;
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1000px){ 
.page-row{ 
grid-template-columns: 20px minmax(170px, 1fr) 
96px 
135px 
minmax(190px, 1fr); 
column-gap: 3px; } 
.page-row > .seo-field:nth-of-type(1) { 
width: 135px; 
min-width: 135px; 
max-width: 135px; 
} 
} /*

/* ==================================================
   HANDY
   ================================================== */

@media (max-width: 700px) 
{ 
.page-row 
{ grid-template-columns: 20px minmax(110px, 1fr) 
96px; 
column-gap: 3px;
 min-height: 46px; 
} 
.seo-field 
{ display: none; 
} 
}


/* Startseite */

.container {
    max-width: 700px;
    margin: 120px auto;
    padding: 50px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.container h1 {
    margin-top: 0;
    font-size: 32px;
}

.container p {
    font-size: 18px;
}

.start-button {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 28px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.start-button:hover {
    opacity: 0.8;
}


/* Editor */

.editor {
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    min-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #ddd;
}

.editor-header h1 {
    margin: 0;
    font-size: 26px;
}

.publish,
.save,
.new-page {
    border: 0;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.publish {
    background: #333;
    color: #fff;
}

.publish:hover {
    opacity: 0.85;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding-left: 20px;
}

.tab {
    padding: 14px 25px;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 15px;
}

.tab.active {
    border-bottom: 3px solid #333;
    font-weight: bold;
}

.editor-content {
    padding: 30px;
}

.pages h2 {
    margin-top: 0;
    font-size: 22px;
}

.new-page {
    background: #eee;
    margin-bottom: 25px;
}

.new-page:hover {
    background: #ddd;
}

.page-list {
    border: 1px solid #ddd;
    padding: 20px;
    min-height: 150px;
    border-radius: 6px;
    color: #777;
}

.editor-footer {
    padding: 20px 30px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.save {
    background: #333;
    color: #fff;
}

.save:hover {
    opacity: 0.85;
}

form {
    margin-top: 30px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

form input[type="text"] {
    width: 100%;
    max-width: 450px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 20px;
}


.page-row {
    display: flex;
    align-items: flex-end;
    gap: 25px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
}

.page-name {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 180px;
    padding-bottom: 9px;
    font-size: 14px;
}


label[for="content"] {
    display: block;
    text-align: left;
    margin-bottom: 8px;
}

.sitebuilder-header {
    text-align: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f8f8;
}

.sitebuilder-header h1 {
    margin: 0;
    font-size: 28px;
}

.sitebuilder-header p {
    margin: 5px 0 0;
    font-size: 16px;
}
.sitebuilder-banner {
    text-align: center;
    padding: 12px;
    margin: 0 0 20px 0;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 20px;
}

.sitebuilder-banner strong {
    font-size: 24px;
}



/* Webseiten-Layout */

.sitebuilder-page {
    width: 1200px;
    max-width: calc(100% - 30px);
    margin: 30px auto;
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.site-navigation {
    width: 180px;
    flex: 0 0 180px;
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid #000000;
    border-radius: 6px;
}

.site-navigation a {
    display: block;
    padding: 8px 10px;
    color: #000;
    text-decoration: none;
}

.sitebuilder-content {
    flex: 1;
    min-width: 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #000000;
    border-radius: 6px;
}

.sitebuilder-content img {
    max-width: 100%;
    height: auto;
}
