/* =========================================================
   WORTZÄHLER
   https://charactercounter.com/de/wortzaehler
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --wc-text: #3d3d3d;
    --wc-text-light: rgba(0, 0, 0, 0.6);

    --wc-white: #ffffff;
    --wc-background: #f6f7f9;
    --wc-soft-background: #fafafa;

    --wc-blue: #4285f4;
    --wc-blue-dark: #1a73e8;

    --wc-green: #1e7b1e;
    --wc-red: #d52d2b;

    --wc-border: #d9d9d9;
    --wc-soft-border: #e7e7e7;

    --wc-radius: 12px;

    --wc-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);

    --wc-font-family: Helvetica, Arial, sans-serif;
}


/* =========================================================
   RESET AND BASE STYLES
   ========================================================= */

.word-counter-page,
.word-counter-page *,
.word-counter-page *::before,
.word-counter-page *::after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body.word-counter-page {
    margin: 0;
    min-height: 100vh;

    color: var(--wc-text-light);
    background: var(--wc-white);

    font-family: var(--wc-font-family);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.word-counter-page main {
    width: 100%;
}

.word-counter-page img {
    max-width: 100%;
}

.word-counter-page button,
.word-counter-page input,
.word-counter-page textarea {
    font-family: inherit;
}

.word-counter-page button {
    cursor: pointer;
}

.word-counter-page a {
    text-decoration: none;
}

.word-counter-page .container {
    width: 100%;
    max-width: 1600px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 15px;
    padding-right: 15px;
}

.word-counter-page .sr-only {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   HEADER
   ========================================================= */

.word-counter-page .header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;

    z-index: 999;

    background: #f1f1f1;

    transition: box-shadow 0.2s ease;
}

.word-counter-page .header.activated {
    background: #f1f1f1;

    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.word-counter-page .navbar {
    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 8px;
    padding-bottom: 8px;
}

.word-counter-page .logo-link {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;
}

.word-counter-page .header .logo {
    margin: 0;

    color: var(--wc-text);

    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.word-counter-page .logo-picture {
    display: inline-flex;
    align-items: center;
}

.word-counter-page .logo-picture img {
    display: block;

    width: auto;
    height: 40px;

    object-fit: contain;
}

.word-counter-page .list {
    display: flex;
    align-items: center;

    gap: 20px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.word-counter-page .list-link {
    color: var(--wc-text-light);

    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;

    text-decoration: none;
}

.word-counter-page .list-link:hover {
    color: var(--wc-text);
}

.word-counter-page .list-link:focus-visible {
    outline: 2px solid var(--wc-blue);
    outline-offset: 4px;
}

.word-counter-page .menu {
    position: absolute;

    top: 65px;
    right: 15px;

    width: 230px;

    padding: 15px;

    background: #f1f1f1;

    border-radius: 6px;

    opacity: 0;
    visibility: hidden;

    transform: scale(0);
    transform-origin: top right;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.word-counter-page .menu > .list {
    flex-direction: column;
    align-items: stretch;

    gap: 5px;
}

.word-counter-page .menu .list-link {
    display: block;

    padding: 9px 0;
}

.word-counter-page .menu.activated {
    opacity: 1;
    visibility: visible;

    transform: scale(1);

    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.12);
}

.word-counter-page .list-right {
    gap: 12px;
}

.word-counter-page .menu-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 5px;

    color: var(--wc-text);

    background: transparent;

    border: 0;
    border-radius: 5px;
}

.word-counter-page .menu-toggle-icon:hover {
    background: rgba(0, 0, 0, 0.05);
}

.word-counter-page .menu-toggle-icon:focus-visible {
    outline: 2px solid var(--wc-blue);
    outline-offset: 2px;
}

.word-counter-page .icon-svg {
    display: block;

    flex: 0 0 auto;
}

.word-counter-page .close-menu-icon,
.word-counter-page .menu-toggle-icon.activated .open-menu-icon {
    display: none;
}

.word-counter-page .menu-toggle-icon.activated .close-menu-icon {
    display: block;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

@media screen and (min-width: 1024px) {

    .word-counter-page .menu {
        position: static;

        width: auto;

        padding: 0;

        background: transparent;

        border-radius: 0;

        opacity: 1;
        visibility: visible;

        transform: none;

        box-shadow: none;
    }

    .word-counter-page .menu.activated {
        box-shadow: none;
    }

    .word-counter-page .menu > .list {
        flex-direction: row;
        align-items: center;

        gap: 24px;
    }

    .word-counter-page .menu .list-link {
        padding: 0;
    }

    .word-counter-page .screen-lg-hidden,
    .word-counter-page .menu-toggle-icon {
        display: none;
    }

    .word-counter-page .header .list-right {
        display: none;
    }

}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.word-counter-main-page {
    width: 100%;

    padding-top: 88px;

    background: var(--wc-white);
}


/* =========================================================
   CONTINUOUS CONTENT AND 300PX AD SIDEBAR
   ========================================================= */

.word-counter-page-layout {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 10px;

    align-items: stretch;
}

.word-counter-content-column {
    width: 100%;

    min-width: 0;
}


/* =========================================================
   CONTINUOUS RAPTIVE SIDEBAR

   Starts alongside the heading and description.
   Extends alongside the entire main content column.
   ========================================================= */

.word-counter-page #sidebar {
    position: relative;

    display: block;

    width: 300px;
    min-width: 300px;

    min-height: 100%;

    margin: 0;
    padding: 0;

    align-self: stretch;

    background: transparent;

    overflow: visible;
}


/* =========================================================
   WORD COUNTER TOOL SECTION
   ========================================================= */

.word-counter-section {
    width: 100%;

    margin: 0;

    padding: 0 0 55px;

    background: var(--wc-white);
}


/* =========================================================
   HEADING AND DESCRIPTION
   ========================================================= */

.word-counter-heading {
    width: 100%;
    max-width: 820px;

    margin: 0 auto 24px;

    padding: 0 12px;

    text-align: center;
}

.word-counter-title {
    margin: 0 0 18px;

    color: var(--wc-text);

    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;

    letter-spacing: 0;

    text-align: center;
}

.word-counter-description {
    width: 100%;
    max-width: 780px;

    margin: 0 auto;

    color: var(--wc-text-light);

    font-size: 17px;
    line-height: 1.55;
    font-weight: 300;

    letter-spacing: 0.2px;

    text-align: center;

    overflow-wrap: break-word;
}


/* =========================================================
   PRIMARY METRICS
   ========================================================= */

.primary-metrics {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 14px;
}

.primary-metric {
    min-width: 0;

    background: var(--wc-white);

    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);

    overflow: hidden;

    box-shadow: var(--wc-shadow);
}

.primary-metric-label {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 10px;

    color: var(--wc-text-light);

    background: var(--wc-soft-background);

    border-bottom: 1px solid var(--wc-soft-border);

    font-size: 18px;
    line-height: 1.2;
    font-weight: 400;

    letter-spacing: 0;

    text-align: center;

    overflow-wrap: anywhere;
}

.primary-metric-value {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 10px;

    color: var(--wc-blue-dark);

    background: var(--wc-white);

    font-size: 30px;
    line-height: 1.1;
    font-weight: 500;

    font-variant-numeric: tabular-nums;

    text-align: center;

    overflow: hidden;
}

.primary-metric-value > span {
    max-width: 100%;

    overflow-wrap: anywhere;
}


/* =========================================================
   PRIMARY WORD COUNT
   ========================================================= */

#wordCount {
    font-size: 36px;
    font-weight: 400;
}


/* =========================================================
   PRIMARY CHARACTER COUNT
   ========================================================= */

#characterCount {
    font-size: 31px;
    font-weight: 500;
}


/* =========================================================
   REMAINING WORDS
   ========================================================= */

#wordsRemaining {
    font-weight: 600;
}

#wordsRemaining.within-limit,
.primary-metric-value.within-limit {
    color: var(--wc-green);
}

#wordsRemaining.over-limit,
.primary-metric-value.over-limit {
    color: var(--wc-red);
}


/* =========================================================
   WORD LIMIT LABEL
   ========================================================= */

.metric-title-stack {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.metric-title-main {
    display: block;

    width: 100%;

    font-size: inherit;
    line-height: 1.15;

    text-align: center;
}

.metric-title-note {
    display: block;

    width: 100%;

    margin-top: 3px;

    color: rgba(0, 0, 0, 0.48);

    font-size: 13px;
    line-height: 1.1;
    font-weight: 400;

    text-align: center;
}


/* =========================================================
   WORD LIMIT INPUT
   ========================================================= */

.metric-limit-input {
    width: 100%;
    max-width: 150px;
    height: 36px;

    padding: 5px 9px;

    color: var(--wc-text);

    background: var(--wc-white);

    border: 1px solid #cccccc;
    border-radius: 7px;

    outline: none;

    font-size: 16px;
    line-height: 1;

    text-align: center;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.metric-limit-input::placeholder {
    color: rgba(0, 0, 0, 0.42);

    opacity: 1;
}

.metric-limit-input:focus {
    border-color: var(--wc-blue);

    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

.metric-limit-input::-webkit-inner-spin-button,
.metric-limit-input::-webkit-outer-spin-button {
    margin: 0;

    -webkit-appearance: none;
}

.metric-limit-input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}


/* =========================================================
   TEXTAREA AREA
   ========================================================= */

.word-textarea-area {
    width: 100%;
}

.textarea-wrapper {
    position: relative;

    width: 100%;

    min-width: 0;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

.word-textarea {
    display: block;

    width: 100%;
    height: 350px;

    min-height: 90px;
    max-height: 1200px;

    padding: 14px 14px 58px;

    color: #000000;

    background: var(--wc-white);

    border: 4px solid #777777;
    border-radius: 12px;

    outline: none;

    resize: vertical;

    overflow: auto;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;

    letter-spacing: 0;

    box-shadow: none;

    transition: border-color 0.2s ease;
}

.word-textarea:hover {
    border-color: #555555;
}

.word-textarea:focus {
    border-color: #000000;
}

.word-textarea::placeholder {
    color: #999999;

    opacity: 1;

    font-size: 17px;
    line-height: 1.55;
}

.word-textarea::selection {
    color: #000000;

    background: #d2e3fc;
}


/* =========================================================
   COPY AND CLEAR BUTTONS

   Positioned inside the textarea, at the bottom right.
   ========================================================= */

.textarea-actions {
    position: absolute;

    right: 18px;
    bottom: 15px;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    max-width: calc(100% - 36px);

    padding: 4px;

    background: var(--wc-white);

    border-radius: 7px;
}

.textarea-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 82px;
    min-height: 34px;

    padding: 7px 13px;

    color: var(--wc-text-light);

    background: #f3f3f3;

    border: 1px solid #cccccc;
    border-radius: 6px;

    font-family: var(--wc-font-family);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;

    text-align: center;
    white-space: nowrap;

    cursor: pointer;

    user-select: none;
    -webkit-user-select: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.textarea-action:hover {
    color: var(--wc-text);

    background: #e9e9e9;

    border-color: #b5b5b5;
}

.textarea-action:active {
    background: #dddddd;
}

.textarea-action:focus-visible {
    outline: 2px solid var(--wc-blue);
    outline-offset: 2px;
}

.textarea-action:disabled {
    opacity: 0.5;

    cursor: default;
}


/* =========================================================
   COPY BUTTON
   ========================================================= */

.copyButton {
    min-width: 88px;
}

.copyButton.copied,
.copyButton.success,
.copyButton.is-copied {
    color: var(--wc-green);

    background: #eaf5ea;

    border-color: #b9d7b9;
}


/* =========================================================
   CLEAR AND UNDO BUTTON
   ========================================================= */

.clearButton {
    min-width: 80px;
}

.clearButton.undo,
.clearButton.undo-mode,
.clearButton.is-undo {
    color: var(--wc-blue-dark);
}

.textarea-action[hidden],
.clearButton[hidden],
.textarea-action.hidden,
.clearButton.hidden,
.clearButton.is-hidden {
    display: none !important;
}


/* =========================================================
   JAVASCRIPT NOTICE
   ========================================================= */

.javascript-notice {
    margin: 12px 0;

    padding: 12px 15px;

    color: #8a5a00;

    background: #fff8e5;

    border: 1px solid #ead6a2;
    border-radius: 8px;

    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   SECONDARY METRICS
   ========================================================= */

.secondary-metrics {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    margin-top: 14px;
}

.secondary-metric {
    position: relative;

    min-width: 0;
    min-height: 100px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 12px 10px;

    background: var(--wc-white);

    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);

    box-shadow: var(--wc-shadow);
}

.secondary-metric-label {
    position: relative;

    width: 100%;

    min-height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    color: var(--wc-text-light);

    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;

    letter-spacing: 0;

    text-align: center;

    overflow-wrap: anywhere;
}

.secondary-metric-value {
    width: 100%;

    min-height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--wc-blue-dark);

    font-size: 27px;
    line-height: 1.2;
    font-weight: 400;

    font-variant-numeric: tabular-nums;

    text-align: center;

    overflow-wrap: anywhere;
}

.secondary-metric-value > span {
    max-width: 100%;
}


/* =========================================================
   INDIVIDUAL SECONDARY METRICS
   ========================================================= */

#uniqueWordCount,
#sentenceCount,
#paragraphCount,
#pageCount,
#averageWordLength,
#wordsPerSentence,
#wordsPerParagraph {
    font-size: inherit;
    font-weight: 400;
}


/* =========================================================
   READING AND SPEAKING TIME

   Slightly smaller to accommodate German time abbreviations.
   ========================================================= */

#readingTime,
#speakingTime {
    font-size: 23px;
    line-height: 1.25;
    font-weight: 400;

    overflow-wrap: normal;
}


/* =========================================================
   MOBILE CHARACTER METRIC

   Hidden on desktop and displayed below the textarea
   on smaller mobile devices.
   ========================================================= */

.secondary-metrics .mobile-character-metric {
    display: none;
}


/* =========================================================
   INFORMATION ICON
   ========================================================= */

.info-icon {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    color: #777777;

    background: #ffffff;

    border: 1px solid #b7b7b7;
    border-radius: 50%;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;

    cursor: help;
}

.info-icon:hover,
.info-icon:focus {
    color: var(--wc-blue-dark);

    border-color: var(--wc-blue-dark);

    outline: none;
}

.info-icon:focus-visible {
    outline: 2px solid var(--wc-blue);

    outline-offset: 2px;
}


/* =========================================================
   TOOLTIP
   ========================================================= */

.tooltip-text {
    position: absolute;

    left: 50%;
    bottom: calc(100% + 10px);

    z-index: 20;

    width: 190px;

    padding: 10px 12px;

    color: #ffffff;

    background: #333333;

    border-radius: 7px;

    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;

    letter-spacing: 0;

    text-align: center;
    white-space: normal;

    opacity: 0;
    visibility: hidden;

    transform: translateX(-50%);

    pointer-events: none;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);

    transition:
        opacity 0.15s ease,
        visibility 0.15s ease;
}

.tooltip-text::after {
    position: absolute;

    top: 100%;
    left: 50%;

    width: 0;
    height: 0;

    content: "";

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333333;

    transform: translateX(-50%);
}

.info-icon:hover .tooltip-text,
.info-icon:focus .tooltip-text,
.info-icon:focus-within .tooltip-text {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   CHARACTER COUNTER RECOMMENDATION
   ========================================================= */

.character-counter-recommendation {
    width: 100%;

    margin-top: 18px;

    padding: 15px 18px;

    color: var(--wc-text-light);

    background: #f7f8fa;

    border: 1px solid var(--wc-soft-border);
    border-radius: 10px;

    font-size: 15.5px;
    line-height: 1.65;

    letter-spacing: 0;
}

.character-counter-recommendation strong {
    color: var(--wc-text);

    font-weight: 600;
}

.character-counter-recommendation a {
    color: var(--wc-blue-dark);

    text-decoration: none;
}

.character-counter-recommendation a:hover {
    text-decoration: underline;
}


/* =========================================================
   INFORMATIONAL CONTENT SECTIONS
   ========================================================= */

.word-counter-guide,
.word-counter-examples,
.word-counter-features,
.related-word-tools,
.word-counter-faq {
    width: 100%;

    margin: 0;

    padding: 0 0 50px;

    background: var(--wc-white);
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.word-counter-content-column .section-title {
    position: relative;

    margin: 0 0 24px;

    padding: 0 0 12px;

    color: var(--wc-text);

    border-bottom: 2px solid #eeeeee;

    font-size: 27px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: 0;

    text-align: left;
}

.word-counter-content-column .section-title::before,
.word-counter-content-column .section-title::after {
    display: none;

    content: none;
}


/* =========================================================
   GUIDE CONTENT
   ========================================================= */

.guide-content,
.examples-content,
.related-tools-content,
.faq-content {
    width: 100%;

    min-width: 0;
}

.guide-content {
    color: var(--wc-text-light);

    font-size: 17px;
    line-height: 1.75;

    letter-spacing: 0;
}

.guide-content h2 {
    margin: 32px 0 12px;

    color: var(--wc-text);

    font-size: 23px;
    line-height: 1.35;
    font-weight: 700;

    letter-spacing: 0;

    text-align: left;
}

.guide-content h2:first-child {
    margin-top: 0;
}

.guide-content h3 {
    margin: 24px 0 10px;

    color: var(--wc-text);

    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.guide-content p,
.examples-content > p,
.related-tools-content > p {
    margin: 0 0 16px;

    color: var(--wc-text-light);

    font-size: 17px;
    line-height: 1.75;

    letter-spacing: 0;

    text-align: left;

    overflow-wrap: break-word;
}

.guide-content strong,
.examples-content strong {
    color: var(--wc-text);

    font-weight: 600;
}

.guide-content a,
.examples-content a,
.faq-content a {
    color: var(--wc-blue-dark);

    text-decoration: none;
}

.guide-content a:hover,
.examples-content a:hover,
.faq-content a:hover {
    text-decoration: underline;
}

.guide-content a:focus-visible,
.examples-content a:focus-visible,
.faq-content a:focus-visible {
    outline: 2px solid var(--wc-blue);

    outline-offset: 3px;
}


/* =========================================================
   GUIDE LIST
   ========================================================= */

.guide-list {
    margin: 10px 0 24px;

    padding-left: 25px;

    list-style: disc outside;
}

.guide-list li {
    display: list-item;

    margin-bottom: 10px;

    padding-left: 3px;

    color: var(--wc-text-light);

    font-size: 17px;
    line-height: 1.7;

    letter-spacing: 0;
}

.guide-list li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   EXAMPLE CARDS
   ========================================================= */

.examples-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin-top: 20px;
}

.example-card {
    min-width: 0;

    padding: 20px;

    background: var(--wc-white);

    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);

    box-shadow: var(--wc-shadow);
}

.example-card h3 {
    margin: 0 0 14px;

    color: var(--wc-text);

    font-size: 19px;
    line-height: 1.35;
    font-weight: 600;

    letter-spacing: 0;
}

.example-card code {
    display: block;

    width: 100%;

    margin: 0 0 14px;

    padding: 12px 14px;

    color: var(--wc-text);

    background: #f5f6f8;

    border: 1px solid var(--wc-soft-border);
    border-radius: 7px;

    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    line-height: 1.5;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
    word-break: normal;
}

.example-card p {
    margin: 0 0 8px;

    color: var(--wc-text-light);

    font-size: 15.5px;
    line-height: 1.65;

    letter-spacing: 0;
}

.example-card p:last-child {
    margin-bottom: 0;
}

.example-card p strong {
    color: var(--wc-text);

    font-weight: 600;
}


/* =========================================================
   FEATURE TABLE WRAPPER
   ========================================================= */

.feature-table-wrap {
    width: 100%;

    margin: 18px 0 24px;

    background: var(--wc-white);

    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   FEATURE TABLE
   ========================================================= */

.feature-table {
    width: 100%;

    margin: 0;

    border-collapse: collapse;
    border-spacing: 0;

    table-layout: auto;

    text-align: left;
}

.feature-table thead {
    background: #f4f5f7;
}

.feature-table th {
    padding: 14px 16px;

    color: var(--wc-text);

    border-bottom: 1px solid var(--wc-border);

    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;

    letter-spacing: 0;

    text-align: left;
    vertical-align: middle;
}

.feature-table td {
    padding: 13px 16px;

    color: var(--wc-text-light);

    border-bottom: 1px solid var(--wc-soft-border);

    font-size: 15.5px;
    line-height: 1.6;
    font-weight: 400;

    letter-spacing: 0;

    text-align: left;
    vertical-align: top;

    overflow-wrap: anywhere;
}

.feature-table th:first-child,
.feature-table td:first-child {
    width: 37%;
}

.feature-table td:first-child {
    color: var(--wc-text);

    font-weight: 500;
}

.feature-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.feature-table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   RELATED TOOLS
   ========================================================= */

.related-tools-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-top: 20px;
}

.related-tool-card {
    min-width: 0;
    min-height: 66px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 13px 15px;

    color: var(--wc-blue-dark);

    background: var(--wc-white);

    border: 1px solid var(--wc-border);
    border-radius: 9px;

    font-size: 15.5px;
    line-height: 1.45;
    font-weight: 400;

    letter-spacing: 0;

    text-align: center;
    text-decoration: none;

    overflow-wrap: anywhere;

    box-shadow: var(--wc-shadow);

    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.related-tool-card:hover {
    color: #1558b0;

    background: #f5f8ff;

    border-color: #9dbcf1;
}

.related-tool-card:focus-visible {
    outline: 2px solid var(--wc-blue);

    outline-offset: 2px;
}


/* =========================================================
   FAQ SECTION
   ========================================================= */

.faq-content {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.faq-item {
    width: 100%;

    padding: 20px;

    background: var(--wc-white);

    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);

    box-shadow: var(--wc-shadow);
}

.faq-item h3 {
    margin: 0 0 10px;

    color: var(--wc-text);

    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;

    letter-spacing: 0;

    text-align: left;
}

.faq-item p {
    margin: 0 0 12px;

    color: var(--wc-text-light);

    font-size: 16.5px;
    line-height: 1.7;

    letter-spacing: 0;

    text-align: left;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

.faq-item strong {
    color: var(--wc-text);

    font-weight: 600;
}


/* =========================================================
   FOOTER
   ========================================================= */

.word-counter-page .footer {
    width: 100%;

    margin: 0;

    padding: 45px 0;

    background: #f1f1f1;
}

.word-counter-page .footer-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        repeat(3, minmax(0, 1fr));

    gap: 35px;

    align-items: start;
}

.word-counter-page .company-data {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 18px;

    min-width: 0;
}

.word-counter-page .footer .logo {
    margin: 0;

    color: var(--wc-text);

    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;

    overflow-wrap: anywhere;
}

.word-counter-page .company-description {
    max-width: 350px;

    margin: 0;

    color: var(--wc-text-light);

    font-size: 15px;
    line-height: 1.7;

    letter-spacing: 0;
}

.word-counter-page .copyright-notice {
    color: var(--wc-text-light);

    font-size: 13px;
    line-height: 1.6;

    letter-spacing: 0;
}

.word-counter-page .footer-title {
    margin: 0 0 20px;

    color: var(--wc-text);

    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;

    text-transform: none;

    letter-spacing: 0;
}

.word-counter-page .footer-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 13px;
}

.word-counter-page .footer-list .list-item {
    margin: 0;
}

.word-counter-page .footer-list .list-link {
    color: var(--wc-text-light);

    font-size: 15px;
    line-height: 1.5;

    letter-spacing: 0;

    text-decoration: none;

    overflow-wrap: anywhere;
}

.word-counter-page .footer-list .list-link:hover {
    color: var(--wc-blue-dark);
}


/* =========================================================
   CONTENT VISIBILITY

   Reduces initial rendering work for long content sections.
   ========================================================= */

.word-counter-guide,
.word-counter-examples,
.word-counter-features,
.related-word-tools,
.word-counter-faq {
    content-visibility: auto;

    contain-intrinsic-size: auto 800px;
}


/* =========================================================
   WIDE DESKTOP
   1280px and above
   ========================================================= */

@media screen and (min-width: 1280px) {

    .word-counter-page-layout {
        grid-template-columns:
            900px
            300px;

        gap: 10px;

        justify-content: center;
    }

    .word-counter-content-column {
        width: 900px;
        max-width: 900px;
    }

    .word-counter-page .footer-container {
        max-width: 1240px;
    }

}


/* =========================================================
   STANDARD DESKTOP
   992px to 1279px
   ========================================================= */

@media screen and (min-width: 992px) and (max-width: 1279px) {

    .word-counter-page-layout {
        grid-template-columns:
            minmax(0, 1fr)
            300px;

        gap: 10px;
    }

    .primary-metrics {
        gap: 8px;
    }

    .primary-metric-label {
        padding: 8px 6px;

        font-size: 16px;
    }

    .primary-metric-value {
        padding: 8px 5px;

        font-size: 27px;
    }

    #wordCount {
        font-size: 33px;
    }

    #characterCount {
        font-size: 28px;
    }

    .metric-limit-input {
        max-width: 125px;

        padding: 5px 6px;
    }

    .secondary-metric-label {
        font-size: 15px;
    }

    .secondary-metric-value {
        font-size: 25px;
    }

    #readingTime,
    #speakingTime {
        font-size: 20px;
    }

}


/* =========================================================
   SMALL DESKTOP AND TABLET
   Below 992px

   Advertising sidebar is hidden.
   ========================================================= */

@media screen and (max-width: 991px) {

    .word-counter-page-layout {
        display: block;
    }

    .word-counter-content-column {
        width: 100%;
        max-width: 900px;

        margin: 0 auto;
    }

    .word-counter-page #sidebar {
        display: none;
    }

    .word-counter-page .footer-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 35px;
    }

}


/* =========================================================
   TABLET
   Below 900px
   ========================================================= */

@media screen and (max-width: 900px) {

    .primary-metrics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .secondary-metrics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .examples-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .related-tools-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE AND SMALL TABLET
   Below 768px
   ========================================================= */

@media screen and (max-width: 768px) {

    .word-counter-page .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .word-counter-page .header {
        background: #f1f1f1;
    }

    .word-counter-page .menu {
        right: 12px;

        background: #f1f1f1;
    }

    .word-counter-page .logo-picture img {
        width: auto;
        height: 40px;
    }

    .word-counter-main-page {
        padding-top: 80px;
    }


    /* Tool section */

    .word-counter-section {
        padding-bottom: 42px;
    }


    /* Heading */

    .word-counter-heading {
        margin-bottom: 20px;

        padding: 0 8px;
    }

    .word-counter-title {
        margin-bottom: 15px;

        font-size: 32px;
    }

    .word-counter-description {
        font-size: 16px;
        line-height: 1.5;
    }


    /* Primary metrics */

    .primary-metrics {
        gap: 8px;

        margin-bottom: 12px;
    }

    .primary-metric-label {
        min-height: 52px;

        padding: 6px 8px;

        font-size: 17px;
    }

    .primary-metric-value {
        min-height: 54px;

        padding: 7px 8px;

        font-size: 27px;
    }

    #wordCount {
        font-size: 33px;
    }

    #characterCount {
        font-size: 28px;
    }


    /* Word limit */

    .metric-limit-input {
        height: 35px;

        font-size: 16px;
    }


    /* Textarea */

    .word-textarea {
        height: 310px;

        padding: 12px 12px 56px;

        font-size: 16px;
    }

    .word-textarea::placeholder {
        font-size: 16px;
    }

    .textarea-actions {
        right: 15px;
        bottom: 14px;

        gap: 6px;
    }

    .textarea-action {
        min-height: 32px;

        padding: 6px 11px;

        font-size: 13px;
    }


    /* Secondary metrics */

    .secondary-metrics {
        gap: 8px;

        margin-top: 12px;
    }

    .secondary-metric {
        min-height: 92px;

        gap: 8px;

        padding: 10px 8px;
    }

    .secondary-metric-label {
        font-size: 15.5px;
    }

    .secondary-metric-value {
        font-size: 25px;
    }

    #readingTime,
    #speakingTime {
        font-size: 21px;
    }


    /* Character counter recommendation */

    .character-counter-recommendation {
        margin-top: 15px;

        padding: 13px 15px;

        font-size: 15px;
    }


    /* Content sections */

    .word-counter-guide,
    .word-counter-examples,
    .word-counter-features,
    .related-word-tools,
    .word-counter-faq {
        padding-bottom: 40px;
    }

    .word-counter-content-column .section-title {
        margin-bottom: 20px;

        font-size: 24px;
    }

    .guide-content h2 {
        margin-top: 28px;

        font-size: 21px;
    }

    .guide-content p,
    .examples-content > p,
    .related-tools-content > p,
    .guide-list li {
        font-size: 16px;
        line-height: 1.7;
    }


    /* Examples */

    .examples-grid {
        gap: 10px;
    }

    .example-card {
        padding: 17px;
    }

    .example-card h3 {
        font-size: 18px;
    }

    .example-card code {
        padding: 10px 12px;

        font-size: 13px;
    }


    /* Related tools */

    .related-tools-grid {
        gap: 10px;
    }

    .related-tool-card {
        min-height: 62px;

        padding: 12px;

        font-size: 15px;
    }


    /* FAQ */

    .faq-item {
        padding: 17px;
    }

    .faq-item h3 {
        font-size: 19px;
    }

    .faq-item p {
        font-size: 16px;
    }

}


/* =========================================================
   MOBILE
   Below 520px
   ========================================================= */

@media screen and (max-width: 520px) {

    .word-counter-page .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .word-counter-main-page {
        padding-top: 78px;
    }

    .word-counter-section {
        padding-bottom: 36px;
    }


    /* Heading */

    .word-counter-heading {
        margin-bottom: 18px;

        padding: 0 6px;
    }

    .word-counter-title {
        margin-bottom: 14px;

        font-size: 30px;
    }

    .word-counter-description {
        font-size: 15.5px;
        line-height: 1.5;
    }


    /* =====================================================
       PRIMARY METRICS

       Horizontal label/value rows keep the textarea high
       on smaller screens.
       ===================================================== */

    .primary-metrics {
        grid-template-columns: 1fr;

        gap: 8px;

        margin-bottom: 12px;
    }

    .primary-metric {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(110px, 0.55fr);

        align-items: stretch;

        min-height: 58px;

        border-radius: 9px;
    }

    .primary-metric-label {
        min-height: 58px;

        justify-content: flex-start;

        padding: 9px 12px;

        background: var(--wc-soft-background);

        border-bottom: 0;
        border-right: 1px solid var(--wc-soft-border);

        font-size: 17px;
        line-height: 1.25;

        text-align: left;
    }

    .primary-metric-value {
        min-height: 58px;

        padding: 8px;

        font-size: 25px;

        text-align: center;
    }

    #wordCount {
        font-size: 31px;
        font-weight: 400;
    }

    #wordsRemaining {
        font-size: 25px;
    }


    /* Hide the desktop character count */

    .primary-metrics .desktop-character-metric {
        display: none;
    }


    /* Word limit */

    .metric-title-stack {
        align-items: flex-start;
    }

    .metric-title-main,
    .metric-title-note {
        text-align: left;
    }

    .metric-title-note {
        margin-top: 3px;

        font-size: 12px;
    }

    .metric-limit-input {
        max-width: 115px;
        height: 34px;

        padding: 4px 5px;

        font-size: 16px;
    }


    /* =====================================================
       TEXTAREA
       ===================================================== */

    .word-textarea {
        height: 260px;

        min-height: 80px;
        max-height: 1200px;

        padding: 11px 11px 54px;

        border-width: 4px;
        border-radius: 10px;

        font-size: 16px;
        line-height: 1.5;
    }

    .word-textarea::placeholder {
        font-size: 16px;
        line-height: 1.5;
    }

    .textarea-actions {
        right: 15px;
        bottom: 13px;

        gap: 6px;

        padding: 3px;
    }

    .textarea-action {
        min-width: 72px;
        min-height: 31px;

        padding: 6px 10px;

        font-size: 13px;
    }

    .copyButton {
        min-width: 78px;
    }

    .clearButton {
        min-width: 72px;
    }


    /* =====================================================
       SECONDARY METRICS

       Character count is moved below the textarea.
       ===================================================== */

    .secondary-metrics {
        grid-template-columns: 1fr;

        gap: 8px;

        margin-top: 10px;
    }

    .secondary-metrics .mobile-character-metric {
        display: flex;
    }

    .secondary-metric {
        min-height: 58px;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        gap: 12px;

        padding: 10px 13px;

        border-radius: 9px;
    }

    .secondary-metric-label {
        width: auto;

        min-width: 0;

        flex: 1 1 auto;

        justify-content: flex-start;

        font-size: 16px;
        line-height: 1.3;

        text-align: left;
    }

    .secondary-metric-value {
        width: auto;

        min-width: 65px;

        flex: 0 1 auto;

        justify-content: flex-end;

        font-size: 23px;
        line-height: 1.2;

        text-align: right;
    }

    #mobileCharacterCount {
        font-size: 23px;
        font-weight: 500;
    }

    #readingTime,
    #speakingTime {
        font-size: 18px;

        white-space: normal;

        text-align: right;
    }


    /* Information icon */

    .info-icon {
        width: 16px;
        height: 16px;

        flex-basis: 16px;

        font-size: 10px;
    }

    .tooltip-text {
        width: 155px;

        padding: 9px 11px;

        font-size: 12px;
    }


    /* Recommendation */

    .character-counter-recommendation {
        margin-top: 13px;

        padding: 12px 13px;

        font-size: 14.5px;
        line-height: 1.65;
    }

    .character-counter-recommendation strong {
        display: block;

        margin-bottom: 4px;
    }


    /* =====================================================
       INFORMATIONAL CONTENT
       ===================================================== */

    .word-counter-guide,
    .word-counter-examples,
    .word-counter-features,
    .related-word-tools,
    .word-counter-faq {
        padding-bottom: 35px;
    }

    .word-counter-content-column .section-title {
        margin-bottom: 18px;

        padding-bottom: 10px;

        font-size: 23px;
        line-height: 1.35;
    }

    .guide-content h2 {
        margin-top: 26px;
        margin-bottom: 10px;

        font-size: 20px;
        line-height: 1.4;
    }

    .guide-content h2:first-child {
        margin-top: 0;
    }

    .guide-content p,
    .examples-content > p,
    .related-tools-content > p {
        margin-bottom: 14px;

        font-size: 16px;
        line-height: 1.7;
    }

    .guide-list {
        padding-left: 21px;
    }

    .guide-list li {
        margin-bottom: 9px;

        font-size: 16px;
        line-height: 1.65;
    }


    /* Example cards */

    .examples-grid {
        grid-template-columns: 1fr;

        gap: 10px;

        margin-top: 16px;
    }

    .example-card {
        padding: 15px;
    }

    .example-card h3 {
        margin-bottom: 12px;

        font-size: 18px;
    }

    .example-card p {
        font-size: 15px;
    }


    /* Feature tables */

    .feature-table-wrap {
        margin: 15px 0 20px;

        border-radius: 9px;
    }

    .feature-table th {
        padding: 12px 10px;

        font-size: 14px;
    }

    .feature-table td {
        padding: 11px 10px;

        font-size: 14px;
        line-height: 1.55;
    }

    .feature-table th:first-child,
    .feature-table td:first-child {
        width: 40%;
    }


    /* Related tools */

    .related-tools-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;

        margin-top: 16px;
    }

    .related-tool-card {
        min-height: 60px;

        padding: 10px;

        font-size: 14px;
        line-height: 1.4;
    }


    /* FAQ */

    .faq-content {
        gap: 10px;
    }

    .faq-item {
        padding: 15px;

        border-radius: 9px;
    }

    .faq-item h3 {
        margin-bottom: 9px;

        font-size: 18px;
        line-height: 1.4;
    }

    .faq-item p {
        font-size: 15.5px;
        line-height: 1.7;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .word-counter-page .footer {
        padding: 30px 0;
    }

    .word-counter-page .footer-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 28px 20px;

        padding-left: 15px;
        padding-right: 15px;
    }

    .word-counter-page .company-data {
        grid-column: 1 / -1;

        gap: 14px;
    }

    .word-counter-page .footer .logo {
        font-size: 21px;
    }

    .word-counter-page .footer-title {
        margin-bottom: 16px;

        font-size: 16px;
    }

    .word-counter-page .footer-list {
        gap: 12px;
    }

    .word-counter-page .footer-list .list-link {
        font-size: 14px;
    }

}


/* =========================================================
   VERY SMALL MOBILE DEVICES
   Below 360px
   ========================================================= */

@media screen and (max-width: 360px) {

    .word-counter-page .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .word-counter-page .logo-picture img {
        height: 36px;
    }

    .word-counter-main-page {
        padding-top: 74px;
    }

    .word-counter-title {
        font-size: 28px;
    }

    .word-counter-description {
        font-size: 15px;
    }

    .primary-metric {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(100px, 0.55fr);
    }

    .primary-metric-label {
        padding: 8px 10px;

        font-size: 16px;
    }

    .primary-metric-value {
        padding: 6px;

        font-size: 23px;
    }

    #wordCount {
        font-size: 28px;
    }

    #wordsRemaining {
        font-size: 23px;
    }

    .metric-limit-input {
        max-width: 100px;
    }

    .secondary-metric {
        padding: 10px 11px;

        gap: 8px;
    }

    .secondary-metric-label {
        font-size: 15px;
    }

    .secondary-metric-value {
        font-size: 21px;
    }

    #readingTime,
    #speakingTime {
        font-size: 16px;
    }

    .related-tools-grid {
        grid-template-columns: 1fr;
    }

    .word-counter-page .footer-container {
        gap: 25px 15px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .word-counter-page *,
    .word-counter-page *::before,
    .word-counter-page *::after {
        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;
    }

}


/* =========================================================
   PRINT STYLES
   ========================================================= */

@media print {

    .word-counter-page .header,
    .word-counter-page .footer,
    .word-counter-page #sidebar,
    .textarea-actions,
    .related-word-tools,
    .info-icon {
        display: none !important;
    }

    .word-counter-main-page {
        padding-top: 0;
    }

    .word-counter-page-layout {
        display: block;
    }

    .word-counter-content-column {
        width: 100%;
        max-width: none;
    }

    .word-counter-page .container {
        width: 100%;
        max-width: none;

        padding: 0;
    }

    .primary-metric,
    .secondary-metric,
    .example-card,
    .faq-item {
        box-shadow: none;

        break-inside: avoid;
    }

    .word-textarea {
        border: 1px solid #999999;

        resize: none;
    }

    .word-counter-guide,
    .word-counter-examples,
    .word-counter-features,
    .word-counter-faq {
        content-visibility: visible;

        contain-intrinsic-size: none;
    }

}


/* =========================================================
   END WORTZÄHLER CSS
   ========================================================= */